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

Andrew Bartlett abartlet at samba.org
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.

Thanks,

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
-------------- 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: <http://lists.samba.org/pipermail/samba-technical/attachments/20120716/12faa1ca/attachment.bin>


More information about the samba-technical mailing list