HP CIFS Server 3.0b Administrator's Guide version A.02.01.01
LDAP Integration Support
Upgrading LDAP from HP CIFS Server A.01.* to A.02.*
Chapter 6 155
$ /opt/ldapux/bin/ldapsearch -h <NDS Server name> -p 389 -l \
-b <whole cdn> -s sub “objectClass= sanbaAccount” > \ output
file
For example, the following command finds the schema in the Netscape
Directory Server, hostA.cup.hp.com, with the sambaAccount
subschema and save the output to the /tmp/old.ldif file:
$ /opt/ldapux/bin/ldapsearch -h hostA.cup.hp.com -p 389 -l \
-b <whole cdn> -s sub “objectClass= sanbaAccount” > \
/tmp/old.ldif
Step 3. Run net command to get domain SID for your Netscape Directory
Server:
$ /opt/samba/bin/net getlocalsid [<NDS Server>]
For example, the following command gets the domain SID for Netscape
Directory Server, hostA.cup.hp.com:
$ /opt/samba/bin/net getlocalsid hostA.cup.hp.com
Step 4. Run the convertSambaAccount script to convert the existing Samba
subschema to the updated subschema supported by Samba 3.0:
$ cd /opt/samba/LDAP3
$ ./convertSambaAccount --sid <sid from step3> --input file
<ldif file from step2> --output file
For example, the following command converts the existing ldif file,
/tmp/old.ldif, to the updated samba3.0 ldif file, new.ldif, for the
domain SID, 210, for hostA.cup.hp.com:
$ ./convertSambaAccount --210 --/tmp/old.ldif --/tmp/new.ldif
Step 5. Run the ldifdiff script to compare the differences for two LDIF files
and save the output to the LDIF file:
For example, the following command compares the differences for the
/tmp/old.ldif and /tmp/new.ldif, and saves the output to the
/tmp/mod.ldif file:
$ ./opt/ldapux/bin/ldifdiff /tmp/old.ldif /tmp/new.ldif > \
/tmp/mod.ldif
Step 6. Run the ldapmodify script to modify the existing sambaAccount
subschema in your directory server with the updated sambaSamAccount
subschema that you obtain from step 5: