Force ASCII-8BIT since the default encoding for scripts is UTF-8 in 2.0.

See https://www.ruby-lang.org/en/news/2013/02/24/ruby-2-0-0-p0-is-released/
Don't automatically close the shared pipe used to get the DRb URI.

Ruby 2.0+ automatically closes all descriptors except 0, 1, 2 (input/output/error)
in child processes.  We need the child process (the server) to write it's DRb URI to
the writer descriptor so the client can read it.  Set close_on_exec to false
in the writer descriptor so it doesn't get closed on us.
See: https://bugs.ruby-lang.org/issues/5041

Fixes #459
Add user authentication by userid for Ldap user provisioning.

Since at that moment of provisioning the user has already logged in and is defined in the VMDB.

https://bugzilla.redhat.com/show_bug.cgi?id=1139763
Add test cases for User.find_or_create_by_ldap_attr.

https://bugzilla.redhat.com/show_bug.cgi?id=1139763
Remove ruby 2.0 deprecated StringIO#lines by using #each_line.

StringIO#each_line without a block returning an Enumerator exists on ruby 1.9.3 so we can start enjoying this now and remove the 2.0 deprecation.

See: http://www.ruby-doc.org/stdlib-1.9.3/libdoc/stringio/rdoc/StringIO.html#method-i-each_line
Force a binary string literal as binary for ruby 2.0+.

See #218 #465 #589

Ruby 2.0 reads Strings in ruby scripts by default as UTF-8 unless you specify a magic comment #coding or force the encoding.

Binary string literals, if they can't be converted to UTF-8, will not be equivalent to their binary string counterparts:

```
"\222dL\256".force_encoding("ASCII-8BIT") == "\222dL\256".force_encoding("UTF-8")
=> false
```

Whereas, compatible conversions will be equivalent:

```
"\001\002".force_encoding("ASCII-8BIT") == "\001\002".force_encoding("UTF-8")
=> true
```
Merge pull request #682 from jrafanie/dont_close_fd_on_exec

Don't automatically close the shared pipe used to get the DRb URI.
Merge pull request #713 from lfu/ldap_dn_provision_after_logon_1139763

Add user authentication by userid for Ldap user provisioning.
Merge pull request #714 from jrafanie/remove_ruby2_stringio_lines_deprecation

Remove ruby 2.0 deprecated StringIO#lines by using #each_line.
Merge pull request #218 from jrafanie/force_binary_encoding_due_to_utf8_default_in_ruby_2_0

Force ASCII-8BIT since the default encoding for scripts is UTF-8 in 2.0.
Merge pull request #715 from jrafanie/force_ec2_global_key_binary

Force a binary string literal as binary for ruby 2.0+.