Testing LDAP server return code?