May be possible that you don't specify the proper AD fields, try to specify
field in the connection string, like that :
from gluon.contrib.login_methods.ldap_auth import ldap_auth
auth.settings.login_methods = [auth, ldap_auth(mode='ad',
bind_dn='USERNAME',
bind_pw='PASSWORD',
manage_groups=False,
manage_user=True,
user_firstname_attrib='cn:1',
user_lastname_attrib='cn:2',
server='SERVERNAME',
user_mail_attrib='mail',
base_dn='dc=DC,dc=DOMAIN',
logging_level='error',
db=db)]
Hope it help.
Richard
On Fri, Apr 4, 2014 at 9:13 AM, Ray Allen <[email protected]>wrote:
> I've got an application authenticating against AD/LDAP but the auth table
> only gets updated with username / password credentials
>
> How might I make it so the auth table populates the firstname and lastname
> fields with the information in AD? Currently the firstname field uses the
> username field from AD.
>
> Thanks,
> Ray
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.