HOR-2689 Removed LoadClassRBAC references from testAuthenticationUser.php and rbac.appEdit.php

This commit is contained in:
Chloe Deguzman
2017-02-14 17:29:08 +00:00
committed by davidcallizaya
parent 9eb7d6cac2
commit d72b7aa561
2 changed files with 14 additions and 17 deletions

View File

@@ -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);

View File

@@ -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'] );