1
hagane
Re: LDAP authentication
  • 2004/7/28 23:37

  • hagane

  • Just popping in

  • Posts: 2

  • Since: 2004/7/27



I'm sorry, it my mistake.
I used ldap_bind function that set manager's id and password.

thanks to your information.



2
hagane
Re: LDAP authentication
  • 2004/7/27 3:00

  • hagane

  • Just popping in

  • Posts: 2

  • Since: 2004/7/27


thanks your work.

I wanted to check the LDAP password.
I added LDAP password check to your code.

function LDAPAuthentication($criteria null)
    {
        
$uid_attr "uid";
        
$mail_attr "mail";
        
$name_attr "cn";
        
$pass_attr "userpassword";
                                    .
                                    .
                                    .
                    
// Get info from LDAP (mail,name)
                    
$sr ldap_search($ds,$base_dn,$uid_attr."=".$criteria->crit
eriaElements
[0]->value,Array($mail_attr,$name_attr,$pass_attr));
                                   .
                                    .
                                    .
                   if (
$info["count"] == 1) {
                        
$ldap_pass ereg_replace("{CRYPT}"""$info[0]["userpa
ssword"
][0]);
                        if (
$ldap_pass == crypt($passsubstr($ldap_pass,0,2))) {
                            
// Search user in the DB
                                    
.
                                    .
                                    .
                        }
                                    .
                                    .
                                    .




TopTop



Login

Who's Online

245 user(s) are online (141 user(s) are browsing Support Forums)


Members: 0


Guests: 245


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits