• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

cannot connect to LDAP server

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic