Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Active Directory User Names
Message
 
 
To
07/08/2019 09:48:37
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01669941
Message ID:
01669952
Views:
37
>>Hi,
>>
>>First, general AD question. Is each user name in the AD unique? That is, there is only one JOHN SMITH and next person with the same name would have to be somewhat different; e.g. JOHN SMITH2?
>>
>>Second question. Can you get ALL user names in the AD from a VFP 9 application? If yes, how?
>>
>>TIA
>
>First question: No. You should check properties like userPrincipalName, adsPath, objectGUID, distinguishedName for unique info (well it has been over 10 years I last dealt with its code, maybe not remembering the property names right).
>
>Second Question. Yes you can and there is more than one way, and unfortunately I don't remember pros/cons one over another (likely you would use both). Below codes are from my backyard written 10-15+ years ago, please don't ask me details. All I remember I also created some UI for them to pick up groups and fields and mark the uniqueId one etc (can't give that proprietary code, the ones below was the main parts of that):
>

Thank you for the sample code; I won't ask for more details. You don't remember what you did 10 years ago and I don't remember what I did 6 months ago. So, as far as I am concerned, your memory is not so bad :)
"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
Reply
Map
View

Click here to load this message in the networking platform