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.