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:
parent
5bca2288af
commit
618bfa2d8d
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue