Date: Fri, 11 Jan 2013 11:16:51 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0) Content-Type: application/x-phpwiki; pagename=Help%2FLdapSearchPlugin; flags=PAGE_LOCKED; markup=2; charset=UTF-8 Content-Transfer-Encoding: binary The **~LdapSearch** [[Help:WikiPlugin|plugin]] displays a LDAP query as table. == Usage == {{{ <> <> <> <> <> <> }}} == Arguments == {| class="bordered" |- ! 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 == <> == Author == * John Lines == See Also == ---- [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]