LDAP Problem

Discussion in 'Installation/Configuration' started by pinguingilo, Jan 29, 2007.

  1. pinguingilo

    pinguingilo New Member

    hai all... I have Problem when configuration, error like this :
    Code:
    # ldapadd -x -D “cn=admin,dc=ngoprek,dc=com” -W -f /etc/openldap/ngoprek.com.ldif 
    Enter LDAP Password: 
    ldap_bind: Invalid DN syntax (34)
            additional info: invalid DN
    
    Here my ngoprek.com.ldif config :
    Code:
    dn: dc=ngoprek,dc=com
    objectclass: dcObject
    objectclass: organization
    o: Dk
    dc: ngoprek
    
    dn: cn=admin,dc=ngoprek,dc=com
    objectclass: organizationalRole
    cn: admin
    
    Here my slapd.conf :
    Code:
    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/samba.schema
    index sambaSID                                  eq
    index sambaPrimaryGroupSID              eq
    index sambaDomainName                    eq
    index default                                        sub
    
    # Allow LDAPv2 client connections.  This is NOT the default.
    allow bind_v2
    
    # Do not enable referrals until AFTER you have a working directory
    # service AND an understanding of referrals.
    #referral       ldap://root.openldap.org
    
    pidfile         /var/run/openldap/slapd.pid
    argsfile        /var/run/openldap/slapd.args
    
    database        bdb
    suffix          "dc=ngoprek,dc=com"
    rootdn          "cn=admin,dc=ngoprek,dc=com"
    rootpw          {SSHA}79oAuaTbdmiLS9vWM4RxUBTHqNtvF0EJ
    directory       /var/lib/ldap/ngoprek.com
    # 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
    # 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
    
    here my ldap.conf
    Code:
    
    BASE   dc=example, dc=com
    URI    ldap://localhost
    
    #SIZELIMIT      12
    #TIMELIMIT      15
    #DEREF          never
    
    any solutions...
     

Share This Page