Home » Infrastructure » Linux » LDAP error
LDAP error [message #285600] Wed, 05 December 2007 02:22 Go to next message
ara.oracle
Messages: 142
Registered: August 2007
Senior Member
when am trying to add LDIF files to the database, am getting this error.


[root@server ~]# ldapadd -x -D "cn=Manager,dc=example,dc=com" \
> -W -f /etc/openldap/example.com.ldif
Enter LDAP Password:
adding new entry "dc=example,dc=com"
ldap_add: Undefined attribute type (17)
additional info: decription: attribute type undefined

I cant able to add the LDIF file.
Totally am having 3 LDIF files,
1)example.com.ldif
2)ldapusers.ldif
3)root.ldif

This is my slapd.conf file.
===========================================

# updates to rootdn. (e.g., "access to * by * read")
#
# rootdn can always read and write EVERYTHING!

#######################################################################
# ldbm and/or bdb database definitions
#######################################################################

database bdb
suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw {SSHA}E3+Pe58NVPdZY1VOePmlvvsjDAkRjnEC
# Cleartext passwords, especially for the rootdn, should
# be avoided. See slappasswd(Cool and slapd.conf(5) for details.
# Use of strong authentication encouraged.
# rootpw secret
# rootpw {crypt}ijFYNcSNctBYg

# 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/example.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

# Replicas of this database
#replogfile /var/lib/ldap/openldap-master-replog
#replica host=ldap-1.example.com:389 starttls=critical
# bindmethod=sasl saslmech=GSSAPI
# authcId=host/ldap-master.example.com@EXAMPLE.COM
Re: LDAP error [message #285623 is a reply to message #285600] Wed, 05 December 2007 03:04 Go to previous messageGo to next message
Michel Cadot
Messages: 64151
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Too bad you still don't know how to format your post.

Regards
Michel
Re: LDAP error [message #285808 is a reply to message #285600] Wed, 05 December 2007 13:21 Go to previous message
ebrian
Messages: 2794
Registered: April 2006
Senior Member
It would appear to me that there is a syntax error in one of your ldif files.
Previous Topic: Oracle developer For Linux ubuntu
Next Topic: How to execuete import command in Linux
Goto Forum:
  


Current Time: Fri Dec 09 23:34:30 CST 2016

Total time taken to generate the page: 0.12608 seconds