Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LDAP ACL help
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
maiku
l33t
l33t


Joined: 24 Mar 2004
Posts: 601
Location: Escaping from NY

PostPosted: Wed Oct 24, 2007 4:51 am    Post subject: LDAP ACL help Reply with quote

I'm very fairly new to LDAP ACL programming. I tried to set it up so that I could have remote address books and sync them as well as have user accounts in LDAP. Of course what ended up happening is that I couldn't get any other machine on the network to authenticate with the server's LDAP. Then I got a from my co-worker saying that qmail wasn't delivering any mail because it thought the mailboxes for users in LDAP didn't exist.

Quote:
access to dn.regex="^uid=[^,]+,ou=People,dc=teknetronic,dc=com$"
by set.expand="(user/uid) &
[cn=Administrators,ou=Group,dc=teknetronic,dc=com]/memberUid" write
by anonymous auth
by self write
by * none

# allow admins to add new accounts to the tree
access to dn.regex="^ou=People,dc=teknetronic,dc=com$"
attrs=children
by set.expand="(user/uid) &
[cn=Administrators,ou=Group,dc=teknetronic,dc=com]/memberUid" write
by * none

# allow users readonly access to accounts in their own domain
access to dn.regex="ou=People,dc=teknetronic,dc=com$"
attrs=entry
by dn.children="ou=People,dc=teknetronic,dc=com" read
by users none break
by * none


#######################################################################
#
# Access to groups
#
#######################################################################


# allow admins to add new groups to the tree
access to dn.regex="^ou=Group,dc=teknetronic,dc=com$"
attrs=children
by set.expand="(user/uid) &
[cn=Administrators,ou=Group,dc=teknetronic,dc=com]/memberUid" write
by * none


#######################################################################
#
# Access to personal addressbooks
#
#######################################################################

# allow admins to add new personal addressbooks to the tree
access to dn.regex="^ou=personal,ou=contacts,dc=teknetronic,dc=com$"
attrs=children
by set.expand="(user/uid) &
[cn=Administrators,ou=Group,dc=teknetronic,dc=com]/memberUid" write
by * none

# allow admins to add new personal addressbooks
# user can read the addressbooks only
access to
dn.regex="^cn=([^,]+),ou=personal,ou=contacts,dc=teknetronic,dc=com$"
attrs=entry
by dn.exact,expand="uid=$1,ou=People,dc=teknetronic,dc=com" read
by set.expand="(user/uid) &
[cn=Administrators,ou=Group,dc=teknetronic,dc=com]/memberUid" write
by * none

# allow user and egwadmin to manage personal addressbook entries
access to
dn.regex="cn=([^,]+),ou=personal,ou=contacts,dc=teknetronic,dc=com$"
by dn.exact,expand="uid=$1,ou=People,dc=teknetronic,dc=com" write
by set.expand="(user/uid) &
[cn=Administrators,ou=Group,dc=teknetronic,dc=com]/memberUid" write
by * none

#######################################################################
#
# Access to group addressbooks
#
#######################################################################

# allow admins to add new group addressbooks to the tree
access to dn.regex="^ou=shared,ou=contacts,dc=teknetronic,dc=com$"
attrs=children
by set.expand="(user/uid) &
[cn=Administrators,ou=Group,dc=teknetronic,dc=com]/memberUid" write
by users none

# allow admins to add new group addressbooks
# groupmembers can read the addressbooks only
access to
dn.regex="^cn=([^,]+),ou=shared,ou=contacts,dc=teknetronic,dc=com$"
attrs=entry
by set.expand="(user/uid) &
[cn=Administrators,ou=Group,dc=teknetronic,dc=com]/memberUid" write
by set.expand="(user/uid) &
[cn=$1,ou=Group,dc=teknetronic,dc=com]/memberUid" write
by * none

# allow groups and egwadmin to manage group addressbook entries
access to dn.regex="cn=([^,]+),ou=shared,ou=contacts,dc=teknetronic,dc=com$"
by set.expand="(user/uid) &
[cn=Administrators,ou=Group,dc=teknetronic,dc=com]/memberUid" write
by set.expand="(user/uid) &
[cn=$1,ou=Group,dc=teknetronic,dc=com]/memberUid" write
by * none
Any help on optimizing and suggestions would be very welcome.
_________________
Michael
Back to top
View user's profile Send private message
maiku
l33t
l33t


Joined: 24 Mar 2004
Posts: 601
Location: Escaping from NY

PostPosted: Wed Oct 24, 2007 8:28 pm    Post subject: Reply with quote

bump
_________________
Michael
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum