Feel free to send me (personal email) what you have and I will take a look.
On Dec 22, 1:52 am, Dan <[email protected]> wrote: > Yes, I can help to test with AD environment. > > I did changes in auth_ldap.py on the retrieveAttributes > > retrieveAttributes =['displayName','mail','sAMAccountName'] > > and I can get the "result" with my correct AD info > > result = {'mail': ['[email protected]'], 'displayName': > ['XXXX.Dan'], 'sAMAccountName': ['MyADName']} > > But still can not pass those above info into DB.py or default.py. > > On Dec 22, 12:15 pm, Massimo Di Pierro <[email protected]> > wrote: > > > > > > > > > Not yet. If you are available to help testing we can it done soon. > > > On Dec 21, 4:13 am, Dan <[email protected]> wrote: > > > > Hi all, > > > > I'm a newbie on web2py. I'm using web2py 1.99.4 and successfully used > > > auth_ldap to pass the authentication, and after that I want to create > > > AD user's info (DisplayName, Email, etc)into the database in db.py. > > > > But It seems that I only got the db.auth_user.name, others like > > > "db.auth_user.email" are empty. > > > > In the post-login page auth_user are > > > <Storage {'username': 'MyADName', 'first_name': 'MyADName', > > > 'last_name': '', 'registration_id': '', 'id': 5, 'reset_password_key': > > > '', 'password': None, 'registration_key': '', 'email': ''}> > > > > I know in the auth_ldap.py we only query/search "sAMAccountName" from > > > AD system. It that possible we query more"DisplayName or Email" and > > > using it in the db.py? Many thanks.

