I still have no means to test AD but I welcome all the help I can get :) Please put a
print '##%s##' % str(group_row) or logger.warning('##%s##' % str(group_row)) line to the gluon/contrib/login_methods/ldap_auth.py file line 627. Restart web2py try and send the printed lines back. It seems to me that AD results are in other format than ldap results... 2012. október 20., szombat 13:21:52 UTC+2 időpontban software.ted a következőt írta: > > Hi, went to the office to try out your suggestion. Honetly the debug > process is a little strange to me I had put a break at line with > ldap_auth() but the next toggled went to very cryptic code i couldn't > follow. > > On the other hand you suggested i try adding allowed_groups...i did > that and when i click on the login button am getting a ticket. I have > attached the ticket details, am not sure why its complaining about the > list being indices when your documentation says the list values for > allowed_groups should be str as follows: > allowed_groups=['group1','group2','etc']. > > I have also noticed your old post: > > "If there is somebody using ldap_auth with AD please try to test > allowed_groups and / or manage_groups as I have no means to test it. > And I do not know differences between OpenLdap and AD regarding groups > :( > > Tnx." > > You still have not tested the group feature? I am quiet surprised, > cause AD is widely used and you guys need to test. From the searches I > have done, looks like AD does not work well with web2py as far as > groups are concerned. > > I goes I have reached a dead end. > > :< > > Thanks for your help. > > Teddy L. > > > On Sat, Oct 20, 2012 at 9:52 AM, szimszon <szim...@gmail.com <javascript:>> > wrote: > > > > ldap_auth(...as usual...,logging_level='debug') > > > > 2012. október 20., szombat 9:29:44 UTC+2 időpontban software.ted a > > következőt írta: > >> > >> Whr do I set the log level and see how the code is executing I realy > need > >> that for debugging. > >> > >> On Oct 20, 2012 9:20 AM, "szimszon" <szim...@gmail.com> wrote: > >>> > >>> 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> > >>>> 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, > >>>>> > >>>>> -- > >>>>> > >>>>> > >>>>> > >>> > >>> -- > >>> > >>> > >>> > > > > -- > > > > > > > > > > -- > ....................................................................................... > > > Teddy Lubasi Nyambe > Opensource Zambia > Lusaka, ZAMBIA > > Cell: +260 97 7760473 > website: http://www.opensource.org.zm > > ~/ > Human Knowledge belongs to the world! - AntiTrust > > Man is a tool-using animal. Without tools he is nothing, with tools he > is all - Thomas Carlyle 1795-1881 > > /~ > --