[PATCH] Added "admin_session" method - some help needed

Nadezhda Ivanova nadezhda.ivanova at postpath.com
Thu Sep 3 09:51:46 MDT 2009


Hi Team,
With Anatoliy's help we established that actually provisioning failed because of incorrect python binding. I will re-send the patch tomorrow.

Regards,
Nadya

> -----Original Message-----
> From: samba-technical-bounces at lists.samba.org [mailto:samba-technical-
> bounces at lists.samba.org] On Behalf Of Nadezhda Ivanova
> Sent: Thursday, September 03, 2009 3:39 PM
> To: samba-technical at samba.org
> Subject: [PATCH] Added "admin_session" method - some help needed
> 
> Hi Samba Team,
> As you know, I have been working on implementing security descriptor
> inheritance in Samba 4. Part of that implementation is doing some parts of
> the provisioning as user Administrator, as the default user and group
> depend on the user that creates an object, end comparison with WIN2008
> shows that (well, maybe :)) they impersonate Administrator during
> provisioning. (Or it may simply be that you need Administrative access to
> run dcpromo). So, I made a function similar to system_session to create an
> admin session, and use set_session_info on samdb during provisioning to
> execute schema, domain and configuration creation as Administrator, and
> then revert back to system_session.
> Provisioning appears to be successful, however during make test
> setpassword and newuser tests fail, and I cant figure out what may be the
> reason. I think it may be the re-setting of the session itself, as we get
> the same failure even if we reset with system_session, instead of
> admin_session. So obviously I am doing something wrong, any ideas?
> 
> Regards,
> Nadya
> 
> [577/578 in 2083s, 12 errors] samba4.blackbox.setpassword.py
> UNEXPECTED(failure): samba4.blackbox.setpassword.py.simple-dc
> UNEXPECTED(failure): samba4.blackbox.setpassword.py.newuser
> UNEXPECTED(failure): samba4.blackbox.setpassword.py.setpassword
> UNEXPECTED(failure): samba4.blackbox.setpassword.py.setpassword
> command: PYTHON=/usr/bin/python2.5
> ./selftest/../setup/tests/blackbox_setpassword.sh ./st/provision
> ERROR: Exit code was 1
> 
> 
> [578/578 in 2085s, 13 errors] samba4.blackbox.newuser.py
> samba: EOF on stdin - terminating
> WARNING: probable memory leak in ldb /home/nivanova/samba-
> orig2/source4/st/member/private/sam.ldb - 14386 blocks (startup 789)
> 506789 bytes
> WARNING: probable memory leak in ldb /home/nivanova/samba-
> orig2/source4/st/member/private/sam.ldb - 14386 blocks (startup 789)
> 506901 bytes
> WARNING: probable memory leak in ldb /home/nivanova/samba-
> orig2/source4/st/dc/private/sam.ldb - 14465 blocks (startup 884) 511387
> bytes
> ./bin/samba exits with status 0
> samba: EOF on stdin - terminating
> WARNING: probable memory leak in ldb /home/nivanova/samba-
> orig2/source4/st/dc/private/sam.ldb - 14465 blocks (startup 884) 511387
> bytes
> WARNING: probable memory leak in ldb /home/nivanova/samba-
> orig2/source4/st/dc/private/sam.ldb - 14465 blocks (startup 884) 511387
> bytes
> WARNING: probable memory leak in ldb /home/nivanova/samba-
> orig2/source4/st/dc/private/sam.ldb - 14468 blocks (startup 884) 511519
> bytes
> WARNING: probable memory leak in ldb /home/nivanova/samba-
> orig2/source4/st/dc/private/sam.ldb - 14486 blocks (startup 884) 511655
> bytes
> WARNING: probable memory leak in ldb /home/nivanova/samba-
> orig2/source4/st/dc/private/sam.ldb - 14474 blocks (startup 884) 511539
> bytes
> WARNING: probable memory leak in ldb /home/nivanova/samba-
> orig2/source4/st/dc/private/sam.ldb - 14484 blocks (startup 884) 511627
> bytes
> WARNING: probable memory leak in ldb /home/nivanova/samba-
> orig2/source4/st/dc/private/sam.ldb - 14484 blocks (startup 884) 511739
> bytes
> ./bin/samba exits with status 0
> UNEXPECTED(failure): samba4.blackbox.newuser.py.simple-dc
> UNEXPECTED(failure): samba4.blackbox.newuser.py.newuser
> UNEXPECTED(failure): samba4.blackbox.newuser.py.enableaccount
> UNEXPECTED(failure): samba4.blackbox.newuser.py.setpassword
> UNEXPECTED(failure): samba4.blackbox.newuser.py.noexpiry
> UNEXPECTED(failure): samba4.blackbox.newuser.py.expiry
> command: PYTHON=/usr/bin/python2.5
> ./selftest/../setup/tests/blackbox_newuser.sh ./st/provision
> ERROR: Exit code was 1


More information about the samba-technical mailing list