Anonymous_User Absent Member.
Absent Member.
426 views

Preceding the RADIUS class with a custom one


(This is really more of a general question, doesn't necessarily relate
only to the RADIUS class, but just as an example...)

Hi,
I would like to prompt the user for some additional data, in addition
to the two input fields in the Novell supplied RADIUS authentication
class. This additional data must be verified BEFORE the RADIUS
authentication takes place.
Since I don't have the source for the RADIUS class, I created an
additional class, tested it - worked fine.
The problem is I don't want the user to be prompted twice. I would
like to present a single JSP, that is based on the RADIUS JSP, with the
addition of my custom prompts. The user would will in all required input
fields, say - the first two fields are for my custom class, the rest of
the fields would be used by the Novell class.
Is that possible at all?
What I did so far is creating a contract that uses two methods: 1st
method uses my custom class, the 2nd method uses Novell's RADIUS class.
Both methods uses the same custom JSP page.
This does not work correctly... After my class returns AUTHENTICATED,
the JSP is shown again to the user, prompts him for the "missing" RADIUS
credentials.

Thanks,
Ofer.


--
ofg
------------------------------------------------------------------------
ofg's Profile: http://forums.novell.com/member.php?userid=10439
View this thread: http://forums.novell.com/showthread.php?t=444886

Labels (1)
0 Likes
3 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Preceding the RADIUS class with a custom one

ofg wrote:

>
> (This is really more of a general question, doesn't necessarily relate
> only to the RADIUS class, but just as an example...)
>
> Hi,
> I would like to prompt the user for some additional data, in addition
> to the two input fields in the Novell supplied RADIUS authentication
> class. This additional data must be verified BEFORE the RADIUS
> authentication takes place.
> Since I don't have the source for the RADIUS class, I created an
> additional class, tested it - worked fine.
> The problem is I don't want the user to be prompted twice. I would
> like to present a single JSP, that is based on the RADIUS JSP, with
> the addition of my custom prompts. The user would will in all
> required input fields, say - the first two fields are for my custom
> class, the rest of the fields would be used by the Novell class.
> Is that possible at all?
> What I did so far is creating a contract that uses two methods: 1st
> method uses my custom class, the 2nd method uses Novell's RADIUS
> class. Both methods uses the same custom JSP page.
> This does not work correctly... After my class returns AUTHENTICATED,
> the JSP is shown again to the user, prompts him for the "missing"
> RADIUS credentials.


How about using the radiusClient class inside your custom auth class?
Its part of the nidp.jar
(com.novell.nidp.authentication.local.radius.RadiusClient). Not 100%
sure how to use it exactly but it will simplify your solution a bit.
There might be some other radius clients out there on the web that
would have proper documentation around it which might be easier to use.


--
Cheers,
Edward
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Preceding the RADIUS class with a custom one


edmaa;2139263 Wrote:
> ofg wrote:
> Hi Edward,
> Thanks for that input. I'm not sure I know how to do that correctly
> though. If you happen to have an example of calling one auth. class from
> another I'd be happy to see one.
> Will post back if I make any progress.
> Thank you!
> Ofer.
>
>
>
> >
> > (This is really more of a general question, doesn't necessarily

> relate
> > only to the RADIUS class, but just as an example...)
> >
> > Hi,
> > I would like to prompt the user for some additional data, in addition
> > to the two input fields in the Novell supplied RADIUS authentication
> > class. This additional data must be verified BEFORE the RADIUS
> > authentication takes place.
> > Since I don't have the source for the RADIUS class, I created an
> > additional class, tested it - worked fine.
> > The problem is I don't want the user to be prompted twice. I would
> > like to present a single JSP, that is based on the RADIUS JSP, with
> > the addition of my custom prompts. The user would will in all
> > required input fields, say - the first two fields are for my custom
> > class, the rest of the fields would be used by the Novell class.
> > Is that possible at all?
> > What I did so far is creating a contract that uses two methods: 1st
> > method uses my custom class, the 2nd method uses Novell's RADIUS
> > class. Both methods uses the same custom JSP page.
> > This does not work correctly... After my class returns AUTHENTICATED,
> > the JSP is shown again to the user, prompts him for the "missing"
> > RADIUS credentials.

>
> How about using the radiusClient class inside your custom auth class?
> Its part of the nidp.jar
> (com.novell.nidp.authentication.local.radius.RadiusClient). Not 100%
> sure how to use it exactly but it will simplify your solution a bit.
> There might be some other radius clients out there on the web that
> would have proper documentation around it which might be easier to use.
>
>
> --
> Cheers,
> Edward



--
ofg
------------------------------------------------------------------------
ofg's Profile: http://forums.novell.com/member.php?userid=10439
View this thread: http://forums.novell.com/showthread.php?t=444886

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Preceding the RADIUS class with a custom one

ofg wrote:

>
> edmaa;2139263 Wrote:
> > ofg wrote:
> > Hi Edward,
> > Thanks for that input. I'm not sure I know how to do that correctly
> > though. If you happen to have an example of calling one auth. class
> > from another I'd be happy to see one.
> > Will post back if I make any progress.
> > Thank you!


Sorry for the late reply. You are not calling one auth class from
another. I'm suggesting to use the radiusclient.class that is already
present. Downside is that there is no doc available for this class. I
would probably look for a existing radius client class out there on the
web and basically write your own radius auth class that does exactly
what you want it to do.




--
Cheers,
Edward
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.