Add postauth_query for mssql
Merge pull request #685 from sylphlin/v2.x.x

Add the missing postauth query for mssql