-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathschema
More file actions
150 lines (126 loc) · 4.92 KB
/
Copy pathschema
File metadata and controls
150 lines (126 loc) · 4.92 KB
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
# The Private Enterprise Number assigned to TCD Netsoc :D
objectIdentifier netsoc 1.3.6.1.4.1.33566
# Netsoc LDAP attributes
objectIdentifier na netsoc:1
# Netsoc LDAP objectclasses
objectIdentifier no netsoc:2
# OIDs for LDAP syntaxes
objectIdentifier syntax 1.3.6.1.4.1.1466.115.121.1
objectIdentifier boolean syntax:7
objectIdentifier directoryString syntax:15
objectIdentifier distinguishedName syntax:12
objectIdentifier integer syntax:27
objectIdentifier numericString syntax:36
objectIdentifier OID syntax:38
objectIdentifier octetString syntax:40
# ISS username
attributetype ( na:1
NAME 'tcdnetsoc-ISS-username'
DESC 'ISS username'
SINGLE-VALUE
EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX directoryString )
# Year of membership, e.g. "2008-2009"
# This attribute corresponds to payment of the membership fee for that year
# A given user often has multiple values for this attribute
attributetype ( na:3
NAME 'tcdnetsoc-membership-year'
DESC 'Year of membership'
EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX directoryString )
attributetype ( na:4
NAME 'tcdnetsoc-admin-comment'
DESC 'Comment'
EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX directoryString )
attributetype ( na:5
NAME 'tcdnetsoc-service-granted'
DESC 'Service that a privilege grants access to'
EQUALITY distinguishedNameMatch SYNTAX distinguishedName )
attributetype ( na:6
NAME 'tcdnetsoc-granted-by-privilege'
DESC 'Privilege sufficient to grant access to a service'
EQUALITY distinguishedNameMatch SYNTAX distinguishedName )
attributetype ( na:7
NAME 'tcdnetsoc-diskquota'
DESC 'Disk quota entry (host:fs:blocks_soft:blocks_hard:inodes_soft:inodes_hard)'
EQUALITY caseIgnoreMatch SYNTAX directoryString )
attributetype ( na:8
NAME 'tcdnetsoc-diskusage'
DESC 'Disk usage entry (host:fs:blocks_used:blocks_soft:blocks_hard:inodes_used:inodes_soft:inodes_hard)'
EQUALITY caseIgnoreMatch SYNTAX directoryString )
attributetype ( na:9
NAME 'tcdnetsoc-mysql-pw'
DESC 'MySQL password for per-user database'
SINGLE-VALUE
EQUALITY caseExactMatch SYNTAX directoryString )
attributetype ( na:10
NAME 'tcdnetsoc-value'
DESC 'Configuration setting stored in LDAP'
EQUALITY caseExactMatch SYNTAX directoryString )
attributetype ( na:11
NAME 'tcdnetsoc-saved-password'
DESC 'Saved password of a disabled user'
EQUALITY octetStringMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.40{128} )
# A member or user of Netsoc
# This covers every person in the database. Those who are currently paid-up members
# will have a tcdnetsoc-membership-year attribute storing the current year.
# For those who don't have usernames (e.g. members who paid but never signed up for
# an account, the uid field is the same as the uidNumber field).
# The RDN is given by the uid field (so, user mu may be in LDAP with the DN of
# "uid=mu,ou=people,dc=netsoc,dc=tcd,dc=ie"
# Details pertaining to a shell account are stored in the posixAccount objectclass
# (see nis.schema), so that pam+ldap is possible.
# Mail aliases are also stored here
# there may be other attributes inherited from inetOrgPerson and its parents
# useful ones include sn (required), cn (required), userPassword, jpegPhoto,
# mail, userSMIMECertificate.
# A user may also have an amavisAccount object for amavis prefs.
objectclass ( no:1
NAME 'tcdnetsoc-person'
DESC 'Member or user of Trinity College Dublin Internet Society'
STRUCTURAL
MUST (
uidNumber $ cn )
MAY (
uid $ gidNumber $ homeDirectory $ tcdnetsoc-ISS-username $ tcdnetsoc-membership-year $
tcdnetsoc-admin-comment $ mail $ userPassword $ loginShell $ tcdnetsoc-diskquota $ tcdnetsoc-diskusage $ tcdnetsoc-mysql-pw $
tcdnetsoc-saved-password $
sambaSID $
sambaLMPassword $ sambaNTPassword $ sambaPwdLastSet $
sambaLogonTime $ sambaLogoffTime $ sambaKickoffTime $
sambaPwdCanChange $ sambaPwdMustChange $ sambaAcctFlags $
displayName $ sambaHomePath $ sambaHomeDrive $ sambaLogonScript $
sambaProfilePath $ description $ sambaUserWorkstations $
sambaPrimaryGroupSID $ sambaDomainName $ sambaMungedDial $
sambaBadPasswordCount $ sambaBadPasswordTime $
sambaPasswordHistory $ sambaLogonHours) )
objectclass ( no:2
NAME 'tcdnetsoc-group'
DESC 'Group of TCD Netsoc accounts'
SUP posixGroup
STRUCTURAL
MUST ( gidNumber )
MAY ( member $ sambaSID $ sambaGroupType ) )
objectclass ( no:3
NAME 'tcdnetsoc-idnum'
DESC 'Object to hold an ID number'
SUP top
STRUCTURAL
MUST ( cn $ serialNumber ) )
objectclass ( no:4
NAME 'tcdnetsoc-privilege'
DESC 'Privilege granting access for some users to some services'
SUP tcdnetsoc-group
STRUCTURAL
MAY ( tcdnetsoc-service-granted ) )
objectclass ( no:5
NAME 'tcdnetsoc-service'
DESC 'Service accessible by Netsoc users with the right privileges'
STRUCTURAL
MUST ( cn )
MAY ( tcdnetsoc-granted-by-privilege $ userPassword $ uid $ mail ) )
objectclass ( no:6
NAME 'tcdnetsoc-setting'
DESC 'Arbitrary name-value setting'
STRUCTURAL
MUST ( cn )
MAY ( tcdnetsoc-value ) )