Creating a RubyGems Mirror With HTTP Basic Authentication


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris BigAdmin RSS Creating a RubyGems Mirror With HTTP Basic Authentication
# 1  
Old 09-30-2008
Creating a RubyGems Mirror With HTTP Basic Authentication

This article shows how to create a RubyGems remote repository that is password protected.

More...
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Http-auth with basic realm name

Hello, I am running nmap and I wish to see basic realm name when I run a query. For example, I wish to enter application_name for map query. when I nmap an ip, the result I expect to get is: : Port: 33234 HTTP/1.1 401 Unauthorized Server: Apache/2.4.7 (Ubuntu) Cache-Control: no-cache... (0 Replies)
Discussion started by: baris35
0 Replies

2. Solaris

Need help in creating script for disk mirror and backup

Hi, I am very new to scripting. I need to create a script which does following. Scenario: First get the format command output echo | format Insert the new disk to Solaris Server Get Zpool status format the new disk ( Here I need to select the new disk which have been inserted, I do... (1 Reply)
Discussion started by: praveensharma21
1 Replies

3. UNIX for Advanced & Expert Users

Creating the script for updating or replacing the existing http.conf file

Hi I need some help with a task, i am an absolute newbie to any form of shell scripting and request guidance. I have been building a proxy server using the apache mod proxy currently my solution is working , but i need to automate the process , suppose if any changes need to be made on... (0 Replies)
Discussion started by: satej
0 Replies

4. Ubuntu

API http authentication

Hello, I am trying to setup a software with an API in my linux server but at some field there are some codes which are called "http authentication" I dont know how to run them. Could anybody give me an idea about how it's working. How http authentication is done; from linux terminal or from... (0 Replies)
Discussion started by: baris35
0 Replies

5. Linux

Trouble setting up basic user authentication on apache2 web server

Hey guys! So I decided to set up some basic user authentication on my apache2 server, and I am running into some problems. I followed the documentation provided by apache on their website, but I cant create the password file for some reason. I did a little trouble shooting myself, and found... (40 Replies)
Discussion started by: LinuxIntern445
40 Replies

6. AIX

Creating Mirror

Good afternoon all, I'm sorry if this is a total n00b question but if you create a mirrored disk (rootvg (approx. 30 GB) - AIX 6.1 on a P520), will there be any impact to the production system as it's syncronizing? The boss thinks there will be too much impact to do this during working hours. ... (4 Replies)
Discussion started by: Spellbound
4 Replies

7. OS X (Apple)

[launchd] Creating a basic firewall

Hi, I'm trying to use launchd to detect whether certain ports are opened and if they are then to take some appropriate action, e.g. close the port or, worst case scenario, down the whole net connection. Apparently, force closing a port is not possible without killing the offending binary so... (3 Replies)
Discussion started by: ASGR
3 Replies

8. Programming

Creating a basic UNIX shell script for chatting

Hey guys, This is quite simply what I'm trying to make: A program that runs in a UNIX terminal that you can output text messages to from another machine. These text messages would be prepended with a customized prompt. I'd also like to have the window spew out random dumps of flavor text not... (1 Reply)
Discussion started by: AcerAspirant
1 Replies

9. Filesystems, Disks and Memory

Creating a Mirror RAID With Existing Disk

Hi there, I'm not sure if this is possible, but here is what I'd like to do.. I have an existing 160GB drive in my Redhat 9.0 server that I would like to add an additional 160GB drive to and create a mirrored RAID of the first disk to the new disk. I would like to do this without having to... (2 Replies)
Discussion started by: sysera
2 Replies
Login or Register to Ask a Question
autoproxy(n)						   HTTP protocol helper modules 					      autoproxy(n)

__________________________________________________________________________________________________________________________________________________

NAME
autoproxy - Automatic HTTP proxy usage and authentication SYNOPSIS
package require Tcl 8.2 package require http ?2.0? package require autoproxy ?1.5.1? ::autoproxy::init ::autoproxy::cget -optionname ::autoproxy::configure ?-option value? ::autoproxy::tls_connect args ::autoproxy::tunnel_connect args ::autoproxy::tls_socket args _________________________________________________________________ DESCRIPTION
This package attempts to automate the use of HTTP proxy servers in Tcl HTTP client code. It tries to initialize the web access settings from system standard locations and can be configured to negotiate authentication with the proxy if required. On Unix the standard for identifying the local HTTP proxy server seems to be to use the environment variable http_proxy or ftp_proxy and no_proxy to list those domains to be excluded from proxying. On Windows we can retrieve the Internet Settings values from the registry to obtain pretty much the same information. With this information we can setup a suitable filter procedure for the Tcl http package and arrange for automatic use of the proxy. There seem to be a number of ways that the http_proxy environment variable may be set up. Either a plain host:port or more commonly a URL and sometimes the URL may contain authentication parameters or these may be requested from the user or provided via http_proxy_user and http_proxy_pass. This package attempts to deal with all these schemes. It will do it's best to get the required parameters from the envi- ronment or registry and if it fails can be reconfigured. COMMANDS
::autoproxy::init Initialize the autoproxy package from system resources. Under unix this means we look for environment variables. Under windows we look for the same environment variables but also look at the registry settings used by Internet Explorer. ::autoproxy::cget -optionname Retrieve individual package configuration options. See OPTIONS. ::autoproxy::configure ?-option value? Configure the autoproxy package. Calling configure with no options will return a list of all option names and values. See OPTIONS. ::autoproxy::tls_connect args Connect to a secure socket through a proxy. HTTP proxy servers permit the use of the CONNECT HTTP command to open a link through the proxy to the target machine. This function hides the details. For use with the http package see tls_socket. The args list may contain any of the tls package options but must end with the host and port as the last two items. ::autoproxy::tunnel_connect args Connect to a target host throught a proxy. This uses the same CONNECT HTTP command as the tls_connect but does not promote the link security once the connection is established. The args list may contain any of the tls package options but must end with the host and port as the last two items. Note that many proxy servers will permit CONNECT calls to a limited set of ports - typically only port 443 (the secure HTTP port). ::autoproxy::tls_socket args This function is to be used to register a proxy-aware secure socket handler for the https protocol. It may only be used with the Tcl http package and should be registered using the http::register command (see the examples below). The job of actually creating the tunnelled connection is done by the tls_connect command and this may be used when not registering with the http package. OPTIONS
host hostname proxy_host hostname Set the proxy hostname. This is normally set up by init but may be configured here as well. port number proxy_port number Set the proxy port number. This is normally set up by init. e.g. configure -port 3128 no_proxy list You may manipulate the no_proxy list that was setup by init. The value of this option is a tcl list of strings that are matched against the http request host using the tcl string match command. Therefore glob patterns are permitted. For instance, configure -no_proxy *.localdomain authProc procedure This option may be used to set an application defined procedure to be called when configure -basic is called with either no or insufficient authentication details. This can be used to present a dialog to the user to request the additional information. -basic Following options are for configuring the Basic authentication scheme parameters. See Basic Authentication. BASIC AUTHENTICATION
Basic is the simplest and most commonly use HTTP proxy authentication scheme. It is described in (1 section 11) and also in (2). It offers no privacy whatsoever and its use should be discouraged in favour of more secure alternatives like Digest. To perform Basic authentication the client base64 encodes the username and plaintext password separated by a colon. This encoded text is prefixed with the word "Basic" and a space. The following options exists for this scheme: -username name The username required to authenticate with the configured proxy. -password password The password required for the username specified. -realm realm This option is not used. EXAMPLES
package require autoproxy autoproxy::init autoproxy::configure -basic -username ME -password SEKRET set tok [http::geturl http://wiki.tcl.tk/] http::data $tok package require http package require tls package require autoproxy autoproxy::init http::register https 443 autoproxy::tls_socket set tok [http::geturl https://www.example.com/] REFERENCES
[1] Berners-Lee, T., Fielding R. and Frystyk, H. "Hypertext Transfer Protocol -- HTTP/1.0", RFC 1945, May 1996, (http://www.rfc-edi- tor.org/rfc/rfc1945.txt) [2] Franks, J. et al. "HTTP Authentication: Basic and Digest Access Authentication", RFC 2617, June 1999 (http://www.rfc-edi- tor.org/rfc/rfc2617.txt) BUGS
At this time only Basic authentication (1) (2) is supported. It is planned to add support for Digest (2) and NTLM in the future. AUTHORS
Pat Thoyts BUGS, IDEAS, FEEDBACK This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category http :: autoproxy of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for either package and/or documentation. SEE ALSO
http(n) KEYWORDS
authentication, http, proxy http 1.5.1 autoproxy(n)