My Favorites

Close

Please to see your favorites.

  • Bookmark
  • Email Document
  • Printer Friendly
  • Favorite
  • Rating:

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.

Environment

SUSE Linux Enterprise Desktop 10 Service Pack 3
SUSE Linux Enterprise Server 10 Service Pack 4

Situation

Note: This applies only to http repositories and NOT to the Novell Customer Center.

Example:

A site internal repository requires basic http authentication

User: foobar
password: s$cret?

This would end in:

rug sa -t YUM "http://foobar:s$cret?@wawa.suse.de/rug-test" wawa_foobar

Adding YUM service http://foobar:s$cret?@wawa.suse.de/rug-test...         0% 

ERROR: Could not add 'http://foobar:s$cret?@wawa.suse.de/rug-test': Download
failed: (http://foobar:s$cret/?@wawa.suse.de/rug-test/repodata/repomd.xml)
Error: NameResolutionFailure

The hostname is resolvable, though, the errormessage is a bit misleading.


Resolution

Some of the special characters in this password are reserved and and must not be used in a URI, here it's "$" and "?".

RFC2369 describes allowed and reserverd characters.

See http://www.ietf.org/rfc/rfc2396.txt
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:

s%24cret%3F

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


Additional Information

Note: rug uses HTTP authentication mechanisms to send user and password to the remote server.
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.

Disclaimer

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

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center