Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LDAP partial field list
Message
General information
Forum:
Windows
Category:
Administration & Security
Miscellaneous
Thread ID:
01132601
Message ID:
01132608
Views:
6
This message has been marked as the solution to the initial question of the thread.
David,
for each loUser in loUsers
	? loUser.DS_CN, loUser.DS_SAMAccountName
endfor
It works fine for me either way (But, for some unknown to me reason, we do not have the ds_department, at least we do not have it populated). Usually the ExecQuery does not give an error even when there is a syntax error in the WQL statement (not that I see one in yours), but the error comes when you try to use the result set. What does loUsers.Count return?

[Update]

FWIW, for I could not use department for they are all null, I used:
loUsers = loLDAP.ExecQuery( [Select * from ds_user where ds_SAMAccountName = 'RAN02' ])
* AND
loUsers = loLDAP.ExecQuery( [Select DS_CN, DS_SAMAccountName, ds_department from ds_user where ds_SAMAccountName = 'RAN02' ])
for each loUser in loUsers
	? loUser.DS_CN, loUser.DS_SAMAccountName, loUser.ds_department
endfor
[/update]
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform