django authentication multi upload files

2017-03-30 Thread Xristos Xristoou
destination.write(chunk) process(x) return HttpResponse("File(s) uploaded!") but how to define that to multi upload images in specific unique folder for any user. first I use login_required and in destination I use user_directory_path. But how to define the co

Re: password authentication failed (SOLVED)

2015-07-24 Thread Gary Roach
On 07/22/2015 04:44 PM, Chris Angelico wrote: On Thu, Jul 23, 2015 at 9:35 AM, Gary Roach wrote: At this point, I'm confused about a few things. Does the postgresql server and my archivedb reside globally or are they inside my archivedb virtual environment. I think globally. Your virtual envir

Re: password authentication failed

2015-07-23 Thread Gary Roach
On 07/16/2015 04:53 PM, Chris Angelico wrote: On Fri, Jul 17, 2015 at 9:34 AM, Gary Roach wrote: On 07/15/2015 11:25 AM, Chris Angelico wrote: You should then be able to create a regular user, and grant appropriate permissions: postgres=# create user archives password 'traded-links-linguisti

Re: password authentication failed

2015-07-22 Thread Chris Angelico
On Thu, Jul 23, 2015 at 9:35 AM, Gary Roach wrote: > At this point, I'm confused about a few things. Does the postgresql server > and my archivedb reside globally or are they inside my archivedb virtual > environment. I think globally. Your virtual environment is a Python construct only. That's w

Re: password authentication failed

2015-07-22 Thread Gary Roach
On 07/16/2015 04:53 PM, Chris Angelico wrote: On Fri, Jul 17, 2015 at 9:34 AM, Gary Roach wrote: On 07/15/2015 11:25 AM, Chris Angelico wrote: You should then be able to create a regular user, and grant appropriate permissions: postgres=# create user archives password 'traded-links-linguisti

Re: password authentication failed

2015-07-16 Thread Chris Angelico
On Fri, Jul 17, 2015 at 9:34 AM, Gary Roach wrote: > On 07/15/2015 11:25 AM, Chris Angelico wrote: > >> You should then be able to create a regular user, and grant >> appropriate permissions: >> >> postgres=# create user archives password >> 'traded-links-linguistics-informal'; >> CREATE ROLE >> p

Re: password authentication failed

2015-07-16 Thread Gary Roach
On 07/15/2015 11:25 AM, Chris Angelico wrote: On Thu, Jul 16, 2015 at 3:13 AM, Gary Roach wrote: Every time I try to do a python manage.py migrate I get: django.db.utils.OperationalError: FATAL: password authentication failed for user "postgres" FATAL: password authentication faile

Re: password authentication failed

2015-07-15 Thread Chris Angelico
On Thu, Jul 16, 2015 at 3:13 AM, Gary Roach wrote: > Every time I try to do a python manage.py migrate I get: > django.db.utils.OperationalError: FATAL: password > authentication failed for user "postgres" > FATAL: password authentication failed for user "postgr

password authentication failed

2015-07-15 Thread Gary Roach
Every time I try to do a python manage.py migrate I get: django.db.utils.OperationalError: FATAL: password authentication failed for user "postgres" FATAL: password authentication failed for user "postgres" System Debian linux jessie python 2.79 Django 1.8 Postgresql

Authentication method with txjson-rpc.

2014-11-14 Thread ali . hallaji1
Hi, I want to write authentication by txjson, Please help me in this way. -- https://mail.python.org/mailman/listinfo/python-list

Token-based authentication (was http.server.BaseHTTPRequestHandler basic auth logout? Django authentication system for REST interface?)

2014-06-07 Thread Demian Brecht
On Jun 6, 2014 6:30 PM, "Roy Smith" wrote: > We would have to keep state on the server side about every extant valid > token (but then again, we need to do that now, for each session). If you didn't want to have to manage such state server side, you could opt to use JWTs (http://datatracker.ietf.

Re: http.server.BaseHTTPRequestHandler basic auth logout? Django authentication system for REST interface?

2014-06-07 Thread Chris Angelico
On Sat, Jun 7, 2014 at 4:23 PM, dieter wrote: > Dan Stromberg writes: > >> I have some code for a web server. Right now, it uses >> BaseHTTPRequestHandler with Basic Auth, but we want to be able to log >> out, and there doesn't appear to be a general way to log out of >> something using Basic Au

