bearded / ruby-ldap

Ruby/LDAP is an extension library for Ruby. It provides the interface to some LDAP libraries (e.g. OpenLDAP, Netscape SDK and Active Directory). The common API for application development is described in RFC1823 and is supported by Ruby/LDAP.
http://rubyforge.org/projects/ruby-ldap/
Other
66 stars 34 forks source link

Provide initialization method that accepts LDAP URIs #2

Closed rhafer closed 12 years ago

rhafer commented 14 years ago

I would be very helpful if the LDAP::Conn class would implement a constructor that accepts LDAP URIs. (I.e. a simple wrapper around the ldap_initialize() functions in OpenLDAP's C API). That way Ruby/LDAP could e.g. easily be used to access LDAP servers via LDAPI (LDAP over IPC/Unix Domain Sockets) and ldaps access could be implemented in a very transparent way as well (by just calling ldap_initialize("ldaps://")) without the need to call special functions for SSL.

ghost commented 12 years ago

hey, @rhafer, please try to use method LDAP::Conn.open_uri(uri) that was added in pull request #9