Skip to content

Instantly share code, notes, and snippets.

@VTacius
Last active June 28, 2019 09:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VTacius/77c5d0d64760c0710321 to your computer and use it in GitHub Desktop.
Save VTacius/77c5d0d64760c0710321 to your computer and use it in GitHub Desktop.
Autenticación contra LDAP en Fat-Free Framework
<?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)');
}
@VTacius
Copy link
Author

VTacius commented Jul 31, 2014

Sinceramente, parece ser que no funciona la redirección, pero la onda de autenticarse contra LDAP es genial

@anmar1986
Copy link

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