Skip to content

Instantly share code, notes, and snippets.

@jeremyshantz
Created January 26, 2015 20:22
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save jeremyshantz/1b42a2d7f45d8bbc3bcb to your computer and use it in GitHub Desktop.
Save jeremyshantz/1b42a2d7f45d8bbc3bcb 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