We were able to get the SecureSite (6.x-2.3) and LDAP (6.x-1.0-alpha2) modules to work together; however, in our setup, automatically creating accounts for new LDAP-based users takes several log-in attempts.
#1-3 Usually, after three failed authentication attempts, SecureSite will stop prompting for HTTP_Auth
#4 LDAP Auth then presents a form-based authentication prompt; looks like this one will handle the auto account creation correctly
#5 Then, SecureSite takes back over and prompts one more time
Very ugly indeed. We created a patch which allows people to pass an optional parameter to the _ldapauth_auth() function to automatically register new users with the system.
Reference: http://drupal.org/node/551738#comment-1941448
If there is a cleaner way or some other re-factoring, that's fine.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | ldap_integration6.x-1.0-beta2-securesitefix.patch | 1.59 KB | stacysimpson |
Comments
Comment #1
stacysimpson commentedWe made the attached enhancement to allow secure site to integrate cleanly.
Comment #2
stacysimpson commentedComment #3
johnbarclay commentedI pushed this to head on 6.x-1.x. Looks like its well tested and will only affect use case where new parameter is passe to _ldapauth_auth($name, $pass, $create_account = FALSE)