HP CIFS Server 3.0f Administrator's Guide verison A.02.03

Consider the following example which sets the LDAP directory server name to "hostA.org.hp.com", the
SID to "S-1-5-21-1415721273-4291299877-1153850723", the LDAP base DN to "org.hp.com",
the directory manager name to "Directory Manager", and the password to "dmpasswd":
$SID="S-1-5-21-1415721273-4291299877-1153850723"
$masterLDAP="dc=org, dc=hp, dc=com"
$suffix="org.hp.com"
$binddn=""cn=Directory Manager"
$bindpasswd="dmpasswd"
NOTE: You can use the -w option to specify the LDAP directory manager password when you run LDAP
management tools. Without using the-w option, the HP CIFS Server will look up the password value of the
$bindpasswdattribute in the /opt/samba/LDAP3/smbldap-tools/smbldap_conf.pm configuration
file.
The smbldap-groupadd.pl Tool
You can use this tool to add a new group entry with the posixGourp objectclass to your Directory Server.
Syntax
smbldap-groupadd.pl [options] groupname
where options can be any of the following:
-a adds automatic group mapping entry
-g specifies Group id (GID)
-w specifies the LDAP directory manager password
-r specifies group RID
-s specifies group SID
-t specifies group type
-p prints the GID number to stdout
-? shows help messages
groupname
Specify the name of the group. The group data information will be added to the LDAP directory.
An Example
The following commands add the new group name "group1" with the group id "200" to the Directory
Server:
cd /opt/samba/LDAP3/smbldap-tools
./smbldap-groupadd.pl -g 200 group1
The smbldap-groupdel.pl Tool
You can use this tool to delete a group entry from the Directory Server. This tool will delete the posixGroup
information.
Syntax
smbldap-groupdel.pl [option] groupname
where option can be the following:
-w specifies the LDAP directory manager password
-? shows help messages
groupname
98 LDAP Integration Support