HOR-2689 Removed LoadClassRBAC references from testAuthenticationUser.php and rbac.appEdit.php
This commit is contained in:
committed by
davidcallizaya
parent
9eb7d6cac2
commit
d72b7aa561
@@ -54,7 +54,6 @@ default:
|
|||||||
|
|
||||||
//si no hay nada relacionado a esta aplicación se puede BORRAR!!
|
//si no hay nada relacionado a esta aplicación se puede BORRAR!!
|
||||||
$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME );
|
$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME );
|
||||||
//G::LoadClassRBAC ("applications");
|
|
||||||
$obj = New RBAC_Application;
|
$obj = New RBAC_Application;
|
||||||
$obj->SetTo ($dbc);
|
$obj->SetTo ($dbc);
|
||||||
$sw = $obj->canRemoveApplication ($appid);
|
$sw = $obj->canRemoveApplication ($appid);
|
||||||
|
|||||||
@@ -39,13 +39,11 @@
|
|||||||
$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME );
|
$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME );
|
||||||
|
|
||||||
//Class user
|
//Class user
|
||||||
G::LoadClassRBAC ("user");
|
|
||||||
$user = new RBAC_User;
|
$user = new RBAC_User;
|
||||||
$user->SetTo ($dbc);
|
$user->SetTo ($dbc);
|
||||||
$user->Load ($userId);
|
$user->Load ($userId);
|
||||||
|
|
||||||
//crear nueva authentication source
|
//crear nueva authentication source
|
||||||
G::LoadClassRBAC ('authentication');
|
|
||||||
$obj = new authenticationSource;
|
$obj = new authenticationSource;
|
||||||
$obj->SetTo( $dbc );
|
$obj->SetTo( $dbc );
|
||||||
$res = $obj->verifyPassword ( $userId, $user->Fields['USR_LDAP_DN'] , $strPass, $user->Fields['USR_LDAP_SOURCE'] );
|
$res = $obj->verifyPassword ( $userId, $user->Fields['USR_LDAP_DN'] , $strPass, $user->Fields['USR_LDAP_SOURCE'] );
|
||||||
|
|||||||
Reference in New Issue
Block a user