Remote Authentication

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.
Post Reply
shoaibi
Cadet
Posts: 6
Joined: Sun Feb 18, 2007 9:56 pm

Remote Authentication

Post by shoaibi »

I am developing a java application on RHEL5, which takes username and password from the user, and then authenticates it from the linux operating system.
How is that possible? i mean the authentication part?
is there a service/daemon in linux that can perform user authentication on behalf of a request from a java application?
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

it depends. your subject says "remote" but your description doesn't say anything about remote authentication.

the simplest way to do remote (or local) authentication is to run a pop server on the linux machine. have the user type in their username/password in the java app, then have it use the standard java mail libraries to login to the pop server. it's not secure because the password goes across the network unencrypted.

alternatively, you could run a radius server on the linux box, and use a java radius library to authenticate the user. your only problem will be configuring the radius server to authenticate against /etc/passwd, and not some other password file.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
shoaibi
Cadet
Posts: 6
Joined: Sun Feb 18, 2007 9:56 pm

Post by shoaibi »

has anybody tried JPAM?
Post Reply