ÂList of attributes

For user accounts, the list of attributes must include the following, although you can omit UID and PrimaryGroupID if you specify a starting UID and a default primary group ID when you import the file:

ÂRecordName (the user’s short name)

ÂPassword

ÂUniqueID (the UID)

ÂPrimaryGroupID

ÂRealName (the user’s full name)

In addition, you can include:

ÂUserShell (the default shell)

ÂNFSHomeDirectory (the path to the user’s home folder)

ÂOther user data types, described in the Open Directory administration guide

For group accounts, the list of attributes must include:

ÂRecordName (the group name)

ÂPrimaryGroupID (the group ID)

ÂGroupMembership

The following is an example of a record description:

0x0A 0x5C 0x3A 0x2C dsRecTypeStandard:Users 7

RecordName Password UniqueID PrimaryGroupID

RealName NFSHomeDirectory UserShell

The following is an example of a record encoded using the previous description:

anne:Adl47E$:408:20:A. Johnsons, M.D.:/Network/Servers/somemac/Homes/anne:/

bin/csh

The record consists of values, delimited by colons. Use a double-colon (::) to indicate that a value is missing.

The following is another example, which shows a record description and user records for users whose passwords are to be validated using the Password Server. The record description should include a field named dsAttrTypeStandard:AuthMethod, and the value of this field for each record should be dsAuthMethodStandard:dsAuthClearText:

0x0A 0x5C 0x3A 0x2C dsRecTypeStandard:Users 8 dsAttrTypeStandard:RecordName dsAttrTypeStandard:AuthMethod dsAttrTypeStandard:Password dsAttrTypeStandard:UniqueID dsAttrTypeStandard:PrimaryGroupID dsAttrTypeStandard:Comment dsAttrTypeStandard:RealName dsAttrTypeStandard:UserShell skater:dsAuthMethodStandard\:dsAuthClearText:pword1:374:11:comment: Tony Hawk:/bin/csh mattm:dsAuthMethodStandard\:dsAuthClearText:pword2:453:161::

Chapter 8 Working with Users and Groups

121

Page 121
Image 121
Apple Mac OS X Server manual 121