Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

cannot connect to LDAP server

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have tried a lot of things for connect my ldap server via java

here is my code


when i run it the output is [ incorrect password or username ]
the id and password is true but the output say incorrect pass and user

if you guys have some idea please tell me

this is my reference web:
http://techpubs.spinlocksolutions.com/dklar/ldap.html
 
Marshal
Posts: 25682
69
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But that was your idea to write that message. In reality you only know that there's some kind of problem with authentication. I'd suggest you let the exception speak for itself:

 
Irvan Kosini
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Paul Clapham wrote:But that was your idea to write that message. In reality you only know that there's some kind of problem with authentication. I'd suggest you let the exception speak for itself:



i have change it to ex.printStackTrace() this is the output:


and when i run this command on terminal : ldapwhoami -vvv -h 192.168.1.1 -p 389 -D "dc=dtn,dc=com" -x -w kosini
the output is this : ldap_initialize( ldap://192.168.1.1:389 )
ldap_bind: Invalid credentials (49)

from my reference site that i have post before, only tell me to setting ldap, am i suppose to setting PAM also ? if yes, what should i do
 
The two armies met. But instead of battle, they decided to eat some pie and contemplate this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic