SF Bug #3406852 - Cant display userCertificate;binary attribute #26

Open
opened 2015-09-25 04:39:17 +00:00 by deon · 1 comment
deon commented 2015-09-25 04:39:17 +00:00 (Migrated from gitlab.dege.au)

In my LDAP Server we have inetOrgPerson objects with userCertificate;binary attribute. If I try to display one of this object I get this error:

`Error There was a request to add an attribute (13), but it was already defined (xmlTemplate::addAttribute)

PHP Debug Backtrace
File /usr/share/webapps/phpldapadmin/lib/functions.php (444) Function error (a:5:{i:0;s:101:"There was a request to add an attr...)
File /usr/share/webapps/phpldapadmin/lib/xmlTemplates.php (448) Function debug_dump_backtrace (a:2:{i:0;s:101:"There was a request to add an attr...)
File /usr/share/webapps/phpldapadmin/lib/Template.php (286) Function addAttribute (a:2:{i:0;s:22:"usercertificate;binary";i:1;a:1:{s:...)
File /usr/share/webapps/phpldapadmin/lib/PageRender.php (78) Function accept (a:0:{})
File /usr/share/webapps/phpldapadmin/lib/TemplateRender.php (53) Function accept (a:0:{})
File /usr/share/webapps/phpldapadmin/htdocs/template_engine.php (48) Function accept (a:0:{}) 
File /usr/share/webapps/phpldapadmin/htdocs/cmd.php (63) Function include (a:1:{i:0;s:58:"/usr/share/webapps/phpldapadmin/htd...)

phpldapadmin: 1.2.1.1 openldap: 2.4.26 apache: 2.2.20 php: 5.3.8 ArchLinux

In my LDAP Server we have inetOrgPerson objects with userCertificate;binary attribute. If I try to display one of this object I get this error: `Error There was a request to add an attribute (13), but it was already defined (xmlTemplate::addAttribute) ``` PHP Debug Backtrace File /usr/share/webapps/phpldapadmin/lib/functions.php (444) Function error (a:5:{i:0;s:101:"There was a request to add an attr...) File /usr/share/webapps/phpldapadmin/lib/xmlTemplates.php (448) Function debug_dump_backtrace (a:2:{i:0;s:101:"There was a request to add an attr...) File /usr/share/webapps/phpldapadmin/lib/Template.php (286) Function addAttribute (a:2:{i:0;s:22:"usercertificate;binary";i:1;a:1:{s:...) File /usr/share/webapps/phpldapadmin/lib/PageRender.php (78) Function accept (a:0:{}) File /usr/share/webapps/phpldapadmin/lib/TemplateRender.php (53) Function accept (a:0:{}) File /usr/share/webapps/phpldapadmin/htdocs/template_engine.php (48) Function accept (a:0:{}) File /usr/share/webapps/phpldapadmin/htdocs/cmd.php (63) Function include (a:1:{i:0;s:58:"/usr/share/webapps/phpldapadmin/htd...) ``` phpldapadmin: 1.2.1.1 openldap: 2.4.26 apache: 2.2.20 php: 5.3.8 ArchLinux
deon commented 2015-09-25 05:03:42 +00:00 (Migrated from gitlab.dege.au)

Comment from Patrick Monnerat/Nov 1, 2013 (sorry to report it here: I cannot find another way to leave a comment for an issue)

I have a rough patch for this: it works on Fedora 64bit and openldap. No other tests performed. It needs additonal processing for LDIF import, but I did not want to set it in this patch because it'll conflict with the one in issue #40.

Please find patch here.

Comment from Patrick Monnerat/Nov 1, 2013 (sorry to report it here: I cannot find another way to leave a comment for an issue) I have a rough patch for this: it works on Fedora 64bit and openldap. No other tests performed. It needs additonal processing for LDIF import, but I did not want to set it in this patch because it'll conflict with the one in issue #40. Please find patch [here](http://www.datasphere.ch/store/7XS3f5p7K4PU6zcVj5P-UrzHieUYmIj2LAb-UPUZs7FGwkUHr3ztjT5kOuoyxAPNGhh8OqcO-jQcGOs/phpldapadmin-1.2.3-binaryoption.patch).
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: deon/phpldapadmin#26
No description provided.