Apple oxs Server User Manual


 
Chapter 7 Working With Users and Groups 57
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 Format Sample values
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.
First
value: ASCII
characters
A–Z, a–z, 0–9,
_,-
Second value:
UTF-8 Roman
text
Dave
David Mac
DMacSmith
Non-zero length, 1 to 16 values. Maximum 255 bytes
(85 triple-byte to 255 single-byte characters) per
instance. First value must be 1 to 30 bytes for clients
using Macintosh Manager, or 1 to 8 bytes for clients
using Mac OS X version 10.1 and earlier.
RealName:
A single name, usually the
user’s full name; not used for
authentication
UTF-8 text David L. MacSmith, Jr.
Non-zero length, maximum 255 bytes (85 triple-byte
to 255 single-byte characters).
UniqueID:
A unique user identifier, used
for access privilege
management
Signed 32-bit
ASCII string of
digits 0–9
Range is 100 to 2,147,483,648.
Values below 100 are typically used for system
accounts. Zero is reserved for use by the system.
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:
A user’s primary group
association
Unsigned
32-bit ASCII
string of digits
0–9
Range is 1 to 2,147,483,648.
Normally unique among entire population of group
records. If blank, 20 is assumed.
NFSHomeDirectory:
Local file system path to the
user’s home directory
UTF-8 text /Network/Servers/example/Users/
K-M/Tom King
Non-zero length. Maximum 255 bytes.
LL2354.book Page 57 Monday, October 20, 2003 9:47 AM