Here's the patches for adding the test, the SQL fix, and the LDAP fix. I fixed a comment error in the test patch.
Here's the patches for adding the test, the SQL fix, and the LDAP fix. I fixed a comment error in the test patch.