9
# usrmgt-server <port> <magic>
11
def create_user(props):
13
if 'uid' not in props:
17
common.makeuser.make_user_db(props['username'], props['uid'],
18
props['password'], props['nick'],
19
props['fullname'], props['rolenm'],
22
common.makeuser.make_jail(props['username'], props['uid'])
24
# eventually, we're going to want to grant shell access, in which
25
# case we'll need to add the uid to the password file. Magic to do
26
# that should go here.
30
if __name__ == "__main__":
31
port = int(sys.argv[1])
34
common.chat.start_server(port, magic, False, create_user)