Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Active Directory & ADSystemInfo

Status
Not open for further replies.

kuiporng

Programmer
Sep 24, 2009
3
0
0
CA
I am investgating how to retrive O/S username information using powerbuider coding, find this from the net:
OleObject ads

ads = CREATE OleObject

ads.ConnectToNewObject( "ADSystemInfo" )

// CN=Doe\,Joe,OU=something,OU=somewhere,DC=bigbuilding,DC = local

MessageBox("Active Directory - Username",String(ads.UserName))


which is quite nice,

how do I know what other attributes I can obtain from ads object besides UserName in above example, UserName is nice but it is a strange format...

any help is appreciated....
 
I checked all the Google returned, but none of them are for Powerbuilder, they are for other languages... when I tried the same attributes with powerbuilder, few of them work (actually only one so far which is domandnsname)... I just wonder if someone knows a way or what are the exact parameters rather than this try and error approach...
 
Thanks, that does the trick. I believe the link you provided is the ultimate source for listing all properties.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top