develop
asamoukin 16 years ago
parent f51c6e39f6
commit 628c0d9e9c

@ -4256,7 +4256,8 @@ class servSamba(shareLdap):
if not userNetlogonDir in notDeletedDirs and\
os.path.exists(userNetlogonDir):
self.removeDir(userNetlogonDir)
if not self.servUnixObj.modUserUnixServer(userName,{"I":""},False):
if self.servUnixObj.searchUnixUser(userName) and\
not self.servUnixObj.modUserUnixServer(userName,{"I":""},False):
return False
if printSuccess:
self.printSUCCESS(_("Deleted Samba user %s") % str(delUser) +\

Loading…
Cancel
Save