aboutsummaryrefslogtreecommitdiff
path: root/flakes/private/openldap/immae.schema
blob: 7b3b5871d59f812dbb4503348b0eb37361d5c8f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
# vim: set filetype=slapd:
objectIdentifier Immaeroot 1.3.6.1.4.1.50071

objectIdentifier Immae Immaeroot:2
objectIdentifier ImmaeattributeType Immae:3
objectIdentifier ImmaeobjectClass Immae:4

# TT-RSS
attributetype ( ImmaeattributeType:1 NAME 'immaeTtrssLogin'
	DESC 'login for TTRSS'
	EQUALITY caseIgnoreMatch
	SUBSTR caseIgnoreSubstringsMatch
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} )

objectclass ( ImmaeobjectClass:1 NAME 'immaeTtrssClass'
	DESC 'Expansion of the existing object classes for ttrss'
	SUP top AUXILIARY
	MUST ( immaeTtrssLogin ) )

# FTP
attributetype ( ImmaeattributeType:2 NAME 'immaeFtpDirectory'
	DESC 'home directory for ftp'
	EQUALITY caseExactIA5Match
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )

attributetype ( ImmaeattributeType:3 NAME 'immaeFtpUid'
	DESC 'user id for ftp'
	EQUALITY integerMatch
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 )

attributetype ( ImmaeattributeType:4 NAME 'immaeFtpGid'
	DESC 'group id for ftp'
	EQUALITY integerMatch
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 )

objectclass ( ImmaeobjectClass:2 NAME 'immaeFtpClass'
	DESC 'Expansion of the existing object classes for ftp'
	SUP top AUXILIARY
	MUST ( immaeFtpDirectory $ immaeFtpGid $ immaeFtpUid ) )


# SSH keys
attributetype ( ImmaeattributeType:5 NAME 'immaeSshKey'
	DESC 'OpenSSH Public key'
	EQUALITY octetStringMatch
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.40 )

objectClass ( ImmaeobjectClass:3 NAME 'immaeSshClass'
	DESC 'OpenSSH class'
	SUP top AUXILIARY
	MAy ( immaeSSHKey ) )

# Specific access
attributetype (ImmaeattributeType:6 NAME 'immaeAccessDn'
	EQUALITY distinguishedNameMatch
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 )

attributetype (ImmaeattributeType:17 NAME 'immaeAccessWriteDn'
	EQUALITY distinguishedNameMatch
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 )

attributetype (ImmaeattributeType:18 NAME 'immaeAccessReadSubtree'
	EQUALITY distinguishedNameMatch
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 )

objectClass ( ImmaeobjectClass:4 NAME 'immaeAccessClass'
	DESC 'Access class'
	SUP top AUXILIARY
	MAY ( immaeAccessDn $ immaeAccessWriteDn $ immaeAccessReadSubtree ) )

# Xmpp uid
attributetype ( ImmaeattributeType:7 NAME 'immaeXmppUid'
	DESC 'user part for Xmpp'
	EQUALITY caseIgnoreMatch
	SUBSTR caseIgnoreSubstringsMatch
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} )

objectclass ( ImmaeobjectClass:5 NAME 'immaeXmppClass'
	DESC 'Expansion of the existing object classes for XMPP'
	SUP top AUXILIARY
	MUST ( immaeXmppUid ) )

# Postfix accounts
attributetype ( ImmaeattributeType:8 NAME 'immaePostfixAddress'
	DESC 'the dovecot address to match as username'
        EQUALITY caseIgnoreIA5Match
        SUBSTR caseIgnoreIA5SubstringsMatch
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )

attributetype ( ImmaeattributeType:9 NAME 'immaePostfixHome'
	DESC 'the postfix home directory'
	EQUALITY caseExactIA5Match
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )

attributetype ( ImmaeattributeType:10 NAME 'immaePostfixMail'
	DESC 'the dovecot mail location'
	EQUALITY caseExactIA5Match
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )

attributetype ( ImmaeattributeType:11 NAME 'immaePostfixUid'
	DESC 'the dovecot uid'
	EQUALITY caseExactIA5Match
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )

attributetype ( ImmaeattributeType:12 NAME 'immaePostfixGid'
	DESC 'the dovecot gid'
	EQUALITY caseExactIA5Match
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )

objectclass ( ImmaeobjectClass:6 NAME 'immaePostfixClass'
	DESC 'Expansion of the existing object classes for Postfix'
	SUP top AUXILIARY
	MAY ( immaePostfixHome $ immaePostfixMail $ immaePostfixUid $ immaePostfixGid )
	MUST ( immaePostfixAddress )
        )

# Tinc informations
# Domaine = une classe a part ou une partie du dn ?
# attributetype ( ImmaeattributeType:13 NAME 'immaeTincIpSegment'
#         DESC 'the internal ip segment in tinc'
#         EQUALITY caseIgnoreIA5Match
#         SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )
# 
# attributetype ( ImmaeattributeType:14 NAME 'immaeTincSubdomain'
#         DESC 'the host subdomain'
#         EQUALITY caseIgnoreIA5Match
#         SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )
# 
# attributetype ( ImmaeattributeType:15 NAME 'immaeTincHostname'
#         DESC 'the host name'
#         EQUALITY caseIgnoreIA5Match
#         SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )
# 
# objectclass ( ImmaeobjectClass:7 NAME 'immaeTincHostClass'
# 	DESC 'Expansion of the existing object classes for Tinc'
# 	SUP top AUXILIARY
# 	MUST ( immaeTincInternalIp $ immaeTincSubdomain $
#         immaeTincHostname )
#         )

attributetype (ImmaeattributeType:16 NAME 'immaePuppetJson'
	DESC 'Puppet hiera json'
	EQUALITY octetStringMatch
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.40 )

objectclass ( ImmaeobjectClass:8 NAME 'immaePuppetClass'
	DESC 'Expansion of the existing object classes for Puppet'
	SUP top AUXILIARY
	MUST ( immaePuppetJson )
        )

attributetype (ImmaeattributeType:19 NAME 'immaeTaskId'
	DESC 'Taskwarrior server Org:Name:Key'
	EQUALITY caseIgnoreMatch
	SUBSTR caseIgnoreSubstringsMatch
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} )

objectclass ( ImmaeobjectClass:9 NAME 'immaeTaskClass'
	DESC 'Expansion of the existing object classes for Task'
	SUP top AUXILIARY
	MUST ( immaeTaskId )
        )

# Peertube uid
attributetype ( ImmaeattributeType:20 NAME 'immaePeertubeId'
	DESC 'login for Peertube'
	EQUALITY caseIgnoreMatch
	SUBSTR caseIgnoreSubstringsMatch
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} )

objectclass ( ImmaeobjectClass:10 NAME 'immaePeertubeClass'
	DESC 'Expansion of the existing object classes for peertube'
	SUP top AUXILIARY
	MUST ( immaePeertubeId ) )


# Last:
# attributetype ( ImmaeattributeType:20 NAME 'immaePeertubeId'
# objectclass ( ImmaeobjectClass:10 NAME 'immaePeertubeClass'