ldapsearch: Search LDAP

Description Usage Arguments Details Value Examples

View source: R/ldapr.R

Description

This function serves as interface to the console function ldapsearch. It allows to bind to a LDAP server and search for attributes. The syntax of this function is based on the syntax of ldapsearch http://www.openldap.org/software/man.cgi?query=ldapsearch&sektion=1&manpath=OpenLDAP+2.4-Release

Usage

1

Arguments

...

Parameters for the call to ldapsearch. Each parameter must be named (e.g. h for the host definition) and may also be NULL for an parameter without value. Some values, like D must be double quoted for evaluation within quotes.

Details

This package requires the library openldap to be installed (https://www.openldap.org/).

Value

Named list of returned attributes or NULL if the call wasn't successful.

Examples

1
ldapsearch(x = NULL, h = 'ldap.myhost.org', D = '"QueryUserName\@myDomain"', w = 'QueryUserPassword', b = '"CN=SomeUser,OU=Users,DC=SomeDomain"')

LukasK13/ldapr documentation built on May 28, 2019, 7:22 a.m.