support kerberos mode.