Set the login shell of new members

Somehow this got left out of addmember. The default
is sh which isn't terribly friendly.
pull/5/head
Michael Spang 16 years ago
parent 5bca2288af
commit 618bfa2d8d
  1. 6
      src/ldap.c

@ -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…
Cancel
Save