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?
Remote Authentication
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.
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"?
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?