Merge pull request #1 from dbaarda/master

Debian build updates.
Merge pull request #2 from dbaarda/master

Make auth_pam() non-blocking.
Add non-blocking delay on authentication failure
Merge branch 'master' of https://github.com/urbanserj/entente

This includes adding libev timer delays on auth failure.
Tidy code using indent.

This tidy run was done using 'indent -linux -l120 -nhnl main.c'. For
future runs you should drop the -nhnl argument.
Simplify cn2name().
Remove daemonizing() and use unistd's daemon().

Also do the daemonizing in main(), not start_ldap().
Further simplified cn2name() and did "indent -linux -l120".
Removed redundant bzero() calls after calloc(), which zero's for you.
Make bind failure delay use pam_fail_delay and pause other requests.

* Change bind failure response resultcode from "other" to
"invalidDNSyntax" or "invalidCredentials".

* Renamed bind failure delay related struct types and callbacks to be
more consistant.

* Tidied up auth_pam() and auth_pam_delay(), making them give back the
failure delay.

* Tidied up ldap_bind() and ldap_delay_cb(), making them stop/start
the connection watcher for the failure delay.