Some miscellaneous code for debugging a particular LDAP problem. You probably shouldn't be using this.