Page 1 of 1

Help with LDAP Active Directory Authentication

Posted: Tue Apr 18, 2006 11:24 am
by ferio-moreno
Hello, I'm at work and my new assignment is to make a login screen for the employees here, The username's match up fine, but the passwords are all encrypted (which they should be) but I don't know what they were encrypted with.

so my question is, what kind of function(?) would I have to use to make a password that was say " 12345 " equal to " ˆ‡þ[É¥ÏI„F|/

Posted: Tue Apr 18, 2006 11:35 am
by neophyte
You'll want to check out the ldap extension. There some great examples over at:

http://us2.php.net/manual/en/ref.ldap.php

Posted: Tue Apr 18, 2006 12:53 pm
by ferio-moreno
thx for replying bro :) But i've already read through that, I was wondering in which way would I encrypt it i.e.(sha1,crypt,mcrypt,etc.) in order to get the html symbols I posted above if my password were '12345'.

Posted: Tue Apr 18, 2006 1:17 pm
by Roja
ferio-moreno wrote:thx for replying bro :) But i've already read through that, I was wondering in which way would I encrypt it i.e.(sha1,crypt,mcrypt,etc.) in order to get the html symbols I posted above if my password were '12345'.
Its too small of a sample to determine that from. Worse, it will vary - you can't reproduce it, because Windows AD passwords are salt'ed. Further, AD admins have the choice of a number of encryption protocols, and as if THAT wasn't bad enough, the way you received that password also can influence the encryption level used.

In a nutshell, if you don't know, you can't know, and even if you do know, you can't duplicate it (easily or securely).