kerberos authentication

Feedback for Q Insight Pad usage

kerberos authentication

Postby msim » Wed Jan 25, 2017 4:53 pm

Is it possible to support kerberos or other login systems?
Posts: 1
Joined: Wed Jan 25, 2017 4:52 pm

Re: kerberos authentication

Postby Oleg » Fri Jan 27, 2017 1:23 pm


You've got to create dll and put it right beside qpad executable, name starts with auth_
Interface is as follows:

LPCWSTR __stdcall GetAuthMethodName();
int __stdcall GetCredentialString(LPCWSTR strConnString, LPWSTR pCredentials, DWORD dwLength);

If qpad can recognize your dll, you'll see another entry in Q Settings default credentials list box, besides clear text - the auth method name your GetAuthMethodName returns.

Now for usage conventions.

Let's say GetAuthMethodName returns "myAD"
Then if you connect to `:localhost:61::myAD?authparam=myparam
GetCredentialString will get called from your dll with "myAD?authparam=myparam" in strConnString, you need to put credential string into pCredentials buffer (if it fits dwLength) or return length needed otherwise.
This string will be used by qpad instead of user:password to connect to the instance.

That's about it.
For convenience, you can of course specify this as a password in Q Settings as a default - if will be used by default whenever you won't specify credentials at all (just not when you hit Test on a connection dialog - this will test exact credentials you provided)

Let me know if you have any problems.
Site Admin
Posts: 56
Joined: Fri Jan 14, 2011 5:10 pm

Return to Feedback

Who is online

Users browsing this forum: No registered users and 1 guest