X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.enterprise%2Fsrc%2Forg%2Fargeo%2Fosgi%2Fuseradmin%2FAggregatingAuthorization.java;h=05ba94889d403e5d681a3744db1d6d5fde14cf9e;hb=c38430e4dc4d8104162d7306675bc2f087d45a54;hp=ba9953416c9d5c05c80776e068b8ccf07759f007;hpb=8f70be78ce676f206a9bbc2baa2ba8e33606b928;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.enterprise/src/org/argeo/osgi/useradmin/AggregatingAuthorization.java b/org.argeo.enterprise/src/org/argeo/osgi/useradmin/AggregatingAuthorization.java index ba9953416..05ba94889 100644 --- a/org.argeo.enterprise/src/org/argeo/osgi/useradmin/AggregatingAuthorization.java +++ b/org.argeo.enterprise/src/org/argeo/osgi/useradmin/AggregatingAuthorization.java @@ -6,6 +6,8 @@ import java.util.HashSet; import java.util.List; import java.util.Set; +import javax.security.auth.x500.X500Principal; + import org.osgi.service.useradmin.Authorization; /** An {@link Authorization} which combines roles form various auth sources. */ @@ -16,7 +18,7 @@ class AggregatingAuthorization implements Authorization { private final Set roles; public AggregatingAuthorization(String name, String displayName, Set systemRoles, String[] roles) { - this.name = name; + this.name = new X500Principal(name).getName(); this.displayName = displayName; this.systemRoles = Collections.unmodifiableSet(new HashSet<>(systemRoles)); Set temp = new HashSet<>();