]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.api.acr/src/org/argeo/api/acr/ldap/LdapAttrs.java
1 package org
.argeo
.api
.acr
.ldap
;
3 import static org
.argeo
.api
.acr
.ArgeoNamespace
.LDAP_DEFAULT_PREFIX
;
4 import static org
.argeo
.api
.acr
.ArgeoNamespace
.LDAP_NAMESPACE_URI
;
6 import java
.util
.function
.Supplier
;
8 import javax
.xml
.namespace
.QName
;
10 import org
.argeo
.api
.acr
.ContentName
;
11 import org
.argeo
.api
.acr
.QNamed
;
12 import org
.argeo
.api
.acr
.RuntimeNamespaceContext
;
15 * Standard LDAP attributes as per:<br>
16 * - <a href= "https://www.ldap.com/ldap-oid-reference">Standard LDAP</a><br>
18 * "https://github.com/krb5/krb5/blob/master/src/plugins/kdb/ldap/libkdb_ldap/kerberos.schema">Kerberos
21 public enum LdapAttrs
implements QNamed
, SpecifiedName
, Supplier
<String
> {
23 uid("0.9.2342.19200300.100.1.1", "RFC 4519"),
25 mail("0.9.2342.19200300.100.1.3", "RFC 4524"),
27 info("0.9.2342.19200300.100.1.4", "RFC 4524"),
29 drink("0.9.2342.19200300.100.1.5", "RFC 4524"),
31 roomNumber("0.9.2342.19200300.100.1.6", "RFC 4524"),
33 photo("0.9.2342.19200300.100.1.7", "RFC 2798"),
35 userClass("0.9.2342.19200300.100.1.8", "RFC 4524"),
37 host("0.9.2342.19200300.100.1.9", "RFC 4524"),
39 manager("0.9.2342.19200300.100.1.10", "RFC 4524"),
41 documentIdentifier("0.9.2342.19200300.100.1.11", "RFC 4524"),
43 documentTitle("0.9.2342.19200300.100.1.12", "RFC 4524"),
45 documentVersion("0.9.2342.19200300.100.1.13", "RFC 4524"),
47 documentAuthor("0.9.2342.19200300.100.1.14", "RFC 4524"),
49 documentLocation("0.9.2342.19200300.100.1.15", "RFC 4524"),
51 homePhone("0.9.2342.19200300.100.1.20", "RFC 4524"),
53 secretary("0.9.2342.19200300.100.1.21", "RFC 4524"),
55 dc("0.9.2342.19200300.100.1.25", "RFC 4519"),
57 associatedDomain("0.9.2342.19200300.100.1.37", "RFC 4524"),
59 associatedName("0.9.2342.19200300.100.1.38", "RFC 4524"),
61 homePostalAddress("0.9.2342.19200300.100.1.39", "RFC 4524"),
63 personalTitle("0.9.2342.19200300.100.1.40", "RFC 4524"),
65 mobile("0.9.2342.19200300.100.1.41", "RFC 4524"),
67 pager("0.9.2342.19200300.100.1.42", "RFC 4524"),
69 co("0.9.2342.19200300.100.1.43", "RFC 4524"),
71 uniqueIdentifier("0.9.2342.19200300.100.1.44", "RFC 4524"),
73 organizationalStatus("0.9.2342.19200300.100.1.45", "RFC 4524"),
75 buildingName("0.9.2342.19200300.100.1.48", "RFC 4524"),
77 audio("0.9.2342.19200300.100.1.55", "RFC 2798"),
79 documentPublisher("0.9.2342.19200300.100.1.56", "RFC 4524"),
81 jpegPhoto("0.9.2342.19200300.100.1.60", "RFC 2798"),
83 vendorName("1.3.6.1.1.4", "RFC 3045"),
85 vendorVersion("1.3.6.1.1.5", "RFC 3045"),
87 entryUUID("1.3.6.1.1.16.4", "RFC 4530"),
89 entryDN("1.3.6.1.1.20", "RFC 5020"),
91 labeledURI("1.3.6.1.4.1.250.1.57", "RFC 2798"),
93 numSubordinates("1.3.6.1.4.1.453.16.2.103", "draft-ietf-boreham-numsubordinates"),
95 namingContexts("1.3.6.1.4.1.1466.101.120.5", "RFC 4512"),
97 altServer("1.3.6.1.4.1.1466.101.120.6", "RFC 4512"),
99 supportedExtension("1.3.6.1.4.1.1466.101.120.7", "RFC 4512"),
101 supportedControl("1.3.6.1.4.1.1466.101.120.13", "RFC 4512"),
103 supportedSASLMechanisms("1.3.6.1.4.1.1466.101.120.14", "RFC 4512"),
105 supportedLDAPVersion("1.3.6.1.4.1.1466.101.120.15", "RFC 4512"),
107 ldapSyntaxes("1.3.6.1.4.1.1466.101.120.16", "RFC 4512"),
109 supportedAuthPasswordSchemes("1.3.6.1.4.1.4203.1.3.3", "RFC 3112"),
111 authPassword("1.3.6.1.4.1.4203.1.3.4", "RFC 3112"),
113 supportedFeatures("1.3.6.1.4.1.4203.1.3.5", "RFC 4512"),
115 inheritable("1.3.6.1.4.1.7628.5.4.1", "draft-ietf-ldup-subentry"),
117 blockInheritance("1.3.6.1.4.1.7628.5.4.2", "draft-ietf-ldup-subentry"),
119 objectClass("2.5.4.0", "RFC 4512"),
121 aliasedObjectName("2.5.4.1", "RFC 4512"),
123 cn("2.5.4.3", "RFC 4519"),
125 sn("2.5.4.4", "RFC 4519"),
127 serialNumber("2.5.4.5", "RFC 4519"),
129 c("2.5.4.6", "RFC 4519"),
131 l("2.5.4.7", "RFC 4519"),
133 st("2.5.4.8", "RFC 4519"),
135 street("2.5.4.9", "RFC 4519"),
137 o("2.5.4.10", "RFC 4519"),
139 ou("2.5.4.11", "RFC 4519"),
141 title("2.5.4.12", "RFC 4519"),
143 description("2.5.4.13", "RFC 4519"),
145 searchGuide("2.5.4.14", "RFC 4519"),
147 businessCategory("2.5.4.15", "RFC 4519"),
149 postalAddress("2.5.4.16", "RFC 4519"),
151 postalCode("2.5.4.17", "RFC 4519"),
153 postOfficeBox("2.5.4.18", "RFC 4519"),
155 physicalDeliveryOfficeName("2.5.4.19", "RFC 4519"),
157 telephoneNumber("2.5.4.20", "RFC 4519"),
159 telexNumber("2.5.4.21", "RFC 4519"),
161 teletexTerminalIdentifier("2.5.4.22", "RFC 4519"),
163 facsimileTelephoneNumber("2.5.4.23", "RFC 4519"),
165 x121Address("2.5.4.24", "RFC 4519"),
167 internationalISDNNumber("2.5.4.25", "RFC 4519"),
169 registeredAddress("2.5.4.26", "RFC 4519"),
171 destinationIndicator("2.5.4.27", "RFC 4519"),
173 preferredDeliveryMethod("2.5.4.28", "RFC 4519"),
175 member("2.5.4.31", "RFC 4519"),
177 owner("2.5.4.32", "RFC 4519"),
179 roleOccupant("2.5.4.33", "RFC 4519"),
181 seeAlso("2.5.4.34", "RFC 4519"),
183 userPassword("2.5.4.35", "RFC 4519"),
185 userCertificate("2.5.4.36", "RFC 4523"),
187 cACertificate("2.5.4.37", "RFC 4523"),
189 authorityRevocationList("2.5.4.38", "RFC 4523"),
191 certificateRevocationList("2.5.4.39", "RFC 4523"),
193 crossCertificatePair("2.5.4.40", "RFC 4523"),
195 name("2.5.4.41", "RFC 4519"),
197 givenName("2.5.4.42", "RFC 4519"),
199 initials("2.5.4.43", "RFC 4519"),
201 generationQualifier("2.5.4.44", "RFC 4519"),
203 x500UniqueIdentifier("2.5.4.45", "RFC 4519"),
205 dnQualifier("2.5.4.46", "RFC 4519"),
207 enhancedSearchGuide("2.5.4.47", "RFC 4519"),
209 distinguishedName("2.5.4.49", "RFC 4519"),
211 uniqueMember("2.5.4.50", "RFC 4519"),
213 houseIdentifier("2.5.4.51", "RFC 4519"),
215 supportedAlgorithms("2.5.4.52", "RFC 4523"),
217 deltaRevocationList("2.5.4.53", "RFC 4523"),
219 createTimestamp("2.5.18.1", "RFC 4512"),
221 modifyTimestamp("2.5.18.2", "RFC 4512"),
223 creatorsName("2.5.18.3", "RFC 4512"),
225 modifiersName("2.5.18.4", "RFC 4512"),
227 subschemaSubentry("2.5.18.10", "RFC 4512"),
229 dITStructureRules("2.5.21.1", "RFC 4512"),
231 dITContentRules("2.5.21.2", "RFC 4512"),
233 matchingRules("2.5.21.4", "RFC 4512"),
235 attributeTypes("2.5.21.5", "RFC 4512"),
237 objectClasses("2.5.21.6", "RFC 4512"),
239 nameForms("2.5.21.7", "RFC 4512"),
241 matchingRuleUse("2.5.21.8", "RFC 4512"),
243 structuralObjectClass("2.5.21.9", "RFC 4512"),
245 governingStructureRule("2.5.21.10", "RFC 4512"),
247 carLicense("2.16.840.1.113730.3.1.1", "RFC 2798"),
249 departmentNumber("2.16.840.1.113730.3.1.2", "RFC 2798"),
251 employeeNumber("2.16.840.1.113730.3.1.3", "RFC 2798"),
253 employeeType("2.16.840.1.113730.3.1.4", "RFC 2798"),
255 changeNumber("2.16.840.1.113730.3.1.5", "draft-good-ldap-changelog"),
257 targetDN("2.16.840.1.113730.3.1.6", "draft-good-ldap-changelog"),
259 changeType("2.16.840.1.113730.3.1.7", "draft-good-ldap-changelog"),
261 changes("2.16.840.1.113730.3.1.8", "draft-good-ldap-changelog"),
263 newRDN("2.16.840.1.113730.3.1.9", "draft-good-ldap-changelog"),
265 deleteOldRDN("2.16.840.1.113730.3.1.10", "draft-good-ldap-changelog"),
267 newSuperior("2.16.840.1.113730.3.1.11", "draft-good-ldap-changelog"),
269 ref("2.16.840.1.113730.3.1.34", "RFC 3296"),
271 changelog("2.16.840.1.113730.3.1.35", "draft-good-ldap-changelog"),
273 preferredLanguage("2.16.840.1.113730.3.1.39", "RFC 2798"),
275 userSMIMECertificate("2.16.840.1.113730.3.1.40", "RFC 2798"),
277 userPKCS12("2.16.840.1.113730.3.1.216", "RFC 2798"),
279 displayName("2.16.840.1.113730.3.1.241", "RFC 2798"),
282 memberOf("1.2.840.113556.1.2.102", "389 DS memberOf"),
284 // KERBEROS (partial)
285 krbPrincipalName("2.16.840.1.113719.1.301.6.8.1", "Novell Kerberos Schema Definitions"),
287 // RFC 2985 and RFC 3039 (partial)
288 dateOfBirth("1.3.6.1.5.5.7.9.1", "RFC 2985"),
290 placeOfBirth("1.3.6.1.5.5.7.9.2", "RFC 2985"),
292 gender("1.3.6.1.5.5.7.9.3", "RFC 2985"),
294 countryOfCitizenship("1.3.6.1.5.5.7.9.4", "RFC 2985"),
296 countryOfResidence("1.3.6.1.5.5.7.9.5", "RFC 2985"),
298 // RFC 2307bis (partial)
300 uidNumber("1.3.6.1.1.1.1.0", "RFC 2307bis"),
302 gidNumber("1.3.6.1.1.1.1.1", "RFC 2307bis"),
304 homeDirectory("1.3.6.1.1.1.1.3", "RFC 2307bis"),
306 loginShell("1.3.6.1.1.1.1.4", "RFC 2307bis"),
308 memberUid("1.3.6.1.1.1.1.12", "RFC 2307bis"),
313 public final static String DN
= "dn";
315 private final String oid
, spec
;
316 private final QName value
;
318 LdapAttrs(String oid
, String spec
) {
321 this.value
= new ContentName(LDAP_NAMESPACE_URI
, name());
324 public QName
qName() {
329 public String
getID() {
334 public String
getSpec() {
339 public String
property() {
344 public String
qualified() {
349 public String
get() {
350 return RuntimeNamespaceContext
.getNamespaceContext().getPrefix(LDAP_NAMESPACE_URI
) + ":" + name();
354 public final String
toString() {
355 // must return the name
360 public String
getNamespace() {
361 return LDAP_NAMESPACE_URI
;
365 public String
getDefaultPrefix() {
366 return LDAP_DEFAULT_PREFIX
;