Bug in samldb_description_check?

Matthieu Patou mat at samba.org
Sun Feb 13 08:44:34 MST 2011


Hi Volker,
On 13/02/2011 17:45, Volker Lendecke wrote:
> Hi, Andrew!
>
> While trying to complete pdb_ads, I've run across a
> behaviour that I would like your opinion on. In pdb_ads, to
> modify ldap fields I use the delete/add operations of values
> in a single ldap modify request. For many fields this works
> fine, but for the "description" field it does not. It can be
> easily reproduced with ldbmodify:
>
> vlendec at delphin:~/git/s4-work$ bin/ldbsearch -H ldap://127.0.0.1/ -b dc=samba,dc=org samaccountname=vl -U administrator at samba.org%Passw0rd description          #
> record 1
> dn: CN=vl,CN=Users,DC=samba,DC=org
> description: foo
>
> ... Okay, we have "foo".
>
> vlendec at delphin:~/git/s4-work$ cat /tmp/x
> dn: CN=vl,CN=Users,DC=samba,DC=org
> changetype: modify
> delete: description
> description: foo
> -
> add: description
> description: bar
>
> ... now replace "foo" with "bar" they way pdb_ads would do
> it.
>
Would it work with this:

dn: CN=vl,CN=Users,DC=samba,DC=org
changetype: modify
replace: description
description: bar




-- 
Matthieu Patou
Samba Team        http://samba.org
Private repo      http://git.samba.org/?p=mat/samba.git;a=summary




More information about the samba-technical mailing list