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

[openldap 2.1.12] about use of ldap_add_s(...)



Hy,

I would like to add in my database this following attribute
'optionvalues' with the value 'AABCDAA' and according to this format:
optionvalues:: AABCDAA

'optionvalues' is a string (SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{100})

I use for that the ldap function :
int ldap_add_s(LDAP *ld, const char *dn, LDAPMod *attrs[]);
To complete LDAPMod structure, I use "struct berval **modv_bvals" and
"LDAP_MOD_BVALUES"

but the result is always the same:
optionvalues: AABCDAA

only one ':' ??

so How can I do to obtain 2 ':' ?

Thanks a lot

Helene