473,406 Members | 2,390 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

urllib2 - pass current windows credentials

I want to call our intranet site using urlib2 and want to use my current windows credentials to pass along so I don't get a 'not authorized' response.

All examples i see are for people needing to pass in an id and password. Since I am already authenticated on the domain, i just need to pass those credentials along.

using C# i would do something like this:"
request.Credentials = System.Net.CredentialCache.DefaultCredentials;

Any suggestions?

Tim
Jun 18 '10 #1
0 1088

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: hch_nguyen | last post by:
I am developing in the .NET Framework using vb.net running under Windows 2000 SP2. I have a snippet of code that runs to determine the name of the current windows user logged in. The code works...
2
by: Stefano | last post by:
Hi all, is it possibile to retrieve the current Windows User Handle from ASP code? I would like to retrieve the correspondent in ASP for thi piece of ASP.NET code: WindowsIdentity id =...
3
by: Shahid Juma | last post by:
Hi, Is it possible to get the current user that is logged on to the computer? I want to use this as the basis of my validation on the site instead of asking them to login in again. I know it...
0
by: Twan Kennis | last post by:
Hello! I do have the following problem: I've developed a Windows application which communicates with a DB2-database on the iSeries platform using an ODBC-connection string. This...
7
by: Wade Wegner | last post by:
Hello, I have been desperately trying to programmatically authenticate a windows user, create their credentials, and then redirect them to a different server while passing the credentials at the...
4
by: Mark | last post by:
hey, i'm trying to get the current windows user and the groups they are in. Intergrated windows auth on and annoymous access turned off on IIS. However when trying to compile the following code...
2
by: Dorte | last post by:
Hi, I need to use check the current windows user of the application by using User.IsInRole(DOMAIN\USERGROUP) I have knowledge of the usergroup to check on, but since the application will be...
2
by: Stephen Noronha | last post by:
Hi, Questions 1. Has anyone encountered a situation to create an application using "windows authentication" only and the first call to the web page caused the Windows authentication dialog box...
9
by: Alex | last post by:
Get the Name and Phone Number of the Current Windows User in a .NET Application I am writing a simple .NET (C#) application. It needs to "automatic" get the Name (last, first) and phone number...
0
by: Jesper Lund Stocholm | last post by:
I have created a WCF-service running on IIS. The virtual directory has anonymous access disabled and requires integrated windows authentication. The proxy to the service is auto-generated using...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.