Re: http.server.BaseHTTPRequestHandler basic auth logout? Django authentication system for REST interface?

2014-06-06 Thread dieter
Dan Stromberg writes: > I have some code for a web server. Right now, it uses > BaseHTTPRequestHandler with Basic Auth, but we want to be able to log > out, and there doesn't appear to be a general way to log out of > something using Basic Auth, short of turning to unportable JavaScript. You ca

Re: http.server.BaseHTTPRequestHandler basic auth logout? Django authentication system for REST interface?

2014-06-06 Thread Roy Smith
nything. > > I could rewrite to work with Django's authentication system I suppose. > Does this work reasonably well for REST API's? How do you pass the > credentials? Is it a cookie? > > Thanks! There's a lot of questions wrapped up in one there. Personally, I

http.server.BaseHTTPRequestHandler basic auth logout? Django authentication system for REST interface?

2014-06-06 Thread Dan Stromberg
st to be machine-callable, so JavaScript probably isn't a great solution for us. Does BaseHTTPRequestHandler add a way of dealing with Basic Auth logout by any chance? I googled about it, and didn't find anything. I could rewrite to work with Django's authentication system I supp

Re: httplib with NETRC authentication

2014-05-14 Thread Chris Angelico
On Thu, May 15, 2014 at 1:44 AM, Akira Li <4kir4...@gmail.com> wrote: >> The obvious question is: What *does* work? Does it work when you use >> wget, or some other application? Then go and look at what that sends >> for its authentication headers. Tip: It

Re: httplib with NETRC authentication

2014-05-14 Thread Akira Li
pratibha natani writes: > Hi, > > I am trying to establish http connection to a gerrit host using netrc > authentication. I have a netrc file created with following entries: > machine host1.com login name password pass > > I did a debug and saw that my netrc file is being

Re: httplib with NETRC authentication

2014-05-14 Thread Akira Li
Chris Angelico writes: > On Wed, May 14, 2014 at 9:33 AM, pratibha natani > wrote: >> I am trying to establish http connection to a gerrit host using >> netrc authentication. I have a netrc file created with following >> entries: >> machine host1.com login na

Re: httplib with NETRC authentication

2014-05-13 Thread Chris Angelico
On Wed, May 14, 2014 at 9:33 AM, pratibha natani wrote: > I am trying to establish http connection to a gerrit host using netrc > authentication. I have a netrc file created with following entries: > machine host1.com login name password pass > > I did a debug and saw that my netr

httplib with NETRC authentication

