return getLdapName(name);
}
- /** Retrieves the current logged-in user display name. */
+ /** Retrieves the current logged-in user mail */
public static String getCurrentUserMail(UserAdmin userAdmin) {
String username = CurrentUser.getUsername();
return getUserMail(userAdmin, username);
}
+ /** Retrieves the current logged-in user common name */
+ public final static String getCommonName(User user) {
+ return getProperty(user, LdapAttrs.cn.name());
+ }
+
// OTHER USERS HELPERS
/**
* Retrieves the local id of a user or group, that is respectively the uid