Commit 8dadfe40 authored by Imran Hussain's avatar Imran Hussain
Browse files

Clean up /home/useradd/ when deleting people.

This is no longer needed as we take a backup of thier ldap entry at that time
parent 15464968
......@@ -313,6 +313,9 @@ def deleteUser(peopleList):
print("Something went wrong deleting the LDAP entry, quitting! NO CHNAGES MADE")
# delete their useradd ldif file['sudo', 'rm', "-v", "/home/useradd/useradd." + username + ".ldif"])
# move their homedir to the deleted folder['sudo', 'mv', "-f", userLDAPinfo[0][1]["homeDirectory"][0], persondir+"/homedir"])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment