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.

Comments

stacysimpson’s picture

Version: 6.x-1.0-alpha2 » 6.x-1.0-beta2
Status: Active » Needs review
StatusFileSize
new1.59 KB

We made the attached enhancement to allow secure site to integrate cleanly.

stacysimpson’s picture

Status: Needs review » Reviewed & tested by the community
johnbarclay’s picture

Version: 6.x-1.0-beta2 » 6.x-1.x-dev
Assigned: Unassigned » johnbarclay
Status: Reviewed & tested by the community » Fixed

I 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)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.