Quote:
First of all, is this necessary the name of Ldap directory should be same as that of DNS name like example.com ?
|
No, you could use "dc=Seattle,dc=Washington,dc=USA,dc=NorthAmerica" if you want.
when you edited your slapd.conf and then started ldap, you created dc=example,dc=com. You do not have to add that with an ldif.
I recommend not adding ldap management accounts within "ou=People,dc=example,dc=com" because that will make them usable accounts on every system that uses the directory. I would recommend using something like "cn=Manager,dc=example,dc=com"
And, every machine needs to have it's own root account so this wont work:
dn: uid=root,ou=People,dc=example,dc=com
Were you thinking of doing something like this in nsswitch.conf?
Code:
passwd: ldap
shadow: ldap
group: ldap
Thats just crazy, you wouldn't be able to get into the computer if the network went down or if ldap failed.