6.0.0-beta1
9/6/25

[#4692] GetGroupName() when dn contains french accents
Summary GetGroupName() when dn contains french accents
Queue Horde Framework Packages
Queue Version HEAD
Type Bug
State Resolved
Priority 1. Low
Owners chuck (at) horde (dot) org
Requester patrick.abiven (at) apitech (dot) fr
Created 11/23/2006 (6862 days ago)
Due
Updated 11/24/2007 (6496 days ago)
Assigned 11/01/2007 (6519 days ago)
Resolved 11/24/2007 (6496 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/24/2007 09:48:16 PM Chuck Hagenbuch Comment #6
Assigned to Chuck Hagenbuch
State ⇒ Resolved
Reply to this comment
Going to resolve since there's been no feedback.
11/01/2007 03:12:10 AM Chuck Hagenbuch Comment #5
State ⇒ Feedback
Taken from ben
Taken from Ben Klang
Reply to this comment
I've added this along with several other improvements and bits of 
consistency in error checking. Please take a look at this diff:



http://cvs.horde.org/diff.php?r1=1.35&r2=1.36&f=framework%2FGroup%2FGroup%2Fldap.php



and test if possible. Apologies for the delay in getting to this. Thanks!
05/13/2007 04:28:04 AM Chuck Hagenbuch Comment #4
Assigned to Ben Klang
Reply to this comment
Pinging the Bens here too.
01/22/2007 03:27:53 PM patrick (dot) abiven (at) apitech (dot) fr Comment #3 Reply to this comment
Hello

When dn contains french accent, the $result[0] is not set and we get 
an invalid index exception.

In getGroupName(), I use the following workaround:

- $result = ldap_explode_dn($dn, 1);

+ $result = ldap_explode_dn(String::convertCharset($dn, 
NLS::getCharset(), 'UTF-8'), 1);

Regards

Patrick
Some of the notes from the manual might be useful here:
http://us3.php.net/ldap-explode-dn

Patrick, can you be more specific than "incorrect"? Are the hex codes
described in those manual notes the problem?
11/24/2006 05:07:25 AM Chuck Hagenbuch Comment #2
Assigned to ben
State ⇒ Assigned
Reply to this comment
Some of the notes from the manual might be useful here:

http://us3.php.net/ldap-explode-dn



Patrick, can you be more specific than "incorrect"? Are the hex codes 
described in those manual notes the problem?
11/23/2006 04:30:05 PM patrick (dot) abiven (at) apitech (dot) fr Comment #1
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Queue ⇒ Horde Framework Packages
Summary ⇒ GetGroupName() when dn contains french accents
Type ⇒ Bug
Reply to this comment
Hello

We are working in ISO-8859-1 charset.

lib/Group/ldap.php getGroupName function uses ldap_explode_dn. But 
when the $dn contains french accents, the return is incorrect.



As a  workaround, we use:

$result = split ("[=,]", utf8_encode ($dn));

return utf8_decode($result[1]);

But there is maybe a better way to do that. Thanks for your advises.

Regards

Patrick


Saved Queries