Could you set ldap_auth's *logging_level* to debug and see (in console) 
what's happening? Or you could specify *allowed_groups*=['some group name'] 
if there a logic error and login  works only with allowed_groups set.

Sorry I have no AD to test. With ldap it works. So I need a bit help...

2012. október 20., szombat 7:44:20 UTC+2 időpontban software.ted a 
következőt írta:
>
> Yes that's one am referring to. The moment I introduce the parameter 
> manage_groups users fail to login against AD...this is my sample code:
>
> from gluon.contrib.login_methods.ldap_auth import ldap_auth 
> auth.settings.login_methods = [ldap_auth(mode='ad', manage_groups= True, 
> bind_dn = 'CN=Admin,DC=example,DC=co,DC= zm', bind_pw = 'ADPASSWORD', 
> group_dn = 'DC= example,DC=co,DC=zm', group_name_attrib = 'cn', 
> group_member_attrib = 'member', group_filterstr = 'objectClass=Group', 
> server='xxx.xxx.xxx.xxx', base_dn='dc=example,dc=co,dc=zm')] 
> Any reason why group management is not working? Is there another way I can 
> use AD users and assign rolls to certain users?
>
> Teddy L.
>  On Oct 19, 2012 8:46 PM, "Massimo Di Pierro" 
> <massimo....@gmail.com<javascript:>> 
> wrote:
>
>> Are you talking about ldap_auth?
>>
>> On Friday, 19 October 2012 02:38:39 UTC-5, software.ted wrote:
>>>
>>> I am having trouble with manage_group=True, when I enable it i am 
>>> getting "Invalid Login" but without it logins work. Does AD Group 
>>> Management in web2py work? 
>>>
>>> Kind regards, 
>>>
>>  -- 
>>  
>>  
>>  
>>
>

-- 



Reply via email to