Update index.php
This commit is contained in:
@@ -26,9 +26,7 @@ if(isset($_POST['username']) && isset($_POST['password'])){
|
|||||||
$bind = @ldap_bind($ad, $username.'@'.$domain, $password);
|
$bind = @ldap_bind($ad, $username.'@'.$domain, $password);
|
||||||
|
|
||||||
if ($bind) {
|
if ($bind) {
|
||||||
$userDN = getDN($ad, $username, $baseDN);
|
if (checkGroup($ad, getDN($ad, $username, $baseDN), getDN($ad, $group, $baseDN))){
|
||||||
$groupDN = getDN($ad, "OpenVPN", $baseDN);
|
|
||||||
if (checkGroup($ad, $userDN, getDN($ad, $group, $baseDN))){
|
|
||||||
header('Content-Type: application/octet-stream');
|
header('Content-Type: application/octet-stream');
|
||||||
header('Content-Disposition: attachment; filename="'.basename($configFile).'"');
|
header('Content-Disposition: attachment; filename="'.basename($configFile).'"');
|
||||||
header('Pragma: no-cache');
|
header('Pragma: no-cache');
|
||||||
|
|||||||
Reference in New Issue
Block a user