https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292012-11-26T04:37:24ZRedmineRedmine - Defect #11289: LDAP authentication with group filter issuehttps://www.redmine.org/issues/11289?journal_id=430712012-11-26T04:37:24Zjohn val
<ul></ul><p>Hi... guys ..</p>
<p>any update on this .. is this feature availbe in new redmine 2.1.2</p> Redmine - Defect #11289: LDAP authentication with group filter issuehttps://www.redmine.org/issues/11289?journal_id=519252013-09-21T10:42:20ZPaulo Neves
<ul></ul><p>Have you tried running it with manually with ldapsearch? (Assuming you are on *nix)</p> Redmine - Defect #11289: LDAP authentication with group filter issuehttps://www.redmine.org/issues/11289?journal_id=597352014-11-12T06:44:38ZNikolay Didenko
<ul></ul><p>It does not work for me on redmine 2.6.0.<br />My filter is "(&(objectClass=posixAccount)(sambaAcctFlags=[U ]))" - active users only<br />I was also using next filters:<br />&(objectClass=posixAccount)(sambaAcctFlags=[U ])<br />(sambaAcctFlags=[U ])<br />sambaAcctFlags=[U ]<br />When i save settings with these filters I get error "LDAP filter is invalid".</p> Redmine - Defect #11289: LDAP authentication with group filter issuehttps://www.redmine.org/issues/11289?journal_id=597482014-11-12T20:40:14ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>Invalid</i></li></ul><p>According to ruby net/ldap which is used by Redmine, this filter is invalid:</p>
<pre>
irb(main):001:0> require 'net/ldap'
=> true
irb(main):002:0> f = "(&(objectClass=posixAccount)(sambaAcctFlags=[U ]))"
=> "(&(objectClass=posixAccount)(sambaAcctFlags=[U ]))"
irb(main):003:0> Net::LDAP::Filter.construct f
Net::LDAP::LdapError: Invalid filter syntax.
</pre>
<p>[U ] seems to be the problem.</p> Redmine - Defect #11289: LDAP authentication with group filter issuehttps://www.redmine.org/issues/11289?journal_id=597702014-11-13T05:40:15ZNikolay Didenko
<ul></ul><p>Jean-Philippe Lang wrote:</p>
<blockquote>
<p>According to ruby net/ldap which is used by Redmine, this filter is invalid:</p>
<p>[...]</p>
<p>[U ] seems to be the problem.</p>
</blockquote>
<p>strange behavior of ruby net/ldap module... :(<br /><pre>
rugionpro:releases n$ ldapsearch -LLL -h localhost -p 2389 -z 1 -x -b "dc=rugion,dc=ru" -s sub '(&(objectClass=posixAccount)(sambaAcctFlags=[U ]))' "dn"
dn: *****************,dc=rugion,dc=ru
</pre></p>
<p>PS: I am using this filter in Apache Http server, some other applications successfully.</p>
<p>It is a bug in net/ldap - <a class="external" href="https://github.com/ruby-ldap/ruby-net-ldap/pull/157">https://github.com/ruby-ldap/ruby-net-ldap/pull/157</a></p>