forked from ltb-project/white-pages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Paul Curie
committed
Jun 7, 2021
1 parent
61c3b25
commit 38bb1b7
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ LDAP Tool Box White-Pages documentation | |
general-parameters.rst | ||
ldap-parameters.rst | ||
attributes.rst | ||
photos.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
Photos | ||
====== | ||
|
||
.. note:: Configuration file: ``white-pages/conf/config.inc.local.php`` | ||
|
||
Default photo | ||
------------- | ||
|
||
Configure which file is used as default photo : | ||
|
||
.. code-block:: php | ||
$default_photo = "images/240px-PICA.jpg"; | ||
LDAP attribute | ||
-------------- | ||
|
||
Set the name of the LDAP attribute where photo is stored : | ||
|
||
.. code-block:: php | ||
$photo_ldap_attribute = "jpegPhoto"; | ||
Fixed size | ||
---------- | ||
|
||
It is possible to resize all photos to a defined width and/or height : | ||
|
||
.. code-block:: php | ||
$photo_fixed_width = 240; | ||
$photo_fixed_height = 240; | ||
Local photos | ||
------------ | ||
|
||
This is possible to load a local photo from file if photo is not found in LDAP directory. | ||
|
||
Directory where photo are stored (relative to htdocs/ directory) : | ||
|
||
.. code-block:: php | ||
$photo_local_directory = "../photos/"; | ||
LDAP attribute that is used as photo file name : | ||
|
||
.. code-block:: php | ||
$photo_local_ldap_attribute = "uid"; | ||
File extenstion (with the dot) : | ||
|
||
.. code-block:: php | ||
$photo_local_extension = ".jpg"; |