File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments