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
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
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
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
4 matches
Mail list logo