LDAP: fix sharing doesn't work with ldap groups, oc-1819
This commit is contained in:
parent
43c85248d4
commit
33e9399ba3
|
@ -237,7 +237,7 @@ class GROUP_LDAP extends lib\Access implements \OCP\GroupInterface {
|
||||||
}
|
}
|
||||||
|
|
||||||
//getting dn, if false the group does not exist. If dn, it may be mapped only, requires more checking.
|
//getting dn, if false the group does not exist. If dn, it may be mapped only, requires more checking.
|
||||||
$dn = $this->username2dn($gid);
|
$dn = $this->groupname2dn($gid);
|
||||||
if(!$dn) {
|
if(!$dn) {
|
||||||
$this->connection->writeToCache('groupExists'.$gid, false);
|
$this->connection->writeToCache('groupExists'.$gid, false);
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -123,7 +123,13 @@ abstract class Access {
|
||||||
* returns the LDAP DN for the given internal ownCloud name of the group
|
* returns the LDAP DN for the given internal ownCloud name of the group
|
||||||
*/
|
*/
|
||||||
public function groupname2dn($name) {
|
public function groupname2dn($name) {
|
||||||
return $this->ocname2dn($name, false);
|
$dn = $this->ocname2dn($name, false);
|
||||||
|
|
||||||
|
if($dn) {
|
||||||
|
return $dn;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue