Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We are using a preseed.cfg via preseed/url to automate system deployment/configuration. The preseed files are kept in source control (Subversion). This makes them readily available via HTTP, with the added bonus of being able to limit access. I'd like to reuse this resource, but I have not been able to find any way to use a preseed/url that requires authentication. Is it possible to use a preseed url that requires authentication?

share|improve this question
3  
I can't test right now, but how about including the auth in your URL? http://username:password@server.example.com/path/to/preseed.cfg –  Shane Madden Aug 17 '12 at 0:59
    
Looks like that does work in this case. I'll give you credit if you post as answer. Thanks! –  Randolph Aug 17 '12 at 17:12
add comment

1 Answer

up vote 3 down vote accepted

HTTP authorization info can be included in the URL, which most HTTP clients will translate automatically into the correct authorization headers:

http://username:password@server.example.com/path/to/preseed.cfg

This should do the trick!

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.