Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 5 Next »


Celoxis LDAP Quest is a java program to debug connection and authentication issues with an LDAP server. First, it connects to an LDAP server and authenticates using the specified admin DN and password. If successful, tries to connect as the specified combination of end-user and password.

Download

Click here to download the zip file.

This test needs to be run from the server where Celoxis will be installed; NOT from the LDAP server.

Usage

  1. Unzip the ldap-quest.zip file. It should create a folder that contains the LDAPQuest.class file.
  2. Open a terminal window on Unix/Linux OR Command prompt in Windows.
  3. Go to the folder (cd ldap-quest) that contains the LDAPQuest.class file and then type:

    java LDAPQuest <ldap-url> <admin-DN> <admin-password> <ldap-search-attr> <base-dn> <username> <password>

    You will receive a success message if the connection and details were correct.  If the connection fails and you don't understand the output simply send us the output.

Note:                

    1. For Microsoft Active Directory Service, ldap-search-attr should always be sAMAccountName
    2.  If any of the program arguments (e.g. password), contains a space or special characters, encode it within single quotes. 

Examples

  •  Connect to the ADS server

    $ java LDAPQuest ldap://ldapserver.celoxis.com cn=Administrator,cn=users,dc=celoxis,dc=com kaboom1 sAMAccountName cn=users,dc=celoxis,dc=com Joe joeIsKing1

    1) Trying to connect to LDAP and bind as Admin...
    ----------------------------------------------------------------------------------------
    SUCCESS: Admin authenticated successfully.

    2) Trying to authenticate end user...
    ----------------------------------------------------------------------------------------
    Searching for celoxisusr in cn=users,dc=celoxis,dc=com
    FOUND DN: CN=Joe,CN=Users,DC=celoxis,DC=com

    3) Connecting as CN=Joe,CN=Users,DC=celoxis,DC=com with specified password...
    ----------------------------------------------------------------------------------------
    SUCCESS: Joe authenticated successfully.


     
  • Connect to a public test server

    $ java LDAPQuest ldap://ldap.forumsys.com cn=read-only-admin,dc=example,dc=com password uid dc=example,dc=com euler password

    1) Trying to connect to LDAP and bind as Admin...
    -------------------------------------------------------------------------------
    SUCCESS: Admin authenticated successfully.

    2) Trying to authenticate end user...
    -------------------------------------------------------------------------------
    Searching for euler in dc=example,dc=com
    FOUND DN: uid=euler,dc=example,dc=com

    3) Connecting as uid=euler,dc=example,dc=com with specified password...
    -------------------------------------------------------------------------------
    SUCCESS: euler authenticated successfully.

  • No labels