|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
||||
|
||||
|
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.
__________________
Miscellaneous Software Viper_SB Developershed E-Support Anyone else play chess? Challenge me |
|
#3
|
|||
|
|||
|
does OpenLDAP expect a DNS server to be up and running on the network?
|
|
#4
|
||||
|
||||
|
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. |
|
#5
|
|||
|
|||
|
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) |
|
#6
|
|||
|
|||
|
is it trying to resolve melonfire.com on my network?
|
|
#7
|
||||
|
||||
|
I'd say it looks more like a wrong password situation but I could be wrong
|
|
#8
|
|||
|
|||
|
well my root pass is set to what I'm trying to put in in both linux and slapd.conf
|
|
#9
|
||||
|
||||
|
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
|
|
#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]# |
|
#11
|
||||
|
||||
|
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 |
|
#12
|
|||
|
|||
|
the ldif file came straight off the site
|
|
#13
|
||||
|
||||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Databases > LDAP Programming > Following the LDAP Part 2 article |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|