From c7073ebf51d45208435d123edb75c8673ee0d3ce Mon Sep 17 00:00:00 2001 From: namezero111111 Date: Sun, 28 Aug 2011 05:43:39 +0300 Subject: Added web interface capability to make the LDAP search more specific in order to filter for group membership for example. --- usr/local/www/system_authservers.php | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'usr/local/www') diff --git a/usr/local/www/system_authservers.php b/usr/local/www/system_authservers.php index 694bee5..5fc0782 100644 --- a/usr/local/www/system_authservers.php +++ b/usr/local/www/system_authservers.php @@ -2,7 +2,7 @@ /* system_authservers.php - Copyright (C) 2010 Ermal Luçi + Copyright (C) 2010 Ermal Lu�i Copyright (C) 2008 Shrew Soft Inc. All rights reserved. @@ -99,6 +99,8 @@ if ($act == "edit") { $pconfig['ldap_scope'] = $a_server[$id]['ldap_scope']; $pconfig['ldap_basedn'] = $a_server[$id]['ldap_basedn']; $pconfig['ldap_authcn'] = $a_server[$id]['ldap_authcn']; + $pconfig['ldap_extended_enabled'] = $a_server[$id]['ldap_extended_enabled']; + $pconfig['ldap_extended_query'] = $a_server[$id]['ldap_extended_query']; $pconfig['ldap_binddn'] = $a_server[$id]['ldap_binddn']; $pconfig['ldap_bindpw'] = $a_server[$id]['ldap_bindpw']; $pconfig['ldap_attr_user'] = $a_server[$id]['ldap_attr_user']; @@ -235,6 +237,8 @@ if ($_POST) { $server['ldap_scope'] = $pconfig['ldap_scope']; $server['ldap_basedn'] = $pconfig['ldap_basedn']; $server['ldap_authcn'] = $pconfig['ldapauthcontainers']; + $server['ldap_extended_enabled'] = $pconfig['ldap_extended_enabled']; + $server['ldap_extended_query'] = $pconfig['ldap_extended_query']; $server['ldap_attr_user'] = $pconfig['ldap_attr_user']; $server['ldap_attr_group'] = $pconfig['ldap_attr_group']; $server['ldap_attr_member'] = $pconfig['ldap_attr_member']; @@ -580,6 +584,23 @@ function select_clicked() { + + + + + + + +
+ > + + + +
+
+ + + -- cgit v1.1