[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 959
  • Last Modified:

LogonUser problem

I'm using the LogonUser to interact with the user dektop from within a service.
The call is:
if LogonUser(PChar(User), PChar(Domain), PChar(Password), LOGON32_LOGON_INTERACTIVE, LOGON32_PROVIDER_DEFAULT, Token) then
....

So for example
LogonUser(PChar('MyUser'), PChar('.'), PChar('MyPassword') - works

This works when I have the user logon with a password but I can't make it work when there is no password

LogonUser(PChar('MyUser'), PChar('.'), PChar('') - DOES NOT

Thanks
0
phadar
Asked:
phadar
1 Solution
 
Russell LibbySoftware Engineer, Advisory Commented:
Have no idea. I was only attempting to answer your original question as to why the call failed with a blank password.

Russell

0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now