LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Blogs > turab
User Name
Password

Notices

Rate this Entry

ldap installation problem :(

Posted 07-18-2006 at 08:05 PM by turab

Hello Friends,
its now a nightmare for me to install ldap. If anybudy tried it before kindly guide me.

[root@dlinux openldap]# rpm -q openldap
openldap-2.2.13-4

[root@dlinux openldap]# uname -r
2.6.9-34.EL

[root@dlinux openldap]# cat /etc/openldap/slapd.conf
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema

# Allow LDAPv2 client connections. This is NOT the default.
allow bind_v2

# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral ldap://root.openldap.org

pidfile /var/run/slapd.pid
argsfile /var/run/slapd.args

database bdb
suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw {SSHA}Ya+QHrzu5OhYK6L15unCDxO2NJG9zTip
directory /var/lib/ldap

# Indices to maintain for this database
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



[root@dlinux openldap]# cat example.com.ldif
dn: dc=example,dc=com

dc: example
description: Root LDAP entry for example.com
objectClass: dcObject
objectClass: organizationalUnit
ou: rootobject
dn: ou=People,dc=example,dc=com

ou: People
description: All people in organisation
objectClass: organizationalUnit



[root@dlinux openldap]# cat root.ldif
dn: uid=root,ou=People,dc=example,dc=com

uid: root
cn: Manager
objectClass: account
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
userPassword: {crypt}$1$bz795AtE$8dkuOYVPGhHmR/TRpYpzW0
shadowLastChange: 13348
shadowMax: 99999
shadowWarning: 7
loginShell: /bin/bash
uidNumber: 0
gidNumber: 0
homeDirectory: /root
gecos: root

dn: uid=operator,ou=People,dc=example,dc=com
uid: operator
cn: Manager
objectClass: account
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
userPassword: {crypt}*
shadowLastChange: 13348
shadowMax: 99999
shadowWarning: 7
loginShell: /sbin/nologin
uidNumber: 11
gidNumber: 0
homeDirectory: /root
gecos: operator



[root@dlinux openldap]# cat ldapusers.ldif
dn: uid=pokemon,ou=People,dc=example,dc=com

uid: pokemon
cn: Manager
objectClass: account
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
userPassword: {crypt}$1$CGfyrjZz$14d6J3Wwm5PQTUhoyTn2K0
shadowLastChange: 13348
shadowMax: 99999
shadowWarning: 7
loginShell: /bin/bash
uidNumber: 500
gidNumber: 501
homeDirectory: /home/pokemon

dn: uid=pablo,ou=People,dc=example,dc=com
uid: pablo
cn: Manager
objectClass: account
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
userPassword: {crypt}$1$SA0g0NjA$jf3fm.QqWGQZHmpy1dcuY1
shadowLastChange: 13348
shadowMax: 99999
shadowWarning: 7
loginShell: /bin/bash
uidNumber: 501
gidNumber: 502
homeDirectory: /home/pablo



The error i am getting
[root@dlinux openldap]# ldapadd -x -D "cn=Manager,dc=example,dc=com" -W -f /etc/openldap/example.com.ldif
Enter LDAP Password:
ldapadd: no attributes to change or add (entry="dc=example,dc=com")



[root@dlinux openldap]# ldapadd -x -D "cn=Manager,dc=example,dc=com" -W -f /etc/openldap/example.com.ldif
Enter LDAP Password:
ldapadd: no attributes to change or add (entry="dc=example,dc=com")



[root@dlinux openldap]# ldapadd -x -D "cn=Manager,dc=example,dc=com" -W -f /etc/openldap/ldapusers.ldif
Enter LDAP Password:
ldapadd: no attributes to change or add (entry="uid=pokemon,ou=People,dc=example,dc=com")



Please edify me if i am going in the wrong direction.
Thanks in advance


Regards,
Turab
Posted in Uncategorized
Views 688 Comments 1
« Prev     Main     Next »
Total Comments 1

Comments

  1. Old Comment
    is the account present in ur server ...i mean pokeman and pablo..??
    Posted 12-31-1969 at 07:00 PM by turab turab is offline
 

  



All times are GMT -5. The time now is 03:40 PM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration