Could you, please, let me know if it is possible to connect to a password protected KDB instance with capability?
I seem to be able to either connect with capability to a KDB instance without password protection or to connect without capability to a password protected KDB instance, but I can not do both.
Here is what I do:
- Create file
users.txt
with the following contentuser:202cb962ac59075b964b07152d234b70
(the hash corresponds to password123
:echo -n '123' | md5sum
) - Start KDB server
q -p 11111 -u users.txt
- Attempt to connect to the server from another KDB instance:
q)h: hopen `$(":localhost:11111:user:123"); / works
q)h: hopen `$(":localhost:11111:user:123\\6");
'access
[0] h: hopen `$(":localhost:11111:user:123\\6");
^
On the other hand, if the server is started without password protection (q -p 11111
), then connecting to it with capability works fine:
q)h: hopen `$(":localhost:11111:user:123\\6"); / works
q)h: hopen `$(":localhost:11111::\\6"); / works
How can I do both, i.e. have a password protected KDB server and be able to connect to it with a capability?
Thank you very much for your help!