1 Date: Mon, 29 Jun 2015 12:04:28 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.5.4)
3 Content-Type: application/x-phpwiki;
4 pagename=Help%2FLdapSearchPlugin;
7 Content-Transfer-Encoding: binary
9 The **~LdapSearch** [[Help:WikiPlugin|plugin]] displays a LDAP query as table.
21 <<LdapSearch host=ldap.example.com filter="(ou=web-team)"
22 attributes="sn cn telephonenumber">>
23 <<LdapSearch host="ldap.itd.umich.edu" basedn="" filter="(sn=jensen)" attributes="cn drink">>
24 <<LdapSearch host=ldap.example.com attributes="cn sn telephonenumber">>
25 <<LdapSearch host=bugs.debian.org port=10101 basedn="dc=current,dc=bugs,dc=debian,dc=org"
26 filter="(debbugsPackage=phpwiki)"
27 attributes="debbugsSeverity debbugsState debbugsTitle">>
39 | hostname or ip or ldap:// uri to connect to.
40 | from LDAP_AUTH_HOST or localhost
43 | portnumber to connect to.
44 | from LDAP_AUTH_HOST or 389
47 | connect string: "ou=Users,o=Development,dc=mycompany.com"
51 | Optional ldap_search() filter argument
55 | space separated fields to return as table columns: "cn sn"
59 | ldap_set_option(). Column separated name=value pairs. Esp. needed for Windows Active directory: "LDAP_OPT_PROTOCOL_VERSION=3:LDAP_OPT_REFERRALS=0"
60 | LDAP_SET_OPTION if host == LDAP_AUTH_HOST
63 | user and password are required for Windows Active directory.
64 | Default: LDAP_AUTH_USER if host == LDAP_AUTH_HOST
67 | user and password are required for Windows Active directory.
68 | Default: LDAP_AUTH_PASSWORD if host == LDAP_AUTH_HOST
73 <<WikiFormRich action=LdapSearch
74 editbox[] name=host value=bugs.debian.org size=80
75 editbox[] name=port value=10101 size=80
76 editbox[] name=basedn value="dc=current,dc=bugs,dc=debian,dc=org" size=80
77 editbox[] name=filter value="(debbugsPackage=phpwiki)" size=80
78 editbox[] name=attributes value="debbugsSeverity debbugsState debbugsTitle" size=80
89 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]