Set the loginShell attribute on winsynced entries if configured

Fixes: https://fedorahosted.org/freeipa/ticket/266
This commit is contained in:
Simo Sorce
2011-02-18 10:54:31 -05:00
parent 1eb3033311
commit b3e9cac972
4 changed files with 66 additions and 1 deletions

View File

@@ -350,6 +350,12 @@ ipa_winsync_pre_ds_add_user_cb(void *cbdata, const Slapi_Entry *rawentry,
}
}
/* add a loginShell if we have a default */
if (ipaconfig->login_shell) {
slapi_entry_attr_set_charptr(ds_entry, "loginShell",
ipaconfig->login_shell);
}
sync_acct_disable(cbdata, rawentry, ds_entry, ACCT_DISABLE_TO_DS,
ds_entry, NULL, NULL);
LOG("<-- ipa_winsync_pre_ds_add_user_cb -- end\n");