Skip to content

Commit

Permalink
resolve also nested roles for attribute userroles, introduced "rolese…
Browse files Browse the repository at this point in the history
…arch_enabled" config, performance optimizations especially for nested roles resolution
  • Loading branch information
floragunn committed Jan 17, 2017
1 parent a90748b commit 7ab3a49
Show file tree
Hide file tree
Showing 6 changed files with 223 additions and 171 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/floragunn/dlic/auth/ldap/LdapUser.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@ public LdapUser(final String name, String originalUsername, final LdapEntry user
this.userEntry = userEntry;
}

@Deprecated
public void addRoleEntry(final LdapEntry entry) {
roleEntries.add(entry);
}

@Deprecated
public void addRoleEntries(final Collection<LdapEntry> entries) {
roleEntries.addAll(entries);
}
Expand All @@ -59,11 +61,13 @@ public String getOriginalUsername() {
return originalUsername;
}

@Deprecated
public Set<LdapEntry> getRoleEntries() {
return Collections.unmodifiableSet(roleEntries);
}

@Override
@Deprecated
public void copyRolesFrom(final User user) {
this.addRoleEntries(((LdapUser) user).getRoleEntries());
super.copyRolesFrom(user);
Expand Down
Loading

0 comments on commit 7ab3a49

Please sign in to comment.