Fixed display of Windows AD binary attributes

This commit is contained in:
Deon George 2009-08-13 21:39:43 +10:00
parent 8a21bbee12
commit 9eca46d0cc
3 changed files with 4 additions and 2 deletions

View File

@ -606,6 +606,9 @@ class PageRender extends Visitor {
final protected function drawCurrentValueBinaryAttribute($attribute,$i) {
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) {

View File

@ -2112,6 +2112,7 @@ class ldap extends DS {
strcasecmp($attr_name,'networkaddress') == 0 ||
strcasecmp($attr_name,'objectGUID') == 0 ||
strcasecmp($attr_name,'objectSID') == 0 ||
strcasecmp($attr_name,'auditingPolicy') == 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.28' ||

View File

@ -1979,8 +1979,6 @@ function ldap_error_msg($msg,$errnum) {
* fixed_width, fixed_height, img_opts.
*/
function draw_jpeg_photo($server,$dn,$attr_name='jpegphoto',$index,$draw_delete_buttons=false,$options=array()) {
global $app;
if (DEBUG_ENABLED)
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);