summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-12-14 00:58:29 +0100
committerArthur Schiwon <blizzz@owncloud.com>2012-12-14 12:03:29 +0100
commit414b7e8e036873183a8a21a603121bbe39a8c901 (patch)
tree36ceeb1f44fc9391f1206ec4393b7e120a490993 /apps/user_ldap
parentb54390f432047dd13b24159107e5bd0351859d55 (diff)
downloadnextcloud-server-414b7e8e036873183a8a21a603121bbe39a8c901.tar.gz
nextcloud-server-414b7e8e036873183a8a21a603121bbe39a8c901.zip
Also show a more prominent warning when php_ldap is not installed
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/templates/settings.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/user_ldap/templates/settings.php b/apps/user_ldap/templates/settings.php
index 470f0684847..8522d2f835c 100644
--- a/apps/user_ldap/templates/settings.php
+++ b/apps/user_ldap/templates/settings.php
@@ -7,6 +7,9 @@
<?php if(OCP\App::isEnabled('user_webdavauth')) {
echo '<p class="ldapwarning">'.$l->t('<b>Warning:</b> Apps user_ldap and user_webdavauth are incompatible. You may experience unexpected behaviour. Please ask your system administrator to disable one of them.').'</p>';
}
+ if(!function_exists('ldap_connect')) {
+ echo '<p class="ldapwarning">'.$l->t('<b>Warning:</b> The PHP LDAP module needs is not installed, the backend will not work. Please ask your system administrator to install it.').'</p>';
+ }
?>
<fieldset id="ldapSettings-1">
<p><label for="ldap_host"><?php echo $l->t('Host');?></label><input type="text" id="ldap_host" name="ldap_host" value="<?php echo $_['ldap_host']; ?>" title="<?php echo $l->t('You can omit the protocol, except you require SSL. Then start with ldaps://');?>"></p>