Multi-referentials bind working
[lgpl/argeo-commons.git] / org.argeo.util / src / org / argeo / osgi / useradmin / LdifAuthorization.java
index 80a9eea30e32ff19eeaae7aa2c94f1895f81da52..d7f6ad960b7a50854d864068755dc48f99db71e6 100644 (file)
@@ -71,11 +71,11 @@ class LdifAuthorization implements Authorization {
 
        final static String extractDisplayName(User user) {
                Dictionary<String, Object> props = user.getProperties();
-               Object displayName = props.get(LdapAttrs.displayName);
+               Object displayName = props.get(LdapAttrs.displayName.name());
                if (displayName == null)
-                       displayName = props.get(LdapAttrs.cn);
+                       displayName = props.get(LdapAttrs.cn.name());
                if (displayName == null)
-                       displayName = props.get(LdapAttrs.uid);
+                       displayName = props.get(LdapAttrs.uid.name());
                if (displayName == null)
                        displayName = user.getName();
                if (displayName == null)