Samba4 patch for manipulating Unix attributes via ADUC

Gémes Géza geza at kzsdabas.hu
Sat Jul 14 04:54:59 MDT 2012


2012-07-14 12:10 keltezéssel, Andrew Bartlett írta:
> On Sat, 2012-07-14 at 09:35 +0200, Gémes Géza wrote:
>
>> Hi,
>>
>> Unfortunately you lose. It is running without problem, except the
>> ldb=samDB line and below (which is part of a function called for every
>> user to be migrated). The only (seems to be a red herring) error message
>> is at the beginning of the execution: no talloc stackframe around,
>> leaking memory
>> and valgrind reports lots of memory leaks in (seems to be) unrelated
>> functions, but tested with a pristine upgrade.py and the situation seems
>> to be the same.
> Perhaps at this point send me the patch and I'll see what I can do to
> help out.
>
> Andrew Bartlett
>
Hi,

I think I've got closer in the meantime:

Trying to execute the functions line by line, I've discovered a strange 
behavior:

domain.py has:

from samba.samdb import SamDB

in upgrade.py (run from samba-tool)

ldb=SamDB(...

generates global name 'SamDB' is not defined

so I'll try including it in upgrade.py as well.

Will report back soon

Cheers

Geza


More information about the samba-technical mailing list