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.