2014-05-13 Thread pratibha natani
Hi, I am trying to establish http connection to a gerrit host using netrc authentication. I have a netrc file created with following entries: machine host1.com login name password pass I did a debug and saw that my netrc file is being read correctly. Also in the connection object(after sending

Re: urllib and authentication script integration

2013-12-23 Thread Chris Angelico
On Tue, Dec 24, 2013 at 12:47 AM, Jeff James wrote: > I have some simple code I would like to share with someone that can assist > me in integrating authentication script into. I'm sure it's an easy answer > for any of you. I am still researching, but on this particular pr

RE: urllib and authentication script integration

2013-12-23 Thread Jeff James
I have some simple code I would like to share with someone that can assist me in integrating authentication script into. I'm sure it's an easy answer for any of you. I am still researching, but on this particular project, time is of the essence and this is the only missing piece of

Re: accessing a page which request an openID authentication

2013-12-14 Thread Steven D'Aprano
On Fri, 13 Dec 2013 16:42:37 +, Denis McMahon wrote: > On Fri, 13 Dec 2013 02:32:49 -0800, uni.mail.2014 wrote: > >> I have a page that request an openID authentication > > And your Python question is? I thought the question was fairly obvious. How would you ac

Re: accessing a page which request an openID authentication

2013-12-13 Thread Denis McMahon
On Fri, 13 Dec 2013 02:32:49 -0800, uni.mail.2014 wrote: > I have a page that request an openID authentication And your Python question is? -- Denis McMahon, denismfmcma...@gmail.com -- https://mail.python.org/mailman/listinfo/python-list

Re: accessing a page which request an openID authentication

2013-12-13 Thread Mark Lawrence
On 13/12/2013 10:32, uni.mail.2...@gmail.com wrote: I have a page that request an openID authentication "google ID" before you are able to download any file from it. this is the website "http://oc.gtisc.gatech.edu:8080/search.cgi?search=sality"; and I tried a lot but it do

accessing a page which request an openID authentication

2013-12-13 Thread uni . mail . 2014
I have a page that request an openID authentication "google ID" before you are able to download any file from it. this is the website "http://oc.gtisc.gatech.edu:8080/search.cgi?search=sality"; and I tried a lot but it dose not seem that the ordinary login using session

Re: authentication with python-ldap

2013-05-25 Thread Dieter Maurer
Jorge Alberto Diaz Orozco wrote at 2013-5-25 14:00 -0400: >I have been doing the same thing and I tried to use java for testing the >credentials and they are correct. It works perfectly with java. >I really don´t know what we´re doing wrong. Neither do I. But the error message definitely origina

RE: authentication with python-ldap

2013-05-25 Thread Joseph L. Casale
> I have been doing the same thing and I tried to use java for testing the > credentials and they are correct. It works perfectly with java. > I really don´t know what we´re doing wrong. > > > You are accessing a protected operation of the LDAP server > and it (the server) rejects it due to invali

Re: authentication with python-ldap

2013-05-25 Thread Jorge Alberto Diaz Orozco
I have been doing the same thing and I tried to use java for testing the credentials and they are correct. It works perfectly with java. I really don´t know what we´re doing wrong. You are accessing a protected operation of the LDAP server and it (the server) rejects it due to invalid credential

Re: authentication with python-ldap

2013-05-24 Thread dieter
avazqu...@grm.uci.cu writes: > import ldap > conn = ldap.initialize("ldap://ldap.uci.cu";) > conn.protocol_version = ldap.VERSION3 > conn.simple_bind_s( "uid=xxx,dc=uci,dc=cu", "xxx" ) > > Result: > > Traceback (most recent call last): > File "", line 1, in > File "/usr/lib/python2.7/dist-pac

authentication with python-ldap

2013-05-23 Thread avazquezr
import ldap conn = ldap.initialize("ldap://ldap.uci.cu";) conn.protocol_version = ldap.VERSION3 conn.simple_bind_s( "uid=xxx,dc=uci,dc=cu", "xxx" ) Result: Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 207, in simpl

Re: python: HTTP connections through a proxy server requiring authentication

2013-01-28 Thread Saju M
Hi , Thanks barry, I solved that issue. I reconfigured squid3 with ncsa_auth, now its working same python code. Earlier I used digest_pw_auth. Actually I am trying to fix an issue related to python boto API. Please check this post https://groups.google.com/forum/#!topic/boto-users/1qk6d7v2HpQ

Re: python: HTTP connections through a proxy server requiring authentication

2013-01-28 Thread Barry Scott
The shipped python library code does not work. See http://bugs.python.org/issue7291 for patches. Barry -- http://mail.python.org/mailman/listinfo/python-list

Re: python: HTTP connections through a proxy server requiring authentication

2013-01-26 Thread sajuptpm
Hi, /etc/squid3/squid.conf --- saju@saju-Inspiron-N5010:~$ cat squid.conf | grep ^[^#] auth_param digest program /usr/lib/squid3/digest_pw_auth -c /etc/squid3/passwords auth_param digest realm saju-Inspiron-N5010 acl manager proto cache_object acl localhost src 12

python: HTTP connections through a proxy server requiring authentication

2013-01-26 Thread sajuptpm
authentication using following python code.. ## Python code ## import urllib2 proxy = urllib2.ProxyHandler({'http':'http://saju:123@saju-Inspiron-N5010:3128'}) opener = urllib2.build_opener(proxy, urllib2.HTTPHandler) urllib2.install_opener(opener) conn = u

ntlm authentication for urllib2

2012-11-29 Thread Jorge Alberto Diaz Orozco
n't work at all. I did some research and found pytho-ntlm but I'm not sure how to use it. I wrote something like this and it still giving me an authentication error: Can someone help me??? import urllib2 from HTTPNtlmAuthHandler import HTTPNtlmAuthHandler url = 'http://url.i.want.to.

Re: User Authentication

2011-06-24 Thread Michael Ströder
Anurag wrote: > My application is a web based application for both windows and Linux. > The web part is developed using Django. So if Python does not support > it then any support for local sytem account authentication in Django? > > I am looking for a common library for both Li

Re: User Authentication

2011-06-23 Thread Tim Golden
On 23/06/2011 16:07, Anurag wrote: My application is a web based application for both windows and Linux. The web part is developed using Django. So if Python does not support it then any support for local sytem account authentication in Django? I am looking for a common library for both Linux

Re: User Authentication

2011-06-23 Thread Anurag
My application is a web based application for both windows and Linux. The web part is developed using Django. So if Python does not support it then any support for local sytem account authentication in Django? I am looking for a common library for both Linux and Windows. Any help will be Gr8

Re: User Authentication

2011-06-23 Thread Tim Golden
On 23/06/2011 06:02, Anurag wrote: On Jun 22, 7:01 pm, Adam Tauno Williams wrote: On Wed, 2011-06-22 at 06:34 -0700, Anurag wrote: Hi All, I am working on application which needs to do a authentication against LDAP, if LDAP not installed then local system account (administrator user in

Re: User Authentication

2011-06-22 Thread Anurag
On Jun 22, 7:01 pm, Adam Tauno Williams wrote: > On Wed, 2011-06-22 at 06:34 -0700, Anurag wrote: > > Hi All, > > > I am working on application which needs to do a authentication against > > LDAP, if LDAP not installed then local system account (administrator > > us

Re: User Authentication

2011-06-22 Thread Adam Tauno Williams
On Wed, 2011-06-22 at 06:34 -0700, Anurag wrote: > Hi All, > > I am working on application which needs to do a authentication against > LDAP, if LDAP not installed then local system account (administrator > user in windows and root user in Linux). This should work on both >

Re: User Authentication

2011-06-22 Thread Tim Golden
On 22/06/2011 14:34, Anurag wrote: Hi All, I am working on application which needs to do a authentication against LDAP, if LDAP not installed then local system account (administrator user in windows and root user in Linux). This should work on both Windows and Linux. Which library I should use

User Authentication

2011-06-22 Thread Anurag
Hi All, I am working on application which needs to do a authentication against LDAP, if LDAP not installed then local system account (administrator user in windows and root user in Linux). This should work on both Windows and Linux. Which library I should use for that. Regards, Anurag -- http

Re: Proxy authentication required

2011-03-22 Thread Chris Rebert
behind a proxy. So far >> > > this is what I've used without any successful result receiving the >> > > error: "urllib.error.HTTPError: HTTP Error 407: Proxy Authentication >> > > Required ( The ISA Server requires auth >>

Re: Proxy authentication required

2011-03-22 Thread gervaz
is what I've used without any successful result receiving the > > > error: "urllib.error.HTTPError: HTTP Error 407: Proxy Authentication > > > Required ( The ISA Server requires auth > > > orization to fulfill the request. Access to the Web Proxy filter is > >

Re: Proxy authentication required

2011-03-22 Thread gervaz
r: "urllib.error.HTTPError: HTTP Error 407: Proxy Authentication > > Required ( The ISA Server requires auth > > orization to fulfill the request. Access to the Web Proxy filter is > > denied.  )": > > > hc = urllib.request.HTTPCookieProcessor() > > hp = urll

Re: Proxy authentication required

2011-03-21 Thread python
r: "urllib.error.HTTPError: HTTP Error 407: Proxy Authentication > > Required ( The ISA Server requires auth > > orization to fulfill the request. Access to the Web Proxy filter is > > denied.  )": > > > hc = urllib.request.HTTPCookieProcessor() > > hp = urll

Re: Proxy authentication required

2011-03-21 Thread Chris Rebert
On Mon, Mar 21, 2011 at 2:38 AM, gervaz wrote: > Hi all, > I've got to download some web pages but I'm behind a proxy. So far > this is what I've used without any successful result receiving the > error: "urllib.error.HTTPError: HTTP Error 407: Proxy Authentica

Proxy authentication required

2011-03-21 Thread gervaz
Hi all, I've got to download some web pages but I'm behind a proxy. So far this is what I've used without any successful result receiving the error: "urllib.error.HTTPError: HTTP Error 407: Proxy Authentication Required ( The ISA Server requires auth orization to fulfill the re

Uploading files to an an FTP site through a proxy server which requires authentication

2011-02-09 Thread tkp...@hotmail.com
I would like to upload files to a ftp site, but can't seem to get through our proxy server, which requires authentication. How can one do this in Python (I use 2.7, but am more than happy to use 3.2 rc2) Thanks in advance Thomas Philips -- http://mail.python.org/mailman/listinfo/python-list

Bug: urllib2 basic authentication does not trap auth failure in windows?

2010-09-11 Thread naugiedoggie
but the basic handler is exactly the same in the important respects. What happens in a windows console is that, in fact, the code dumps with the message 'maximum recursion depth reached.' Whereas, in the linux console, the same script exits appropriately with the trapped 401 error that auth

SOLVED: Re: Trap Authentication Errors in HTTP Request

2010-09-11 Thread naugiedoggie
On Sep 10, 12:09 pm, naugiedoggie wrote: > Hello, > > I have a script that authenticates to a web service provider to > retrieve data.  This script provides an authentication header built in > a very basic way like this: The answer is that there is something whacked in the Windoze

Trap Authentication Errors in HTTP Request

2010-09-10 Thread naugiedoggie
Hello, I have a script that authenticates to a web service provider to retrieve data. This script provides an authentication header built in a very basic way like this: # Creates an authentication object with the credentials for a given URL def createPasswordManager(headers

Re: Get authentication error while using 'smtplib'

2010-08-22 Thread Mahmood Naderan
n mailing list Sent: Fri, August 20, 2010 6:13:20 PM Subject: Get authentication error while using 'smtplib' I have this script to send an email via SMTP: import smtplib smtpserver = 'smtp.server.com' AUTHREQUIRED = 1# if you need to use SMTP AUTH set to 1 smtpuser = "use

Get authentication error while using 'smtplib'

2010-08-20 Thread Mahmood Naderan
unning the script I get this error:   Traceback (most recent call last):   File "my_mail.py", line 14, in     session.login(smtpuser, smtppass)   File "/usr/lib/python2.6/smtplib.py", line 589, in login     raise SMTPAuthenticationError(code, resp) smtplib.SMTPAuthenticationError:

ACE RSA Authentication Manager

2010-04-11 Thread @ Rocteur CC
Hi, Anyone out there writing Jython for RSA Authentication Manager ? I'm fairly new to Python but I see it is possible to write Jython scripts for user administration. I'm also very interested in writing scripts for monitoring and basically everything else related to RSA but

Re: How to access a web site with an authentication template.

2010-03-17 Thread Gabriel Genellina
En Wed, 17 Mar 2010 15:43:00 -0300, Anthra Norell escribió: I understand that I can access password protected sites with urllib2. [...] a site I am dealing with, because the opening page does not require a password. It presents an id/password entry template and I have no clue how to respo

How to access a web site with an authentication template.

2010-03-17 Thread Anthra Norell
Hi all, I have spent the better part of this day reading docs and googling archives to no avail. About this: I understand that I can access password protected sites with urllib2. However, the protocol seems to be: I try without password and catch the error coming back. The header will then

SMTPException: No suitable authentication method found (Server: Microsoft ESMTP MAIL Service)

2010-01-14 Thread Thomas Guettler
Hi, I try to login, but I get this exception: File "/home/foo/django/core/mail.py", line 137, in open self.connection.login(self.username, self.password) File "/home/foo/smtplib.py", line 587, in login raise SMTPException("No suitable authentication met

Re: Authentication session with urllib2

2009-11-11 Thread Ken Seehart
Jon Clements wrote: On 11 Nov, 07:02, Ken Seehart wrote: I'm having some difficulty implementing a client that needs to maintain an authenticated https: session. I'd like to avoid the approach of receiving a 401 and resubmit with authentication, for two reasons: 1.

Re: Authentication session with urllib2

2009-11-11 Thread Jon Clements
On 11 Nov, 07:02, Ken Seehart wrote: > I'm having some difficulty implementing a client that needs to maintain > an authenticated https: session. > > I'd like to avoid the approach of receiving a 401 and resubmit with > authentication, for two reasons: > > 1. I cont

Authentication session with urllib2

2009-11-10 Thread Ken Seehart
I'm having some difficulty implementing a client that needs to maintain an authenticated https: session. I'd like to avoid the approach of receiving a 401 and resubmit with authentication, for two reasons: 1. I control the server, and it was easy for me to make a url that recei

Python SSL Client Authentication

2009-10-02 Thread AJ Mayorga
I have been able to use the ssl module in Python 2.6 to setup a server that requires The client to authenticate via an x509 certificates, but I want to be able to override the client Authentication process or catch the exception so that I can do redirects etc. if the client authentication Fails

python smtp gmail authentication error (sending email through gmail smtp server)

2009-09-05 Thread online
Hi all, I have the following code import smtplib from email.mime.text import MIMEText smtpserver = 'smtp.gmail.com' AUTHREQUIRED = 1 # if you need to use SMTP AUTH set to 1 smtpuser = 'ad...@myhost.com' # for SMTP AUTH, set SMTP username here smtppass = '123456' # for

WHIFF 0.4 += repoze.who authentication + menus + calculator + docs.

2009-07-14 Thread Aaron Watters
WHIFF (WSGI HTTP Integrated Filesystem Frames) 0.4 released. The new WHIFF 0.4 release linked from http://whiff.sourceforge.net includes the following enhancements: Built in support for repoze.who based authentication (from http://static.repoze.org/whodocs/ ) + tutorial see: http

Re: Automate rsync w/ authentication

2009-07-13 Thread Piet van Oostrum
> Bryan (B) wrote: >B> On Jul 10, 12:03 pm, mgi...@motorola.com (Gary Duzan) wrote: >>> In article >>> <3af970b1-b454-4d56-a33f-889ecfaca...@l28g2000vba.googlegroups.com>, >>> >>> Bryan   wrote: >>> >>> >rsyncExec = '/usr/bin/ssh' >>> >source = 'r...@10.0.45.67:/home/bry/jquery.lookup' >>>

Re: Automate rsync w/ authentication

2009-07-13 Thread Bryan
On Jul 10, 12:03 pm, mgi...@motorola.com (Gary Duzan) wrote: > In article > <3af970b1-b454-4d56-a33f-889ecfaca...@l28g2000vba.googlegroups.com>, > > Bryan   wrote: > > >rsyncExec = '/usr/bin/ssh' > >source = 'r...@10.0.45.67:/home/bry/jquery.lookup' > >dest = '/home/bry/tmp' > >rshArg = '-e "/usr/

Re: Automate rsync w/ authentication

2009-07-11 Thread Gary Duzan
In article <3af970b1-b454-4d56-a33f-889ecfaca...@l28g2000vba.googlegroups.com>, Bryan wrote: > >rsyncExec = '/usr/bin/ssh' >source = 'r...@10.0.45.67:/home/bry/jquery.lookup' >dest = '/home/bry/tmp' >rshArg = '-e "/usr/bin/ssh -i /home/bry/keys/brybackup.key"' >args = [rsyncExec, '-a', '-v', '--d

Re: Automate rsync w/ authentication

2009-07-10 Thread Piet van Oostrum
> Bryan (B) wrote: >B> I tried removing the internal quotes, and splitting '-e' from the >B> other arguments. I still get the same ssh -h output however: >B> rshArg = '/usr/bin/ssh -i /home/bry/keys/brybackup.key' >B> args = [rsyncExec, '-a', '-v', '--dry-run', '-e', rshArg, source, >B> des

Re: Automate rsync w/ authentication

2009-07-10 Thread Bryan
On Jul 10, 12:43 pm, Piet van Oostrum wrote: > > Chris Rebert (CR) wrote: > >CR> On Fri, Jul 10, 2009 at 9:13 AM, Bryan wrote: > >>> I am trying to automate rsync to backup server A from server B.  I > >>> have set up a private/public key between the two servers so I don't > >>> have to enter

Re: Automate rsync w/ authentication

2009-07-10 Thread Chris Rebert
On Fri, Jul 10, 2009 at 12:43 PM, Piet van Oostrum wrote: >> Chris Rebert (CR) wrote: > >>CR> On Fri, Jul 10, 2009 at 9:13 AM, Bryan wrote: I am trying to automate rsync to backup server A from server B.  I have set up a private/public key between the two servers so I don't have

Re: Automate rsync w/ authentication

2009-07-10 Thread Piet van Oostrum
> Chris Rebert (CR) wrote: >CR> On Fri, Jul 10, 2009 at 9:13 AM, Bryan wrote: >>> I am trying to automate rsync to backup server A from server B.  I >>> have set up a private/public key between the two servers so I don't >>> have to enter a password when using rsync.  Running rsync manually >

Re: Automate rsync w/ authentication

2009-07-10 Thread Chris Rebert
On Fri, Jul 10, 2009 at 9:13 AM, Bryan wrote: > I am trying to automate rsync to backup server A from server B.  I > have set up a private/public key between the two servers so I don't > have to enter a password when using rsync.  Running rsync manually > with the following command works fine: > rs

Automate rsync w/ authentication

2009-07-10 Thread Bryan
I am trying to automate rsync to backup server A from server B. I have set up a private/public key between the two servers so I don't have to enter a password when using rsync. Running rsync manually with the following command works fine: rsync -av --dry-run -e "/usr/bin/ssh -i /home/bry/keys/bry

Re: Call Web Service using proxy and http authentication

2009-05-14 Thread wdveloper
On May 13, 5:26 pm, Steve Howell wrote: > On May 12, 12:51 pm, wdveloper wrote: > > > > > On May 12, 8:38 pm, Steve Howell wrote: > > > > On May 12, 8:59 am, wdveloper wrote: > > > > > Hi everyone, > > > > > I am trying to cal

Re: Call Web Service using proxy and http authentication

2009-05-13 Thread Steve Howell
On May 12, 12:51 pm, wdveloper wrote: > On May 12, 8:38 pm, Steve Howell wrote: > > > > > On May 12, 8:59 am, wdveloper wrote: > > > > Hi everyone, > > > > I am trying to call a webservice which requires an http > > > authentication. > >

Re: Call Web Service using proxy and http authentication

2009-05-12 Thread wdveloper
On May 12, 8:38 pm, Steve Howell wrote: > On May 12, 8:59 am, wdveloper wrote: > > > Hi everyone, > > > I am trying to call a webservice which requires an http > > authentication. > > To reach the ws, I must pass from a proxy http. So in the whole I need > >

Re: Call Web Service using proxy and http authentication

2009-05-12 Thread Steve Howell
On May 12, 8:59 am, wdveloper wrote: > Hi everyone, > > I am trying to call a webservice which requires an http > authentication. > To reach the ws, I must pass from a proxy http. So in the whole I need > go through two authentications before getting the ws working. I am >

Call Web Service using proxy and http authentication

2009-05-12 Thread wdveloper
Hi everyone, I am trying to call a webservice which requires an http authentication. To reach the ws, I must pass from a proxy http. So in the whole I need go through two authentications before getting the ws working. I am using SOAPpy and I'm getting quite crazy. I am able to arrange

Re: authentication example with urllib.request

2009-04-25 Thread Marco Bizzarri
On Sat, Apr 25, 2009 at 8:09 AM, larryzhang wrote: > Dear all, > > I am trying to download data from a website that requires > authentication (maybe with cookies). Any suggestions on how i can do > this with the urllib.request module in py3? Where can I can find some > working

authentication example with urllib.request

2009-04-24 Thread larryzhang
Dear all, I am trying to download data from a website that requires authentication (maybe with cookies). Any suggestions on how i can do this with the urllib.request module in py3? Where can I can find some working examples? Thanks a lot. Larry -- http://mail.python.org/mailman/listinfo/python

Re: HTTP Authentication using urllib2

2009-04-24 Thread Wojtek Walczak
On Fri, 24 Apr 2009 04:25:20 -0700 (PDT), Lakshman wrote: > I am trying to authenticate using urllib2. The basic authentication > works if I hard code authheaders. ... > except IOError, e: > print "Something wrong. This shouldnt happen" First of all, don't

HTTP Authentication using urllib2

2009-04-24 Thread Lakshman
I am trying to authenticate using urllib2. The basic authentication works if I hard code authheaders. def is_follows(follower, following): theurl = 'http://twitter.com/friendships/exists.json? user_a='+follower+'&user_b='+following username = 'uname1'

authentication

2009-04-09 Thread mr_e
Trying to create a parser, that will first log into one of the account in a certain page. Then its suppose to simulate a click on one of the forms in the authenticated page (line 17 onwards). Does not want to take effect. Does it have something to do with referrers or is there anything wrong with w

Re: HTTP Authentication

2009-04-06 Thread Gerhard Häring
Lakshman wrote: > Whats is the python urllib2 equivallent of > > curl -u username:password status="abcd" http://example.com/update.json > > I did this: > > handle = urllib2.Request(url) > authheader = "Basic %s" % base64.encodestring('%s:%s' % (username, > password)) > handle.add_header("Author

HTTP Authentication

2009-04-06 Thread Lakshman
Whats is the python urllib2 equivallent of curl -u username:password status="abcd" http://example.com/update.json I did this: handle = urllib2.Request(url) authheader = "Basic %s" % base64.encodestring('%s:%s' % (username, password)) handle.add_header("Authorization", authheader) Is there a be

Re: Web authentication urllib2

2009-01-24 Thread Scott David Daniels
Gabriel wrote: Yep, i realize this a minute after posting, sorry. And thank you again .) Steve Holden wrote: ... I'll offer a couple of pointers about what we all expect here. Please treat this as advice, not a shout of disapproval. (1) Do not top post (put your response above the previous i

Re: Web authentication urllib2

2009-01-24 Thread Steve Holden
Gabriel wrote: > Yep, i realize this a minute after posting, sorry. > > And thank you again .) > A pleasure. Next time, you might consider posting an explanation along with the "it's working now" message, just to give closure to the thread for anyone who ends up reading it later after a search.

Re: Web authentication urllib2

2009-01-24 Thread Gabriel
Yep, i realize this a minute after posting, sorry. And thank you again .) Steve Holden wrote: Gabriel wrote: First, thank you both I think this isn't basic auth, because this page has form login. I read site's html source and used wireshark to analyze communication between my browser and webs

Re: Web authentication urllib2

2009-01-24 Thread Steve Holden
Gabriel wrote: > First, thank you both > > I think this isn't basic auth, because this page has form login. > I read site's html source and used wireshark to analyze communication > between my browser and website and i really find out that a was ignoring > one field > > I added it to the paramete

Re: Web authentication urllib2

2009-01-24 Thread Gabriel
mming .) That's actually pretty good code for a newcomer! There are a couple of issues you may be running into. First, not all sites use "application-based" authentication - they may use HTTP authentication of some kind instead. In that case you have to pass the username and pa

Re: Web authentication urllib2

2009-01-24 Thread Gabriel
pretty good code for a newcomer! There are a couple of issues you may be running into. First, not all sites use "application-based" authentication - they may use HTTP authentication of some kind instead. In that case you have to pass the username and password as a part of the HTTP header

Re: Web authentication urllib2

2009-01-24 Thread Steve Holden
ly beginner both in > python and web programming .) > That's actually pretty good code for a newcomer! There are a couple of issues you may be running into. First, not all sites use "application-based" authentication - they may use HTTP authentication of some kind instead

Re: Web authentication urllib2

2009-01-24 Thread Gabriel Genellina
En Sat, 24 Jan 2009 06:52:57 -0200, Gabriel escribió: I'm new in Python and i would like to write script which need to login to a website. I'm experimenting with urllib2, especially with something like this: opener = urllib2.build_opener(urllib2.HTTPCookieProcessor()) urllib2.insta

Web authentication urllib2

2009-01-24 Thread Gabriel
Hello, I'm new in Python and i would like to write script which need to login to a website. I'm experimenting with urllib2, especially with something like this: opener = urllib2.build_opener(urllib2.HTTPCookieProcessor()) urllib2.install_opener(opener) params = urllib.urlencode(di

ANN: python-ntlm - provides NTLM support, including an authentication handler for urllib2

2008-12-10 Thread Matthijs
Announcing: python-ntlm http://code.google.com/p/python-ntlm/ python-ntlm is a library that provides NTLM support, including an authentication handler for urllib2. This library allows you to retrieve content from (usually corporate) servers protected with windows authentication (NTLM) using the

Re: How to protect website from access without authentication?

2008-11-03 Thread Shawn Milochik
This isn't really a Python question -- it's a Web development question. The easy answer is to just password protect the directory all the pages are stored in, and require a password. This can be set up using Apache or IIS. If what you really meant to ask was how to prevent anyone from accessing ce

How to protect website from access without authentication?

2008-11-03 Thread Good Z
Dear All, We are developing a website and would like to password protect the whole site. If any user visit our site using ip address or using the http link, he/she will be asked for login password and then granted the access to whole site based on the correct password. Help will be appreciate

Proxy authentication in common libraries

2008-10-26 Thread Sahasranaman
Hi I am behind a proxy server that needs proxy authentication. There are a lot of libraries that come without proxy support. The function below, which is part of the python-twitter library does HTTP Authentication, and I can't figure out how to do this with a ProxyBasicAuthHandler object

  1   2   3   >