Feature #12811
closedASCII-8BIT to UTF-8 problems -update net-ldap with net-ldap-1 -v0.4.0
Added by Terence Mill almost 14 years ago. Updated over 6 years ago.
Description
There are net-ldap charset bugs which hit when using the library far redmnine usage, e.g in redmine_ldap_sync plugin
The bug is solved in net-ldap-1 -v 0.4.0
Please upgrade and testbed.
Updated by Miodrag Milic almost 14 years ago
Actions
#1
+1.
You also cant add it to the Gemfile.local so u need to change it after each update.
Updated by Ricardo S almost 14 years ago
Actions
#2
+1
Updated by Etienne Massip almost 14 years ago
Actions
#3
net-ldap-1 is actually not the same gem but a gem specifically bundled for this fix ; the problem has been fixed in net-ldap master but is maybe not to be released soon because project has become inactive since then.
Updated by Jean-Philippe Lang almost 14 years ago
Actions
#4
Sad to see that there's no stable gem for using LDAP. I would prefer to include the patch in Redmine rather than switching to this gem. Does this single fix below solve the encoding problems?
Updated by Terence Mill almost 14 years ago
Actions
#5
Jean-Philippe Lang wrote:
Sad to see that there's no stable gem for using LDAP. I would prefer to include the patch in Redmine rather than switching to this gem. Does this single fix below solve the encoding problems?
Yes, that shall fix it.
Updated by Terence Mill almost 14 years ago
Actions
#6
Please pull this patch into the next release, as redmine_ldap_sync is a major plugin and without in some cases unsuable.
Updated by Ricardo S almost 14 years ago
Actions
#7
In the meanwhile I've included the following patch on the ldap_sync plugin.
require 'net/ldap'
module Net::BER::Extensions::String
def raw_utf8_encoded
if self.respond_to?(:encode) && self.encoding.name != 'ASCII-8BIT'
self.encode('UTF-8').force_encoding('ASCII-8BIT')
else
self
end
end
end
If it gets integrated on the next release I'll remove it.
Updated by Etienne Massip over 12 years ago
Actions
#9
- Related to Feature #17618: Upgrade net-ldap version to 0.12.0 added
Updated by Jan from Planio www.plan.io about 11 years ago
Actions
#10
- Description updated (diff)
Removing link to net-ldap-1. Please note the -1 at the end -- it's not the official gem!
Using it instead of the proper net-ldap gem as specified in Redmine's Gemfile can lead to a severe authentication bypass scenario under certain circumstances because net-ldap-1 changes how successful or unsuccessful authentication is reported back to the caller (Redmine).
Please do not use net-ldap-1 and wait (or help work on) a proper fix for this in Redmine.
Updated by Toshi MARUYAMA almost 11 years ago
Actions
#11
- Category changed from Gems support to LDAP
Updated by Toshi MARUYAMA almost 11 years ago
Actions
#12
- Related to Defect #21453: LDAP account creation fails when first name/last name contain non ASCII added