]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2FLdapSearchPlugin
Improve LdapSearch
[SourceForge/phpwiki.git] / pgsrc / Help%2FLdapSearchPlugin
1 Date: Sat, 20 Jan 2007 16:38:14 +0100
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.13)
3 X-Rcs-Id: $Id: Help%2FLdapSearchPlugin,v 1.2 2007-01-21 23:23:49 rurban Exp $
4 Content-Type: application/x-phpwiki;
5   pagename=Help%2FLdapSearchPlugin;
6   pgsrc_version="2 $Revision: 1.2 $";
7   flags="";
8   markup=2;
9   charset=iso-8859-1
10 Content-Transfer-Encoding: binary
11
12 Help:WikiPlugin which displays a LDAP query as table.
13
14 ! Usage
15 <verbatim>
16   <?plugin LdapSearch ?>
17   <?plugin LdapSearch
18            host="localhost"
19            port=389
20            basedn=""
21            filter="(cn=*)"
22            attributes=""  
23   ?>
24   <?plugin LdapSearch host=ldap.example.com filter="(ou=web-team)" 
25                       attributes="sn cn telephonenumber" ?>
26   <?plugin LdapSearch host="ldap.itd.umich.edu" basedn="" filter="(sn=jensen)" attributes="cn drink" ?>
27   <?plugin LdapSearch host=ldap.example.com attributes="cn sn telephonenumber" ?>
28   <?plugin LdapSearch host=bugs.debian.org port=10101 basedn="dc=current,dc=bugs,dc=debian,dc=org"
29                       filter="(debbugsPackage=phpwiki)" 
30                       attributes="debbugsSeverity debbugsState debbugsTitle" ?>
31 </verbatim>
32
33 ! Arguments
34
35 host _(default: from LDAP_AUTH_HOST or localhost)_:
36         hostname or ip or ldap:// uri to connect to.
37
38 port _(default: from LDAP_AUTH_HOST or 389)_:
39         portnumber to connect to.
40
41 basedn _(default: LDAP_BASE_DN)_:
42         connect string: "ou=Users,o=Development,dc=mycompany.com"
43
44 filter _(default: "(cn=*)")_:
45         Optional ldap_search() filter argument
46
47 attributes _(default: empty)_ :
48         space seperated fields to return as table columns: "cn sn"
49
50 options:
51         ldap_set_option(). Default: LDAP_SET_OPTION if host == LDAP_AUTH_HOST
52         Column seperated name=value pairs. Esp. needed for Windows Active directory:
53         "LDAP_OPT_PROTOCOL_VERSION=3:LDAP_OPT_REFERRALS=0"
54 user:
55         Default: LDAP_AUTH_USER if host == LDAP_AUTH_HOST
56 password:
57         Default: LDAP_AUTH_PASSWORD if host == LDAP_AUTH_HOST
58         user and password are required for Windows Active directory.
59
60 ! Examples
61
62 <?plugin WikiFormRich action=LdapSearch 
63         editbox[] name=host value=bugs.debian.org size=80
64         editbox[] name=port value=10101 size=80
65         editbox[] name=basedn value="dc=current,dc=bugs,dc=debian,dc=org" size=80
66         editbox[] name=filter value="(debbugsPackage=phpwiki)" size=80
67         editbox[] name=attributes value="debbugsSeverity debbugsState debbugsTitle" size=80
68         submit[] reset[]
69 ?>
70
71 ! Author
72 PhpWiki:JohnLines
73
74 ! See Also
75
76 ----
77 PhpWikiDocumentation Help:WikiPlugin