Removed dead code, cleaned up ldaphelper