简体   繁体   中英

LDAP Search from Google Apps Script (ideally within Sheets)?

I see that there's a somewhat-similar question to this here , but it's 8 years old, so I thought I might ask again:

Is there any way to do an LDAP search from within a Google Apps Script (like ldapsearch on the command line, or an ldaps call)? Even better would be if that script could run within Google Sheets.

My hope is that I might be able to take a column of email addresses in a Sheet and fill in subsequent columns with details from our LDAP server. I know I could do it from python connecting to both Sheets and LDAP, but I'm hoping to implement something a bit more user-friendly for the nontechnical folks that would find that useful. I also know that I can do RESTful https calls from Google Apps Script, but I haven't found a way to do ldaps calls.

There is not any native Apps Script LDAP service

You could always make a feature request if you think its significant.

Workaround

You could write a library within Apps Script to wrap your HTTP requests, and so, abstracting the request to a level more suited to your users.

Then you could just tell your users to add your library and provide some instructions on how to use your classes or functions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM