ldb python bindings
Andrew Bartlett
abartlet at samba.org
Mon Sep 7 16:22:20 MDT 2009
On Tue, 2009-09-08 at 01:35 +0400, Matthieu Patou wrote:
> Andrew, Jelmer,
>
>
> Here is the error I have when I try to use ldb.CHANGETYPE_MODIFY
>
>
> Traceback (most recent call last):
> File "/usr/local/src/samba4/source4/scripting/bin/rebuildextendeddn",
> line 172, in <module>
> modify_modules(creds,session,paths)
> File "/usr/local/src/samba4/source4/scripting/bin/rebuildextendeddn",
> line 117, in modify_modules
> sam_ldb.modify(m)
> _ldb.LdbError: (16, 'No matching attribute value when deleting
> attribute: @LIST on @MODULES')
> A transaction is still active in ldb context [0xa0f8828]
>
> Here is the extract of code:
>
> m = ldb.Message()
> m.dn = ldb.Dn(sam_ldb, "@MODULES")
> m["@LIST"] = ldb.MessageElement([strmodules],
> ldb.CHANGETYPE_MODIFY, "@LIST")
ldb.CHANGETYPE_MODIFY is the wrong parameter. Use ldb.FLAG_MOD_REPLACE
(yes, the correct parameter was not available in the bindings until very
recently).
Andrew Bartlett
--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Red Hat Inc. http://redhat.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20090908/9fe292e2/attachment.pgp>
More information about the samba-technical
mailing list