Hey Richard,

Sorry to come back to this seemingly answered question! Although this did 
answer my question, I'm running into an issue now. Something happened in 
which required us all to change our ldap passwords, and though I would 
assume that if we used our new passwords, web2py would fail to match it 
with the password in the db and would use ldap next and login would still 
work, this doesn't seem to be the case. It is failing completely with the 
new ldap password. Any ideas on that?

Thanks!
M

On Tuesday, January 14, 2014 6:52:51 AM UTC-8, Richard wrote:
>
> Hello Maggs,
>
> What you can do is to have 2 differents authentication process the 
> internal web2py process that will allow you to have a password as before 
> and then LDAP process... But you will not have password from LDAP you will 
> have two differents password, except if the user set the same password in 
> both, but you will not know this. The only thing I am not sure of is if it 
> possible to still allow user tu update their password since I restrict this 
> option, but I think you can still have the option on.
> # Here my setup 
> auth.settings.actions_disabled.extend(['change_password', 
> 'request_reset_password', 'retrieve_username'])
>
> I guess remove change_password could allow users to change their internal 
> web2py password even if you use LDAP (not tested).
>
> And for activate both authentication you do :
>
> auth.settings.login_methods = [auth, ldap_auth(mode='ad', ...)]
>
> You see auth is web2py default authentication process... So if you user 
> enter their web2py password they will authenticate against web2py, if they 
> enter their AD password the auth method will failed ant LDAP 
> authentification will be used...
>
> Hope it help...
>
> Richard
>
>
> On Mon, Jan 13, 2014 at 8:30 PM, Maggs <[email protected] <javascript:>
> > wrote:
>
>> Hi all,
>>
>> I am running web2py 2.5.1 and have my auth set up to use secure ldap. 
>> Since switching from regular to secure ldap, I've noticed that web2py no 
>> longer saves the passwords of any newly added accounts to the db. Though I 
>> understand the reason for this since it's secure and all, I do actually 
>> need the passwords to be saved here. Is there a way to turn this on 
>> manually? I have done a whole lot of googling and reading through 
>> documentation to no avail. Apparently I'm the only person to ever want to 
>> do such a thing.
>>
>> Thanks,
>> Maeghan
>>
>> -- 
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
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/groups/opt_out.

Reply via email to