I want to expand php-generated webpage to show jpeg picture saved in LDAP directory.
I can search and show all general attributes like cn, mail and similar, but I can't show jpegphoto attribute.
It seems that problem with right output from ldap_get_entries() call.
How to resolve this, if it possible?
Code that I use to check thing:
Code: Select all
$sr = ldap_search($ds, $base_bn, $filter, array("uid","mail","jpegPhoto"));
$info = ldap_get_entries($ds,$sr);
echo "<pre>";
print_r($info);
echo "</pre>";Code: Select all
Array
(
їcount] => 1
ї0] => Array
(
їuid] => Array
(
їcount] => 1
ї0] => avv
)
ї0] => uid
їmail] => Array
(
їcount] => 1
ї0] => avv@comm.ttg
)
ї1] => mail
їjpegphoto] => Array
(
їcount] => 1
ї0] => ЪьЪЮ
)
ї2] => jpegphoto
їcount] => 3
їdn] => uid=avv,ou=People,dc=tgs,dc=ttg
)
)ldap_search at the Linux command line show me nice information.
All of this reside on RH7.3 with stock Apache/PHP/LDAP.
Thank you.