Comments (4)
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.
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.
I confirm that net-ldap 0.3.1 (and gitlab_omniauth-ldap 1.0.3) fixes the problem.
from ruby-net-ldap.
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)
- Cannot ADD new entry to LDAP Server HOT 1
- Net::LDAP::DN.escape() throws when attempting to escape attr value beginning with `#` HOT 2
- SCRAM-SHA-1(-PLUS) + SCRAM-SHA-256(-PLUS) + SCRAM-SHA-512(-PLUS) + SCRAM-SHA3-512(-PLUS) supports HOT 2
- RFC6331: Moving DIGEST-MD5 to Historic HOT 1
- Net::LDAP.new throws Error: The provided regular expression is using multiline anchors (^ or $), which may present a security risk. Did you mean to use \A and \z, or forgot to add the :multiline => true option? HOT 1
- Please make a new release HOT 4
- Cirucular require Causing JRuby stack overloaded while running rspec HOT 1
- Add SNI support for Google Secure LDAP
- RFC 9266: Channel Bindings for TLS 1.3 support
- TestSSLBER test failures HOT 1
- Add in ability to search for objectSID by specifying the binary data
- EOF errors? HOT 1
- Potential bug in connection.rb? HOT 2
- Release 0.18.0 prevents connection when verify_mode is set to OpenSSL::SSL::VERIFY_PEER HOT 1
- Add base64 dependency to gemspec or inline implementation
- Password may not be obscured by inspect if it contains meta-characters HOT 1
- Attribute names are not preserved in search
- ldapserver.rb:194:in `<main>': uninitialized constant LdapServerAsnSyntaxTemplate (NameError)
- Additional Maintainers
- SNI always on since #405 was implemented
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-net-ldap.