Index: trunk/tools/subversion/user-management/add-labs-user |
— | — | @@ -20,8 +20,12 @@ |
21 | 21 | |
22 | 22 | # Set a random password for the user |
23 | 23 | passwdargs = ['/usr/local/bin/change-ldap-passwd', '--random', username] |
24 | | - passwd = subprocess.Popen(passwdargs, stdout=PIPE).communicate()[0] |
| 24 | + passwd = subprocess.Popen(passwdargs, stdout=subprocess.PIPE).communicate()[0] |
25 | 25 | |
| 26 | + # Set the user's CN and email address |
| 27 | + passwdargs = ['/usr/local/bin/modify-ldap-user', '--cn=' + options.wikiname, '--mail=' + options.mail, username] |
| 28 | + ignore = subprocess.Popen(passwdargs, stdout=subprocess.PIPE).communicate()[0] |
| 29 | + |
26 | 30 | # Do an initial log in as the user, which will cause the wiki to create an account |
27 | 31 | # for the user. |
28 | 32 | data = {'action': 'login', |