LDAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesLDAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 1st, 2004, 02:15 PM
thmnetwork thmnetwork is offline
Javascript is the debbel
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 102 thmnetwork User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

Reply With Quote
  #2  
Old February 2nd, 2004, 11:29 AM
Viper_SB's Avatar
Viper_SB Viper_SB is offline
Psycho Canadian
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jan 2001
Location: Canada
Posts: 4,845 Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 20 h 16 m 27 sec
Reputation Power: 634
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.

Reply With Quote
  #3  
Old February 3rd, 2004, 08:21 PM
thmnetwork thmnetwork is offline
Javascript is the debbel
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 102 thmnetwork User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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?

Reply With Quote
  #4  
Old February 3rd, 2004, 08:47 PM
Viper_SB's Avatar
Viper_SB Viper_SB is offline
Psycho Canadian
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jan 2001
Location: Canada
Posts: 4,845 Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 20 h 16 m 27 sec
Reputation Power: 634
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.

Reply With Quote
  #5  
Old February 6th, 2004, 11:16 AM
thmnetwork thmnetwork is offline
Javascript is the debbel
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 102 thmnetwork User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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)

Reply With Quote
  #6  
Old February 6th, 2004, 11:22 AM
thmnetwork thmnetwork is offline
Javascript is the debbel
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 102 thmnetwork User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 12 m 35 sec
Reputation Power: 10
is it trying to resolve melonfire.com on my network?

Reply With Quote
  #7  
Old February 6th, 2004, 01:27 PM
Viper_SB's Avatar
Viper_SB Viper_SB is offline
Psycho Canadian
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jan 2001
Location: Canada
Posts: 4,845 Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 20 h 16 m 27 sec
Reputation Power: 634
I'd say it looks more like a wrong password situation but I could be wrong

Reply With Quote
  #8  
Old February 6th, 2004, 02:15 PM
thmnetwork thmnetwork is offline
Javascript is the debbel
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 102 thmnetwork User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #9  
Old February 6th, 2004, 02:20 PM
Viper_SB's Avatar
Viper_SB Viper_SB is offline
Psycho Canadian
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jan 2001
Location: Canada
Posts: 4,845 Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 20 h 16 m 27 sec
Reputation Power: 634
have you tried connecting with another program besides the command line? perhaps try http://www.ldapadministrator.com/download/index.php try out either the admin version or just the browser and see if you can connect

Reply With Quote
  #10  
Old February 6th, 2004, 03:13 PM
thmnetwork thmnetwork is offline
Javascript is the debbel
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 102 thmnetwork User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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]#

Reply With Quote
  #11  
Old February 6th, 2004, 04:52 PM
Viper_SB's Avatar
Viper_SB Viper_SB is offline
Psycho Canadian
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jan 2001
Location: Canada
Posts: 4,845 Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 20 h 16 m 27 sec
Reputation Power: 634
read this thead http://forums.devshed.com/t63488/s.html it has resoureses that should help you understand an ldiff file ie

http://developer.netscape.com/docs/...dmin30/ldif.htm

Reply With Quote
  #12  
Old February 6th, 2004, 05:29 PM
thmnetwork thmnetwork is offline
Javascript is the debbel
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 102 thmnetwork User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 12 m 35 sec
Reputation Power: 10
the ldif file came straight off the site

Reply With Quote
  #13  
Old February 9th, 2004, 07:48 AM
ldap4u's Avatar
ldap4u ldap4u is offline
Chris Larivee
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Littleton, CO
Posts: 72 ldap4u User rank is Private First Class (20 - 50 Reputation Level)ldap4u User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 h 49 m 14 sec
Reputation Power: 10
Send a message via MSN to ldap4u
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesLDAP Programming > Following the LDAP Part 2 article

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap