The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Databases
> LDAP Programming
|
LDAP newbie help
Discuss LDAP newbie help in the LDAP Programming forum on Dev Shed. LDAP newbie help LDAP Programming forum discussing Lightweight Directory Access Protocol information and techniques. LDAP is used to allow applications to access directory information from a server.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

August 1st, 2004, 08:30 AM
|
|
Registered User
|
|
Join Date: Aug 2003
Location: NJ
Posts: 7
Time spent in forums: 2 m 20 sec
Reputation Power: 0
|
|
|
LDAP newbie help
I am trying to setup LDAP on RH8 to act as an address book for Outlook users. I have read several examples and don't understand what I am missing.
My slapd.conf file:
database ldbm
suffix "dc=mycompany,dc=com"
rootdn "cn=Manager,dc=mycompany,dc=com"
rootpw mypassword
directory /var/lib/ldap
index objectClass,uid,uidNumber,gidNumber,memberUid eq
index cn,mail,surname,givenname eq,subinitial
From Outlook I get invalid DN syntax error 34
From server cmd line doing:
ldapadd -x -D "cn=root" -w mypassword -h localhost
Output: ldap_bind: Invalid credentials
|

August 1st, 2004, 12:39 PM
|
 |
Psycho Canadian
|
|
Join Date: Jan 2001
Location: Canada
|
|
|
root dn needs to be
cn=Manager,dc=mycompany,dc=com not cn=root
|

August 1st, 2004, 08:32 PM
|
|
Registered User
|
|
Join Date: Aug 2003
Location: NJ
Posts: 7
Time spent in forums: 2 m 20 sec
Reputation Power: 0
|
|
|
I can change cn=<anything> and it still gets the same error.
|

August 2nd, 2004, 10:30 AM
|
 |
Psycho Canadian
|
|
Join Date: Jan 2001
Location: Canada
|
|
|
can you log on with an annomous bind?
|

August 4th, 2004, 10:07 AM
|
|
Registered User
|
|
Join Date: Aug 2003
Location: NJ
Posts: 7
Time spent in forums: 2 m 20 sec
Reputation Power: 0
|
|
|
One problem resolved. Outlook needs to be restarted after making any changes. I can now connect to the LDAP server and see an entry I added from the cmd line.
But I cannot connect to add entries. Whenever I use a login and password I get "Invalid DN syntax".
What user do I enter into a ldap utility to connect as? root? Manager? I don't get it.
Current config:
database ldbm
suffix "dc=mycompany,dc=com"
rootdn "cn=Manager,dc=mycompany,dc=com"
rootpw mypassword
|

August 4th, 2004, 10:47 AM
|
 |
Psycho Canadian
|
|
Join Date: Jan 2001
Location: Canada
|
|
|
your root dn is
rootdn "cn=Manager,dc=mycompany,dc=com" so you have to connect with
cn=Manager,dc=mycompany,dc=com
to connect as root
|

August 4th, 2004, 11:05 AM
|
|
Registered User
|
|
Join Date: Aug 2003
Location: NJ
Posts: 7
Time spent in forums: 2 m 20 sec
Reputation Power: 0
|
|
|
No wonder I didn't get it!!! I kept thinking the login name is a single word "Manager" or "root". I had no idea you enter the whole thing into the user name.
I can now login with a user name but Outlook cannot add or modify entries as "Manager". I get no error.
|

August 4th, 2004, 11:13 AM
|
 |
Psycho Canadian
|
|
Join Date: Jan 2001
Location: Canada
|
|
|
did you enter your password in Outlook?
|

August 4th, 2004, 12:21 PM
|
|
Registered User
|
|
Join Date: Aug 2003
Location: NJ
Posts: 7
Time spent in forums: 2 m 20 sec
Reputation Power: 0
|
|
|
Yes the login and password are in Outlook. If I intentionally enter a wrong password Outlook won't let me connect (error 48). I connect as the rootdn but it won't let me modify or add entries.
|

August 4th, 2004, 02:54 PM
|
 |
Psycho Canadian
|
|
Join Date: Jan 2001
Location: Canada
|
|
|
perhaps outlook doesn't support it
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|