The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Databases
> LDAP Programming
|
Following the LDAP Part 2 article
Discuss Following the LDAP Part 2 article in the LDAP Programming forum on Dev Shed. Following the LDAP Part 2 article 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:
|
|
|

February 1st, 2004, 02:15 PM
|
|
Javascript is the debbel
|
|
Join Date: Aug 2003
Posts: 102
Time spent in forums: 15 h 12 m 35 sec
Reputation Power: 10
|
|
|
Following the LDAP Part 2 article
First time I tried using my own info, but then got the error. Then I tried just straight copying pasting out of the article and restarting slapd, same error.
For now I'd trying to use:
/usr/local/openldap/bin/ldapadd -x -D "cn=root,dc=melonfire,dc=com" -W
then it prompts for a pass, I didn't change it from secret, but when I type that in I get invalid credentials(49)
I've tried googling and what not, nothing.
|

February 2nd, 2004, 11:29 AM
|
 |
Psycho Canadian
|
|
Join Date: Jan 2001
Location: Canada
|
|
|
Are you sure your user DN is correct? Also if your host isn't localhost you'll want to add the -h option. If everything is correct try with -w (I think) add put your password on the command line, don't do this normally but you can use it to see if your password is really the problem or not.
|

February 3rd, 2004, 08:21 PM
|
|
Javascript is the debbel
|
|
Join Date: Aug 2003
Posts: 102
Time spent in forums: 15 h 12 m 35 sec
Reputation Power: 10
|
|
|
does OpenLDAP expect a DNS server to be up and running on the network?
|

February 3rd, 2004, 08:47 PM
|
 |
Psycho Canadian
|
|
Join Date: Jan 2001
Location: Canada
|
|
|
it needs to be able to find the server, if the ldap server isn't on the same server as you are running that command from then you need to use the -h option and put the server there, either by hostname or ip
Last edited by Viper_SB : February 3rd, 2004 at 09:44 PM.
|

February 6th, 2004, 11:16 AM
|
|
Javascript is the debbel
|
|
Join Date: Aug 2003
Posts: 102
Time spent in forums: 15 h 12 m 35 sec
Reputation Power: 10
|
|
|
yeah I fixed the credintials thing now It says it can't contact the LDAP server, even when I do the -h localhost arg. Here's the command line:
[root@titan root]# /usr/local/openldap/bin/ldapadd -x -D "cn=root,dc=melonfire,dc=com" -W
Enter LDAP Password:
ldap_bind: Can't contact LDAP server (81)
|

February 6th, 2004, 11:22 AM
|
|
Javascript is the debbel
|
|
Join Date: Aug 2003
Posts: 102
Time spent in forums: 15 h 12 m 35 sec
Reputation Power: 10
|
|
|
is it trying to resolve melonfire.com on my network?
|

February 6th, 2004, 01:27 PM
|
 |
Psycho Canadian
|
|
Join Date: Jan 2001
Location: Canada
|
|
|
I'd say it looks more like a wrong password situation but I could be wrong
|

February 6th, 2004, 02:15 PM
|
|
Javascript is the debbel
|
|
Join Date: Aug 2003
Posts: 102
Time spent in forums: 15 h 12 m 35 sec
Reputation Power: 10
|
|
|
well my root pass is set to what I'm trying to put in in both linux and slapd.conf
|

February 6th, 2004, 02:20 PM
|
 |
Psycho Canadian
|
|
Join Date: Jan 2001
Location: Canada
|
|
|

February 6th, 2004, 03:13 PM
|
|
Javascript is the debbel
|
|
Join Date: Aug 2003
Posts: 102
Time spent in forums: 15 h 12 m 35 sec
Reputation Power: 10
|
|
|
I got the password to work now but I'm having trouble with adding entries:
[root@titan root]# /usr/local/openldap/bin/ldapadd -x -D "cn=root,dc=melonfire,dc=com" -W -f entries.ldif -c
Enter LDAP Password:
adding new entry "dc=melonfire, dc=com"
ldapadd: update failed: dc=melonfire, dc=com
ldap_add: Naming violation (64)
additional info: value of naming attribute 'dc' is not present in entry
adding new entry "mail=root@melonfire-mail.com, dc=melonfire, dc=com"
ldapadd: update failed: mail=root@melonfire-mail.com, dc=melonfire, dc=com
ldap_add: No such object (32)
adding new entry "mail=joe@melonfire-mail.com, dc=melonfire, dc=com"
ldapadd: update failed: mail=joe@melonfire-mail.com, dc=melonfire, dc=com
ldap_add: No such object (32)
adding new entry "mail=sarah@melonfire-mail.com, dc=melonfire, dc=com"
ldapadd: update failed: mail=sarah@melonfire-mail.com, dc=melonfire, dc=com
ldap_add: No such object (32)
[root@titan root]#
|

February 6th, 2004, 04:52 PM
|
 |
Psycho Canadian
|
|
Join Date: Jan 2001
Location: Canada
|
|
|

February 6th, 2004, 05:29 PM
|
|
Javascript is the debbel
|
|
Join Date: Aug 2003
Posts: 102
Time spent in forums: 15 h 12 m 35 sec
Reputation Power: 10
|
|
|
the ldif file came straight off the site
|

February 9th, 2004, 07:48 AM
|
 |
Chris Larivee
|
|
Join Date: Sep 2003
Location: Littleton, CO
Posts: 72

Time spent in forums: 1 h 49 m 14 sec
Reputation Power: 10
|
|
|
It would appear that you are trying to add the dc=melonfire through the LDIF file?
You may find that you could have created the base suffix as dc=melonfire,dc=com - instead of just dc=com?
At any rate - your ldif for upload to add a domain component should have following information ... at a minumum ...
dn: dc=melonfire,dc=com
changetype: add
objectClass: top
objectClass: domain
dc: melonfire
HTH
|
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
|
|
|
|
|