Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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
    Linux Newbie
    Join Date
    Sep 2012
    Nashville, TN
    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?

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

  3. #3

    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. $spacer_open
  5. #4
    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?


Posting Permissions

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