#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    254
    Rep Power
    11

    Linux Ldap configuration


    Dear reader,

    I have ldap installed on a fedora2 linux but there is a problem when doing a ldapsearch.

    [root@einstein root]# ldapsearch -x -b 'dc=bahadoer,dc=nl'\
    > '(objectclass=*)'
    # extended LDIF
    #
    # LDAPv3
    # base <dc=bahadoer,dc=nl(objectclass=*)> with scope sub
    # filter: (objectclass=*)
    # requesting: ALL
    #

    # search result
    search: 2
    result: 34 Invalid DN syntax
    text: invalid DN

    # numResponses: 1
    [root@einstein root]#

    This is how my slapd.conf looks like, i took the liberty to hold back the comments and all the disabled features:

    #
    include /etc/openldap/schema/core.schema
    include /etc/openldap/schema/cosine.schema
    include /etc/openldap/schema/inetorgperson.schema
    include /etc/openldap/schema/nis.schema
    include /etc/openldap/schema/redhat/autofs.schema
    #include /etc/openldap/schema/mail-routing.schema

    allow bind_v2

    pidfile /var/run/slapd.pid

    database ldbm
    suffix "dc=bahadoer,dc=nl"
    rootdn "cn=manager,dc=bahadoer,dc=nl"
    HOST 192.168.1.1
    BASE dc=bahadoer,dc=nl

    rootpw secret

    directory /var/lib/ldap/bahadoer.nl

    # Indices to maintain for this database
    index objectClass eq,pres
    index ou,cn,mail,surname,givenname eq,pres,sub
    index uidNumber,gidNumber,loginShell eq,pres
    index uid,memberUid eq,pres,sub
    index nisMapName,nisMapEntry eq,pres,sub


    I've added some entry's like these and they didn't gave me any problem

    dn: dc=bahadoer,dc=nl
    dc: bahadoer
    description: Root LDAP entry bahadoer.nl
    objectClass: dcObject
    objectClass: organizationalUnit
    ou: rootobject

    dn: ou=People,dc=bahadoer,dc=nl
    ou: People
    description: All people in organisation
    objectClass: organizationalUnit
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2004
    Location
    Stuttgart
    Posts
    50
    Rep Power
    11
    try

    ldapsearch -x -s base -b "dc=bahadoer,dc=nl" "objectClass=*"
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    254
    Rep Power
    11

    Linux Ldap configuration


    Thank you for replying ,but the ldapsearch command you mentioned gave me the same invalid DNS message.

IMN logo majestic logo threadwatch logo seochat tools logo