How to use logintokenkey for non-default domain? #7058
Unanswered
asamsystems
asked this question in
Issues
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, have been playing around with MC for a while now and I can't seem to get logintokenkey working for non-default domains.
MeshCentral version 1.1.44
Node version v22.13.1
I have this config running in docker container A:
Created logintokenkey:
node meshcentral.js --logintokenkey > logintoken.key
User admin exists for default domain and domainA
Using logintokenkey for DEFAULT/blank domain works:
node meshctrl.js ServerInfo --url wss://172.17.0.6 --loginkeyfile logintoken.key --loginuser admin
Using loginpass works for domainA:
node meshctrl.js ServerInfo --url wss://172.17.0.6/domainA --loginpass <password> --loginuser admin
Using logintokenkey for domainA does NOT work:
node meshctrl.js ServerInfo --url wss://172.17.0.6/domainA --loginkeyfile logintoken.key --loginuser user/domainA/admin --domain domainA
Results in: "Invalid login, check the login key and that this computer has the correct time."
Any suggestions...?
Beta Was this translation helpful? Give feedback.
All reactions