Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AD Authentication?
Message
From
22/02/2023 13:39:58
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01686248
Message ID:
01686257
Views:
60
Thanks, Dmitry.

I wonder whether anybody else can cast light on this. Certainly there's plenty of reference to Windows LogonUser API. There's classes for this in mainstream products like West Wind Web Connect etc. While LogonUser delivers a token to allow impersonation, you can discard the token after confirming that the credentials authenticate.

But at this customer, LogonUser refuses to accept credentials. It always responds with error 1326, the Username or Password is incorrect- even if you enter a non-existent AD.

This is from a West Wind Webconnect app, but also from a standard Windows .exe. The customer's network guru says that only 1% of apps have a problem with this AD and that he is unfamiliar with LogonUser; apparently LDAP via wscript or API is the norm. They have LDAP console apps that demonstrate easy authentication via LDAP_INIT and Bind API.

What is everybody else doing? We've had LogonUser working fine elsewhere, but now this customer is assuming it's a fault in the app. Do we need to swap to LDAP API?

I'm already advised of one difference: LogonUser logs into the machine whereas LDAP API interrogates the database. So it could be something to do with security/trust settings, with browser app users allowed to use the app but not to log onto the server itself. Is there something the customer needs to do with security to enable Logonuser? Any advice or official links to this effect would be awesome.
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us.
"
-- Shakespeare: Coriolanus, Act 1, scene 1
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform