Hello, there,
I've just downloaded and installed this module and found a few features missing (for me, anyway ;). One of them is that you need to form the DN for the user to be authenticated manually, via the LDAP login pattern and LDAP login replacement settings (if I'm right). What I'd prefer is connect to the LDAP server anonymously, do a query to determine a dn, then use that dn to connect and authenticate. (This is much what courier's ldapauth package does, thence the idea.) If feasible, of course...
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | ldap_integration.module | 16.68 KB | pablobm |
Comments
Comment #1
pablobm commentedSorry, but my knowledge of LDAP is quite limited. Anyway I'd love to implement such idea, so... do you know what type of query would determine a proper DN?.
Comment #2
(not verified) commentedI'm not an LDAP expert myself, my understanding is limited to what I've seen other software do. I give it a try, anyway. Beforehand, however, a question: am I correct that authentication works by binding to the LDAP server (specified by "LDAP server") and with DN formed through "LDAP login replacement" and the password the user gave, then run the query formed via "LDAP filter" and consider the login successful if both binding and the query succeeded?
[It would look logical, except that if it works this way, then I don't see the point of including the username in the filter (as suggested).]
Also, do I understand that the %username used in the filter is just the string before the first @ in the username, independent of the setting of "LDAP login pattern"?
Sorry for the flood of questions, I don't read php very well.
Please let me know.
--Gábor
Comment #3
(not verified) commentedOops, I take the comment in squere brackets back.
--Gábor
Comment #4
pablobm commentedI see I haven't placed the setting in a logical order in the configuration page. I've arranged them again so their relation (and the mechanism) is more understandable.
Now it reads this way:
Also, I have changed the explanatory text for LDAP search filter, that was just a remnant from a prior version and didn't make much sense to me.
So, when users log in, the only information needed is that contained in the "Users" group above. When using the searching facility, it is the info at "Search" the one used. Searches need the user to be logged on, too.
Comment #5
pablobm commentedCVS is not working for me at the moment, so I upload here the new version of the module featuring the new settings page.
By the way, does anybody know what's wrong when I get the next output from my CVS client?:
Comment #6
pablobm commentedThis seems to be a duplicate of issue #18899.