Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

User Authentication from java application to a database without giving the password

 
sambasiva kumar
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thanks in advance.

cheers
Sambasiva
 
Scott Selikoff
author
Saloon Keeper
Posts: 4014
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"kumarsambasuresh kumarsambasuresh"

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.

Thanks!
Scott
JavaRanch Bartender
 
sambasiva kumar
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks for the suggestion.
Somebody give me the solution for this query.

Thanks in Advance.

Cheers
Sambasiva
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
sambasiva kumar
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

i am using Oracle10g.

Thanks in advance

cheers
Sambasiva
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic