[Moin-user] Moinmoin 1.7.0, LDAP (ActiveDirectory) and Group based acls

Bernd Bartmann bernd.bartmann at gmail.com
Tue Jul 22 06:30:13 EDT 2008


On Tue, Jul 22, 2008 at 10:49 AM, Thomas Waldmann wrote:
>
>> superuser = [u"Bba114Sb", u"Bpe135Sb"]
>
> OK.
>
>> acl_rights_before = (u"Bba114Sb:read,write,delete,revert,admin"
>> u"Bpe135Sb:read,write,delete,revert,admin")
>> acl_rights_default = (u"RDUsersGroup:read,write,delete,revert"
>> u"All:")
>
> That's incorrect. You can concatenate strings in Python that way, but
> you forgot the blank between the 2 ACL entries. Look:
>
>>>> (u"foo" u"bar")
> u'foobar'
>
> So if you want to keep that way of doing things (and not just use 1 long
> unicode string), you have to add one blank at the end of each string
> (except the last string, but it does no harm if you do it there also).
>
> But maybe using just this is easier:
>
> acl_rights_default = u"RDUsersGroup:read,write,delete,revert All:"

Ok. So now I've changed the acl_rights to:

acl_rights_before = (u"Bba114Sb:read,write,delete,revert,admin
Bpe135Sb:read,write,delete,revert,admin")
acl_rights_default = (u"RDUsersGroup:read,write,delete,revert All:")

Access for the admin user Bpe135Sb now works fine, but still no go for
users in the RDUsersGroup.

Best regards,
Bernd.




More information about the Moin-user mailing list