[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
ldap_add: Invalid syntax
Hi,
I have a newbie question ... I'm evaluating OpenLDAP (2.0.7) and have hit a
problem ...
I'm getting the following error when using the command
ldapadd -x -d "cn=Manager,dc=nettec,dc=net" -W < test.ldif
adding new entry "dc=nettec, dc=net"
ldap_add: Invalid syntax
additional info: value contains invalid data
ldif_record() = 21
(Yep, I've searched the FAQ, google, and the mail archive )
My test.ldif file is :
<test.ldif begins just after after this line>
# Organization entry
dn: dc=nettec, dc=net
objectclass: dcObject
objectclass: organization
o: Enterprise Technology
dc: nettec
description: Nettec PLC - Enterprise Technology
# Organizational Role for directory Manager
dn: cn=Manager, dc=nettec, dc=net
objectclass: organizationalRole
cn: Manager
description: Directory Manager
<test.ldif ends just above this line>
I've checked for evil white spaces, I've switched slapd to -d -1 debugging
and got :
[ SNIP }
ber_dump: buf=0x080c4f70 ptr=0x080c4fe5 end=0x080c501a len=53
0000: 30 33 04 0b 64 65 73 63 72 69 70 74 69 6f 6e 31 03..description1
0010: 24 04 22 4e 65 74 74 65 63 20 50 4c 43 20 2d 20 $."Nettec PLC -
0020: 45 6e 74 65 72 70 72 69 73 65 20 54 65 63 68 6e Enterprise Techn
0030: 6f 6c 6f 67 79 ology
ber_scanf fmt (}) ber:
ber_dump: buf=0x080c4f70 ptr=0x080c501a end=0x080c501a len=0
conn=2 op=1 ADD dn="DC=NETTEC,DC=NET"
dn2entry_r: dn: "DC=NETTEC,DC=NET"
daemon: select: listen=6 active_threads=1 tvp=NULL
=> dn2id( "DC=NETTEC,DC=NET" )
=> ldbm_cache_open( "/usr/local/var/openldap-ldbm/dn2id.dbb", 7, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id NOID
send_ldap_result: conn=2 op=1 p=3
send_ldap_result: 21::value contains invalid data
send_ldap_response: msgid=2 tag=105 err=21
[ SNIP ]
I'm running Redhat 6.2 on Intel (Dell Optiplex GX1 desktop).
In slapd.conf I have :
suffix "dc=nettec, dc=net"
rootdn "cn=Manager, dc=nettec, dc=net"
rootpw secret
All of this is more or less the same as the Admin Guide suggests, but I have
no idea what's going wrong. Can any kind soul please help?
Regards,
Dan Leong
daniel.leong@nettec.net