m******y 发帖数: 588 | 1 Hi, all
I wrote a dll with delphi using Windows API Logonuser and
NetUserChangePassword which is called to impersonate a user from ASP. It's
much like the example on
http://support.microsoft.com/default.aspx?scid=kb;EN-US;248187
I got it working all right on my localhost. I can logon and change password.
But when I put those asp pages on the web servers of our company and
registered dll, it was unable to work and give me the error "Logon failure:
unknown user name or bad password." Of course I g | c**t 发帖数: 2744 | 2 sounds like permission issue.
【在 m******y 的大作中提到】 : Hi, all : I wrote a dll with delphi using Windows API Logonuser and : NetUserChangePassword which is called to impersonate a user from ASP. It's : much like the example on : http://support.microsoft.com/default.aspx?scid=kb;EN-US;248187 : I got it working all right on my localhost. I can logon and change password. : But when I put those asp pages on the web servers of our company and : registered dll, it was unable to work and give me the error "Logon failure: : unknown user name or bad password." Of course I g
| s***f 发帖数: 173 | 3 hi there,
It seems like a big secuity thing. Maybe this is because in most situations
you will log in to your own machine as an administrator, and consequently
never stumble into any permissions issues. An administrator of a machine is
the god of that machine. In your case, you need to make sure that you logon to
the web server as an adminsitrator in the company.
【在 m******y 的大作中提到】 : Hi, all : I wrote a dll with delphi using Windows API Logonuser and : NetUserChangePassword which is called to impersonate a user from ASP. It's : much like the example on : http://support.microsoft.com/default.aspx?scid=kb;EN-US;248187 : I got it working all right on my localhost. I can logon and change password. : But when I put those asp pages on the web servers of our company and : registered dll, it was unable to work and give me the error "Logon failure: : unknown user name or bad password." Of course I g
|
|