Failed to get name_resolve_order via s3 lpcfg wrapper and improving s3 ldap import

Andrew Bartlett abartlet at
Mon Jul 16 03:05:27 MDT 2012

On Mon, 2012-07-16 at 07:57 +0200, Gémes Géza wrote:

> Hi,
> I've attached the patch. Under valgrind the whole samba-tool 
> classicupgrade gives a lot of memory problems related messages, and even 
> fails at initializing the ldb connection to the openldap directory. The 
> output is:

A few thoughts on the patch.

Why do you build multiple ldbs?  You should only need one - feel free to
walk the list of URLs if you think that one of the ldap hosts might be
down, but you should end up with just one ldb for posix attributes.

Use creds.set_bind_dn() rather than set_username() to set the simple
bind DN.

Also try applying this patch to the pytdb layer to see if we can trace
where this segfault comes from.


Andrew Bartlett                      
Authentication Developer, Samba Team 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-pytdb-Check-for-errors-parsing-strings-into-TDB_DATA.patch
Type: text/x-patch
Size: 2314 bytes
Desc: not available
URL: <>

More information about the samba-technical mailing list