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