oops, sorry, scratch this. Indeed, you wrote that you are able to use it for login. That is, your change is wrong...
On Friday, 31 July 2015 18:52:28 UTC+1, Dima Pasechnik wrote: > > All I can recall now is that you might need to authenticate to your > LDAP server to get a response. > Perhaps the errors you see are of this kind, it just refuses to talk to > you. > > When we ran such a setup back in 2011 we had to get a special account > to do this authentication, to have an unattended service. Probably one > can even dig up a patch that took care of this... > > I suggest that you try to play with your Python LDAP interface in an > interactive Python session... > > Dima > > > > On 31 July 2015 at 18:45, Jeff Taylor <[email protected]> wrote: > > Ah ok, I see I only have to restart sage itself for the changes to take > > place... So I've been testing various options, and so far everything > seems > > to prevent a valid login. Perhaps you can help with this? > > > > Initially in auth.py, I was trying to modify lines 94-95 like this: > > query = filter_format( > > '(&(objectClass=*)(%s=%s))', > > (self._conf['ldap_username_attrib'], username)) > > > > If I can't match this, then nothing else is going to work, right? > Except > > this doesn't work either. The only error I get is that my password is > > wrong, which doesn't tell me anything useful. I tried adding the > following > > line immediately after setting query: > > print 'LDAP Query: %s' % query > > however nothing prints to the screen, nor do I see anything appear in > > sage.log. So if I try using a print statement for debugging, where > should I > > see the output? > > > > Failing thus far, I thought I would just manually set the query string > so I > > know exactly what is in it. First I tried this: > > query = '(uid=myUser)' > > and this worked exactly as expected, allowing me to log in. Next I set > it > > as follows: > > query = '(&(objectClass=*)(uid=myUser))' > > however this again fails to log in. WHY does this fail? This is a > valid > > LDAP search string, and it should always match on "objectClass=*" so why > > can't I log in with this query? > > > > Thanks for your help so far, at least I'm starting to make some progress > > now. > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
