[PATCH] Setting nTSecurityDescriptor via LDAP fails

simo idra at samba.org
Fri Mar 20 15:46:26 GMT 2009


On Fri, 2009-03-20 at 16:36 +0100, Jelmer Vernooij wrote:
> We're not talking about what happens when parsing LDIF here. We're
> talking about what happens if you run the following python code:
> 
> ldb.add({"dn": "dc=foo", "bla": var})
> 
> I think if var is a string object in python (which can contain \0
> characters) it should just be converted to a ldb_val struct. If the
> user
> has base64 encoded data they want to store in LDB, they should do the
> conversion to binary data by themselves (base64.b64decode). LDIF
> doesn't
> come into play here.

To this, I agree,
sorry for the misunderstanding.

Simo.

-- 
Simo Sorce
Samba Team GPL Compliance Officer <simo at samba.org>
Principal Software Engineer at Red Hat, Inc. <simo at redhat.com>



More information about the samba-technical mailing list