Skip to content

Instantly share code, notes, and snippets.

@alpoza
Forked from jeremyshantz/Query LDAP from R
Created September 26, 2017 09:31
Show Gist options
  • Save alpoza/b3b0af1a116a875215c4ffa27f0a24ed to your computer and use it in GitHub Desktop.
Save alpoza/b3b0af1a116a875215c4ffa27f0a24ed to your computer and use it in GitHub Desktop.
Query LDAP from R
library(RCurl)
val <- getURL('ldap://ldap.domain.net/DC=domain,DC=net?sAMAccountName?sub?(employeeID=0123456)',
.opts=list(userpwd = "DOMAIN\\domainid:password"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment