diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-09-04 08:32:27 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-09-04 08:33:16 -0400 |
commit | 504bd882f87348b47f91d1b416f4ccc96e9b6677 (patch) | |
tree | 44fde91f02fab6707c4b344da3d6019e2494d597 /src/usr/local/www/system_authservers.php | |
parent | 8a251ec210e0c5d04b18dd09eec44ded53180ce0 (diff) | |
download | pfsense-504bd882f87348b47f91d1b416f4ccc96e9b6677.zip pfsense-504bd882f87348b47f91d1b416f4ccc96e9b6677.tar.gz |
Fixed #5088
Form restoration revisited
Diffstat (limited to 'src/usr/local/www/system_authservers.php')
-rw-r--r-- | src/usr/local/www/system_authservers.php | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/usr/local/www/system_authservers.php b/src/usr/local/www/system_authservers.php index 8d750bf..3c3b8d1 100644 --- a/src/usr/local/www/system_authservers.php +++ b/src/usr/local/www/system_authservers.php @@ -353,11 +353,16 @@ if ($_POST) { pfSenseHeader("system_authservers.php"); } - else { - $pconfig = $_POST; // Restore the form contents so the user doesn't have to re-eneter it - } } +// On error, restore the form contents so the user doesn't have to re-eneter it +if($_POST && $input_errors) { + $pconfig = $_POST; + $pconfig['ldap_authcn'] = $_POST['ldapauthcontainers']; + $pconfig['ldap_authcn'] = $_POST['ldapauthcontainers']; +} + + include("head.inc"); if ($input_errors) @@ -530,11 +535,10 @@ $group->add(new Form_Input( ))->setHelp('Note: Semi-Colon separated. This will be prepended to the search '. 'base dn above or you can specify full container path containing a dc= '. 'component.<br/>Example: CN=Users;DC=example,DC=com or OU=Staff;OU=Freelancers'); -#FIXME + $group->add(new Form_Button( 'Select', 'Select a container' -// '/system_usermanager_settings_ldapacpicker.php?port=389&host=192.168.1.1&scope=one&basedn=CN=pfsense&binddn=&bindpw=&urltype=TCP%20-%20Standard&proto=3&authcn=OU=Staff&cert=' ))->removeClass('btn-primary')->addClass('btn-default'); $section->add($group); @@ -814,11 +818,11 @@ events.push(function(){ $('#Select').click(function () { select_clicked(); }); - + $('#ldap_extended_enabled').click(function () { hideClass('extended', !this.checked); }); - + }); //]]> </script> |