[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
problems with importing LDIF file
Hello all,
I'm relatively new to LDAP.
I have installed OpenLDAP 2.0.18 onto a RedHat 7.1 system. Basically I'm
trying to add a new attribute (initially just a test) to see if I can
successfully create new attributes and objectclasses and just import them
using the LDIF file. Well, no matter what I try I keep on getting this same
error message which does not give me much to work on. I'v made sure that
the syntax is correct and does not contain any invalid characters. The error
message is as follows:
ldapadd: invalid format (line 1) entry: ""
ldif_record() = 89
The extract from my LDIF file is as follows:
attributetype ( 2.16.840.1.113719.1.186.4.1
NAME 'myTestAttribute'
DESC 'my test attribute description'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
The following is the output from slapd debug:
entry_rdwr_rtrylock: ID: 2
====> cache_find_entry_id( 2 ) "cn=Manager,dc=collectivebid,dc=com" (found)
(1 tries)
<= id2entry_r( 2 ) 0x80e5510 (cache)
entry_rdwr_runlock: ID: 2
====> cache_return_entry_r( 2 ): returned (0)
do_bind: v3 bind: "cn=Manager,dc=collectivebid,dc=com" to
"cn=Manager,dc=collectivebid,dc=com
send_ldap_result: conn=1 op=0 p=3
send_ldap_result: 0::
send_ldap_response: msgid=1 tag=97 err=0
ber_flush: 14 bytes to sd 9
0000: 30 0c 02 01 01 61 07 0a 01 00 04 00 04 00 0....a........
daemon: activity on 1 descriptors
daemon: activity on: 9r
daemon: read activity on 9
connection_get(9)
ldap_write: want=14, written=14
0000: 30 0c 02 01 01 61 07 0a 01 00 04 00 04 00 0....a........
connection_get(9): got connid=1
connection_read(9): checking for input on id=1
ber_get_next
ldap_read: want=1, got=1
0000: 30 0
ldap_read: want=1, got=1
0000: 05 .
ldap_read: want=5, got=5
0000: 02 01 02 42 00 ...B.
ber_get_next: tag 0x30 len 5 contents:
ber_dump: buf=0x080e47a0 ptr=0x080e47a0 end=0x080e47a5 len=5
0000: 02 01 02 42 00 ...B.
deferring operation
ber_get_next
ldap_read: want=1, got=0
ber_get_next on fd 9 failed errno=0 (Success)
connection_read(9): input error=-2 id=1, closing.
connection_closing: readying conn=1 sd=9 for close
connection_close: deferring conn=1 sd=9
conn=1 op=0 RESULT tag=97 err=0 text=
daemon: select: listen=6 active_threads=1 tvp=NULL
daemon: activity on 1 descriptors
daemon: select: listen=6 active_threads=1 tvp=NULL
connection_resched: attempting closing conn=1 sd=9
connection_close: conn=1 sd=9
daemon: removing 9
conn=-1 fd=9 closed
Any pointers or advice would be greatly welcome.
Thanks,
Jack