our php error() does not take errno argument
cleanup: use non-deprecated kbd tag instead of tt
defined class attribute is named _tuple, not tuple
unbreak LDAP authentication

remove check for teamid which is not in the other authentication
schemes and is never set in this function
typo in error function name
cleanup: remove unused variables
cleanup: properly terminate statements