]> source.dussan.org Git - nextcloud-server.git/commitdiff
Also show a more prominent warning when php_ldap is not installed
authorArthur Schiwon <blizzz@owncloud.com>
Thu, 13 Dec 2012 23:58:29 +0000 (00:58 +0100)
committerArthur Schiwon <blizzz@owncloud.com>
Fri, 14 Dec 2012 11:03:29 +0000 (12:03 +0100)
apps/user_ldap/templates/settings.php

index 470f0684847add54b5102ee16cecc1eebebc7269..8522d2f835cac26d7a63249efd2e0386856fcaf8 100644 (file)
@@ -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>