New comment by cryptomilk on Samba Github repository https://github.com/samba-team/samba/pull/168#issuecomment-396831499 Comment: `PWRAP_DEBUG(29945) - SYSLOG(7): username [LOCALADMEMBER/root] obtained` This is obviously the wrong user :-) You need to pass $DC_USERNAME and $DC_PASSWORD down in tests.py!