ldapfilter for the topic will be used as the filter for the LDAP query. <FORM action="%SCRIPTURL%/view%SCRIPTSUFFIX%/%MAINWEB%/LdapPeople"> Filter: <input type="text" name="ldapfilter" size="25"> <input type="submit" value="LDAP Search" > </FORM>...and the Ldap People? page will be called up with your input as the filter.
| Argument | Comment | Example |
|---|---|---|
| host | LDAP host to query | host="myldap.myco.com" |
| port | LDAP port on host (if not set, defaults to 389) | port="389" |
| base | LDAP base | base ="ou=Mydep,o=myco" |
| filter | LDAP Search Filter | filter="fullName=Gerald Skerbitz" |
| header | Format of the Header for the query table | header="*Phone*" |
| format | Format of the data returned by the query. Use $attribute for the fields. Use the word FIELDLIST if you want a list of the valid fields in the LDAP database for the entry | format="|$fullName|$telephoneNumber|" |
| order | Sort order | order="sn,givenName" |
| mvformat | Separater for multiple values | mvformat="<LI>" |
| notfounderror | Error message you want to get in case LDAP Plugin found nothing, useful to use LDAP to define Javascript vars (see T Wiki Ldap Registration?) | notfounderror="" |
| jpegPhoto | LDAP attribute keyname to extract photo, $jpegPhoto is then a URL to an image | JPEGPHOTO="jpegPhoto" |
%<plugin>_<setting>%, for example, %LDAPPLUGIN_SHORTDESCRIPTION%
data/debug.txt. Default: 0
alias=TOPIC the word topic will be replaced with the TOPIC of the page on which the LDAP tag is located As an example, you can use the WIki username extracted from current TOPIC name to automatically display LDAP user information on any Wiki Home page.)
limit parameter to limit the rows returned
offset parameter to enable partial listings and more control.
LdapPlugin.zip in your twiki installation directory. Content: | File: | Description: |
|---|---|
data/TWiki/LdapPlugin.txt | Plugin topic |
data/TWiki/LdapPlugin.txt,v | Plugin topic repository |
data/Sandbox/TestTopicLdapPlugin.txt,v | Plugin topic repository |
lib/TWiki/Plugins/LdapPlugin.pm | Plugin Perl module |
configure in your TWiki installation, and enable the plugin in the {Plugins} section.
| Plugin Author: | TWiki:Main.GerardHickey |
| Plugin Version: | 03 Oct 2005 (V1.011) |
| Change History: | |
| 03 Oct 2005 | Reindented without tabs; fixes for Dakar, use strict -(TWiki:Main.JoanTouzet) |
| 05 Apr 2004 | Added sort Order - (TWiki:Main.GeraldSkerbitz) |
| 04 Feb 2004 | Code contributed by Patrick Nomblot? to accomodate multiple values per attribute - (TWiki:Main.GeraldSkerbitz) |
| 02 Feb 2004 | Code and doc cleanups -- basedn changed to base everywhere - (TWiki:Main.GeraldSkerbitz) |
| 14 Jan 2004 | CGI now allowed and Default filter set on Preferences page - (TWiki:Main.GeraldSkerbitz) & (TWiki:Main.PatrickNomblot) |
| 13 Jan 2004 | Added utf processing (another dependency!) - (TWiki:Main.GeraldSkerbitz) |
| 09 Dec 2003 | Changed Photo processing code to NOT include the IMG tag. This will break things for people doing photos!!!! - (TWiki:Main.GeraldSkerbitz) |
| 27 Mar 2003 | added LDAP photo extract / display. added default FILTER definition (assigned on current TOPIC namme translated into username). added possibilty to define error message in case no record is found. intended to work (also) well with TWiki Ldap Registration. (TWiki:Main.PatrickNomblot) |
| 24 Apr 2002 | Modified to remove reference to show. Fields are now extracted from format - (TWiki:Main.GeraldSkerbitz) |
| 23 Apr 2002 | Modified to return multiple attributes and rows with formatting - (TWiki:Main.GeraldSkerbitz) |
| 22 Apr 2002 | Modified to use quoted strings in params - (TWiki:Main.GeraldSkerbitz) |
| 11 Jan 2002 | Initial version |
| CPAN Dependencies: | Net::LDAP, Unicode::String |
| Other Dependencies: | none |
| Perl Version: | 5.0 |
| Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/LdapPlugin ( TWiki:Plugins/LdapPlugin ) |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/LdapPluginDev ( TWiki:Plugins/LdapPluginDev ) |