]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.security.core/src/org/argeo/osgi/useradmin/LdifName.java
2614b6fa50cc388dc9d05bcbb969d277c2bd8f19
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 cn
, sn
, uid
, displayName
, objectClass
,userPassword
,
14 inetOrgPerson
, organizationalPerson
, person
, groupOfNames
, top
;
16 public final static String LDAP_PREFIX
= "ldap:";
18 public String
property() {
19 return LDAP_PREFIX
+ name();
22 public static LdifName
local(String property
) {
23 String local
= property
.substring(LDAP_PREFIX
.length());
24 return LdifName
.valueOf(local
);