User Authentication from java application to a database without giving the password
sambasiva kumar
Greenhorn
Joined: Jan 16, 2007
Posts: 24
posted
0
Hi Folks,
I am trying to authenticate a user and connect to the database without giving the password.
The other thing is that we should not use the properties file to set the Username and Password, which we generally do to connect to a data base using the DSN names, etc.,
I had gone through the User Authentication using the Windows. and also the data direct but could not find a solution.
please let me know if any feasible solution for this.
There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.
Whether you can do this will probably be determined by which RDBMS you are using. For example, it is possible to use NTLM authentication with SQL Server (assuming your driver is jTDS). Which database are you using?
Well, I've never heard of anyone doing it, but I understand you can configure an external authentication source for an Oracle database, with could be an Active Directory repository. But that's the database itself -you'd also need a driver that support NTLM and I don;t think the drivers supplied with Oracle do (you'd better check this - I'm not 100% sure). You might have to buy a third party driver such as DataDirect.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: User Authentication from java application to a database without giving the password