Open GoogleCodeExporter opened 9 years ago
Using net-ldap directly i can bind successfully
irb(main):001:0> ldap=Net::LDAP.new
NameError: uninitialized constant Net
from (irb):1
irb(main):002:0> require 'net-ldap'
=> true
irb(main):003:0> ldap=Net::LDAP.new
=> #<Net::LDAP:0x34ede60 @base="dc=com", @verbose=false, @host="127.0.0.1",
@open_connection=nil, @auth={:method=>:anonym
ous}, @encryption=nil, @port=389>
irb(main):005:0> ldap.host='xxxxx'
=> "cscdld02"
irb(main):006:0> ldap.auth "cn=root","xxxxx"
=> {:username=>"cn=root", :method=>:simple, :password=>"xxxxx"}
irb(main):007:0> ldap.bind
=> true
irb(main):008:0>
Original comment by cuzi...@gmail.com
on 25 Aug 2010 at 9:33
Could you show LDAP server log when you use net-ldap?
Original comment by kou...@gmail.com
on 3 Oct 2010 at 1:20
When I use net-ldap... doing what? What operations do you want to see?
Original comment by cuzi...@gmail.com
on 3 Oct 2010 at 6:16
I want to see a log for comment #1 operations.
Original comment by kou...@gmail.com
on 3 Oct 2010 at 10:39
irb(main):008:0> ldap=Net::LDAP.new
=> #<Net::LDAP:0x33c21d8 @verbose=false, @encryption=nil, @port=389,
@base="dc=com", @host="127.0.0.1", @open_connection
nil, @auth={:method=>:anonymous}>
irb(main):009:0> ldap.host='xxxxx'
=> "xxxxxx"
irb(main):010:0> ldap.auth "cn=root","xxxxx"
=> {:username=>"cn=root", :password=>"xxxx", :method=>:simple}
irb(main):011:0> ldap.bind
=> true
irb(main):012:0>
AuditV3--2010-10-04-15:03:58.135+00:00DST--V3 Bind--bindDN: cn=root--client:
x.x.x.x:14099--connectionID: 3792--received:
2010-10-04-15:03:58.135+00:00DST--Success
operationResponseTime: 0
timeOnWorkQ: 0
rdbmLockWaitTime: 0
clientIOTime: 0
name: cn=root
authenticationChoice: simple
Admin Acct Status: Not Locked
AuditV3--2010-10-04-15:03:58.244+00:00DST--V3 Unbind--bindDN: cn=root--client:
x.x.x.x:14099--connectionID: 3792--received:
2010-10-04-15:03:58.244+00:00DST--Success
operationResponseTime: 0
timeOnWorkQ: 0
rdbmLockWaitTime: 0
clientIOTime: 0
Original comment by cuzi...@gmail.com
on 4 Oct 2010 at 7:06
Original issue reported on code.google.com by
cuzi...@gmail.com
on 25 Aug 2010 at 9:22