# ODBC connection using $token and PAT

**URL:** <https://community.dremio.com/t/odbc-connection-using-token-and-pat/9312>\
**Category:** Uncategorized\
**Created:** [June 21, 2022, 7:27am UTC](https://community.dremio.com/t/odbc-connection-using-token-and-pat/9312 "2022-06-21T07:27:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinayak2538](https://avatars.discourse-cdn.com/v4/letter/v/7c8e57/32.png) [@vinayak2538](https://community.dremio.com/u/vinayak2538)\
**Post date:** [June 21, 2022, 7:27am UTC](https://community.dremio.com/t/odbc-connection-using-token-and-pat/9312/1 "2022-06-21T07:27:21Z")

</div>

I’m trying to connect to dremio cluster thru ODBC using personal access token generated from ui.  
Using username as $token and password as PAT… I’m getting error response “[30018]Handshake Failed due to an error on the server. [Server message was: (a6ba9e59-222d-4190-be01-b2971d0fcd7d) Not a JWT]”

---

<div class="post-metadata">

**Author:** ![balaji.ramaswamy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/balaji.ramaswamy/32/843_2.png) [@balaji.ramaswamy](https://community.dremio.com/u/balaji.ramaswamy)\
**Post date:** [July 2, 2022, 7:00am UTC](https://community.dremio.com/t/odbc-connection-using-token-and-pat/9312/2 "2022-07-02T07:00:27Z")

</div>

@vinayak2538

Please review the below docs, especially look for the 30018 ones

> **[Troubleshoot on-premises Azure AD Password Protection - Microsoft Entra](https://docs.microsoft.com/en-us/azure/active-directory/authentication/howto-password-ban-bad-on-premises-troubleshoot)**
>
> Learn how to troubleshoot Azure AD Password Protection for an on-premises Active Directory Domain Services environment

[https://docs.dremio.com/software/security/inbound-impersonation/](https://docs.dremio.com/software/security/inbound-impersonation/)
