|
Joseph, I'm glad that it looks like someone will finally get the time to look at the LDAP code. The InitialDirContextFactory is basically a wrapper bean to create JNDI connections, so it really is (or should be) agnostic as to how you do user authentication. I agree that it is probably cleaner to use composition rather than inheritance. Basically the InitialDirContextFactory boils down to 3 cases: 1) anonomous bind against the LDAP server followed by user lookup; 2) use of a manager username/password to bind followed by user lookup; 3) use of username to both bind and as a by-product authenticate. In addition to the HEAD, you should probably look at the "ldap_refactor_07-20-2005" tag (for the providers/dao/ldap directory), as that was where I playing around with my latest ideas before I ran out of time to work on Acegi. My usecase is different than your's, and I'm not really sure how prevalent either one is. My usecase is that I have multiple sub-contexts for different categories of users within "my" LDAP server under which different sets of users are stored; I'd like to be able to authenticate against a subset of these contexts so I don't just want to search the whole parent tree everytime, just the particular sub-contexts from which user's would have access. I suspect that there is more than one way to do this, but I'd like to be able to do so as concisely as possible (with consideration also going to clarity). If you do have any questions I'd be happy to try an answer them; just keep in mind that I've been working on non-Java related projects since late spring, so I'm a bit out-of-touch with the code at the moment. Joseph Dane wrote: I've been going over the LDAP DAO stuff, and I thought I'd send some notes out before I actually start any work. Which isn't, unfortunately, to say that I positively will be able to work on this. Time constraints, and all that. Also, I know that the current state is meant to be a simplification of some of the previous work, which I agree was necessary, but I think we need to at least enable some of the different ways people use LDAP. |
- [Acegisecurity-developer] LDAP Dao Status Robert r. Sanders
- Re: [Acegisecurity-developer] LDAP Dao Status Ben Alex
- Re: [Acegisecurity-developer] LDAP Dao Status Ben Alex
- Re: [Acegisecurity-developer] LDAP Dao Stat... Joseph Dane
- [Acegisecurity-developer] LDAP Dao Status Joseph Dane
- Re: [Acegisecurity-developer] LDAP Dao ... Robert Sanders
