473,797 Members | 3,187 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python, Win2000 serv and missing LOGON_USER variable :(

JZ
I am using Webware installed on Windows2000 server and I found I
could not find all server variable like PHP could. E.g. Windows2000
server has specific variable LOGON_USER which is set for every
logged person. PHP can easy get to this using $_SERVER['LOGON_USER'].
I want to do the same with Webware but I do not know how...

Only small sets of variables are available for request()._envi ron
variable which I got with the following code (for Webware):

for k in self.request(). _environ:
self.write(k,'= >',self.request ()._environ[k],'<br />')

Is it posible to get that server variable with Python??? That variable
is available only with Windows2000 server platform.

--
JZ
Jul 18 '05 #1
3 1794
JZ <cy************ *@ncbybtrglxn.p bz> wrote:

I am using Webware installed on Windows2000 server and I found I
could not find all server variable like PHP could. E.g. Windows2000
server has specific variable LOGON_USER which is set for every
logged person. PHP can easy get to this using $_SERVER['LOGON_USER'].
I want to do the same with Webware but I do not know how...


LOGON_USER only exists when you actually use basic authentication. Are you
doing that? It isn't trivial with Webware. Remember that IIS isn't
serving from your applet directory -- Webware is. A .htaccess file won't
do what you think it will.

Have you looked over UserKit or WebKit\SecurePa ge.py to see the recommended
methods of handling user validation through the applets?
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Jul 18 '05 #2
JZ
On Tue, 10 Feb 2004 00:23:49 -0800, Tim Roberts <ti**@probo.com >
wrote:
I am using Webware installed on Windows2000 server and I found I
could not find all server variable like PHP could. E.g. Windows2000
server has specific variable LOGON_USER which is set for every
logged person. PHP can easy get to this using $_SERVER['LOGON_USER'].
I want to do the same with Webware but I do not know how...


LOGON_USER only exists when you actually use basic authentication.


Webkit/Examples/SecurePage.py deals only with manual authentication.
But I want to login _only once_, during logging to ma workstation. So
that example does not help.

The solution for my problem is: win32api.GetUse r()

--
JZ
Jul 18 '05 #3
JZ <cy************ *@ncbybtrglxn.p bz> wrote:
Tim Roberts <ti**@probo.com > wrote:
I am using Webware installed on Windows2000 server and I found I
could not find all server variable like PHP could. E.g. Windows2000
server has specific variable LOGON_USER which is set for every
logged person. PHP can easy get to this using $_SERVER['LOGON_USER'].
I want to do the same with Webware but I do not know how...


LOGON_USER only exists when you actually use basic authentication.


Webkit/Examples/SecurePage.py deals only with manual authentication.
But I want to login _only once_, during logging to ma workstation. So
that example does not help.

The solution for my problem is: win32api.GetUse r()


OK, but are you aware that this will only tell you the name of the user
that happens to own the Webware process? It isn't the user running the
browser, and it isn't even necessarily the user currently logged in.
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
1723
by: paolo veronelli | last post by:
I've a vague idea of the differences,I don't know scheme anyway. I'd like to see an example to show what is missing in python about closures and possibly understand if ruby is better in this sense. Iuse ruby and python in parallel for my job just to learn them and their differences and python is shorter and cleaner ,but i feel it's missing something, in closures.Any hints?
11
1926
by: angel | last post by:
Hi I use python on win2000.I found python perhaps spend 10~15 second on starting. How to accelerate it? Thanx
3
6218
by: Maria | last post by:
I'm trying to get the NT login id of a user on a web page without making the user type it into a login box. I'm using the LOGON_USER server variable. The problem is, if the web page allows anonymous access, LOGON_USER returns nothing. If the page is set to Basic Security, the NT login popup box comes up, even though the user is already logged into the network, and HAS access to this page. Moreover, if I try this on my PC instead of our...
5
4403
by: T. | last post by:
Hello, I'm trying to pull the logon user's name using Request.ServerVariables("LOGON_USER")...which is returning nothing...so I need help in determining why it's returning nothing, or I need the format in which it returns the username so that I can hard code it. Does it return anything with the username? Thanks...
0
1367
by: Lyners | last post by:
We have an intranet where a majority of users are in our active directory, but not all. We have recently upgraded to using asp.net on our servers and during the rollout ran into a problem. The users in the non-active directory list could not access the website because of integrated security. Well after figuring out how to solve our problems, we have one problem left (which is actually one of our solutions). On the default.asp page we have...
0
1797
by: JPG | last post by:
Hi all, I'm using Windows Integrated Authentication on my company intranet ASP web site (IIS6 W2K3). I would like to know how could I get the full Active Directory domain name from the Logon_User variable. I always get the netbios name of the domain, but I need the full domain name to be able to distinguish users (because actually there is two companies on the intranet having their AD forest linked, but also having some subdomains with...
1
1559
by: Ryan | last post by:
I am trying to figure out why I am trying to use the result of Request.ServerVariables("LOGON_USER") in a query in my aspx application. I want to use the server variable. When I check the length of the string that this method returns (len(Request.ServerVariables("LOGON_USER")) I get a number that is one greater than the the number of characters that are displaying, which of course causes a problem. Does anyone know why this is and...
0
3962
by: Mark Rae | last post by:
Hi, I apologise that this isn't *specifically* an ASP.NET issue - I will also post it to the IIS newsgroup - but I thought I'd ask here anyway on the off-chance that someone may have come across this before... It's an intranet system written in ASP.NET v1.1 using C#. The site is running on IIS6 on Win2k3S with all the SPs and patches etc. The Session_Start interrogates the AUTH_USER server variable to identify the
0
293
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 396 open ( -5) / 3354 closed (+12) / 3750 total ( +7) Bugs : 864 open (-32) / 6087 closed (+52) / 6951 total (+20) RFE : 226 open ( +2) / 234 closed ( +1) / 460 total ( +3) New / Reopened Patches ______________________
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9537
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10246
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10209
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7560
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6803
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4135
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3750
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.