LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-17-2003, 04:28 PM   #1
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Rep: Reputation: 30
Arrow LDAP problems...need help


Hello everyone. Well, I am working with LDAP, but I am running into a little problem with it. For some reason, I keep getting the following error when I try and put some basic data into LDAP:

ldap_bind: Invalid credentials

First, let me ask if this is correct. (BTW, im running OpenLDAP).
In /etc/openldap, should the slapd.conf file be owned by root, or by ldap?

Ok. I have been using these two guys to learn LDAP:

http://www.openldap.org/doc/admin21/quickstart.html

http://www.linux-mag.com/cgi-bin/pri...1&article=guru

I have followed the instructions correctly, but when I enter the info like the following:

ldapadd -x -D "cn=Manager,dc=<MY-DOMAIN>,dc=<COM>" -W -f example.ldif

(replacing the fields correctly of course) That is when I get the error about invalid_credentials.

Does anyone have any idea on what I am missing? I'd like to fix this asap.

Thanks everyone.
 
Old 02-18-2003, 06:30 AM   #2
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
Your command is

ldapadd -x -D "cn=Manager,dc=<MY-DOMAIN>,dc=<COM>" -W -f example.ldif


Try:

ldapadd -x -D "cn=Manager,dc=<MY-DOMAIN>,dc=<COM>" -w secret -f entries.ldif

The "-w secret" refers to the ldap manager's password as stated in the slapd.conf file.

look in the slapd.conf file for a line stating

rootpw secret.

Here is some good ldap info.

http://www.openldap.org/doc/admin/
 
Old 02-18-2003, 11:55 AM   #3
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Original Poster
Rep: Reputation: 30
jamrock,

Thanks for your input.

I have one question for you;

What version of LDAP are you running?
Reason I ask is that I was working with Red Hat and the OpenLDAP RPM's available. But, I was having problems, so I just uninstalled the RPMS for OpenLDAP and I am now going to compile and install OpenLDAP by itself.

Just curious.

Thanks.

Tarballed
 
Old 02-18-2003, 09:57 PM   #4
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
Version 2.0.27 or something like that. The machine is at work.

The rpm installed and worked without any issues. It was the latest stable version on the website at the time.
 
  


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 wizard1226 Linux - Software 0 05-26-2003 02:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:24 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