Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-26-2003, 01:36 PM   #1
LQ Newbie
Registered: May 2003
Location: Canada
Posts: 2

Rep: Reputation: 0
LDAP problems

Hi. My name is Peter. I have been trying to get my ldap server working for a week. I have read every howto / helpfile / newsgroup I can find, and although your page ( has been the absolute most help, I am still not up and running...

Here is my slapd.conf file
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/redhat/rfc822-MailMember.schema
include /etc/openldap/schema/redhat/autofs.schema
include /etc/openldap/schema/redhat/kerberosobject.schema

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

database ldbm
suffix "dc=caris,dc=com"
rootdn "cn=root,dc=caris,dc=com"
rootpw secret
rootpw {SSHA}ikm0rM6ESposYFzTp70WcvIUrBucZmCA
directory /usr/share/openldap/migration

index objectClass,uid,uidNumber,gidNumber,memberUid eq
#index objectClass
index cn,mail,surname,givenname eq,subinitial

Here is my first ldif file (I have no idea what this is used for or why it is needed

dn: dc=caris,dc=com
objectClass: top
objectClass: organization
o: caris

# dn: ou=people,dc=caris,dc=com
# objectClass: top
# objectClass: organizationalUnit
# ou: people

# dn: cn=mail, ou=people,dc=caris,dc=com
# objectClass: posixgroup
# objectClass: top
# cn: mail
# userPassword: iforget
And here is my ldif file with the data in it.

dn: cn=Peter Marshall,
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
objectclass: mozillaAbPersonObsolete
givenName: Peter
sn: Marshall
cn: Peter Marshall
modifytimestamp: 0Z

dn: cn=John Doe,
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
objectclass: mozillaAbPersonObsolete
givenName: John
sn: Doe
cn: John Doe
modifytimestamp: 0Z

If you can help me out at all, I would be most appriciative.

When I run service ldap start The service starts fine

When I run

ldapadd -a -W -x -D "cn=root,dc=caris,dc=com" -f base.ldif

I get
adding new entry "dc=caris,dc=com"
ldap_add: Operations error

If I try
ldapadd -a -W -x -D "cn=root,dc=caris,dc=com" -f whatever
I get
adding new entry "cn=Peter Marshall,"
ldap_add: No such object
ldif_record() = 32

Very sorry to bother you, and thank you for looking at this

Peter Marshall


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LDAP based group problems looseCannon Solaris / OpenSolaris 3 12-02-2004 03:42 PM
PAM - Winbind/LDAP Problems. tacoking Linux - Security 0 09-16-2004 07:36 AM
ldap problems egyptian Linux - Networking 8 07-22-2004 04:10 AM
ldap-abook unable to get street name in ldap-entry Jingle Linux - Software 1 06-06-2004 07:13 PM
LDAP problems...need help tarballed Linux - Networking 3 02-18-2003 08:57 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:32 AM.

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