One Star npa
One Star

Insert emty value to LDAP

I want to insert values in LDAP but data can contains empty value.
I obtain this error
Exception in component tLDAPOutput_1
javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - 00000057:
LdapErr: DSID-0C090A85, comment: Error in attribute conversion operation, data 0, vece.

.
How can i solve this problem?
Thx Smiley Happy
3 REPLIES
Employee

Re: Insert emty value to LDAP

Please, can you provide the sample of ldap entry which are rejected by the tLDAPout component ?
Regards,
GAT
One Star npa
One Star

Re: Insert emty value to LDAP

Thank for your reply! Here is an example of LDIF entry rejected by the LdapOutput Component
dn: CN=DUPOND TOTO,OU=Utilisateurs,OU=AD,DC=domain,DC=com
objectClass: top
objectClass: person
objectClass: user
cn: DUPOND TOTO
sn: DUPOND
postalAddress: c.dupond@domain.com
homePhone:
division: DPD

It doesn't work because homePhone attribut has no value.
Best regard,
npa
Employee

Re: Insert emty value to LDAP

The 'homePhone' (Home Telephone Number) attribute specifies home
telephone numbers (e.g., "+1 775 555 1234") associated with a person.
( 0.9.2342.19200300.100.1.20 NAME 'homePhone'
EQUALITY telephoneNumberMatch
SUBSTR telephoneNumberSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.50 )
The telephoneNumber (1.3.6.1.4.1.1466.115.121.1.50) syntax and the
'telephoneNumberMatch' and 'telephoneNumberSubstringsMatch' rules are
described in .
The Home Telephone Number attribute type specifies a home telephone number associated with a person. Attribute values should follow the agreed format for international telephone numbers: i.e., "+44 71 123 4567".
You must replace empty or null by default value like (+) for example.
Regards,