Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 1149  / 2 Years ago, thu, may 19, 2022, 3:43:52

We have a password policy that enforces the users to use special characters in their passwords. Hence some passwords will be Gt4@gj#k for example.



Now to specify the system wide proxy settings (Why isn't this done more intuitively like for instance the way it was done in synaptic; and why is synaptic not included by default anymore either...) you have to use username:password@host in the host field for authenticating proxies.



Our problem no is that some passwords have the @ sign in them so it breaks this simple system.



How can I employ a system wide proxy to work with apt and the system updater that allows real world passwords?


More From » proxy

 Answers
1

If a program asks you to enter the proxy configuration as an http URL, you will need to follow the conventions for structuring URLs.



And that means you can not include an @ character in the user name or password components unless you encode them. Characters can be encoded in URLs as a percent sign followed by the hexadecimal representation of the code point.



So for the password Gt4@gj#k, you could represent it as Gt4%40gj%23k (the hash symbol is used to delimit the fragment portion of a URL, so it is best to encode it as well).


[#42630] Friday, May 20, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eballxeye

Total Points: 370
Total Questions: 91
Total Answers: 139

Location: Suriname
Member since Sat, Jan 1, 2022
2 Years ago
eballxeye questions
Sun, Jan 8, 23, 18:23, 1 Year ago
Sun, Sep 11, 22, 23:24, 2 Years ago
Tue, Dec 14, 21, 07:15, 2 Years ago
;