1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

s4-s3-upgrade: Allow import (just without a uid mapping) where getpwnam fails

This allows the tests to pass on systems without a jelmer user :-)

Andrew Bartlett
This commit is contained in:
Andrew Bartlett 2011-10-10 13:09:30 +11:00
parent c9bb497f3f
commit 1255383140

View File

@ -591,7 +591,7 @@ Please fix this account before attempting to upgrade again
except passdb.error:
try:
uids[username] = pwd.getpwnam(username).pw_uid
except passdb.error:
except KeyError:
pass
if not admin_user and username.lower() == 'root':