[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: AW: AW: adding first entry


As I´ve mention yesterday, the problem has been the special characters
or maybe just plain spaces at the end of lines.

Anyway I´ve already added successful the initial entry to the database:

ldapadd -x -v -D "cn=admin,dc=ecrc,dc=de" -W -f entries.ldif
ldap_initialize( <DEFAULT> )
Enter LDAP Password:
add objectclass:
add o:
        Cable & Wireless Deutschland GmbH
add dc:
adding new entry "dc=ecrc,dc=de"
modify complete

add objectclass:
add cn:
adding new entry "cn=admin,dc=ecrc,dc=de"
modify complete

It sounds to me, like it did what I wanted. I´m only confused by the
phrase modify complete. I added and not modified, right?
I thought I´ve solved the problem, but here it is... The next one.
As you see above he added the first entry into the database, but
I can´t search... why?
Here my search call and the result:

root@alba[148]bin# ldapsearch -x -b 'dc=ecrc,dc=de' '(objectclass=*)'
version: 2

# filter: (objectclass=*)
# requesting: ALL

# search result
search: 2
result: 0 Success

# numResponses: 1

Any idea what the problem is now?

Thanks in advance 


> > i've tried what you did, it works for me.. make sure, you have no special
> Works for me as well.
> > chars (however..) in your files, and also check for spaces at the end of all
> > ldif lines.. (wouldn't cause this error, i guess, but give it a try..)
> Plain spaces at the end of lines containing DNs do cause this error:
> RFC 2253:
>    If the UTF-8 string does not have any of the following characters
>    which need escaping, then that string can be used as the string
>    representation of the value.
>     o   a space character occurring at the end of the string
> --
> Norbert Klasen
> DFN Directory Services                           tel: +49 7071 29 70335
> ZDV, Universität Tübingen                        fax: +49 7071 29 5912
> Wächterstr. 76, 72074 Tübingen              http://www.directory.dfn.de
> Germany                             norbert.klasen@zdv.uni-tuebingen.de

Thomas Miskiewicz 				thomas.miskiewicz@de.cw.net      
NMIT						fon: +49 (0) 89/926 99 -196
Cable & Wireless Deutschland GmbH       	fax: +49 (0) 89/926 99 -808
Landsbergerstrasse 155, D-80687 München         web: