Last active
June 28, 2019 09:27
-
-
Save VTacius/77c5d0d64760c0710321 to your computer and use it in GitHub Desktop.
Autenticación contra LDAP en Fat-Free Framework
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$login = new \Auth('ldap', array( | |
'dc' => $this->server, | |
'rdn' => '', | |
'base_dn'=> 'ou=Users,dc=dominio,dc=com', | |
'pw' => '') | |
); | |
if (@$login->login($this->usuario, $this->password)){ | |
$this->index->reroute('@main'); | |
}else{ | |
$this->index->reroute('@login_mensaje(@mensaje=Credenciales incorrectas)'); | |
} |
i make a crud system and i want to make authenticat with the LDAP to check if the users are already in the active directory or not ..! can you help me in this Projeckt ?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sinceramente, parece ser que no funciona la redirección, pero la onda de autenticarse contra LDAP es genial