diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-12-31 06:33:37 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-12-31 06:33:37 +0000 |
commit | 0b5ed732ed814a451bc1e88ca233b44e69febb71 (patch) | |
tree | f717319f68a5c9c030acd13bc5e6718a93b8bbb9 /usr/local/www | |
parent | c4e2e864c05645eed0791e6380ab4062d8e55c74 (diff) | |
download | pfsense-0b5ed732ed814a451bc1e88ca233b44e69febb71.zip pfsense-0b5ed732ed814a451bc1e88ca233b44e69febb71.tar.gz |
Gracefully bail out if the LDAP server is unavailable.
Work sponsored-by: Centipede Networks
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/system_usermanager_settings_ldapacpicker.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/www/system_usermanager_settings_ldapacpicker.php b/usr/local/www/system_usermanager_settings_ldapacpicker.php index a8441b8..28f8cb1 100644 --- a/usr/local/www/system_usermanager_settings_ldapacpicker.php +++ b/usr/local/www/system_usermanager_settings_ldapacpicker.php @@ -85,6 +85,10 @@ if($_POST) { <?php $ous = ldap_get_user_ous(true); $pconfig['ldapauthcontainers'] = split(";",$config['system']['webgui']['ldapauthcontainers']); + if(!is_array($ous)) { + echo "Sorry, we could not connect to the LDAP server. Please try later."; + exit; + } foreach($ous as $ou) { if(in_array($ou, $pconfig['ldapauthcontainers'])) $CHECKED=" CHECKED"; |