Skip to content

Commit

Permalink
If given names are enabled, always add the needed class
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Jul 27, 2024
1 parent 4c3b792 commit 1a658b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ldap-useradmin/ldap-useradmin-lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@ sub create_user
if ($schema->objectclass("person") && $config{'person'}) {
push(@classes, "person");
}
if ($config{'given'}) {
push(@classes, $config{'given_class'});
}
@classes = &uniquelc(@classes);
@classes = grep { /\S/ } @classes; # Remove empty
my @attrs = &user_to_dn($user);
Expand Down

0 comments on commit 1a658b1

Please sign in to comment.