wmulyadi
asked on
Upload.LogonUser - password hardcoded
Hi all,
I'm using aspupload
and am using Upload.LogonUser "domain", "usrname", "password".
I'm wondering if there is anyway I could avoid hard-coding the password?
I've tried:
Set dbObj = Server.CreateObject("ADODB .Recordset ")
dbObj.ActiveConnection = staff_login
dbObj.Source = "SELECT * FROM tblname WHERE username = '" & Session("username") & "'; "
Set Upload = Server.CreateObject("Persi ts.Upload" )
Upload.LogonUser "domain", dbObj("fieldUsrname"), dbObj("fieldPassword")
but it doesn't work.
it does work if I hardcoded the username and password though....
any idea...?
thanks in advance :D
I'm using aspupload
and am using Upload.LogonUser "domain", "usrname", "password".
I'm wondering if there is anyway I could avoid hard-coding the password?
I've tried:
Set dbObj = Server.CreateObject("ADODB
dbObj.ActiveConnection = staff_login
dbObj.Source = "SELECT * FROM tblname WHERE username = '" & Session("username") & "'; "
Set Upload = Server.CreateObject("Persi
Upload.LogonUser "domain", dbObj("fieldUsrname"), dbObj("fieldPassword")
but it doesn't work.
it does work if I hardcoded the username and password though....
any idea...?
thanks in advance :D
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
No comment has been added to this question in more than 21 days, so it is now classified as abandoned..
I will leave the following recommendation for this question in the Cleanup topic area:
Split: casstd & JagC & leechoonhwee
Any objections should be posted here in the next 4 days. After that time, the question will be closed.
masirof
EE Cleanup Volunteer
I will leave the following recommendation for this question in the Cleanup topic area:
Split: casstd & JagC & leechoonhwee
Any objections should be posted here in the next 4 days. After that time, the question will be closed.
masirof
EE Cleanup Volunteer
ASKER
be back until Tuesday, Aug. 10th.
I'll try your inputs when I get there.
Thanks a lot for the inputs.