These classnotes are depreciated. As of 2005, I no longer teach the classes. Notes will remain online for legacy purposes

LDAP01/SambaAccount

Classnotes | LDAP01 | RecentChanges | Preferences

Just as entries in the smbpasswd file supplement entries in the local password file, the sambaAccount entries in the directory supplement the basic Unix account information from posixAccount. smbd always queries the server's operating system for attributes such as the Unix home directory and user ID. By using both the posixAccount and the sambaAccount auxiliary object classes, you can store all of this information in your directory.

The only requirement Samba places on sambaAccount or smbpasswd entries is that the operating system must provide a valie set of Unix attributes for the user (e.g, a Unix UID and primary GID).

To add the sambaAccount information required for validating Windows users, we trun to the smbpasswd command again. The "-a" option specifies the username of the account to be added, and the "-s" option specifes the initial password. For example, to add a user named "frank", execute the following command as root:

 # smbpasswd -a frank -s testpass

LDAP will return 0 entries (which is normal, smbpasswd initially looks for a preexisting account with the specified username) and the user will be added.

The listing at the bottom of page 171 shows an example of what such a combined LDAP entry would look like.



Classnotes | LDAP01 | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited September 29, 2003 10:36 pm (diff)
Search:
(C) Copyright 2003 Samuel Hart
Creative Commons License
This work is licensed under a Creative Commons License.