Win a copy of Head First Android this week in the Android forum!
    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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Anonymous access to LDAP

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator

Heather Rose wrote:Ok, I found out how to connect to active directory if anyone is still interested in this.

In my login method, I just added these couple of lines. I was so upset when it actually worked! It was so easy!


Just so.... easy. Well, it worked for me. I had to change some things in the config files as it says above, but this makes it so where you don't have to hardcode in a username and password and it's EXTREMELY hard to break. The other code with the security credentials was too easy to crack so we couldn't use that for our project.


Well, hope this helps someone.



Hi I have the similar question, in my case, I need to get employee's phone# from Active Directory by using his/her userid, basically, in my java web project, I need to know employee's phone#, and I know employee's user id( of course I do not know his/her password), so by using userID to search Active Directory to get the phone#.
But from you example, I can see I need to know password in server binding in order to search the active directory, but there is no way to know all employee's password, so how to resolve my problem, basically, I need to search active directory anonymously, (I can provide userid, but no password).
Thanks for any help or examples.
 
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
You're already discussing that here. Don't start a second thread as it may waste people's time posting information in one thread that is already in the other one.
 
    Bookmark Topic Watch Topic
  • New Topic