3.1 Provisioning Database

Revision as of 06:14, 25 January 2007 by Asender (talk | contribs)

3.1: Provisioning Database

We are going to manually create our initial LDAP database in a text file and be confident to use it in a full production environment.

Our LDAP database structure will look like the following if using the preload ldif as per section 3.2 Preload LDIF

|-Samba Base |---Manager |------syncuser |------sambaadmin |------mailadmin |---------Users



         |-----------Domain Admin               
         |-----------Domain Users                
         |-----------Domain Guests            
         |-----------Domain Computers       

|-----------Domains |-------------sambaDomainName


Delete all runtime files from prior Samba operation by executing;

[root@node1]#   rm /etc/samba/*tdb
[root@node1]#   rm /var/lib/samba/*tdb
[root@node1]#   rm /var/lib/samba/*dat
[root@node1]#   rm /var/log/samba/*


Delete any previous LDAP database

[root@node1]#  cd /var/lib/ldap
[root@node1]#  rm –rf *


Login to node2 - the backup domain controller, and do the same.


[root@node1 ~]# net getlocalsid
SID for domain NODE1 is: S-1-5-21-3809161173-2687474671-1432921517

Your SID will differ to the one above; you will need to alter the preload LDIF as per below.


Login to your backup domain controller (node2) and type the following command using the SID obtained from step4.

[root@node2 ~]# net setlocalsid S-1-5-21-3809161173-2687474671-1432921517