Let's say if we have one domain called fireblade.com and we need to
configure fireblade.net in the same server please follow the following
steps.
Note: fireblade.com domain already exist and we are configuring the fireblade.net domian in addition and adding a OU called people OU.
My LDAP server's hostname is
Open the configuration file and define the second domain
Save and restart LDAP
Create ldif called test.ldif
Add the ldif to the DATABASE
Now the server contains two domains fireblade.com and fireblade.net
Enjoy !!!
Note: fireblade.com domain already exist and we are configuring the fireblade.net domian in addition and adding a OU called people OU.
My LDAP server's hostname is
master-ldap1.fireblade.com - 192.168.56.22
Open the configuration file and define the second domain
# vim /etc/openldap/slapd.confadd the below lines.
database bdb suffix dc=fireblade,dc=net" rootdn "cn=Manager,dc=fireblade,dc=net" rootpw redhat
directory /var/lib/ldap/firenix-net
index objectClass eq,pres index ou,cn,mail,surname,givenname eq,pres,sub index uidNumber,gidNumber,loginShell eq,pres index uid,memberUid eq,pres,sub index nisMapName,nisMapEntry eq,pres,sub
Save and restart LDAP
# /etc/init.d/ldap restart
Create ldif called test.ldif
- vim test.ldif
dn: dc=fireblade,dc=net dc: fireblade description: Example Network Operations objectClass: dcObject objectClass: organization o: Firenix, Inc.
dn: ou=people, dc=fireblade,dc=net ou: people description: All people in organisation objectClass: organizationalUnit
Add the ldif to the DATABASE
# ldapadd -D "cn=Manager,dc=fireblade,dc=net" -W -x -f test.ldif
Now the server contains two domains fireblade.com and fireblade.net
Enjoy !!!
No comments:
Post a Comment