On Thu, Aug 10, 2006 at 12:41:21PM -0600, Scott Paul Robertson wrote: > 2. An option that is a function that will be called to generate a bind > string for the user. This gives a lot of flexibility in allowing for a > large variety of pre-bind methods to occur, and gives a lot of > flexibility. I like the idea of adding this rather than an additional > method to be added into the main backend code. > > Let me know what you think of having that as a function you call rather > than being directly in the backend. I'm not against adding it in, I just > think this gives a lot more flexibility. Heck, we could add the method > of pre-auth binding as a default method provided by the backend and just > have users set the option to that if they want to use it. I actually > like that idea, I might code that up this afternoon. :) >
Ok, I've added a newer patch that fixes a small bug (the bind string functions now expects the ldap object and the username), and added a method that performs the pre-auth as requested, with an example of how to use it. So now we've got that functionality, and any additional ways to generate bind strings that you can dream of. I'm enjoying this far too much. I need to get back to work :) Scott (url: http://code.djangoproject.com/attachment/ticket/2507/backends.py.3.diff) -- Scott Paul Robertson http://spr.mahonri5.net GnuPG FingerPrint: 09ab 64b5 edc0 903e 93ce edb9 3bcc f8fb dc5d 7601
signature.asc
Description: Digital signature