Files
PHP-LDAP/controllers/controllerAdmin.php

21 lines
359 B
PHP

<?php
require_once __DIR__ . '/../models/LDAPAuth.php';
function listAllOU()
{
$ldapAuth = new LDAPAuth();
return $ldapAuth->listAllOU();
}
function listAllUsers()
{
$ldapAuth = new LDAPAuth();
return $ldapAuth->listAllUsers();
}
function getUserOU($username)
{
$ldapAuth = new LDAPAuth();
return $ldapAuth->getUserOU($username);
}