Jump to Real's How-to Main page

Get information for the current user from the ADS

OleObject ads

ads = CREATE OleObject
ads.ConnectToNewObject( "ADSystemInfo" )

// CN=Doe\,Joe,OU=something,OU=somewhere,DC=bigbuilding,DC=local
MessageBox( "", String( ads.UserName ) )

If you find this article useful, consider making a small donation
to show your supportfor this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2005
[ home ]