Skip to content

Commit 17f6c75

Browse files
committed
Remove dead code
1 parent b86e444 commit 17f6c75

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lib/Access.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -555,11 +555,9 @@ public function dn2username($fdn) {
555555
public function dn2ocname($fdn, $isUser = true) {
556556
if ($isUser) {
557557
$mapper = $this->getUserMapper();
558-
$displayNameAttribute = $this->connection->ldapUserDisplayName;
559558
$nameAttribute = (string)$this->connection->ldapExpertUsernameAttr;
560559
} else {
561560
$mapper = $this->getGroupMapper();
562-
$displayNameAttribute = $this->connection->ldapGroupDisplayName;
563561
$nameAttribute = (string)$this->connection->ldapExpertGroupnameAttr;
564562
}
565563

@@ -699,12 +697,6 @@ private function ldap2ownCloudNames($ldapObjects, $isUsers) {
699697
$ownCloudNames = [];
700698

701699
foreach ($ldapObjects as $ldapObject) {
702-
$nameByLDAP = null;
703-
if (isset($ldapObject[$nameAttribute][0])) {
704-
// might be set, but not necessarily. if so, we use it.
705-
$nameByLDAP = $ldapObject[$nameAttribute][0];
706-
}
707-
708700
$ocName = $this->dn2ocname($ldapObject['dn'][0], $isUsers);
709701
if ($ocName) {
710702
$ownCloudNames[$ldapObject['dn'][0]] = $ocName;

0 commit comments

Comments
 (0)