diff options
-rwxr-xr-x | usr/local/www/system_usermanager_settings.php | 2 | ||||
-rwxr-xr-x | usr/local/www/system_usermanager_settings_test.php | 40 |
2 files changed, 37 insertions, 5 deletions
diff --git a/usr/local/www/system_usermanager_settings.php b/usr/local/www/system_usermanager_settings.php index c34bd8e..175b6fa 100755 --- a/usr/local/www/system_usermanager_settings.php +++ b/usr/local/www/system_usermanager_settings.php @@ -124,7 +124,7 @@ include("head.inc"); if($save_and_test) { echo "<script language='javascript'>\n"; echo "myRef = window.open('system_usermanager_settings_test.php','mywin', "; - echo "'left=20,top=20,width=500,height=500,toolbar=1,resizable=0');\n"; + echo "'left=20,top=20,width=700,height=550,toolbar=1,resizable=0');\n"; echo "</script>\n"; } ?> diff --git a/usr/local/www/system_usermanager_settings_test.php b/usr/local/www/system_usermanager_settings_test.php index 2e11c21..4e32f2d 100755 --- a/usr/local/www/system_usermanager_settings_test.php +++ b/usr/local/www/system_usermanager_settings_test.php @@ -35,10 +35,36 @@ $ldapbindun = $config['system']['webgui']['ldapbindun']; $ldapbindpw = $config['system']['webgui']['ldapbindpw']; $ldapfilter = $config['system']['webgui']['ldapfilter']; - +?> + +<html> + <HEAD> + <STYLE type="text/css"> + TABLE { + border-width: 1px 1px 1px 1px; + border-spacing: 0px; + border-style: solid solid solid solid; + border-color: gray gray gray gray; + border-collapse: separate; + background-color: collapse; + } + TD { + border-width: 1px 1px 1px 1px; + border-spacing: 0px; + border-style: solid solid solid solid; + border-color: gray gray gray gray; + border-collapse: collapse; + background-color: white; + } + </STYLE> + </HEAD> + <body> + <form method="post" name="iform" id="iform"> + +<?php echo "Testing pfSense LDAP settings... One moment please...<p/>"; -echo "<table>"; +echo "<table width='100%'>"; echo "<tr><td>Attempting connection to {$ldapserver}</td><td>"; if(ldap_test_connection()) @@ -63,11 +89,17 @@ echo "</table><p/>"; if(is_array($ous)) { echo "Organization units found:<p/>"; - echo "<table border='1'>"; + echo "<table width='100%'>"; foreach($ous as $ou) { echo "<tr><td>" . $ou . "</td></tr>"; } echo "</table>"; } -?>
\ No newline at end of file +?> + <p/> + <input type="Button" value="Close" onClick='Javascript:window.close();'> + + </form> + </body> +</html> |