How do I run a ldap query using R? <p>I want to make a query against a LDAP directory of how employees are distributed in departments and groups...</p> <p>Something like: "<em>Give me the department name of all the members of a group</em>" and then use R to make a frequency analysis, but I can not find any examples on how to connect and run a LDAP query using R.</p> <p>RCurl seems to have some kind of support ( <a href="http://cran.r-project.org/web/packages/RCurl/index.html" rel="nofollow">http://cran.r-project.org/web/packages/RCurl/index.html</a> ):</p> <blockquote> <p>Additionally, the underlying implementation is robust and extensive, supporting FTP/FTPS/TFTP (uploads and downloads), SSL/HTTPS, telnet, dict, <strong>ldap</strong>, and also supports cookies, redirects, authentication, etc.</p> </blockquote> <p>But I am no expert in R and have not been able to find a single example using RCurl (<em>or any other R library</em>) to do this..</p> <p>Right now I am using <strong>CURL</strong> like this to obtain the members of a group:</p> <pre><code>curl "ldap://ldap.replaceme.com/o=replaceme.com?memberuid?sub?(cn=group-name)" </code></pre> <p>Anyone here knows how to do the same in R with RCurl?</p>