Giter Club home page Giter Club logo

Comments (4)

mgrobelin avatar mgrobelin commented on June 30, 2024

Similar experience for me.

gitlab - Rails webapp like Github - uses net-ldap and fails to auth against my 389-ds 1.2.10.4 on Ubuntu precise.

So far, I have sucessfully used that server for an other Rails app (uses "ruby-ldap" lib) and dozens of PHP tools without problems.

Actually, net-ldap is the first lib I've met that does not work with 389-ds :(

Log:
[11/Oct/2012:16:42:27 +0200] conn=3904 op=0 BIND dn="uid=gitlab,ou=special users,dc=example,dc=com" method=128 version=3
[11/Oct/2012:16:42:27 +0200] conn=3904 op=0 RESULT err=0 tag=97 nentries=0 etime=0 dn="uid=gitlab,ou=special users,dc=example,dc=com"
[11/Oct/2012:16:42:27 +0200] conn=3904 op=1 SRCH base="" scope=0 filter="(objectClass=*)", failed to decode LDAP controls
[11/Oct/2012:16:42:27 +0200] conn=3904 op=1 RESULT err=2 tag=101 nentries=0 etime=0
[11/Oct/2012:16:42:27 +0200] conn=3904 op=2 SRCH base="" scope=2 filter="(uid=mgrobelin)", failed to decode LDAP controls
[11/Oct/2012:16:42:27 +0200] conn=3904 op=2 RESULT err=2 tag=101 nentries=0 etime=0
[11/Oct/2012:16:42:27 +0200] conn=3904 op=-1 fd=75 closed - B1

from ruby-net-ldap.

jordansissel avatar jordansissel commented on June 30, 2024

This works for me (for those of you having this problem) - net-ldap 0.3.1 and 389ds, no idea what version

require "net/ldap"

ldap = Net::LDAP.new(
  :host => "389dc.example.com",
  :port => 636,
  :username => "uid=me,cn=users,dc=example,dc=co",
  :password => "super secret",
  :encryption => :simple_tls
)

ldap.search(:base => "cn=users,dc=example,dc=com") do |entry|
  puts entry.dn
end

from ruby-net-ldap.

lightoze avatar lightoze commented on June 30, 2024

I confirm that net-ldap 0.3.1 (and gitlab_omniauth-ldap 1.0.3) fixes the problem.

from ruby-net-ldap.

mtodd avatar mtodd commented on June 30, 2024

Closing as this issue appears to be resolved with updated versions of net-ldap. Please let me know if newer versions are hitting similar problems (though a separate issue should be filed).

from ruby-net-ldap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.