$G_MAIN_MENU = 'rbac'; $G_SUB_MENU = 'rbac.authSource'; $G_BACK_PAGE = 'rbac/authenticationList.html'; $G_MENU_SELECTED = 2; $G_SUB_MENU_SELECTED = 1; $appid = isset($_GET[0]) ? $_GET[0] : ''; //$URI_VARS[0]; if ($appid == '' && $_SESSION['CURRENT_AUTH_SOURCE'] != '') { $appid = $_SESSION['CURRENT_AUTH_SOURCE']; } $_SESSION['CURRENT_AUTH_SOURCE'] = $appid; $dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME); G::LoadClassRBAC('authentication'); $obj = new authenticationSource(); $obj->SetTo($dbc); $obj->Load($appid); $G_PUBLISH = new Publisher(); $G_PUBLISH->SetTo($dbc); $G_PUBLISH->AddContent('view', 'testAuthenticationSource'); G::RenderPage('publish'); /* require_once('Net/LDAP.php'); $rootDn = 'OU=Ventas,DC=colosa,DC=net'; $config = array( 'dn' => '*****@*****.**', 'password' => 'Colosa1', 'host' => '192.168.0.50', 'base' => $rootDn, 'options' => array('LDAP_OPT_REFERRALS' => 0), 'tls' => false, 'port'=> 389