Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

    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, enclose it within single quotes. 

Examples

...

 

Code Block
languagebash
titleConnect to Celoxis Active Directory
$ java LDAPQuest ldap://

...

ldap.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.

 

...

Code Block
languagebash
titleConnect to a public

...

LDAP 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.