Re: [web2py] Re: LDAP-auth debugging

2013-09-17 Thread Richard Vézina
cn:1 and cn:2 works for me : from gluon.contrib.login_methods.ldap_auth import ldap_auth auth.settings.login_methods = [auth, ldap_auth(mode='ad', bind_dn='domain\user', bind_pw='password', manage_groups=False, manage_user=True, user_firstname_attrib='cn:1', user_lastname_attrib='cn

[web2py] Re: LDAP-auth debugging

2013-09-17 Thread D.
Never mind - the problem is in a messed-up configuration of different OUs ...there's no default Groups-Key in my environment - I'll have to customize ldap_auth.py all the way for recursive searches etc. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.c

[web2py] Re: LDAP-auth debugging

2013-09-16 Thread D.
OK, I figured out the first part: settings.domain_name used to be "ldap://domain.com"; -> changing this to just "domain.com" makes web2py query the ldap-server. There seems to be a problem in my case with get_user_groups_from_ldap: The search for username in line 634 return the users full-name in

[web2py] Re: LDAP-auth debugging

2013-09-16 Thread D.
Here are my auth-settings auth = Auth(db, secure=True) auth.define_tables(username=True) auth.settings.create_user_groups=False auth.settings.actions_disabled = ['register','change_password','request_reset_password','retrieve_username','profile'] auth.settings.create_user_groups = False auth.setti