An example user account looks like this:

jim:Adl47E$:408:20:J. Smith, Jr.,

M.D.:/Network/Servers/somemac/Homes/jim:/bin/csh

Using the StandardGroupRecord Shorthand

When the first record in a character-delimited import file contains StandardGroupRecord, the following record description is assumed:

0x0A 0x5C 0x3A 0x2C DSRecTypeStandard:Groups 4

RecordName Password PrimaryGroupID GroupMembership

Here is an example of a record encoded using the description:

students:Ad147:88:jones,alonso,smith,wong

User Attributes

The following table lists standard XML data structures for attributes in user records.

Attribute

RecordName:

A list of names associated with a user; the first is the user’s short name, which is also the name of the user’s home directory

Important: All attributes used for authentication must map to RecordName.

Format

Sample values

First

Dave

value: ASCII

David Mac

characters

DMacSmith

A–Z, a–z, 0–9,

Non-zero length, 1 to 16 values. Maximum 255 bytes

_,-

(85 triple-byte to 255 single-byte characters) per

Second value:

instance. First value must be 1 to 30 bytes for clients

UTF-8 Roman

using Macintosh Manager, or 1 to 8 bytes for clients

text

using Mac OS X version 10.1 and earlier.

RealName:

UTF-8 text

David L. MacSmith, Jr.

A single name, usually the user’s full name; not used for authentication

Non-zero length, maximum 255 bytes (85 triple-byte to 255 single-byte characters).

UniqueID:

Signed 32-bit

Range is 100 to 2,147,483,648.

A unique user identifier, used

ASCII string of

Values below 100 are typically used for system

for access privilege

digits 0–9

accounts. Zero is reserved for use by the system.

management

 

Normally unique among entire population of users,

 

 

but sometimes can be duplicated.

 

 

Warning: A non-integer value is interpreted as 0,

 

 

which is the UniqueID of the root user.

 

 

 

PrimaryGroupID:

Unsigned

Range is 1 to 2,147,483,648.

A user’s primary group

32-bit ASCII

Normally unique among entire population of group

association

string of digits

records. If blank, 20 is assumed.

 

0–9

 

 

 

 

NFSHomeDirectory:

UTF-8 text

/Network/Servers/example/Users/

Local file system path to the

 

K-M/Tom King

user’s home directory

 

Non-zero length. Maximum 255 bytes.

 

 

 

Chapter 7 Working With Users and Groups

57

Page 57
Image 57
Apple oxs manual User Attributes, Format Sample values