… only" This reverts commit 218fcb1.
2125251 - New patch for LDAP::Mod data corruption 1846626 - Modify mod_type dangling pointer corruption)
…es), LDAP::explode_rdn(rdn, notypes)
- memory allocated by "Data_Make_Struct(klass,..." - were not free by .._free method - methods ldap_first_attribute, ldap_next_attribute ... returns string allocated by libldap -> should be free by ldap_memfree() - ldap_first_attribute allocate iterrator -> should be free by ber_free()
To compile with ruby 1.9.2, it replaces obsolete STR2CSTR with StringValuePtr. Note: StringValuePtr needs a lvalue argument, therefore it uses a temporary variable to call it.
This adds a hash parameter "options" to LDAP::Conn.sasl_bind, which can take :authzid, :authcid, and :realm (and corresponding strings), for SASL authentication. Also, refactored the rb_scan_args inside rb_ldap_conn_sasl_bind to use C's case fallthrough, leading to less code repetition.