HP CIFS Server Administrator Guide Version A.02.04.04 (5070-6710, October 2011)

-Each triple must be enclosed by parentheses. For example, "(machine, user, domain)" is a valid triple while "machine,
user, domain" is not.
3
When migrating services data into the LDAP directory, You keep in mind that only multiple protocols can be associated
with one service name, but not multiple service ports.
Examples
Complete the following steps to migrate the /etc/passwd file to the LDIF file:
1. Set the environment variable, LDAP_BASEDN, to specify where you want to store your data.
For example, the following command sets the LDAP base DN to org.hp.com:
$ export LDAP_BASEDN="dc=org, dc=hp, dc=com"
2. Run the following script, migrate_passwd.pl, to migrate all data in the /etc/passwd
file to the /tmp/passwd.ldif file:
$ migrate_passwd.pl /etc/passwd /tmp/passwd.ldif
A part of the output is as follows:
dn: uid=johnl,ou=People,dc=org,dc=hp,dc=com
objectclass: top
objectclass: account
objectclass: posixAccount
objectclass: Account
loginShell: /usr/bin/ksh
uidNumber: 8662
gidNumber: 8200
homeDirectory: /home/johnl
gecos: John Louie, 48S-020, 447-1890
userPassword: {crypt}aOACGvt0T, 1foacctFlags: UX
pwdLastSet: 1063301239
Migrating Your data from one backend to another
Use the syncsmbpasswd tool to synchronize Samba user accounts with all currently available
POSIX user accounts in the configured password database backend. If you set the passdb
backend parameter in smb.conf to ldapsam:ldap://<ldap server name>, this tool adds
Samba user accounts that correspond to existing POSIX user accounts to the LDAP directory server.
See the syncsmbpasswd (1) man page for details.
For example, use the following procedures to synchronize Samba user accounts with available
POSIX user accounts in the LDAP directory server, ldaphostA.example.hp.com:
1. Configure the passdb backend parameter in smb.conf:
$ passdb backend = ldapsam:ldap://ldaphostA.example.hp.com
2. Run the following command:
$ syncsmbpasswd
Configuring the HP CIFS Server
You must set up and configure your HP CIFS Server to enable the LDAP feature support.
LDAP Configuration Parameters
The following is the list of new global parameters available for you to configure the HP CIFS Server
to enable the LDAP feature. These parameters are set in the /etc/opt/samba/smb.conf file
under global parameters.
[global] Any global setting defined here will be used by the HP CIFS Server with the LDAP
support.
Configuring the HP CIFS Server 91