aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-11-05 13:19:32 +0100
committerArthur Schiwon <blizzz@owncloud.com>2013-11-05 13:19:32 +0100
commitfc040755c149e496bf1c748b7b93c8c9124dbc89 (patch)
treeded5ebb3c2d8562f4763d0d34e0e09893317f9ab /apps
parentc3898061a8e8026ea608d5c79f597adf4cacc96c (diff)
downloadnextcloud-server-fc040755c149e496bf1c748b7b93c8c9124dbc89.tar.gz
nextcloud-server-fc040755c149e496bf1c748b7b93c8c9124dbc89.zip
LDAP Wizard: do not forget to set display name attributes for user and group, makes Test Connection succeed
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/lib/wizard.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/wizard.php b/apps/user_ldap/lib/wizard.php
index 9428a98e29c..a2628ed1c8f 100644
--- a/apps/user_ldap/lib/wizard.php
+++ b/apps/user_ldap/lib/wizard.php
@@ -328,6 +328,13 @@ class Wizard extends LDAPUtility {
))) {
return false;
}
+ //make sure the use display name is set
+ $displayName = $this->configuration->ldapGroupDisplayName;
+ if(empty($displayName)) {
+ $d = $this->configuration->getDefaults();
+ $this->applyFind('ldap_group_display_name',
+ $d['ldap_group_display_name']);
+ }
$filter = $this->composeLdapFilter(self::LFILTER_GROUP_LIST);
$this->applyFind('ldap_group_filter', $filter);
@@ -343,6 +350,12 @@ class Wizard extends LDAPUtility {
))) {
return false;
}
+ //make sure the use display name is set
+ $displayName = $this->configuration->ldapUserDisplayName;
+ if(empty($displayName)) {
+ $d = $this->configuration->getDefaults();
+ $this->applyFind('ldap_display_name', $d['ldap_display_name']);
+ }
$filter = $this->composeLdapFilter(self::LFILTER_USER_LIST);
if(!$filter) {
throw new \Exception('Cannot create filter');