dappy
dappy copied to clipboard
Differentiate input errors from other internal errors
There are two types of errors:
- Input errors, which should be treated as soft failures
- Not found: the input username does not exist
- Invalid Credentials: the input password does not match the given username
- Internal Errors, which should be treated as hard failures
- The given
ROUseris not valid - The given
BaseDNdoes not exist - The given
Hostcan not be connected - The given
Filterhas a syntax error - Other errors from the LDAP server
- The given
Also, the existing input errors can not be compared in an idiomatic way.