mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +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:
@ -591,7 +591,7 @@ Please fix this account before attempting to upgrade again
|
|||||||
except passdb.error:
|
except passdb.error:
|
||||||
try:
|
try:
|
||||||
uids[username] = pwd.getpwnam(username).pw_uid
|
uids[username] = pwd.getpwnam(username).pw_uid
|
||||||
except passdb.error:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if not admin_user and username.lower() == 'root':
|
if not admin_user and username.lower() == 'root':
|
||||||
|
Reference in New Issue
Block a user