HP CIFS Server 3.0f Administrator's Guide verison A.02.03
-w specifies the LDAP directory manager password
-P invokes the smbldap-passwd.pl tool to add the user password
-A can change the user password
-B must change the user password
-C specifies the SMB home share, such as \\PDC-SRC\homes
-D specifies the home drive letter associated with home share, such as H:
-E specifies the script path (DOS script to execute on login)
-F specifies the profile directory
-H specifies Samba account control bits
-N specifies the canonical name
-S specifies the surname
-? shows help messages.
username
Specify the name of the new user. The user service data will be added to the LDAP directory.
NOTE: The -a option with the user name must be the last parameter. Every parameter specified after the
-a option will be ignored by the smbldap-useradd.pl tool.
An Example
The following commands add the new user name "johnl" with the user id "102" and group id "1005" to
the Directory Server. Both posixAccount and sambaAccount information for "johnl" will be added:
cd /opt/samba/LDAP3/smbldap-tools
./smbldap-useradd.pl -u 102 -g 1005 -a johnl
The smbldap-usermod.pl Tool
You can use the smblcap-usermod.pl tool to modify the user entry in the Directory Server. The
posixAccount and/or sambaAccount information can be modified in the directory depending on the tool
option that you specify.
Syntax
smbldap-usermod.pl [options] username
where optionscan be any of the following:
-u modifies the User id (UID)
-o specifies that UID can be non unique
-g modifies the Group id (GID)
-l modifies the login name
-s modifies the shell information
-c gecos
-d modifies the home directory
-a adds sambaSamAccount objectclass
-w specifies the LDAP directory manager password
-A can change the user password
-B must change the user password
-C specifies the SMB home share, such as \\PDC-SRC\homes
-D specifies the home drive letter associated with home share, such as H:
-E modifies the script path (DOS script to execute on login)
-F modifies the profile directory
-H modifies Samba account control bits
-I disables a user
100 LDAP Integration Support