Skip to content

Remote inventory doesn't work if the password contains special characters. #671

Description

@AlexTR85

Bug reporting acknowledgment

Yes, I read it

Professional support

I'm a GLPI partner

Describe the bug

Following the remote inventory manual:
"https://glpi-agent.readthedocs.io/en/latest/tasks/remote-inventory.html"

In the section of adding the server to be analyzed: "glpi-remote add ssh://admin:pass@192.168.43.237"

The special character breaks the command. If added via toolbox, it even makes the remote web inaccessible until you delete the record with that password.

The logs show different things depending on the special character used.

To reproduce

In the section of adding the server to be analyzed: "glpi-remote add ssh://admin:p@$s@192.168.43.237"

Adding quotes doesn't change anything.

Expected behavior

The expected behavior would be for it to enter the record without interpreting the characters in a special way.

Doing a normal SSH works fine.

Operating system

Linux

GLPI Agent version

1.8

GLPI version

10.0.x (See additional context below)

GLPIInventory plugin or other plugin version

GLPI Inventory v1.3.4

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions