Added support for LDAP user photo profile
This commit is contained in:
@@ -145,7 +145,8 @@ class User
|
||||
$entry->getFirstValue($this->getAttributeName()),
|
||||
$entry->getFirstValue($this->getAttributeEmail()),
|
||||
$this->getRole($groupIds),
|
||||
$groupIds
|
||||
$groupIds,
|
||||
$entry->getFirstValue($this->getAttributePhoto())
|
||||
);
|
||||
}
|
||||
|
||||
@@ -164,6 +165,7 @@ class User
|
||||
$this->getAttributeName(),
|
||||
$this->getAttributeEmail(),
|
||||
$this->getAttributeGroup(),
|
||||
$this->getAttributePhoto(),
|
||||
)));
|
||||
}
|
||||
|
||||
@@ -223,6 +225,17 @@ class User
|
||||
return strtolower(LDAP_USER_ATTRIBUTE_GROUPS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get LDAP profile photo attribute
|
||||
*
|
||||
* @access public
|
||||
* @return string
|
||||
*/
|
||||
public function getAttributePhoto()
|
||||
{
|
||||
return strtolower(LDAP_USER_ATTRIBUTE_PHOTO);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get LDAP Group User filter
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user