Results 1 to 5 of 5

Thread: Is this the right way to test open Ldap in Suse Linux?

  1. #1

    Default Is this the right way to test open Ldap in Suse Linux?

    NSCSUSE:~ #
    INSCSUSE:~ # ldapsearch -x -b '' -s base '(objectclass=*)' naming contexts
    # extended LDIF
    #
    # LDAPv3
    # base <> with scope baseObject
    # filter: (objectclass=*)
    # requesting: naming contexts
    #

    #
    dn:

    # search result
    search: 2
    result: 0 Success

    # numResponses: 2
    # numEntries: 1
    INSCSUSE:~ #

    INSCSUSE:~ #
    INSCSUSE:~ # ldapsearch -x -b '' -s base '(objectclass=*)' naming contexts
    # extended LDIF
    #
    # LDAPv3
    # base <> with scope baseObject
    # filter: (objectclass=*)
    # requesting: naming contexts

    is my syntax wrong?

    This is what I changed in slapd.conf see below

    # BDB database definitions
    #######################################################################

    database bdb
    suffix "dc=insc,dc=local"
    checkpoint 1024 5
    cachesize 10000
    rootdn "cn=Manager,dc=insc,dc=local"
    # Cleartext passwords, especially for the rootdn, should
    # be avoid. See slappasswd(8) and slapd.conf(5) for details.
    # Use of strong authentication encouraged.
    rootpw 2001Insc

    # The database directory MUST exist prior to running slapd AND
    # should only be accessible by the slapd and slap tools.
    # Mode 700 recommended.
    directory /var/lib/ldap
    # Indices to maintain
    index objectClass eq
    "/etc/openldap/slapd.conf" 82L, 2535C

    What am I doing wrong? This is the first time I am
    configuring openldap help very much appreciated.

    Bill

  2. #2
    Join Date
    Aug 2008
    Location
    Temporarily, planet Earth
    Posts
    104

    Default Re: Is this the right way to test open Ldap in Suse Linux?

    I don't have what I just did for this, but is something like this:
    Code:
    ldapsearch -x -D cn=manager,dc=insc,dc=local -W -b dc=insc,dc=local '(objectclass=*)'
    When done correctly, it prints the entire database.

  3. #3

    Default Re: Is this the right way to test open Ldap in Suse Linux?

    So wait a minute I put in my actual

    domain dn? and it returns everything?

    Would appreciate so much if you could paste
    the exact syntax because it is difficult to get it right.

  4. #4

    Question Re: Is this the right way to test open Ldap in Suse Linux?

    Now I'm getting this see below

    INSCSUSE:/etc/openldap # ldapsearch -x -D cn=manager,dc=insc,dc=local -w -b dc=insc,dc=local '(objectclass=*)'
    ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
    INSCSUSE:/etc/openldap # /etc/init.d/ldap start
    Starting ldap-server done
    INSCSUSE:/etc/openldap # ldapsearch -x -D cn=manager,dc=insc,dc=local -w -b dc=insc,dc=local '(objectclass=*)'
    ldap_bind: Invalid credentials (49)
    INSCSUSE:/etc/openldap #

  5. #5
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,683
    Blog Entries
    4

    Default Re: Is this the right way to test open Ldap in Suse Linux?

    You need -W instead of -w. -w takes the following argument as the password. -W prompts for it.

Posting Permissions

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