diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-11-15 01:12:54 -0800 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-11-15 01:12:54 -0800 |
commit | 1e863cd95933c77f35004ea02742d23cc74d2003 (patch) | |
tree | 26c039062d01e56ebc28a2a8a2e52e884102c49d /apps | |
parent | 49e9f771ffb524e2aa30748837fd4fca9b42f700 (diff) | |
parent | fc040755c149e496bf1c748b7b93c8c9124dbc89 (diff) | |
download | nextcloud-server-1e863cd95933c77f35004ea02742d23cc74d2003.tar.gz nextcloud-server-1e863cd95933c77f35004ea02742d23cc74d2003.zip |
Merge pull request #5700 from owncloud/ldapWizSetDisplayNames
LDAP Wizard: do not forget to set display name attributes for user and g...
Diffstat (limited to 'apps')
-rw-r--r-- | apps/user_ldap/lib/wizard.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/wizard.php b/apps/user_ldap/lib/wizard.php index 0b2a6a540ff..fb6aca9e961 100644 --- a/apps/user_ldap/lib/wizard.php +++ b/apps/user_ldap/lib/wizard.php @@ -310,6 +310,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); @@ -323,6 +330,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'); |