Diff: Help/LdapSearchPlugin

Note: You are viewing an old revision of this page. View the current version.

Differences between version 2 and previous revision of Help/LdapSearchPlugin.

Other diffs: Previous Major Revision, Previous Author

Newer page: version 2 Last edited on 22 May 2014 3:01 by harold Revert
Older page: version 1 Last edited on 17 January 2022 18:35 by harold Revert
@@ -44,9 +44,9 @@
 | "(cn=*)" 
 |- 
 | **attributes** 
 | space separated fields to return as table columns: "cn sn" 
-| // empty//  
+| empty 
 |- 
 | **options** 
 | ldap_set_option(). Column separated name=value pairs. Esp. needed for Windows Active directory: "LDAP_OPT_PROTOCOL_VERSION=3:LDAP_OPT_REFERRALS=0" 
 | LDAP_SET_OPTION if host == LDAP_AUTH_HOST 

version 2

The LdapSearch plugin displays a LDAP query as table.

Usage

<<LdapSearch>>
<<LdapSearch
           host="localhost"
           port=389
           basedn=""
           filter="(cn=*)"
           attributes=""
>>
<<LdapSearch host=ldap.example.com filter="(ou=web-team)"
                      attributes="sn cn telephonenumber">>
<<LdapSearch host="ldap.itd.umich.edu" basedn="" filter="(sn=jensen)" attributes="cn drink">>
<<LdapSearch host=ldap.example.com attributes="cn sn telephonenumber">>
<<LdapSearch host=bugs.debian.org port=10101 basedn="dc=current,dc=bugs,dc=debian,dc=org"
                      filter="(debbugsPackage=phpwiki)"
                      attributes="debbugsSeverity debbugsState debbugsTitle">>

Arguments

Argument

Description

Default value

host

hostname or ip or ldap:// uri to connect to.

from LDAP_AUTH_HOST or localhost

port

portnumber to connect to.

from LDAP_AUTH_HOST or 389

basedn

connect string: "ou=Users,o=Development,dc=mycompany.com"

LDAP_BASE_DN

filter

Optional ldap_search() filter argument

"(cn=*)"

attributes

space separated fields to return as table columns: "cn sn"

empty

options

ldap_set_option(). Column separated name=value pairs. Esp. needed for Windows Active directory: "LDAP_OPT_PROTOCOL_VERSION=3:LDAP_OPT_REFERRALS=0"

LDAP_SET_OPTION if host == LDAP_AUTH_HOST

user

user and password are required for Windows Active directory.

Default: LDAP_AUTH_USER if host == LDAP_AUTH_HOST

password

user and password are required for Windows Active directory.

Default: LDAP_AUTH_PASSWORD if host == LDAP_AUTH_HOST

Examples

host 
port 
basedn 
filter 
attributes 

Author

  • John Lines

See Also