Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LDAP partial field list
Message
 
 
To
All
General information
Forum:
Windows
Category:
Administration & Security
Title:
LDAP partial field list
Miscellaneous
Thread ID:
01132601
Message ID:
01132601
Views:
80
Does anyone know the syntax or if it's possible to bring back only certain properties of interest? This works fine but takes a relatively long time to pull all of the data most of which I don't give a rip about:
loLDAP = Getobject('Winmgmts://./root/directory/ldap')
loUsers = loLDAP.ExecQuery( [Select * from ds_user where ds_department = 'IT' ])
But if I try this:
loUsers = loLDAP.ExecQuery( [Select ds_cn, ds_samaccountname from ds_user where ds_department = 'IT' ])
It doesn't throw an error, but iterating over loUsers gives me obtuse OLE errors.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Next
Reply
Map
View

Click here to load this message in the networking platform