You can check this link: 
http://stackoverflow.com/questions/6661674/ldap-and-user-groups-require-ldap-group

For now, I have created the group structure inside my database, so:

1- I login in Ldap
2- (if yes) I check the group in my database



On Jul 12, 3:18 pm, Jose de Soto <josedes...@gmail.com> wrote:
> Hello,
>
> I am developing a APP  and I would like to use this APP with our LDAP
> and filter the users by groups. I have this code in APACHE:
>
>                 AuthLDAPURL ldap://localhost/ou=users,dc=comain,dc=com?uid
>                 AuthLDAPGroupAttribute memberUid
>                 AuthLDAPGroupAttributeIsDN off
>                 AuthzLDAPAuthoritative on
>                 Require ldap-group
> cn=developer,cn=testers,cn=groups,dc=domain,dc=com
>
> It works fine. Only people from the list developer and tester can get
> inside this area. I am trying to do the same in Web2py, but I can not
> make a filter from the groups
>
> I have this code and is working ok without groups:
>
> auth.settings.login_methods=[ldap_auth(mode='uid_r',server='localhost',port='389',
> base_dn='ou=users,dc=domain,dc=com', filterstr='objectClass=*')]
>
> I not sure how to use: Require ldap-group in web2py.
>
> Anyone can help me?
>
> In advance many thanks

Reply via email to