Import sys so that we can print to sys.stderr.  (Problem manifested
itself as the view crashing when an invalid name/password combo was used
to log in.  Other LDAP errors would have caused the same problem.)