X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;ds=inline;f=org.argeo.enterprise%2Fsrc%2Forg%2Fargeo%2Fnaming%2FLdapAttrs.java;h=171b83a0f9e47026d38de41523a50e3e9967b352;hb=d048e06a099fea6cc4bc72a03d4a2d41c129b74f;hp=29f6e005f5933beca663f0b7cdf4cf3c3cf3a1c3;hpb=b334cd41b64d0658aae9125c58d6a1194eccb087;p=lgpl%2Fargeo-commons.git
diff --git a/org.argeo.enterprise/src/org/argeo/naming/LdapAttrs.java b/org.argeo.enterprise/src/org/argeo/naming/LdapAttrs.java
index 29f6e005f..171b83a0f 100644
--- a/org.argeo.enterprise/src/org/argeo/naming/LdapAttrs.java
+++ b/org.argeo.enterprise/src/org/argeo/naming/LdapAttrs.java
@@ -1,11 +1,13 @@
package org.argeo.naming;
/**
- * Standard LDAP attributes as per
- * https://www.ldap.com/ldap-
- * oid-reference
+ * Standard LDAP attributes as per:
+ * - Standard LDAP
+ * - Kerberos
+ * LDAP (partial)
*/
-public enum LdapAttrs implements SpecifiedName{
+public enum LdapAttrs implements SpecifiedName {
/** */
uid("0.9.2342.19200300.100.1.1", "RFC 4519"),
/** */
@@ -263,7 +265,26 @@ public enum LdapAttrs implements SpecifiedName{
/** */
userPKCS12("2.16.840.1.113730.3.1.216", "RFC 2798"),
/** */
- displayName("2.16.840.1.113730.3.1.241", "RFC 2798");
+ displayName("2.16.840.1.113730.3.1.241", "RFC 2798"),
+
+ // Sun memberOf
+ memberOf("1.2.840.113556.1.2.102", "389 DS memberOf"),
+
+ // KERBEROS (partial)
+ krbPrincipalName("2.16.840.1.113719.1.301.6.8.1", "Novell Kerberos Schema Definitions"),
+
+ // RFC 2985 and RFC 3039 (partial)
+ dateOfBirth("1.3.6.1.5.5.7.9.1", "RFC 2985"),
+ /** */
+ placeOfBirth("1.3.6.1.5.5.7.9.2", "RFC 2985"),
+ /** */
+ gender("1.3.6.1.5.5.7.9.3", "RFC 2985"),
+ /** */
+ countryOfCitizenship("1.3.6.1.5.5.7.9.4", "RFC 2985"),
+ /** */
+ countryOfResidence("1.3.6.1.5.5.7.9.5", "RFC 2985"),
+ //
+ ;
public final static String DN = "dn";
@@ -290,4 +311,10 @@ public enum LdapAttrs implements SpecifiedName{
return new StringBuilder(LDAP_).append(name()).toString();
}
+ @Override
+ public final String toString() {
+ // must return the name
+ return name();
+ }
+
}