Hi!
I'd like to connect the Jetspeed portal with my Active Directory using LDAP. I
know LDAP authentication is not integrated in Jetspeed/Turbine so I think of the
following workaround:
I'd like to create dummy users (UserA, UserB, ...) in Jetspeed. According to the
users in Jetspeed I create groups in Active Directory (GroupA, GroupB, ...)
where I put my AD users in.
The I write my own ("Action" class derived) "LoginUser" class and implement it
like that:
public void doPerform( RunData data ) throws Exception
{
[...]
if (myLDAP.authenticate(username, password)) {
switch (myLDAP.getJetspeedGroup()) {
'GroupA':
runData.getParameters ().setString ( "username", "UserA" );
break;
'GroupB':
runData.getParameters ().setString ( "username", "UserB" );
break;
[...]
}
runData.getParameters ().setString ( "password", "secret" );
[...]
}
ActionLoader.getInstance ().exec ( runData, "JLoginUser" );
[...]
}
Before I start implementing this I'd like to know if this could work that way?
Guido
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>