google-code-export / ruby-activeldap

Automatically exported from code.google.com/p/ruby-activeldap
Other
1 stars 1 forks source link

Critical extension not supported #52

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
activeldap (1.2.2)

IBM Directory Server 6.1 
# idsversion
TDS base client version:6.1.0.36
TDS language(en) package version:6.1.0.36
64-bit TDS client version:6.1.0.36
TDS java client version:6.1.0.36
64-bit TDS server version:6.1.0.36
TDS base server version:6.1.0.36
64-bit TDS proxy server version:6.1.0.36
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.4 (Tikanga)
# uname -a
Linux xxxxx 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 
x86_64 GNU/Linux

irb(main):002:0> require 'rubygems'
=> true
irb(main):003:0> require 'active_ldap'
=> true
irb(main):004:0>ActiveLdap::Base.setup_connection :host => 'cscdld02', :base => 
'ou=unixadmin', :port => 389, :bind_dn => 'cn=root', :password => 'xxxxx', 
:method => :plain, :scope => :one
=> nil
irb(main):005:0> class Group < ActiveLdap::Base
irb(main):006:1> ldap_mapping :classes => ['top', 'posixGroup'], :prefix => 
'ou=group'
irb(main):007:1> end
=> Group(connection-failure)

on ldap logs:
AuditV3--2010-08-25-17:08:51.650+00:00DST--V3 POSTOP: 2200 Search--bindDN: 
cn=root--client: 172.30.210.87:10254--connectionID: 105--received: 
2010-08-25-17:08:51.649+00:00DST--Success
operationResponseTime: 1
timeOnWorkQ: 0
rdbmLockWaitTime: 0
clientIOTime: 0
controlType: 1.2.840.113556.1.4.319
criticality: false
base:
scope: baseObject
derefAliases: neverDerefAliases
typesOnly: false
filter: (objectclass=*)
attributes: subschemaSubentry

AuditV3--2010-08-25-17:08:51.771+00:00DST--V3 POSTOP: 2201 Search--bindDN: 
cn=root--client: 172.30.210.87:10254--connectionID: 105--received: 
2010-08-25-17:08:51.770+00:00DST--Critical extension not supported
operationResponseTime: 1
timeOnWorkQ: 0
rdbmLockWaitTime: 0
clientIOTime: 0
controlType: 1.2.840.113556.1.4.319
criticality: false
base: cn=schema
scope: baseObject
derefAliases: neverDerefAliases
typesOnly: false
filter: (objectclass=SUBSCHEMA)

Original issue reported on code.google.com by cuzi...@gmail.com on 25 Aug 2010 at 9:22

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
Could you show LDAP server log when you use net-ldap?

Original comment by kou...@gmail.com on 3 Oct 2010 at 1:20

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
I want to see a log for comment #1 operations.

Original comment by kou...@gmail.com on 3 Oct 2010 at 10:39

GoogleCodeExporter commented 9 years ago
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