RSS Forums RSS
Please support our Python advertiser: Programming Forums
Views: 1014 | Replies: 9 | Solved | Thread Tools  Display Modes
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: Dundee, Scotland
Posts: 13,954
Reputation: jbennet is just really nice jbennet is just really nice jbennet is just really nice jbennet is just really nice jbennet is just really nice 
Rep Power: 35
Solved Threads: 367
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: Web server created in python

  #2  
Nov 22nd, 2007
what do you mean by userid
TRY MY SUGGESTIONS AT YOUR OWN RISK

Master of puppets Im pulling your strings, blinded by me, you cant see a thing. Master! Master!
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: Dundee, Scotland
Posts: 13,954
Reputation: jbennet is just really nice jbennet is just really nice jbennet is just really nice jbennet is just really nice jbennet is just really nice 
Rep Power: 35
Solved Threads: 367
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: Web server created in python

  #4  
Nov 23rd, 2007
no
TRY MY SUGGESTIONS AT YOUR OWN RISK

Master of puppets Im pulling your strings, blinded by me, you cant see a thing. Master! Master!
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: Dundee, Scotland
Posts: 13,954
Reputation: jbennet is just really nice jbennet is just really nice jbennet is just really nice jbennet is just really nice jbennet is just really nice 
Rep Power: 35
Solved Threads: 367
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

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

Master of puppets Im pulling your strings, blinded by me, you cant see a thing. Master! Master!
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: Dundee, Scotland
Posts: 13,954
Reputation: jbennet is just really nice jbennet is just really nice jbennet is just really nice jbennet is just really nice jbennet is just really nice 
Rep Power: 35
Solved Threads: 367
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: Web server created in python

  #8  
Nov 26th, 2007
the client does it
TRY MY SUGGESTIONS AT YOUR OWN RISK

Master of puppets Im pulling your strings, blinded by me, you cant see a thing. Master! Master!
Reply With Quote  
Join Date: Nov 2007
Location: Ireland
Posts: 21
Reputation: LarZ is an unknown quantity at this point 
Rep Power: 2
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: Dundee, Scotland
Posts: 13,954
Reputation: jbennet is just really nice jbennet is just really nice jbennet is just really nice jbennet is just really nice jbennet is just really nice 
Rep Power: 35
Solved Threads: 367
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

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

Master of puppets Im pulling your strings, blinded by me, you cant see a thing. Master! Master!
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)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 5:39 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC