Commits

Show all
Author Commit Message Labels Comments Date
ianmacd
Updated for 0.9.1.
Tags
v0_9_1
ianmacd
Updated for version 0.9.1.
ianmacd
Version bumped to 0.9.1.
ianmacd
A minor documentation addition, since RDoc wants to document the LDAP module from this file.
ianmacd
Removed more unused variables to silence gcc.
ianmacd
Removed unused variables to keep gcc happy.
ianmacd
Removed unused variables.
ianmacd
Fix a gcc warning.
ianmacd
Add test_ssl_starttls_rebind test. test_ssl_rebind should now raise no exception, as it's now possible for SSL connections to rebind.
ianmacd
Latest batch of changes.
ianmacd
Implement rb_ldap_conn_rebind() to allow rebinding to a connection from which we have (become) unbound. We no longer use @host and @port to track connections, but instead use @args, which is an array of the arguments originally passed to Conn.new or SSLConn.new.
ianmacd
Added methods to test SASL and SSL connections.
ianmacd
Latest batch of fixes.
ianmacd
Revert code that allowed the version of LDAP::SSLConn#bind used by WLDAP32 to use @host and @port to rebind an unbound connection. It was incorrect.
ianmacd
Disallow rebinding of connections if they're SSL connections, since we don't store the required information about them and we can't allow them to rebind as non-SSL connections.
ianmacd
Use a class variable for the connection. Ensure that test_paged_results resets the connection if an error occurs. Otherwise, other tests may be carried out with controls set on the connection.
ianmacd
Use a class variable for the connection.
ianmacd
Use a class variable, as @conn was not getting reused.
ianmacd
SSLConn#open would call the method in the superclass, Conn#open. If this was passed two parameters, the method appeared to succeed, but did not use SSL. Calling this method now returns NotImplementedError.
ianmacd
Define @host and @port for LDAP::SSLConn objects, so that they can be rebound after being unbound. Additionally, add code to the versions of SSLConn#bind and SSLConn#simple_bind used by WLDAP32 so that we use @host and @port to reestablish a connection at bind time if it was previously bound.
ianmacd
Fix implicit reference to rb_ldap_conn_initialize().
ianmacd
In LDAP::Conn#sasl_bind, detect attempts to bind more than once. In LDAP::Conn#sasl_bind, if we have an invalid LDAP data structure in self, we check to see whether both @host and @port are set. If they are, we transparently call rb_ldap_conn_initialize() to revalidate self's LDAP data structure. This enables us to rebind after an unbind operation has destroyed the original LDAP data structure of the LDAP::Conn object.
ianmacd
In LDAP::Conn.new, only set @sasl_quiet to false if it is not already true, as we may be getting called from LDAP::Conn#sasl_bind if we are rebinding an unbound connection. If so and @sasl_quiet had previously been set to true, we want to keep it that way.
ianmacd
In LDAP::Conn#sasl_bind, automatically set the LDAP protocol to v3 if it is not already so.
ianmacd
Another batch of changes.
ianmacd
A general suite runner for Ruby/LDAP unit tests.
ianmacd
A suite of tests for connection functionality.
ianmacd
LDAP::Conn#bound? was throwing an exception when invoked on a Conn object on which an explicit #unbind had been performed.
ianmacd
In LDAP::Conn#simple_bind, if we have an invalid LDAP data structure in self, we check to see whether both @host and @port are set. If they are, we transparently call rb_ldap_conn_initialize() to revalidate self's LDAP data structure. This enables us to rebind after an unbind operation has destroyed the original LDAP data structure of the LDAP::Conn object.
ianmacd
In LDAP::Conn.new, set @host and @port to the host and port of the server to which we are connecting. In LDAP::Conn#bind, if we have an invalid LDAP data structure in self, we check to see whether both @host and @port are set. If they are, we transparently call rb_ldap_conn_initialize() to revalidate self's LDAP data structure. This enables us to rebind after an unbind operation has destroyed the original LDAP data structure of the LDAP::Conn object.
  1. Prev
  2. Next