Hello sankar,
There are lotz of docs in net..
Anyway,this is simple,quick one..
1.Create slapd.conf ,ldap.conf as
follows
--slapd.conf--
include /opt/openldap/etc/openldap/schema/core.schema include /opt/openldap/etc/openldap/schema/cosine.schema include /opt/openldap/etc/openldap/schema/inetorgperson.schema include /opt/openldap/etc/openldap/schema/openldap.schema pidfile /var/opt/openldap/slapd.pid argsfile /var/opt/openldap/slapd.args database bdb suffix "dc=xyz,dc=com" rootdn "cn=Manager,dc=xyz,dc=com" rootpw secret directory /var/opt/openldap/openldap-bdb index objectClass eq
--ldap.conf-- base dc=xyz,dc=com 2.start slapd as, /opt/openldap/libexec/slapd -f /opt/openldap/etc/openldap/slapd.conf 3Create "mydomain.ldif" file with following
content.
mydomain.ldif ============== dn: dc=xyz,dc=com o: xyz Software dc: xyz objectclass: dcObject
objectclass: top objectclass: organization dn: cn=Manager,dc=xyz,dc=com objectClass: top objectclass: organizationalRole cn: Manager dn: ou=Development,dc=xyz,dc=com ou: Development objectClass: top objectclass: organizationalUnit dn: cn=shs,ou=Development,dc=xyz,dc=com cn: shs uid: shs ou: Development objectClass: top objectClass: person objectClass: organizationalPerson objectClass: inetOrgPerson facsimileTelephoneNumber: +1 313 764 5140 mail: shs@xyz.com sn: shs userPassword: shs 3. /opt/openldap/bin/ldapadd -f mydomain.ldif -xv -D
"cn=Manager,dc=xyz,dc=com" -w secret -h 127.0.0.1
4 /opt/openldap/bin/ldapsearch -h 127.0.0.1 -x -b "dc=xyz,dc=com"
"objectClass=*"
|