/web/acc/admin/lib/alcasar/freeradius/ldapconfig.php |
---|
22,12 → 22,12 |
$this->_items['password'] = ''; |
$this->_items['basedn'] = 'dc=example,dc=com'; |
$this->_items['uid'] = 'uid'; |
$this->_items['filter'] = "($this->_items['uid']=%{User-Name})"; |
$this->_items['filter'] = "({$this->_items['uid']}=%{User-Name})"; |
$this->_items['base_filter'] = ''; |
$this->_items['ldap_connections_number'] = '5'; |
$this->_items['timeout'] = '4'; |
$this->_items['timelimit'] = '3'; |
$this->_items['net_timeout'] = '1'; |
$this->_items['net_timeout'] = '1'; |
// TLS setting related items |
$this->_tls['start_tls'] = 'no'; // if no all tls config are comments |
$this->_tls['cacertfile'] = '#'; |
42,7 → 42,7 |
$this->_items['access_attr'] = '#'; |
// Mapping of RADIUS dictionary attributes to LDAP |
// directory attributes. |
$this->_items['dictionary_mapping'] = '${confdir}/ldap.attrmap'; |
$this->_items['dictionary_mapping'] = '${confdir}/ldap.attrmap'; |
// for ldap like NOVEL |
$this->_items['password_attribute'] = '#'; |
$this->_items['edir_account_policy_check'] = 'no'; |
103,7 → 103,7 |
} else { |
$this->_items['uid'] = 'uid'; |
} |
$this->_items['filter'] = "($this->_items['uid']=%{User-Name})"; |
$this->_items['filter'] = "({$this->_items['uid']}=%{User-Name})"; |
break; |
default: |
$this->_items[$attr] = $value; |
/web/acc/admin_log.php |
---|
1,5 → 1,5 |
<?php |
# $Id $ |
# $Id$ |
$Language = 'en'; |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) { |
34,6 → 34,18 |
} |
$accessLogs = array_reverse($accessLogs); |
// Remove access before startTime |
if (isset($_GET['startTime'])) { |
$startTime = intval($_GET['startTime']); |
foreach ($accessLogs as $key => $access) { |
$timestamp = date_timestamp_get(date_create_from_format('d/m/Y H:i:s', $access->date)); |
if ($timestamp < $startTime) { |
$accessLogs = array_slice($accessLogs, 0, $key); |
break; |
} |
} |
} |
?> |
<!doctype html> |
<html> |
/web/acc/manager/htdocs/stats.php |
---|
1,4 → 1,6 |
<?php |
# $Id$ |
require('/etc/freeradius-web/config.php'); |
require('../lib/sql/nas_list.php'); |
require_once('../lib/xlat.php'); |
6,7 → 8,7 |
<html> |
<head> |
<title>Analyse des comptes</title> |
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>"> |
<meta http-equiv="Content-Type" content="text/html; charset=<?= $config['general_charset'] ?>"> |
<link rel="stylesheet" href="style.css"> |
</head> |
<body> |
Property changes: |
Added: svn:keywords |
+Id |
\ No newline at end of property |
/web/acc/manager/htdocs/user_stats.php |
---|
1,4 → 1,6 |
<?php |
# $Id$ |
require('/etc/freeradius-web/config.php'); |
require('../lib/functions.php'); |
require('../lib/sql/nas_list.php'); |
257,11 → 259,11 |
$name = $nas['name']; |
if ($nas['ip'] == '') |
continue; |
$servers[$name] = $nas[ip]; |
$servers[$name] = $nas['ip']; |
} |
ksort($servers); |
foreach ($servers as $name => $ip){ |
if ($server == $ip) |
if (isset($server) && ($server == $ip)) |
echo "<option selected value=\"$ip\">$name\n"; |
else |
echo "<option value=\"$ip\">$name\n"; |
Property changes: |
Added: svn:keywords |
+Id |
\ No newline at end of property |