Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading active directory infos
Message
 
 
To
08/06/2007 06:39:18
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MySQL
Miscellaneous
Thread ID:
01231513
Message ID:
01231521
Views:
18
The code is from Re: How to get the full username(displayname) from the AD Message #984716. 2 years seems enough time to understand it. :)
The first parameter is the name of the user. If it's not supplied, currently logged use name is assumed.
lcUserName = "JohnDoe"
oUser = GetADUserInfo(lcUserName, .T.)
* Update user title
oUser.Put("Title", "Sr. Programmer/Analist")
* Save
oUser.SetInfo()
>
>Our application use the following procedure at start to get some infos about the current user.
>
<snip>
>
>I just copied it from an example file ! ;-)
>Everything works as expected, nevertheless i don't really understand it !!!
>
>Now i have to sync a SAP System with our application.
>I have a cursor with employeeids and some spezial infos from SAP and
>i need to find the ad infos for a given employeeid (not for the current logon user).
>
>I don't know how to handle this.
>Can someone give me an example, how to read the ad infos for a given employeeid ???????
>
>Any help welcomed
>Best regards
>Albert
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform