33
33
sys.path.append(os.path.join(os.getcwd(), 'www'))
42
43
print "Must run remakeuser.py as root."
49
50
# Create the user if it does not exist
51
(_,_,uid,_,_,_,_) = pwd.getpwnam(username)
53
uid = conn.get_single({'login':login}, 'login', ['unixid'], ['login'])
56
58
except Exception, message:
57
59
print "Error: " + str(message)