Skip to content
Discussion options

You must be logged in to vote

The # is being treated as the start of a URI fragment. Escaping it for the shell won't help, because the truncation happens later when GLPI parses the URI.

GLPI Agent added percent-decoding for remote inventory credentials in 1.9:

be309b3

Since you're on 1.19, encode the # as %23 and quote the complete URI, for example:

glpi-agent --task remoteinventory \
  --remote='ssh://myuser:password-with-%23-here@192.168.1.29' \
  --logger=stderr --debug --debug

The quotes protect the argument from the shell; %23 is what prevents the URI parser from treating the rest as a fragment.

One more thing: the discussion includes what looks like a real password. If it is, rotate it before testing again.

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by b-keller
Comment options

You must be logged in to vote
1 reply
@tt-a1i
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed
2 participants