oldpto/auth.php

11 строки
234 B
PHP

<?php
require_once('config.php');
$connection = ldap_connect($ldap["host"], $ldap["port"]);
ldap_start_tls($connection);
if (!ldap_bind($connection, $LDAP_BIND_USER, $LDAP_BIND_PASS)) {
echo "LDAP connection failed";
die;
}