Skip to content

Commit

Permalink
Cater for other object class LdapUidAttributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylinsic authored Jan 27, 2024
1 parent 11c2861 commit e32f12b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,11 @@ public String getLdapUidAttribute(final ObjectClass oclass) {
idAttribute = conn.getConfiguration().getGidAttribute();
} else if (oclass.equals(ObjectClass.ACCOUNT)) {
idAttribute = conn.getConfiguration().getUidAttribute();
} else {
} else if (oclass.equals(LdapSchemaMapping.ANY_OBJECT_CLASS)) {
idAttribute = conn.getConfiguration().getAoidAttribute();
} else {
idAttribute = conn.getConfiguration().getObjectClassMappingConfigs().get(ObjectClass.ALL).
getShortNameLdapAttributes().iterator().next()
}

return idAttribute;
Expand Down

0 comments on commit e32f12b

Please sign in to comment.