Is there an alternative instead modify ldap_auth.py module?

any help will be appreciated
maurizio


Il giorno mercoledì 26 marzo 2014 10:21:17 UTC+1, maurizio ha scritto:
>
> ldap_auth() got an unexpected keyword argument 'user_employeeid_attrib'
> Il giorno lunedì 24 marzo 2014 12:24:03 UTC+1, maurizio ha scritto:
>>
>> Hi all,
>> i try to manage extra custom field from ldap via ldap_auth user attribute:
>> but I can't figure out how to manage it...
>> any idea?
>>
>> code snippet:
>>
>> auth.settings.extra_fields['auth_user']= [
>>     Field('employeeid' , type='string')]
>> ...
>> ...
>>
>> auth.settings.login_methods = [ldap_auth(mode = 'ad',
>>     server = 'DCserver',
>>     base_dn = 'DC=domain,DC=it',
>>     db = db,
>>     manage_user = True,
>>     user_firstname_attrib = 'givenName',
>>     user_lastname_attrib = 'sn',
>>     user_mail_attrib = 'mail'
>>     user_employeeid_attrib = 'employeeID'
>>     )]
>>
>> thanks in advance
>> maurizio
>>
>

-- 
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.

Reply via email to