]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.security.core/src/org/argeo/osgi/useradmin/LdifName.java
1 package org
.argeo
.osgi
.useradmin
;
3 import javax
.naming
.ldap
.LdapName
;
6 * Standard LDAP attributes and object classes leveraged in this implementation
7 * of user admin. Named {@link LdifName} in order not to collide with
10 public enum LdifName
{
12 dn
, cn
, sn
, uid
, mail
, displayName
, objectClass
, userPassword
, givenName
, description
,
14 uidNumber
, gidNumber
, homeDirectory
, loginShell
, gecos
,
16 posixAccount
, inetOrgPerson
, organizationalPerson
, person
, groupOfNames
, groupOfUniqueNames
, extensibleObject
, top
;
18 public final static String PREFIX
= "ldap:";
20 /** For use as XML name. */
21 public String
property() {
22 return PREFIX
+ name();
25 public static LdifName
local(String property
) {
26 return LdifName
.valueOf(property
.substring(PREFIX
.length()));