Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

database connect with logged-in user

Status
Not open for further replies.

kaeserea

Programmer
Feb 26, 2003
164
DE
Hello!

the function odbc_connect() needs user and password. Yet I'd like to connect to the database with the logged-in user but don't know how. Is it possible to connect with the username only? In the database I'd then legitimate the indvidual users. (I know the username, but not password of course.)

Thanx,
Eva
 
In order to connect to the database you need username and password. If you want to compare the password to the database record you need a 'control' user who has at least SELECT capability to authenticate on the initial check.

How are you authenticating the user? Basic HTTP auth?
Read:
 
Hi!

I have an IIS Server where I turned on the "Challenge Response" functionality. Thus I get the username (the one with which he logged into the computer) through a global variable. The user doesn't has to authenticate himself but is recognized automatically. Therefore I don't have the password.

Regards
Eva
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top