I have been fighting for months now authentication problems, and I have finally found 2 separate causes:
Primary symptom: Remote SSL vpn: authentication failures.
Cause #1: Spaces in local user account names. In this case, authentication was working fine, nothing of interest in the access_server.log. Authentication was working for everything, but the sslvpn log showed authentication errors, despite logs in AD showing success. After correcting spaces in names under users, this problem never came back.
Cause #2: STAS causing a loop lock for authentication (see below). In this case, with STAS enabled, requests from a terminal server completely killed authentication for everything. I resolved this simply by creating a clientless users for the XenApp (terminal servers), so that the firewall would stop trying to figure out web requests from it.
For Cause #1, I have to assume there is a programming error, specifically with some SQL statement that is not escaping strings properly.
For Cause #2, looks like authentication is not multi-threaded, and there is no logic to deal with potential looping issues on STAS.
ERROR Aug 08 08:31:26 [4143598080]: (_sqlite_db_handle_get_liveuserinfo): GET_LIVEUSER_INFO_TO_LOGOUT_ANY found no entries for IP 10.1.7.25 (sqrs 101)
ERROR Aug 08 08:31:26 [4143598080]: handle_internal_logout_req: SQLITE_REQ_GETLIVEUSER query failed
ERROR Aug 08 08:31:26 [4143598080]: do_authorization_phase2: Can't Logout User from IP: '10.1.7.25'
ERROR Aug 08 08:31:26 [4143598080]: (write_subsysqueue): POSTGRES_DB CLIENT: write error 11 (Resource temporarily unavailable), wq=0x9f2cbc8 filled_len=16
ERROR Aug 08 08:31:26 [4143598080]: (write_subsysqueue): POSTGRES_DB CLIENT: write error 11 (Resource temporarily unavailable), wq=0x9f2cbc8 filled_len=32
ERROR Aug 08 08:31:26 [4143598080]: (write_subsysqueue): POSTGRES_DB CLIENT: write error 11 (Resource temporarily unavailable), wq=0x9f2cbc8 filled_len=48
ERROR Aug 08 08:31:26 [4143598080]: (write_subsysqueue): POSTGRES_DB CLIENT: write error 11 (Resource temporarily unavailable), wq=0x9f2cbc8 filled_len=64
ERROR Aug 08 08:31:26 [4143598080]: (write_subsysqueue): POSTGRES_DB CLIENT: write error 11 (Resource temporarily unavailable), wq=0x9f2cbc8 filled_len=80
This thread was automatically locked due to age.