tags:

views:

310

answers:

2

Hi, im suppose to try to replace some attribute value of LDAP data into NULL value, but I cant seem to get it to work using LDIF format.

I tried various format.. all seems to return me an error.

Here are those format:

dn: some..RDN
changeType: modify
replace: data
data:

or 

dn: some..RDN
changeType: modify
replace: data

Can anyone advise me how to replace data attribute value to NULL.

A: 

Try this:

dn: some..RDN 
changeType: modify 
replace: data
-

That is; a line with just a -.

Per Noalt
This is what I got`ldapmodify: no attributes to change or add`
Syed
A: 

Beware that MS LDAP API (wldap32.dll) has an old bug with empty values which makes it hardly possible to wort with with empty values. AFAIK, is not fixed yet. So even if LDIF is ok, there might be a problem at API level.

What LDIF tool you use?

Kirill Kovalenko
using OpenLdap tool like ldapmodify
Syed
try using this:dn: some..RDN changeType: modify replace: datadata:-
Kirill Kovalenko
oops. bad formatting. try adding 'data:' before '-' line.
Kirill Kovalenko