|
| 1 | +# Ldaptor schema file |
| 2 | +# |
| 3 | +# OID 1.3.6.1.4.1.22024.1.1 is reserved for Ldaptor. |
| 4 | +# |
| 5 | +# Under that, the following apply: |
| 6 | +# |
| 7 | +# .1 = attributeTypes |
| 8 | +# .2 = objectClasses |
| 9 | +# |
| 10 | + |
| 11 | +# Time format is like with modifyTimestamp: "YYYYMMDDHHMMSSZ", for |
| 12 | +# example "20050117143623Z". The actual format is only documented in |
| 13 | +# CCITT Rec. X.208 and/or ISO/IEC 8824, which seems to cost |
| 14 | +# 136€. NICE! For now, let's hope nothing uses anything more complex |
| 15 | +# than the simplest possible format. |
| 16 | + |
| 17 | +# If validFrom or validUntil is not set, the defaults are -infinity |
| 18 | +# and infinity. |
| 19 | + |
| 20 | +attributetype ( 1.3.6.1.4.1.22024.1.1.1.1 |
| 21 | + NAME 'validFrom' |
| 22 | + DESC 'Authentication is possible only after this time' |
| 23 | + EQUALITY generalizedTimeMatch |
| 24 | + ORDERING generalizedTimeOrderingMatch |
| 25 | + SYNTAX 1.3.6.1.4.1.1466.115.121.1.24 |
| 26 | + SINGLE-VALUE ) |
| 27 | + |
| 28 | +attributetype ( 1.3.6.1.4.1.22024.1.1.1.2 |
| 29 | + NAME 'validUntil' |
| 30 | + DESC 'Authentication is possible only before this time' |
| 31 | + EQUALITY generalizedTimeMatch |
| 32 | + ORDERING generalizedTimeOrderingMatch |
| 33 | + SYNTAX 1.3.6.1.4.1.1466.115.121.1.24 |
| 34 | + SINGLE-VALUE ) |
| 35 | + |
| 36 | +# It is suggested that the RDN contains |
| 37 | +# both the cn and owner attributes, to |
| 38 | +# make it specific enough. |
| 39 | +# Note the amount of quoting required |
| 40 | +# for this: |
| 41 | +# dn: cn=test+owner=uid\=jdoe\,dc\=example\,dc\=com,dc=example,dc=com |
| 42 | +# objectClass: serviceSecurityObject |
| 43 | +# cn: test |
| 44 | +# owner: uid=jdoe,dc=example,dc=com |
| 45 | + |
| 46 | +objectclass ( 1.3.6.1.4.1.22024.1.1.2.1 |
| 47 | + NAME 'serviceSecurityObject' |
| 48 | + DESC 'A service-specific authentication method' |
| 49 | + SUP top STRUCTURAL |
| 50 | + MUST ( cn $ owner $ userPassword ) |
| 51 | + MAY ( validFrom $ validUntil ) ) |
0 commit comments