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
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 |
_,- | (85 |
Second value: | instance. First value must be 1 to 30 bytes for clients |
using Macintosh Manager, or 1 to 8 bytes for clients | |
text | using Mac OS X version 10.1 and earlier. |
RealName: | David L. MacSmith, Jr. |
A single name, usually the user’s full name; not used for authentication
UniqueID: | Signed | 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 | accounts. Zero is reserved for use by the system. |
management |
| Normally unique among entire population of users, |
|
| but sometimes can be duplicated. |
|
| Warning: A |
|
| which is the UniqueID of the root user. |
|
|
|
PrimaryGroupID: | Unsigned | Range is 1 to 2,147,483,648. |
A user’s primary group | Normally unique among entire population of group | |
association | string of digits | records. If blank, 20 is assumed. |
|
| |
|
|
|
NFSHomeDirectory: | /Network/Servers/example/Users/ | |
Local file system path to the |
| |
user’s home directory |
| |
|
|
|
Chapter 7 Working With Users and Groups
57