rug can not add a repo when the password contains special characters
This document (7008612) is provided subject to the disclaimer at the end of this document.
SUSE Linux Enterprise Server 10 Service Pack 4
A site internal repository requires basic http authentication
This would end in:
rug sa -t YUM "http://foobar:email@example.com/rug-test" wawa_foobar Adding YUM service http://foobar:firstname.lastname@example.org/rug-test... 0% ERROR: Could not add 'http://foobar:email@example.com/rug-test': Download failed: (http://foobar:firstname.lastname@example.org/rug-test/repodata/repomd.xml) Error: NameResolutionFailure
The hostname is resolvable, though, the errormessage is a bit misleading.
RFC2369 describes allowed and reserverd characters.
3.2.2. Server-based Naming Authority
for further information. In order to use strong passwords, these characters have to be escaped to pass through to the server.
The example's password: s$cret? would translate to:
and using the escaped characters in the url finally works:
rug sa -t YUM "http://foobar:s%24cret%3F@wawa.suse.de/rug-test" wawa_foobar
Using "Basic-Auth", these are transmitted as plaintext and can be read by any packet sniffer.
Make sure to use authentication methods that are not liable to be broken that easy.
This Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7008612
- Creation Date:19-MAY-11
- Modified Date:27-APR-12
- SUSESUSE Linux Enterprise Server
Did this document solve your problem? Provide Feedback< Back to Support Search