I've setup Alfresco to work with an LDAP server, and I can login fine. My next step was to have the login page re-direct the LDAP webapp, which is an external login screen, and have the user login there and then be redirected back to Alfresco. The reason for this is because the LDAP webapp sets a cookie which other applications on the same domain use. However, doing it this way, I'd need to authenticate with the information inside of the cookie.
I'm using the CustomLoginBean example that comes with the Alfresco SDK as a starting point, and I can read the values from the cookie just fine (a user ID which equals their LDAP username and a key which is used to verify that they're logged in with the LDAP server), however, I'm not sure how to authenticate / login to Alfresco with that information. In the parent LoginBean.class file, I see this is done through the AuthenticationService, but that requires both a username and a password. Is there a way to authenticate and just pass along the username?
As a side note, the way this was done in the app I'm migrating from (which I inherited) was to have every user in the ECM system have the same password, and then have the login access points point to the LDAP webapp. The app would then use the cookie and the LDAP server to authenticate and then internally login the user in with the common password (though the user would never see this common password). This seems a bit hackish and I'd want to avoid it if possible, especially since Alfresco auto-syncs the users with LDAP.
Thanks for any assistance/advice/etc,
- Pat