Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. login with nxencpasswd not working

login with nxencpasswd not working

Scheduled Pinned Locked Moved Support
7 Posts 3 Posters 18.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • WoodyW
    WoodyW
    Woody
    wrote on last edited by
    #1

    Hello,
    i want to encrypt my database password with nxencpasswd. At first i executed this command:

    # nxencpasswd netxms 'k081vv3C$UKe7z!ysP4Yf408^4m78SGF'
    gyuWboDpO52LQYPeHCQ6LlksHezjf3cJmhb5/VpmgJE=
    

    Than i edited my /etc/netxmsd.conf to this:

    ## Option #3 - MySQL:
    DBDriver=mysql.ddr
    DBServer=10.10.11.20
    DBName=netxms
    DBLogin=netxms
    DBEncryptedPassword=gyuWboDpO52LQYPeHCQ6LlksHezjf3cJmhb5/VpmgJE=
    

    Now i started netxmsd service and got this error:

    2020.01.13 20:57:49.856 Log file opened (rotation policy 2, max size 16777216)
    2020.01.13 20:57:49.857 *I* [                   ] Code page set to ISO8859-1
    2020.01.13 20:57:49.858 *I* [                   ] Platform subagent "/usr/lib/x86_64-linux-gnu/netxms/linux.nsm" successfully loaded
    2020.01.13 20:57:49.860 *I* [db.drv             ] Database driver "mysql.ddr" loaded and initialized successfully
    2020.01.13 20:58:14.907 *E* [                   ] Unable to establish connection with database (Access denied for user 'netxms'@'10.10.11.15' (using password: YES))
    

    I hope someone knows what the problem is.
    Thanks in advance!

    1 Reply Last reply
    0
    • A
      A
      Alex Kirhenshtein
      wrote on last edited by
      #2

      On my system this encoded password is different:

      ➜ ~ nxencpasswd netx 'k081vv3C$UKe7z!ysP4Yf408^4m78SGF'
      STeHwaoRxKBJIy3cwcleEAcdrDERe/54rbusH9c57kA=
      

      Do you use prepackaged binaries or do you compile netxms yourself?

      1 Reply Last reply
      0
      • WoodyW
        WoodyW
        Woody
        wrote on last edited by
        #3

        I made a mistake in my previous post. I corrected my old post. This is why your encoded password is different. I installed NetXMS from packages.

        1 Reply Last reply
        0
        • A
          A
          Alex Kirhenshtein
          wrote on last edited by
          #4

          nxencpasswd does not support passwords longer than 32 symbols, you have 33:

          ➜ orig git:(master) ✗ nxencpasswd netxms 'k081vv3C$UKe7z!ysP4Yf408^4m78SGF'
          gyuWboDpO52LQYPeHCQ6LlksHezjf3cJmhb5/VpmgJE=
          ➜ orig git:(master) ✗ nxencpasswd netxms 'k081vv3C$UKe7z!ysP4Yf408^4m78SG'
          gyuWboDpO52LQYPeHCQ6LlksHezjf3cJmhb5/VpmgJE=
          ➜ orig git:(master) ✗ nxencpasswd netxms 'k081vv3C$UKe7z!ysP4Yf408^4m78S'
          gyuWboDpO52LQYPeHCQ6LlksHezjf3cJnms/LdPWmmg=
          
          1 Reply Last reply
          0
          • WoodyW
            WoodyW
            Woody
            wrote on last edited by
            #5

            Okay, thank you very much!  😄 Now it's working.
            Can you change this limitation in future releases of NetXMS, because many passwords are longer than 32 symbols. When you see it from security perspective, you shouldn't limt the password length with such a "low" limit. Now 32 symbols are quite "okay", but I think in future this limitation could be critical.

            1 Reply Last reply
            0
            • V
              V
              Victor Kirhenshtein
              wrote on last edited by
              #6

              Hi,

              I just increased maximum password length for nxencpasswd in 3.2 branch.

              Best regards,
              Victor

              1 Reply Last reply
              0
              • WoodyW
                WoodyW
                Woody
                wrote on last edited by
                #7

                Okay. Thank you very much!  😄

                Best regards

                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                Powered by NodeBB Contributors
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups