http://stackoverflow.com/questions/749268/how-can-i-find-out-which-server-hosts-ldap-on-my-windows-domain

This should let you query LDAP instance to no which one it is then you can
manage you flag by updating the authenticated user record...

This should work or I miss something?

Richard

On Tue, Dec 15, 2015 at 4:47 PM, Richard Vézina <[email protected]
> wrote:

> Why user should decide? I was on the impression that the limitation was
> more because one user may not be present in LDAP instance and you want them
> to log despite that... Maybe I was wrong in my assomption...
>
> Richard
>
> On Tue, Dec 15, 2015 at 3:35 PM, Jonathan R <[email protected]> wrote:
>
>> The answer is actually in your question. like I said I'm using the
>> solution 2 and I need a way to determine which instance I'm talking to.
>> I'm using a boolean in my queries to assign the correct information but I
>> need a way to set the value of the boolean accordingly.
>> that's the only purpose of this post (and the other post that I linked
>> earlier in the thread).
>>
>> This post is about letting the user decide which server to use (meaning
>> that I'll have to reduce auth.settings.auth_method to this single server)
>> The other post is about letting the user authenticate (trying both
>> auth_method ) and find a way to determine which one was successful.
>>
>> I hope this explanation will be enough.
>>
>> I'm close to an end with the solution exposed in this thread I only need
>> to "update" the auth_method after the login page is loaded (which  I don't
>> know if it is possible).
>>
>> thanks.
>>
>> --
>> 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.

Reply via email to