mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
scripting: Handle missing LDAP entries in samba-tool domain classicupgrade
Reported-by: Thomas Simmons <twsnnva@gmail.com>
This commit is contained in:
parent
bd18d996e2
commit
631654ae11
@ -802,6 +802,8 @@ Please fix this account before attempting to upgrade again
|
||||
homes[username] = pwd.getpwnam(username).pw_dir
|
||||
except KeyError:
|
||||
pass
|
||||
except IndexError:
|
||||
pass
|
||||
|
||||
try:
|
||||
if ldap:
|
||||
@ -810,6 +812,8 @@ Please fix this account before attempting to upgrade again
|
||||
shells[username] = pwd.getpwnam(username).pw_shell
|
||||
except KeyError:
|
||||
pass
|
||||
except IndexError:
|
||||
pass
|
||||
|
||||
try:
|
||||
if ldap:
|
||||
@ -818,6 +822,8 @@ Please fix this account before attempting to upgrade again
|
||||
pgids[username] = pwd.getpwnam(username).pw_gid
|
||||
except KeyError:
|
||||
pass
|
||||
except IndexError:
|
||||
pass
|
||||
|
||||
logger.info("Reading WINS database")
|
||||
samba3_winsdb = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user