mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-26 19:54:46 +01:00
Merge branch 'master' of ssh://git.labs.libre-entreprise.org/gitroot/ldapsaisie
This commit is contained in:
commit
3838af68bf
1 changed files with 8 additions and 7 deletions
|
@ -29,6 +29,7 @@ class LSgroup extends LSldapObject {
|
||||||
|
|
||||||
var $userObjectType = 'LSpeople';
|
var $userObjectType = 'LSpeople';
|
||||||
var $memberAttr = 'uniqueMember';
|
var $memberAttr = 'uniqueMember';
|
||||||
|
var $memberAttrValue = 'dn';
|
||||||
|
|
||||||
/* ========== Members ========== */
|
/* ========== Members ========== */
|
||||||
/**
|
/**
|
||||||
|
@ -39,7 +40,7 @@ class LSgroup extends LSldapObject {
|
||||||
* @retval Mixed La valeur clef d'un membre
|
* @retval Mixed La valeur clef d'un membre
|
||||||
**/
|
**/
|
||||||
function getMemberKeyValue($object) {
|
function getMemberKeyValue($object) {
|
||||||
return $this -> getObjectKeyValueInRelation($object,$this -> userObjectType);
|
return $this -> getObjectKeyValueInRelation($object,$this -> memberAttr,$this -> userObjectType);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -53,7 +54,7 @@ class LSgroup extends LSldapObject {
|
||||||
* @retval Array of LSgroup Les groupes de l'utilisateur
|
* @retval Array of LSgroup Les groupes de l'utilisateur
|
||||||
**/
|
**/
|
||||||
function listUserGroups($userObject) {
|
function listUserGroups($userObject) {
|
||||||
return $this -> listObjectsInRelation($userObject,$this -> memberAttr,$this -> userObjectType);
|
return $this -> listObjectsInRelation($userObject,$this -> memberAttr,$this -> userObjectType,$this -> memberAttrValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -64,7 +65,7 @@ class LSgroup extends LSldapObject {
|
||||||
* @retval boolean true si l'utilisateur à été ajouté, False sinon
|
* @retval boolean true si l'utilisateur à été ajouté, False sinon
|
||||||
**/
|
**/
|
||||||
function addOneMember($object) {
|
function addOneMember($object) {
|
||||||
return $this -> addOneObjectInRelation($object,$this -> memberAttr, $this -> userObjectType,'dn','canEditGroupRelation');
|
return $this -> addOneObjectInRelation($object,$this -> memberAttr, $this -> userObjectType,$this -> memberAttrValue,'canEditGroupRelation');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -75,7 +76,7 @@ class LSgroup extends LSldapObject {
|
||||||
* @retval boolean true si l'utilisateur à été supprimé, False sinon
|
* @retval boolean true si l'utilisateur à été supprimé, False sinon
|
||||||
**/
|
**/
|
||||||
function deleteOneMember($object) {
|
function deleteOneMember($object) {
|
||||||
return $this -> deleteOneObjectInRelation($object,$this -> memberAttr,$this -> userObjectType,'dn','canEditGroupRelation');
|
return $this -> deleteOneObjectInRelation($object,$this -> memberAttr,$this -> userObjectType,$this -> memberAttrValue,'canEditGroupRelation');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -87,7 +88,7 @@ class LSgroup extends LSldapObject {
|
||||||
* @retval boolean True en cas de succès, False sinon
|
* @retval boolean True en cas de succès, False sinon
|
||||||
*/
|
*/
|
||||||
function renameOneMember($object,$oldDn) {
|
function renameOneMember($object,$oldDn) {
|
||||||
return $this -> renameOneObjectInRelation($object,$oldDn,$this -> memberAttr,$this -> userObjectType);
|
return $this -> renameOneObjectInRelation($object,$oldDn,$this -> memberAttr,$this -> userObjectType,$this -> memberAttrValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -99,7 +100,7 @@ class LSgroup extends LSldapObject {
|
||||||
* @retval boolean true si tout c'est bien passé, False sinon
|
* @retval boolean true si tout c'est bien passé, False sinon
|
||||||
**/
|
**/
|
||||||
function updateUserGroups($object,$listDns) {
|
function updateUserGroups($object,$listDns) {
|
||||||
return $this -> updateObjectsInRelation($object,$listDns,$this -> memberAttr,$this -> userObjectType,'dn','canEditGroupRelation');
|
return $this -> updateObjectsInRelation($object,$listDns,$this -> memberAttr,$this -> userObjectType,$this -> memberAttrValue,'canEditGroupRelation');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue