Ylianst/MeshAgent

No scheme in MeshAgent installer's connection string

phorcys420 opened this issue · 10 comments

Describe your issue
The scheme is missing in the connection string.
I could not figure out what this is related to

Screenshots
My setup (://) :
image

Normal setup (wss://) :
image

Server Software (please complete the following information):

  • OS: Ubuntou 20.04
  • Virtualization: Docker
  • Network: LAN/WAN, reverse proxy (apache2 <-> caddy <-> meshcentral), ssl offload
  • Version: 1.0.82
  • Node: 18.8.0

Client Device (please complete the following information):

  • Device: Laptop
  • OS: Windows
  • Network: Remote over LAN
  • Browser: Firefox Developer Edition

Client Device (please complete the following information):

  • Device: Laptop
  • OS: Windows
  • Network: Remote over LAN

Your config.json file

{
   "$schema": "http://info.meshcentral.com/downloads/meshcentral-config-schema.json",
   "settings": {
      "cert": "[...]",
      "_WANonly": true,
      "_LANonly": true,
      "_sessionKey": "[...]",
      "port": 420,
      "AliasPort": 443,
      "redirPort": 80,
      "_redirAliasPort": 80,
      "AgentPong": 300,
      "TLSOffload": true,
      "SelfUpdate": false,
      "AllowFraming": false,
      "mongodb": "mongodb://mongodb:27017/mesh",
      "mongodbcol": "mesh",
      "WebRTC": false
   },
   "domains":{
      "": {
         "_title":"[...]",
         "_title2":"[...]",

         "auth":"ldap",
         "ldapUserName":"sAMAccountName",
         "ldapUserKey": "sAMAccountname",
         "ldapUserBinaryKey":"objectSid",
         "ldapUserEmail": "mail",
         "ldapUserRealname": "name",
         "ldapUserPhoneNumber": "ipPhone",
         "ldapOptions": {
            "url": "ldap://[...]",
            "bindDN": "[...]",
            "bindProperty": "userPrincipalName",
            "bindCredentials": "[...]"
            "reconnect": true,
            "searchBase": "[...]",
            "searchFilter":"(sAMAccountName={{username}})"
         },

         "certUrl": "https://[...]"
      },

      "local": {
         "_title": "MeshCentral",
         "_title2": "MeshCentral",
         "_minify": true,
         "NewAccounts": false,
         "_userNameIsEmail": true
      }
   },
   "_letsencrypt":{
      "__comment__": "Requires NodeJS 8.x or better, Go to https://letsdebug.net/ first before>",
      "_email": "myemail@mydomain.com",
      "_names": "myserver.mydomain.com",
      "production": false
   }
}

Just realised it does not prevent MA from functioning properly, so this is just a bug

If you can email me your msh file, I can look into why the scheme isnt being displayed.. Thanks!

If you can email me your msh file, I can look into why the scheme isnt being displayed.. Thanks!

I've just started out using MeshCentral, where can I find the said file ?
EDIT : Nevermind, I found it. But why not send it here ? (I will redact some info anyways)

If you go to "Program Files" or whatever the localized folder for that is, you should find a MeshCentral folder, that contains the agent. You'll find a meshagent.msh file there. It's a text file with configuration information.

Why via email and not send it here ? (I will redact some info anyways)
I mean I'm fine with email but I was just wondering

I was interested in the connection details in the configuration, as that directly effect how it's rendered in the dialog box, etc. But you probably don't want to post those types of things on a public forum.

I sent it to you via the e-mail in your GH profile, do you think it might be caused by the length of the domain?

Ok yes, it looks like the url itself was too long to fit in the dialog. I'll fix that. I'll see if I can change the type, so that it can at least scroll or something. I think if I change the field to a read only text box, it might work like that. I'll have to run some tests.

TestToolTip

Ok, I fixed this issue. I modified the text field, so it puts an ellipses (...) and truncates the text if it is too long, and made it display a tooltip if you hover over the field, which will show the full url. This will be in the next agent update when Ylian gets back.

great ! thanks, I think it will prevent some confusion for other people :)