LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   pls help me fix error LDAP (https://www.linuxquestions.org/questions/linux-newbie-8/pls-help-me-fix-error-ldap-4175459067/)

nobita1610 04-21-2013 10:45 PM

pls help me fix error LDAP
 
hey every body,
pls help me fix error LDAP on Centos 6.4 64 bit.
When I type command:
[root@ldap setldap]# ldapadd -Y EXTERNAL -H ldapi:/// -f backend.ldif
message error:
Quote:

[root@ldap setldap]# ldapadd -Y EXTERNAL -H ldapi:/// -f backend.ldif
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
ldapadd: attributeDescription "dn": (possible missing newline after line 7, entry "cn=module,cn=config"?)
adding new entry "cn=module,cn=config"
ldap_add: Undefined attribute type (17)
additional info: dn: attribute type undefined
config backend.ldif
PHP Code:

################################
dncn=module,cn=config
objectClass
olcModuleList
cn
module
olcModulepath
: /usr/lib64/openldap
olcModuleload
back_hdb
dn
olcDatabase=hdb,cn=config
objectClass
olcDatabaseConfig
objectClass
olcHdbConfig
olcDatabase
: {2}hdb
olcSuffix
dc=utech,dc=edu,dc=vn
olcDbDirectory
: /var/lib/ldap
olcRootDN
cn=Manager,dc=utech,dc=edu,dc=vn
olcRootPW
: {SSHA}esajGlHZpRmfKIPbXixO+X4pXs7Txshs
olcDbConfig
set_cachesize 0 2097152 0
olcDbConfig
set_lk_max_objects 1500
olcDbConfig
set_lk_max_locks 1500
olcDbConfig
set_lk_max_lockers 1500
olcDbIndex
objectClass eq
olcLastMod
TRUE
olcMonitoring
TRUE
olcDbCheckpoint
512 30
olcAccess
to attrs=userPassword by dn="cn=Manager,dc=utech,dc=edu,dc=vn" write by anonymous auth by self write by none
olcAccess
to attrs=shadowLastChange by self write by read
olcAccess
to dn.base="" by read
olcAccess
to by dn="cn=Manager,dc=utech,dc=edu,dc=vn" write by read 


bathory 04-22-2013 12:26 AM

Quote:

ldapadd: attributeDescription "dn": (possible missing newline after line 7, entry "cn=module,cn=config"?)
adding new entry "cn=module,cn=config"
ldap_add: Undefined attribute type (17)
additional info: dn: attribute type undefined
You must leave a blank line between DNs:
Code:

<snip>
olcModuleload: back_hdb

dn: olcDatabase=hdb,cn=config
objectClass: olcDatabaseConfig
<snip>

Regards


All times are GMT -5. The time now is 07:27 AM.