Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LDAP partial field list
Message
 
 
À
Tous
Information générale
Forum:
Windows
Catégorie:
Administration & Sécurité
Titre:
LDAP partial field list
Divers
Thread ID:
01132601
Message ID:
01132601
Vues:
81
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform