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

Re: ldapadd and changetype:add



I suggest you read the LDIFv1 format specification, RFC 2849, as well as
the related man pages in OpenLDAP software ldif(5).  The format you're
using below, despite being passed by a friend, is not valid LDIF.

p.

On Wed, 2005-11-23 at 17:32 -0800, Beatriz Duran wrote:
> Openldap will reject the addition of a new brand entry if the format comes in this way?
>   
>   ldapadd 
>   
> -x -h localhost -D "cn=Manager,cn=Recipients,ou=EXUGSTL,o=EDS" -W -f
> new1.ldf
>   
> dn: cn=Case,cn=Recipients,ou=EXUGSTL,o=EDS
> changetype: add
> add: cn
> cn: Case, Terri
> add: objectClass
> objectClass: organizationalPerson
> add: distinguishedName
> distinguishedName: cn=Case,cn=Recipients,ou=EXUGSTL,o=EDS
> add: mail
> mail: terri.case@eds.com
> add: sn
> sn: Case
> add: telephoneNumber
> telephoneNumber: 314-264-8445
> add: rfc822Mailbox
> rfc822Mailbox: terri.case@eds.com
>   A friend of mine passed me a perl script that transform an CSV to LDIF  but this script allways puts "add:  "  for each attribute and  I wonder there will be a problem.
>   
>   
>   
> 		
> ---------------------------------
>  Yahoo! Music Unlimited - Access over 1 million songs. Try it free.