Skip to content

Commit a11d429

Browse files
author
tv
committedJan 20, 2005
Add our own LDAP schema file. To use in slapd, add line "include /etc/ldaptor/ldaptor.schema" to /etc/ldap/slapd.conf.
git-svn-id: svn+ssh://open.inoi.fi/open-ldaptor/trunk@195 373aa48d-36e5-0310-bb30-ae74d9883905
1 parent 99f2208 commit a11d429

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed
 

‎debian/ldaptor-common.install

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
../global.cfg etc/ldaptor
2+
../../ldaptor.schema etc/ldaptor

‎ldaptor.schema

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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

Comments
 (0)
Please sign in to comment.