#1
  1. No Profile Picture
    Javascript is the debbel
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    102
    Rep Power
    12

    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. #2
  3. Psycho Canadian
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Jan 2001
    Location
    Canada
    Posts
    4,846
    Rep Power
    635
    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.
  4. #3
  5. No Profile Picture
    Javascript is the debbel
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    102
    Rep Power
    12
    does OpenLDAP expect a DNS server to be up and running on the network?
  6. #4
  7. Psycho Canadian
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Jan 2001
    Location
    Canada
    Posts
    4,846
    Rep Power
    635
    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.
  8. #5
  9. No Profile Picture
    Javascript is the debbel
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    102
    Rep Power
    12
    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)
  10. #6
  11. No Profile Picture
    Javascript is the debbel
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    102
    Rep Power
    12
    is it trying to resolve melonfire.com on my network?
  12. #7
  13. Psycho Canadian
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Jan 2001
    Location
    Canada
    Posts
    4,846
    Rep Power
    635
    I'd say it looks more like a wrong password situation but I could be wrong
  14. #8
  15. No Profile Picture
    Javascript is the debbel
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    102
    Rep Power
    12
    well my root pass is set to what I'm trying to put in in both linux and slapd.conf
  16. #9
  17. Psycho Canadian
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Jan 2001
    Location
    Canada
    Posts
    4,846
    Rep Power
    635
    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
  18. #10
  19. No Profile Picture
    Javascript is the debbel
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    102
    Rep Power
    12
    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]#
  20. #11
  21. Psycho Canadian
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Jan 2001
    Location
    Canada
    Posts
    4,846
    Rep Power
    635
  22. #12
  23. No Profile Picture
    Javascript is the debbel
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    102
    Rep Power
    12
    the ldif file came straight off the site
  24. #13
  25. Chris Larivee
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Location
    Littleton, CO
    Posts
    72
    Rep Power
    11
    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

IMN logo majestic logo threadwatch logo seochat tools logo