You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Lanfeust troy <la...@gmail.com> on 2011/03/16 19:57:24 UTC
howto use restriction on ReadOnlyUsersLDAPRepository
Hi list,
i'm doing test on Apache James and i want to use the group restriction
on ReadOnlyUsersLDAPRepository.
all of my test do nothing.
I have always all of LDAP user.
in usersrepository.xml:
<usersrepository>
<!-- Read-Only LDAP based UsersRepository
-->
<repository name="LocalUsers"
class="org.apache.james.user.ldap.ReadOnlyUsersLDAPRepository"
ldapHost="ldap://obm3.kvm.rla:389"
principal="" credentials="" userBase="dc=local"
userIdAttribute="mailBox"
userObjectClass="obmUser">;
<restriction
memberAttribute="uniqueMember">
<group>cn=PermanentStaff,ou=Groups,o=myorg.co.uk
,ou=system</group>
<group>cn=TemporaryStaff,ou=Groups,o=myorg.co.uk
,ou=system</group>
</restriction>
</repository>
</usersrepository>
or with
<usersrepository>
<!-- Read-Only LDAP based UsersRepository
-->
<repository name="LocalUsers"
class="org.apache.james.user.ldap.ReadOnlyUsersLDAPRepository"
ldapHost="ldap://obm3.kvm.rla:389"
principal="" credentials="" userBase="dc=local"
userIdAttribute="mailBox"
userObjectClass="obmUser"/>;
<restriction memberAttribute="uniqueMember">
<group>cn=PermanentStaff,ou=Groups,o=myorg.co.uk
,ou=system</group>
<group>cn=TemporaryStaff,ou=Groups,o=myorg.co.uk
,ou=system</group>
</restriction>
</usersrepository>
I have nothing in log