Unify service accounts to one kind, add manager field, make homeDirectory/loginShell editable
Removes the LDAP bind-only service account type in favor of a single Unix/POSIX account model, surfaced in a new Users > Service Accounts tab. Adds a multi-valued `manager` field to every account (defaults to the creator, editable, and grants edit rights on the accounts a person manages without needing app_sso_admin). homeDirectory and loginShell are now editable from the profile edit form. Bumps to v1.1.7. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KDEx8ghuZR61pqPXc6da9C
This commit is contained in:
@@ -59,6 +59,14 @@ async function fetchUsernameSuggestions() {
|
||||
$form.find('#personNameFields').toggle(!checked);
|
||||
$form.find('#serviceAccountNameField').toggle(checked);
|
||||
|
||||
// Service accounts aren't a person with a mailbox, and a blank
|
||||
// password is fine (no userPassword attribute set -- the account
|
||||
// simply can't bind). Disabling (not just hiding) keeps disabled
|
||||
// fields out of both form serialization and validation.
|
||||
$form.find('[name=mail]').prop('disabled', checked).closest('.mb-3').toggle(!checked);
|
||||
$form.find('[name=userPassword]').prop('disabled', checked).closest('.mb-3').toggle(!checked);
|
||||
$form.find('[name=passwordMatch]').prop('disabled', checked).closest('.mb-3').toggle(!checked);
|
||||
|
||||
if(checked){
|
||||
// Filler values so the LDAP schema (inetOrgPerson requires sn) is
|
||||
// satisfied; not shown anywhere, the account name is what matters.
|
||||
|
||||
Reference in New Issue
Block a user