[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: LDAP working



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=*"
 
 
 
----- Original Message -----
Sent: Wednesday, March 23, 2005 9:45 AM
Subject: LDAP working

hi

Anybody send me the procedure for
configuring the OpenLDAP and
making it to work. How to add the objects into. Send me the
procedure of working OpenLDAP for any domain name. I was trying to
make it work for last one week. But i was not able to do. I dont know
whether i am doing right or wrong. Help me. Bye. V. S.
Saravanan.


No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.8.0 - Release Date: 3/21/2005