You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by gus <gu...@gmx.net> on 2002/02/16 23:54:37 UTC
LDAP workaround?
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: LDAP workaround?
Posted by gus <gu...@gmx.net>.
gus schrieb:
> 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.
Or is it better to create the appropriate user with the first login in
jetspeed/turbine?
It's for an intranet so I don't need that user register themselves.
Has anybody done something like that before?
gus
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>