Link to home
Start Free TrialLog in
Avatar of misty_rhymes
misty_rhymes

asked on

Using NT user id for accessing the application.

Hi,

I have a requirement that goes as follows:

There would be a web-based application that would be built on weblogic application server. The web server would also be weblogic. The user would login into his NT machine and can then open the browser and type the URL to this web-based application. This applicaiton would only be accessible from intranet.

When the user types in the URL, there would be no login screen presented to the user. Instead, it is required that the user directly reaches the homepage of the application. Since, not all the users would have access to this application, there is a requirement to get this user's NT loginid and validate the same against the application users. I have been trying to use getRemoteUser() method in the request object but that always returns null. I think there would be some setting required at the web server level so that getRemoteUser() does not return null. Can anyone help please?

Thanks
Avatar of barrel
barrel

NT uses Active Directory which is a form of LDAP if I am correct.

Have a look at LDAP authentication in Weblogic

Cheers,
Barry
is it possible to somehow append

System.getProperty("user.name")

to your homepage and then retrieve it on the server end and see if the user is valid?

vemul
Hmmm... I am sure why you would like to do this via system properties.... Normally you would do this via some sort of form-based authentication in combination with the enterprise server.
Ok, what I just wrote is not very clear :-)

I am NOT sure why you would like to pass a username via system properties....
Avatar of misty_rhymes

ASKER

Hi Barry,

Thanks for your comments. Using the LDAP authentication would not really help me. I just need to know what settings at the web server level do I need to make to ensure that getRemoteUser() does not return null.

Hi Vemul,
I know that using system properties will work. But it is not feasible in the context that we have here.

Cheers!
ASKER CERTIFIED SOLUTION
Avatar of sumit_only
sumit_only

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks Sumit_Only,

That worked !!!
Regards