Find the answer to your Linux question:
Results 1 to 4 of 4
Hi at all! I would want to ask you about a problem that I have with my phpbb forum with OpenLdap. I have installed without problems, but when I want ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2013
    Posts
    3

    OpenLdap problem


    Hi at all!

    I would want to ask you about a problem that I have with my phpbb forum with OpenLdap.

    I have installed without problems, but when I want to do some operations like next:

    ldapsearch -W -D "cn=admin,dc=domain,dc=net"

    or, next operation, that it's more important for me:

    ldapdelete -x -r "ou=Familias,ou=Groups,dc=domain,dc=net" -D "cn=admin,dc=ovh,dc=net" -w password


    I always got same error:

    ldap_bind: Invalid credentials (49)


    In slapd.conf file I have some configuration lines like this:

    allow bind_v2
    suffix "dc=domain,dc=net"
    rootdn "cn=admin,dc=domain,dc=net"
    rootpw password
    directory "/var/lib/ldap"
    access to attrs=userPassword,shadowLastChange
    by dn="cn=admin,dc=ovh,dc=net" write
    by anonymous auth
    by self write
    by * none

    access to dn.base="" by * read
    access to *
    by dn="cn=admin,dc=domain,dc=net" write
    by * read
    However, I don't know if I have to use this file or configuration is included into ldap database...

    Can you help me??

    Thank you very much!!

  2. #2
    Just Joined!
    Join Date
    Sep 2012
    Location
    Nashville, TN
    Posts
    97
    The error appears to be referring to the account that is binding to do the ldap server. But just for testing sake, what happens when you run the following from command line?

    Code:
    ldapsearch -x -b 'dc=domain,dc=net' '(objectclass=*)'

  3. #3
    Just Joined!
    Join Date
    Mar 2013
    Posts
    3
    Hi,

    the answer is next:

    # extended LDIF
    #
    # LDAPv3
    # base <dc=domain,dc=net> with scope subtree
    # filter: (objectclass=*)
    # requesting: ALL
    #

    # search result
    search: 2
    result: 32 No such object

    # numResponses: 1
    What does it means?

    Thank you very much!!

  4. #4
    Just Joined!
    Join Date
    Mar 2013
    Posts
    3
    I think that Im fixing my problem but however I can't enter to my forum and I think the problem is access control.

    I have next:

    access to attrs=userPassword,shadowLastChange
    by dn="cn=admin,dc=domain,dc=net" write
    by anonymous auth
    by self write
    by * none

    access to *
    by dn="cn=admin,dc=domain,dc=net" write
    by * read

    Can you say me it's correct?

    Or which can be the solution?

    Thanx!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •