LDAP Email Plugin

Plugin Information

Plugin ID ldapemail
Latest Release 0.6
Latest Release Date Jan 31, 2010
Plugin Central Plugin Central 3.2
Sources Subversion
Support Eclipse Hudson Forum
Issue Tracking Eclipse Bugzilla
Hudson Core (latest) 3.3.3

LDAP Email plugin

This plugin resolves user email addresses from an LDAP directory.
It is not needed if Hudson uses LDAP as its authentication source and user records have a standard "mail" attribute. In this case Hudson will already find user email addresses.

Configure the plugin in the LDAP Email Lookup section in the main Hudson settings page (Manage / Configure System).

Here's an example configuration file:

<?xml version='1.0' encoding='UTF-8'?>
<com.mtvi.plateng.hudson.ldap.Configuration>
	<server>ldap://testserver:389</server>
	<baseDN>ou=People,dc=test,dc=com</baseDN>
	<bindDN>cn=Hudson,ou=Internal,dc=test,dc=com</bindDN>
	<bindPassword>password</bindPassword>
	<emailAttribute>mail</emailAttribute>
	<searchAttribute>uid</searchAttribute>
</com.mtvi.plateng.hudson.ldap.Configuration>

The bindDN and bindPassword elements are only required if your LDAP server does not support anonymous binding.

By default the plugin will form a distinguished name (DN) with this pattern:

<searchAttribute>=<userName>,<baseDN>

However, there are environments where you need to perform an LDAP search. To do this, check the "Perform Search" checkbox in the config settings, which adds a performSearch element to the configuration file:

<?xml version='1.0' encoding='UTF-8'?>
<com.mtvi.plateng.hudson.ldap.Configuration>
	<server>ldap://testserver:389</server>
	<baseDN>dc=test,dc=com</baseDN>
	<bindDN>cn=Hudson,ou=Internal,dc=test,dc=com</bindDN>
	<bindPassword>password</bindPassword>
	<emailAttribute>mail</emailAttribute>
	<searchAttribute>uid</searchAttribute>
        <performSearch>true</performSearch>
</com.mtvi.plateng.hudson.ldap.Configuration>

This will perform a subtree-scoped search within the baseDN with the filter

<searchAttribute>=<userName>

Version History

Version 0.6 (January 31, 2010)

  • Update code for more recent Hudson

Version 0.5 (January 20, 2009)

  • Add configuration UI

Version 0.4 (September 30, 2008)

  • All logging is done at the INFO level.

Version 0.3 (September 25, 2008)

  • More logging

Version 0.2 (September 19, 2008)

  • Adding search support
  • Adding more verbose logging
  • Fixing bug where emailAttribute configuration option was ignored in some circumstances

Version 0.1 (June 20, 2008)

  • Initial release

Labels:

plugin-user plugin-user Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.
  1. Feb 03, 2011

    Vishal says:

    I tried this plugin for Hudson ver-1.395 and ver-1.385 but its not working for u...

    I tried this plugin for Hudson ver-1.395 and ver-1.385 but its not working for us.  Plugin ver-0.6used.

    FYI... My Hudson is installed on Linux OS, we are able to connect to the ldap but not able to get mail for the user i.e unable to resolve the uid.

    Is this plugin works for Linux OS..? I haven't tried on window.

    1. Feb 21, 2011

      Vishal says:

      Sorry for my above comment.. Plugin works fine.. Their is configuration issue ...

      Sorry for my above comment.. Plugin works fine..

      Their is configuration issue with me..

    2. Mar 03, 2011

      sushil pant says:

      Dear vishal,   I have downloaded hudson-1.396.zip  from htt...

      Dear vishal,

        I have downloaded hudson-1.396.zip  from http://hudson-ci.org/downloads/war/ link.

       after unzipping I am not getting hudson.war  file as mentioned in docs I searched.

       some places I did find that , I need to give below command for installation:

       -> java -jar hudson.war

       Can you please let me know the exact procedure of installing the hudson.

       -regards

  2. Feb 14, 2011

    John Stotler says:

    I've been trying to use it with 1.396 with no luck so far. Does anyone know if t...

    I've been trying to use it with 1.396 with no luck so far. Does anyone know if this is still working with modern versions of Jenkins?

    Is there some way to test it, or debug it? I don't see anything showing up in logs, or any errors, or even anything idicating that it's running outside the form fields on the "Manage Jenkins" page....

    1. Apr 12, 2011

      Susan Duncan says:

      John, What issues are you seeing? Can you raise issues and we will look into th...

      John,

      What issues are you seeing? Can you raise issues and we will look into them? alternatively try mailing the user list  http://java.net/projects/hudson/lists/users/archive

      thanks

      susan