Fixed display of Windows AD binary attributes
This commit is contained in:
parent
8a21bbee12
commit
9eca46d0cc
@ -606,6 +606,9 @@ class PageRender extends Visitor {
|
|||||||
|
|
||||||
final protected function drawCurrentValueBinaryAttribute($attribute,$i) {
|
final protected function drawCurrentValueBinaryAttribute($attribute,$i) {
|
||||||
printf('<small>[%s]</small>',_('Binary Value'));
|
printf('<small>[%s]</small>',_('Binary Value'));
|
||||||
|
|
||||||
|
if (in_array($attribute->getName(),array('objectsid')))
|
||||||
|
printf('<small> (%s)</small>', binSIDtoText($attribute->getValue(0)));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function drawFormReadOnlyValueBinaryAttribute($attribute,$i) {
|
protected function drawFormReadOnlyValueBinaryAttribute($attribute,$i) {
|
||||||
|
@ -2112,6 +2112,7 @@ class ldap extends DS {
|
|||||||
strcasecmp($attr_name,'networkaddress') == 0 ||
|
strcasecmp($attr_name,'networkaddress') == 0 ||
|
||||||
strcasecmp($attr_name,'objectGUID') == 0 ||
|
strcasecmp($attr_name,'objectGUID') == 0 ||
|
||||||
strcasecmp($attr_name,'objectSID') == 0 ||
|
strcasecmp($attr_name,'objectSID') == 0 ||
|
||||||
|
strcasecmp($attr_name,'auditingPolicy') == 0 ||
|
||||||
strcasecmp($attr_name,'jpegPhoto') == 0 ||
|
strcasecmp($attr_name,'jpegPhoto') == 0 ||
|
||||||
$syntax == '1.3.6.1.4.1.1466.115.121.1.10' ||
|
$syntax == '1.3.6.1.4.1.1466.115.121.1.10' ||
|
||||||
$syntax == '1.3.6.1.4.1.1466.115.121.1.28' ||
|
$syntax == '1.3.6.1.4.1.1466.115.121.1.28' ||
|
||||||
|
@ -1979,8 +1979,6 @@ function ldap_error_msg($msg,$errnum) {
|
|||||||
* fixed_width, fixed_height, img_opts.
|
* fixed_width, fixed_height, img_opts.
|
||||||
*/
|
*/
|
||||||
function draw_jpeg_photo($server,$dn,$attr_name='jpegphoto',$index,$draw_delete_buttons=false,$options=array()) {
|
function draw_jpeg_photo($server,$dn,$attr_name='jpegphoto',$index,$draw_delete_buttons=false,$options=array()) {
|
||||||
global $app;
|
|
||||||
|
|
||||||
if (DEBUG_ENABLED)
|
if (DEBUG_ENABLED)
|
||||||
debug_log('Entered with (%s,%s,%s,%s,%s,%s)',1,__FILE__,__LINE__,__METHOD__,
|
debug_log('Entered with (%s,%s,%s,%s,%s,%s)',1,__FILE__,__LINE__,__METHOD__,
|
||||||
is_object($server),$dn,$attr_name,$index,$draw_delete_buttons,$img_html_attrs);
|
is_object($server),$dn,$attr_name,$index,$draw_delete_buttons,$img_html_attrs);
|
||||||
|
Loading…
Reference in New Issue
Block a user