/[adm]/puppet/modules/openldap/templates/mandriva-dit-access.conf
ViewVC logotype

Annotation of /puppet/modules/openldap/templates/mandriva-dit-access.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 82 - (hide annotations) (download)
Thu Nov 4 12:06:15 2010 UTC (13 years, 5 months ago) by buchan
File size: 6477 byte(s)
ACLs:
  Add ACLs required for self-registration application to registrar system group
  Allow Account admins to unlock accounts (write to pwdAccountLockedTime)
  Allow users to update their email address and preferredLanguage
Schema:
  Switch to rfc2307bis (replacing nis.schema and autofs.schema)
  Add LPK

1 misc 53 # mandriva-dit-access.conf
2    
3     limits group="cn=LDAP Replicators,ou=System Groups,dc=mageia,dc=org"
4     limit size=unlimited
5     limit time=unlimited
6    
7     limits group="cn=LDAP Admins,ou=System Groups,dc=mageia,dc=org"
8     limit size=unlimited
9     limit time=unlimited
10    
11     limits group="cn=Account Admins,ou=System Groups,dc=mageia,dc=org"
12     limit size=unlimited
13     limit time=unlimited
14    
15     # so we don't have to add these to every other acl down there
16     access to dn.subtree="dc=mageia,dc=org"
17     by group.exact="cn=LDAP Admins,ou=System Groups,dc=mageia,dc=org" write
18     by group.exact="cn=LDAP Replicators,ou=System Groups,dc=mageia,dc=org" read
19     by * break
20    
21     # userPassword access
22 buchan 82 # Allow account registration to write userPassword of unprivileged users accounts
23     access to dn.subtree="ou=People,dc=mageia,dc=org"
24     filter="(&(objectclass=inetOrgPerson)(!(objectclass=posixAccount)))"
25     attrs=userPassword,pwdReset
26     by group/groupOfNames/member.exact="cn=registrars,ou=system groups,dc=mageia,dc=org" +a
27     by * +0 break
28    
29 misc 53 # shadowLastChange is here because it needs to be writable by the user because
30     # of pam_ldap, which will update this attr whenever the password is changed.
31     # And this is done with the user's credentials
32     access to dn.subtree="dc=mageia,dc=org"
33     attrs=shadowLastChange
34     by self write
35     by group.exact="cn=Account Admins,ou=System Groups,dc=mageia,dc=org" write
36     by * read
37     access to dn.subtree="dc=mageia,dc=org"
38     attrs=userPassword
39     by group.exact="cn=Account Admins,ou=System Groups,dc=mageia,dc=org" write
40     by self write
41     by anonymous auth
42     by * none
43    
44     # kerberos key access
45     # "by auth" just in case...
46     access to dn.subtree="dc=mageia,dc=org"
47     attrs=krb5Key
48     by self write
49     by group.exact="cn=Account Admins,ou=System Groups,dc=mageia,dc=org" write
50     by anonymous auth
51     by * none
52    
53     # password policies
54     access to dn.subtree="ou=Password Policies,dc=mageia,dc=org"
55     by group.exact="cn=Account Admins,ou=System Groups,dc=mageia,dc=org" write
56     by * read
57    
58     # samba password attributes
59     # by self not strictly necessary, because samba uses its own admin user to
60     # change the password on the user's behalf
61     # openldap also doesn't auth on these attributes, but maybe some day it will
62     access to dn.subtree="dc=mageia,dc=org"
63     attrs=sambaLMPassword,sambaNTPassword
64     by group.exact="cn=Account Admins,ou=System Groups,dc=mageia,dc=org" write
65     by anonymous auth
66     by self write
67     by * none
68     # password history attribute
69     # pwdHistory is read-only, but ACL is simplier with it here
70     access to dn.subtree="dc=mageia,dc=org"
71     attrs=sambaPasswordHistory,pwdHistory
72     by self read
73     by group.exact="cn=Account Admins,ou=System Groups,dc=mageia,dc=org" write
74     by * none
75    
76     # pwdReset, so the admin can force an user to change a password
77     access to dn.subtree="dc=mageia,dc=org"
78 buchan 82 attrs=pwdReset,pwdAccountLockedTime
79 misc 53 by group.exact="cn=Account Admins,ou=System Groups,dc=mageia,dc=org" write
80     by * read
81    
82     # group owner can add/remove/edit members to groups
83     access to dn.regex="^cn=[^,]+,ou=(System Groups|Group),dc=mageia,dc=org$"
84     attrs=member
85     by dnattr=owner write
86     by * break
87    
88     # let the user change some of his/her attributes
89     access to dn.subtree="ou=People,dc=mageia,dc=org"
90 buchan 82 attrs=carLicense,homePhone,homePostalAddress,mobile,pager,telephoneNumber,mail,preferredLanguage
91 misc 53 by self write
92     by * break
93    
94     # create new accounts
95     access to dn.regex="^([^,]+,)?ou=(People|Group|Hosts),dc=mageia,dc=org$"
96     attrs=children,entry
97     by group.exact="cn=Account Admins,ou=System Groups,dc=mageia,dc=org" write
98     by * break
99     # access to existing entries
100     access to dn.regex="^[^,]+,ou=(People|Hosts|Group),dc=mageia,dc=org$"
101     by group.exact="cn=Account Admins,ou=System Groups,dc=mageia,dc=org" write
102     by * break
103    
104     # sambaDomainName entry
105     access to dn.regex="^(sambaDomainName=[^,]+,)?dc=mageia,dc=org$"
106     attrs=children,entry,@sambaDomain,@sambaUnixIdPool
107     by group.exact="cn=Account Admins,ou=System Groups,dc=mageia,dc=org" write
108     by * read
109    
110     # samba ID mapping
111     access to dn.regex="^(sambaSID=[^,]+,)?ou=Idmap,dc=mageia,dc=org$"
112     attrs=children,entry,@sambaIdmapEntry
113     by group.exact="cn=Account Admins,ou=System Groups,dc=mageia,dc=org" write
114     by group.exact="cn=IDMAP Admins,ou=System Groups,dc=mageia,dc=org" write
115     by * read
116    
117     # global address book
118     # XXX - which class(es) to use?
119     access to dn.regex="^(.*,)?ou=Address Book,dc=mageia,dc=org"
120     attrs=children,entry,@inetOrgPerson,@evolutionPerson,@evolutionPersonList
121     by group.exact="cn=Address Book Admins,ou=System Groups,dc=mageia,dc=org" write
122     by * read
123    
124     # dhcp entries
125     # XXX - open up read access to anybody?
126     access to dn.sub="ou=dhcp,dc=mageia,dc=org"
127     attrs=children,entry,@dhcpService,@dhcpServer,@dhcpSharedNetwork,@dhcpSubnet,@dhcpPool,@dhcpGroup,@dhcpHost,@dhcpClass,@dhcpSubClass,@dhcpOptions,@dhcpLeases,@dhcpLog
128     by group.exact="cn=DHCP Admins,ou=System Groups,dc=mageia,dc=org" write
129     by group.exact="cn=DHCP Readers,ou=System Groups,dc=mageia,dc=org" read
130     by * read
131    
132     # sudoers
133     access to dn.regex="^([^,]+,)?ou=sudoers,dc=mageia,dc=org$"
134     attrs=children,entry,@sudoRole
135     by group.exact="cn=Sudo Admins,ou=System Groups,dc=mageia,dc=org" write
136     by * read
137    
138     # dns
139     access to dn="ou=dns,dc=mageia,dc=org"
140     attrs=entry,@extensibleObject
141     by group.exact="cn=DNS Admins,ou=System Groups,dc=mageia,dc=org" write
142     by * read
143     access to dn.sub="ou=dns,dc=mageia,dc=org"
144     attrs=children,entry,@dNSZone
145     by group.exact="cn=DNS Admins,ou=System Groups,dc=mageia,dc=org" write
146     by group.exact="cn=DNS Readers,ou=System Groups,dc=mageia,dc=org" read
147     by * none
148    
149 buchan 82 # registration - allow registrar group to create basic unprivileged accounts
150     access to dn.subtree="ou=People,dc=mageia,dc=org"
151     attrs="objectClass"
152     val="inetOrgperson"
153     by group/groupOfNames/member.exact="cn=registrars,ou=system groups,dc=mageia,dc=org" write by * +0 break
154    
155     access to dn.subtree="ou=People,dc=mageia,dc=org"
156     attrs="cn,sn,gn,mail,entry,children"
157     by group/groupOfNames/member.exact="cn=registrars,ou=system groups,dc=mageia,dc=org" +a break
158     by * +0 break
159    
160 misc 53 # MTA
161     # XXX - what else can we add here? Virtual Domains? With which schema?
162     access to dn.one="ou=People,dc=mageia,dc=org"
163     attrs=@inetLocalMailRecipient,mail
164     by group.exact="cn=MTA Admins,ou=System Groups,dc=mageia,dc=org" write
165     by * read
166    
167     # KDE Configuration
168     access to dn.sub="ou=KDEConfig,dc=mageia,dc=org"
169     by group.exact="cn=KDEConfig Admins,ou=System Groups,dc=mageia,dc=org" write
170     by * read
171    
172     # last one
173     access to dn.subtree="dc=mageia,dc=org" attrs=entry,uid,cn
174     by * read
175    

  ViewVC Help
Powered by ViewVC 1.1.30