Set the login shell of new members

Somehow this got left out of addmember. The default
is sh which isn't terribly friendly.
This commit is contained in:
Michael Spang 2007-12-12 02:11:56 -05:00
parent 5bca2288af
commit 618bfa2d8d
1 changed files with 6 additions and 0 deletions

View File

@ -120,6 +120,12 @@ int ceo_add_user(char *uid, char *basedn, char *objclass, char *cn, char *home,
char *cns[] = { cn, NULL };
mods[i]->mod_values = cns;
mods[++i] = xmalloc(sizeof(LDAPMod));
mods[i]->mod_op = LDAP_MOD_ADD;
mods[i]->mod_type = "loginShell";
char *shells[] = { shell, NULL };
mods[i]->mod_values = shells;
mods[++i] = xmalloc(sizeof(LDAPMod));
mods[i]->mod_op = LDAP_MOD_ADD;
mods[i]->mod_type = "uidNumber";