Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Is it possible to do an LDAP query from a script include?

pgiroux
Tera Contributor

Hi all,

Just wondering if it's possible to return information from an LDAP query directly in a script include function?

4 REPLIES 4

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello Patrick,



You may find the below thread helpful.


Reading LDAP in a script


Hi --



Just wondering where I could find more information on Glide classes like 'GlideLDAP' and 'GlideLDAPConfig'. Can you shed some light on where we can see more information about the settings/parameters that you can set?



Thank you, Patrick


pgiroux
Tera Contributor

I was able to get the different methods by running:



for(var members in new GlideLDAP())


{


gs.print(members);


}



in the 'Scripts - Background' section, but I'm not able to get any details on what parameters these methods are expecting to see...


Thanks for finding that, this also helped:



Reading LDAP for a single user and populating sys_user