Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AD Authentication?
Message
 
 
To
02/03/2023 14:29:40
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:
01686304
Views:
29
>>>Do I understand correctly (sorry for many questions) that the username to a PC is the username your code needs to connect to the AD?
>
>For LDAP It's not actually a username, it's a "Distinguished Name" (DN) with other stuff included. Check out the example in the code with username and "example.com" domain components, and it's worth visiting that site for some more examples of dn involving Organizational Units (groups) and usernames.
>
>The code attempts a LDAP "bind" with the DN and password. Success means credentials are valid.
>
>>>In this case, if this is correct, I simply need to find out one of my customers username and password and test your code.
>
>You'll also need their domain components, so if it's newexample.com you might have for your DN uid=customerusername,dc=newexample,dc=com
>
>(Yes the dc is wierd, but that's what LDAP expects.)
>
>>>So far, as I wrote before, my code connects to the AD by only using the username. I am a little confused as to how my .NET app can connect to the AD without a password.
>
>Maybe you're connecting as the currently logged-in user? Is it using LogonUser or LDAP behind the scenes? What parameters?

One other follow up question (feel free to ignore me if I am asking to much :)
In my application, there is a feature called User Groups. User Group defines what features of the application are allowed to all users assigned to a group. And it can be very granular. That is, when building a user group, a customer can say that such and such user group can produce reports A, B, and Z. Other reports are not allowed.
Then, each user is assigned to a user group.
In your case, when you authenticate a user by AD (using domain, username, and password), how would you assign a user to this or that user group?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform