LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-26-2003, 02:36 PM   #1
wizard1226
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 (http://www.grennan.com/ldap-HOWTO.html) 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/slapd.pid
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,mail=peter.marshall@caris.com
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
objectclass: mozillaAbPersonObsolete
givenName: Peter
sn: Marshall
cn: Peter Marshall
mail: peter.marshall@caris.com
modifytimestamp: 0Z

dn: cn=John Doe,mail=hello@hotmail.com
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
objectclass: mozillaAbPersonObsolete
givenName: John
sn: Doe
cn: John Doe
mail: hello@hotmail.com
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,mail=peter.marshall@caris.com"
ldap_add: No such object
ldif_record() = 32



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

Peter Marshall
 
  


Reply


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 04:42 PM
PAM - Winbind/LDAP Problems. tacoking Linux - Security 0 09-16-2004 08:36 AM
ldap problems egyptian Linux - Networking 8 07-22-2004 05:10 AM
ldap-abook unable to get street name in ldap-entry Jingle Linux - Software 1 06-06-2004 08:13 PM
LDAP problems...need help tarballed Linux - Networking 3 02-18-2003 09:57 PM


All times are GMT -5. The time now is 08:16 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration