User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Python section within the Software Development category of DaniWeb, a massive community of 375,167 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,284 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Python advertiser:
Views: 745 | Replies: 9 | Solved
Reply
Join Date: Nov 2007
Posts: 7
Reputation: capri19 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
capri19 capri19 is offline Offline
Newbie Poster

Help Web server created in python

  #1  
Nov 22nd, 2007
I have built a web server in python for a local intranet.
I would like to get the user's userid when they click on a link on my web page.
Is this possible??
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2005
Location: Old Hampshire, Old England (LOL)
Posts: 11,937
Reputation: jbennet is a jewel in the rough jbennet is a jewel in the rough jbennet is a jewel in the rough jbennet is a jewel in the rough 
Rep Power: 30
Solved Threads: 263
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Microsoft Fanboy

Re: Web server created in python

  #2  
Nov 22nd, 2007
what do you mean by userid
TRY MY SUGGESTIONS AT YOUR OWN RISK!
james.bennet1@ntlworld.com
Reply With Quote  
Join Date: Nov 2007
Posts: 7
Reputation: capri19 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
capri19 capri19 is offline Offline
Newbie Poster

Re: Web server created in python

  #3  
Nov 23rd, 2007
sorry

to get access to our local intranet every user has to log in to windows.
This is the userid i would like to get.
In the webserver window I can see the computername when an user clicks on the webpage.

//C19
Reply With Quote  
Join Date: Apr 2005
Location: Old Hampshire, Old England (LOL)
Posts: 11,937
Reputation: jbennet is a jewel in the rough jbennet is a jewel in the rough jbennet is a jewel in the rough jbennet is a jewel in the rough 
Rep Power: 30
Solved Threads: 263
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Microsoft Fanboy

Re: Web server created in python

  #4  
Nov 23rd, 2007
no
TRY MY SUGGESTIONS AT YOUR OWN RISK!
james.bennet1@ntlworld.com
Reply With Quote  
Join Date: Nov 2007
Posts: 7
Reputation: capri19 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
capri19 capri19 is offline Offline
Newbie Poster

Re: Web server created in python

  #5  
Nov 23rd, 2007
ok
thanks for your time
Reply With Quote  
Join Date: Apr 2005
Location: Old Hampshire, Old England (LOL)
Posts: 11,937
Reputation: jbennet is a jewel in the rough jbennet is a jewel in the rough jbennet is a jewel in the rough jbennet is a jewel in the rough 
Rep Power: 30
Solved Threads: 263
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Microsoft Fanboy

Re: Web server created in python

  #6  
Nov 23rd, 2007
the computername is a hostname, thats easy, you can also get the IP and domain easialy but not the windows username.
TRY MY SUGGESTIONS AT YOUR OWN RISK!
james.bennet1@ntlworld.com
Reply With Quote  
Join Date: Nov 2007
Posts: 7
Reputation: capri19 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
capri19 capri19 is offline Offline
Newbie Poster

Re: Web server created in python

  #7  
Nov 26th, 2007
thanks for your reply

maybe you can explain something to me then

if a user clicks on a link on my website that points to a picture or document on the network and he hasn't got permission to read that folder where the picture/document is. How can the server know that the user doesn't have access to that specific folder if it doesn't know who the user is?
As soon as the user has got access to the folder on the network the link works fine.

Is it the client who is making the request to the network and not the server?

As you may have noticed I'm not very good at this
Reply With Quote  
Join Date: Apr 2005
Location: Old Hampshire, Old England (LOL)
Posts: 11,937
Reputation: jbennet is a jewel in the rough jbennet is a jewel in the rough jbennet is a jewel in the rough jbennet is a jewel in the rough 
Rep Power: 30
Solved Threads: 263
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Microsoft Fanboy

Re: Web server created in python

  #8  
Nov 26th, 2007
the client does it
TRY MY SUGGESTIONS AT YOUR OWN RISK!
james.bennet1@ntlworld.com
Reply With Quote  
Join Date: Nov 2007
Location: Ireland
Posts: 21
Reputation: LarZ is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
LarZ LarZ is offline Offline
Newbie Poster

Re: Web server created in python

  #9  
Nov 27th, 2007
you could create a login for your intranet.

Not the smoothest idea but that's usually how it works.

LarZ
Reply With Quote  
Join Date: Apr 2005
Location: Old Hampshire, Old England (LOL)
Posts: 11,937
Reputation: jbennet is a jewel in the rough jbennet is a jewel in the rough jbennet is a jewel in the rough jbennet is a jewel in the rough 
Rep Power: 30
Solved Threads: 263
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Microsoft Fanboy

Re: Web server created in python

  #10  
Nov 27th, 2007
yeah, in fact, seeing as you are creating a web server yourself, you could try and build HTTP authentication into it, like apaches .htaccess
TRY MY SUGGESTIONS AT YOUR OWN RISK!
james.bennet1@ntlworld.com
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Python Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Python Forum

All times are GMT -4. The time now is 11:37 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC