Re: OT: cgi and http auth (or something)

2009-09-06 Thread Andrew Errington
Replying to my own email...

It seems my hosting provider uses cPanel, which has a tool for configuring
password protection on directories with .htaccess and .htpasswd

I am going to try it, since the tool should do the Right Thing.  However,
thanks again for the offers of help, as I now understand the underlying
mechanism.

Best wishes,

Andrew



[Fwd: Re: [NZOSS-Openchat] Software Freedom Day]

2009-09-06 Thread Rik Tindall

Hello Glynn, kia ora NZOSS, hi CLUG,

Good SFD feature on RadioNZ last Thurs 11.07am - definitely prompting!
http://podcast.radionz.co.nz/ntn/ntn-20090903-1107-New_Technology_with_Colin_Jackson.ogg

We're slower off the mark than usual this year in Christchurch. CLUG 
(CC) has dropped its club meetings, leading lights are somewhat dissipated.


But, we are SFD-ready:

http://softwarefreedomday.org/teams/Christchurch

http://www.infohelp.co.nz/sfd9.html - a poster for people to print off & 
distribute please. ...


Glynn Foster wrote:

On 14/08/2009, at 9:17 PM, Bruce Kingsbury wrote:
  

2009/8/14 Don :


Plans afoot for another great event at the Wellington Town Hall on
Sunday 20th September (when the rest of the world is still on the  
19th).


http://softwarefreedomday.org.nz/

Please let the organisers know about other events round the country  
so these can be widely publicised.
  

http://wlug.org.nz/sfd



This has now been added to http://softwarefreedomday.org.nz/NZ-Events

If you'd like to update the blurb for the event, or any other details,  
let me know.


(still waiting for details on Auckland...and elsewhere!)

thanks,

Glynn
  


... SFD Christchurch is a 10am to 4pm 19Sept computer-lab workshop, with 
DVD screenings, talks and installfest space attached, in a suburban 
library. From advertising & news coverage we get a good turnout, and 
adapt to where the demand is focussed on the day. Some want fixit help, 
most are newbies or just curious, and very easy to tutor, but mainly its 
a relaxed and enjoyable social event for our (IT) community.


The workshop focus this year is likely to be the GNU Image Manipulation 
Program (GIMP) - advancing attendee graphic skills - on top of Ubuntu & 
FOSS mastery.


All other distros are welcome to be brought along too, either: a) as a 
liveCD to run in the lab; or b) on a demo box, that could be MythTV, a 
gaming platform, disc burner, etc etc.


Thanks for what you are doing for SFD in Wellington, and for making 
notice of the other centre efforts.


--
Kind regards,
Rik Tindall
03-332-1069 or 027-406-0077



Re: OT: cgi and http auth (or something)

2009-09-06 Thread Andrew Errington
On Sun, September 6, 2009 17:25, Abhinav Keswani wrote:
> Andrew
>
>
> In a nutshell...


Hi,

Thanks for your suggestions.  I will try them out and let you know if I
succeed (or get stuck).

Best wishes,

Andrew




Re: [NZOSS-Openchat] Software Freedom Day

2009-09-06 Thread Rik Tindall

Hello Glynn, kia ora NZOSS,

Good SFD feature on RadioNZ last Thurs 11.07am - definitely prompting!
http://podcast.radionz.co.nz/ntn/ntn-20090903-1107-New_Technology_with_Colin_Jackson.ogg

We're slower off the mark than usual this year in Christchurch. CLUG 
(CC) has dropped its club meetings, leading lights are somewhat dissipated.


But, we are SFD-ready:

http://softwarefreedomday.org/teams/Christchurch

http://www.infohelp.co.nz/sfd9.html - a poster for people to print off & 
distribute please. ...


Glynn Foster wrote:

On 14/08/2009, at 9:17 PM, Bruce Kingsbury wrote:
  

2009/8/14 Don :


Plans afoot for another great event at the Wellington Town Hall on
Sunday 20th September (when the rest of the world is still on the  
19th).


http://softwarefreedomday.org.nz/

Please let the organisers know about other events round the country  
so these can be widely publicised.
  

http://wlug.org.nz/sfd



This has now been added to http://softwarefreedomday.org.nz/NZ-Events

If you'd like to update the blurb for the event, or any other details,  
let me know.


(still waiting for details on Auckland...and elsewhere!)

thanks,

Glynn
  


... SFD Christchurch is a 10am to 4pm 19Sept computer-lab workshop, with 
DVD screenings, talks and installfest space attached, in a suburban 
library. From advertising & news coverage we get a good turnout, and 
adapt to where the demand is focussed on the day. Some want fixit help, 
most are newbies or just curious, and very easy to tutor, but mainly its 
a relaxed and enjoyable social event for our (IT) community.


The workshop focus this year is likely to be the GNU Image Manipulation 
Program (GIMP) - advancing attendee graphic skills - on top of Ubuntu & 
FOSS mastery.


All other distros are welcome to be brought along too, either: a) as a 
liveCD to run in the lab; or b) on a demo box, that could be MythTV, a 
gaming platform, disc burner, etc etc.


Thanks for what you are doing for SFD in Wellington, and for making 
notice of the other centre efforts.


--
Kind regards,
Rik Tindall
03-332-1069 or 027-406-0077



Re: OT: cgi and http auth (or something)

2009-09-06 Thread Abhinav Keswani
Andrew

In a nutshell
- create a directory within which you want to put protected content
(scripts, static files such as images, html, whatever)
- then in the above directory, create a .htaccess file and apply rules
that specify who can access the content within the directory
- in the .htaccess file you should specify the place where to look for
authentication credentials using the AuthUserFile directive
- then create username/password credentials for the above directory
using 'htpasswd'

This should mean that your cgi script can only be run by specific
users, that you define, and who supply the appropriate credentials for
the directory that the cgi lives in.

Read this for an example of how to create a password protected
directory when running Apache on *nix.

http://www.colostate.edu/~ric/htpass.html

Full details are available in Apache docs.  This is a good starting
point for you:

http://httpd.apache.org/docs/2.2/programs/htpasswd.html

Hope this helps and is relevant for you.

-Abhinav

2009/9/6 Andrew Errington :
> On Sun, September 6, 2009 15:13, Steve Holdoway wrote:
>> Not being familiar with python, I'd use PHP SOAP libraries, but this
>> looks like it'll help...
>>
>> http://www.opensourcetutorials.com/tutorials/Server-Side-Coding/Python/py
>> thon-soap-libraries/page1.html
>
> Thanks.  The 'how' is not really relevant- I can learn from your PHP SOAP
> example and re-write in Python.  I'm mostly interested in the 'what' (i.e.
> "what to do" to make it work).
>
> I have a .htaccess file on the hosted webserver.  Can I do something with
> that?  From what I've read the cgi subsystem is independent of the user
> authentication.  i.e. the cgi can only be run *if* the user was
> authenticated.  This means I have to set up authentication on the server
> somehow.  However, if I authenticate J.Randomuser I need to allow him
> access to only that cgi script and not to all the other server stuff that
> is being hosted (i.e. my mail and other files).
>
> I have no idea what I am doing (in case you hadn't figured it out).
> Whatever I do I need to understand the techniques so that I can re-apply
> them when the form-and-webpage-generator moves to another server.
> Undoubtedly it will move somewhere where there is no Python and everything
> is in Korean.  :(
>
> Thanks,
>
> Andrew
>
> (Obligatory Linux content- the server is running Red Hat)
>
>



-- 
Abhinav Keswani
@wasabhi