Test LDAP service

One of the first integration tasks undertaken on a new repository installation is to plug it in to the local authentication system. More often than not this is LDAP. It allows users to use their usual local username and password in the repository rather than having to remember another password. LDAP services can be provided by a Microsoft Active Directory (run by most institutions who have Microsoft desktop systems) or dedicated LDAP (e.g. OpenLDAP) service.

One thing I’ve noticed with the DSpace testathons is that often LDAP does not get tested because many of the developers do not have access to an LDAP system – for example in DSpace 1.5 LDAP authentication does not work with Manakin or SWORD. (I have fixed both in the upcoming 1.5.1 though :) ). With this in mind, and because I have to teach a DSpace technical course in 4 days time where we’ll be covering LDAP configuration, I’ve created an open LDAP server which can be used for testing and training.

Details:

Users and their passwords are:

Each user has a full name (Stuart Lewis / John Smith / Carol Jones), a telephone number and email address so should be fully functional.

If you make use of this server, please drop me a line or leave a comment so I know. Otherwise it might get turned off…!

Bookmark and Share
Posted on July 7, 2008 at 5:01 pm by Stuart · Permalink
In: Uncategorized · Tagged with: , ,

14 Responses

Subscribe to comments via RSS

  1. Written by KlausDK
    on August 8, 2008 at 10:39 am
    Permalink

    I use it alot these days.

    Nice service! :-)

    /Klaus

  2. [...] few weeks ago I made a test LDAP service available (read the blog post) in order to allow people without an LDAP service to test their LDAP-related DSpace patches, or to [...]

  3. Written by gopal kankanhalli
    on August 10, 2009 at 12:54 am
    Permalink

    Can you please tell me the bind id for testing

  4. Written by stuart
    on August 10, 2009 at 11:50 am
    Permalink

    Usernames and passwords are shown in the article. Further details can be seen in http://blog.stuartlewis.com/2008/08/18/test-ldap-service-upgraded-now-with-branches/

  5. Written by lisandro
    on May 25, 2010 at 10:42 am
    Permalink

    Hello, can you tell me if this server is still turned on?

  6. Written by Stuart
    on May 29, 2010 at 6:28 pm
    Permalink

    Hi,

    Yes – the server is still turned on. I’ve just tested it and it seemed to work fine.

    Thanks,

    Stuart

  7. Written by mike
    on July 3, 2010 at 7:56 am
    Permalink

    would appreciate your help to test against your server:
    Dim dirEntry As New DirectoryEntry(“LDAP://ldap.testathon.net/OU=users,DC=testathon,DC=net”)
    ‘Setting username & password to Nothing forces
    ‘the connection to use your logon credentials
    dirEntry.Username = “stuart”
    dirEntry.Password = “stuart”
    ‘Always use a secure connection
    dirEntry.AuthenticationType = AuthenticationTypes.None
    Return dirEntry
    error returned is: invalid dn syntax has been specified.
    thank you in advance!

  8. Written by Stuart
    on July 4, 2010 at 4:30 am
    Permalink

    When you log in, you probably need to specify the user’s full DN, which in this case is: CN=stuart,OU=users,DC=testathon,DC=net

  9. Written by Michael
    on July 20, 2010 at 7:34 am
    Permalink

    Hello Stuart, I am trying to test importing non-objectClass=Person users (for example posix accounts) from an online test LDAP server. I am not able to get my integration working on your test LDAP server to test this…..Do you happen to have posix accounts configured on your test LDAP server?

  10. Written by Stuart
    on July 20, 2010 at 10:49 am
    Permalink

    I only have the normal user accounts configured as that is all I need for the testing of systems that I perform. Sorry that I can’t help further.

  11. Written by Diego
    on August 11, 2010 at 2:34 am
    Permalink

    Hello,

    I am new to LDAP and I’m trying to connect to testathon via PHP for the first ime.

    Is it up and running? I keep getting a ‘Protocol error’ regardless if I use ‘CN=stuart,OU=users,DC=testathon,DC=net’ or just ‘stuart’ as a user

    Thanks for your time.

  12. Written by Henry
    on August 12, 2010 at 3:54 am
    Permalink

    Estimado Stuart
    soy nuevo en el tema de Dspace, creo que aun estoy en pañales….sin embargo he logrado avances significativos.

    ya lo tengo instalado bajo Window XP SP2 y tengo un problema. No se como configurar la parte de los mail, para enviar, recibir y/o descargar los correos

  13. Written by Stuart
    on August 29, 2010 at 8:06 pm
    Permalink

    Hi Diego,

    I’ve just tried connecting and it seems to be working fine. To connect, I use ‘CN=stuart,OU=users,DC=testathon,DC=net’ and the password ‘stuart’.

    The PHP code I tested it with is here: http://github.com/stuartlewis/EasyDeposit/blob/master/system/application/controllers/ldaplogin.php

    Thanks,

    Stuart

  14. Written by Stuart
    on August 29, 2010 at 8:08 pm
    Permalink

    Hola Henry,

    Prueba esta URL:

    http://www.dspace.org/1_6_2Documentation/ch05.html#N121D2

    Gracias,

    Stuart

Subscribe to comments via RSS

Leave a Reply