alexey-chebotar/ruby-ldap — pull request #20 by pwillred (2013-06-24 17:12:16+00:00)
Title: The gem always canonicalizes the realm for GSSAPI with reverse DNS lookups

Note: This patch is branched off of pull request 19.

Currently, ruby-ldap always canonicalizes the hostname for SASL binds. If reverse DNS is not properly set up or cannot be modified, this can result in SASL attempting to make requests using an incorrect realm.

This patch adds one additional argument to rb_ldap_conn_sasl_bind to include one final hash for general LDAP options. Currently, including the symbol :nocanon in the hash will result in LDAP not canonicalizing the hostname. This will cause similar behavior to adding the flag "-N" to ldapsearch. See ldap_set_option(3) for more information.