Re: how to locate the OS currently logged in user??

2008-08-27 Thread koenb
Did you look at the information attached to ticket 689 [1] ? This is about using the credentials provided by the webserver. Typical use case is having apache authenticate the user (eg via mod_ntlm, mod_auth_sspi or another authentication system), pass the username into the django app and use

Re: how to locate the OS currently logged in user??

2008-08-27 Thread Guillaume Lederrey
2008/8/27 PeteDK <[EMAIL PROTECTED]>: > On 21 Aug., 16:25, "Guillaume Lederrey" <[EMAIL PROTECTED]> > wrote: >> 2008/8/21 PeteDK <[EMAIL PROTECTED]>: >> > On 21 Aug., 13:10, "Guillaume Lederrey" <[EMAIL PROTECTED]> >> > wrote: >> >> 2008/8/21 PeteDK <[EMAIL PROTECTED]>: >> >> I'm still not clear

Re: how to locate the OS currently logged in user??

2008-08-27 Thread PeteDK
On 21 Aug., 16:25, "Guillaume Lederrey" <[EMAIL PROTECTED]> wrote: > 2008/8/21 PeteDK <[EMAIL PROTECTED]>: > > > > > > > > > On 21 Aug., 13:10, "Guillaume Lederrey" <[EMAIL PROTECTED]> > > wrote: > >> 2008/8/21 PeteDK <[EMAIL PROTECTED]>: > > >> > The server is running Debian Linux and they are

Re: how to locate the OS currently logged in user??

2008-08-21 Thread Guillaume Lederrey
2008/8/21 PeteDK <[EMAIL PROTECTED]>: > > > > On 21 Aug., 13:10, "Guillaume Lederrey" <[EMAIL PROTECTED]> > wrote: >> 2008/8/21 PeteDK <[EMAIL PROTECTED]>: >> >> >> >> > The server is running Debian Linux and they are logging on to the >> > server using the username and password stored in the

Re: how to locate the OS currently logged in user??

2008-08-21 Thread PeteDK
On 21 Aug., 13:10, "Guillaume Lederrey" <[EMAIL PROTECTED]> wrote: > 2008/8/21 PeteDK <[EMAIL PROTECTED]>: > > > > > The server is running Debian Linux and they are logging on to the > > server using the username and password stored in the active directory > > on one of the other servers. > >

Re: how to locate the OS currently logged in user??

2008-08-21 Thread PeteDK
On 21 Aug., 13:44, "Emily Rodgers" <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: django-users@googlegroups.com > > [mailto:[EMAIL PROTECTED] On Behalf Of PeteDK > > Sent: 21 August 2008 11:14 > > To: Django users > > Subject: Re: how to locate the OS currently logged in

RE: how to locate the OS currently logged in user??

2008-08-21 Thread Emily Rodgers
> -Original Message- > From: django-users@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of PeteDK > Sent: 21 August 2008 11:14 > To: Django users > Subject: Re: how to locate the OS currently logged in user?? > > > > Have you tested the suggestion above with someone who is

Re: how to locate the OS currently logged in user??

2008-08-21 Thread Guillaume Lederrey
2008/8/21 PeteDK <[EMAIL PROTECTED]>: > > The server is running Debian Linux and they are logging on to the > server using the username and password stored in the active directory > on one of the other servers. I'm still not clear on how your user log into the server. Via SSH, HTTP Auth, other ?

Re: how to locate the OS currently logged in user??

2008-08-21 Thread PeteDK
> Have you tested the suggestion above with someone who is not sshed into > the box, because if it is just the remote user of the app you want, you > really don't want to be doing '/usr/bin/ who' because that will return > the users sshed onto the box (and *not* the users logged into the web >

Re: how to locate the OS currently logged in user??

2008-08-21 Thread PeteDK
On 21 Aug., 01:59, "Garrett Garcia" <[EMAIL PROTECTED]> wrote: > On Wed, Aug 20, 2008 at 9:53 AM, PeteDK <[EMAIL PROTECTED]> wrote: > > > On 20 Aug., 17:56, "Emily Rodgers" <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > > > From: django-users@googlegroups.com > > > >

RE: how to locate the OS currently logged in user??

2008-08-21 Thread Emily Rodgers
> -Original Message- > From: django-users@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of PeteDK > Sent: 20 August 2008 17:54 > To: Django users > Subject: Re: how to locate the OS currently logged in user?? > > > > > On 20 Aug., 17:56, "Emily Rodgers" <[EMAIL

Re: how to locate the OS currently logged in user??

2008-08-20 Thread Garrett Garcia
On Wed, Aug 20, 2008 at 9:53 AM, PeteDK <[EMAIL PROTECTED]> wrote: > > > > On 20 Aug., 17:56, "Emily Rodgers" <[EMAIL PROTECTED]> wrote: > > > -Original Message- > > > From: django-users@googlegroups.com > > > [mailto:[EMAIL PROTECTED] On Behalf Of Steve Holden > > > Sent: 20 August 2008

Re: how to locate the OS currently logged in user??

2008-08-20 Thread James Matthews
I assume you are using linux. But in windows it's like this import os os.environ ['USERPROFILE'].split('\\')[-1] James On Wed, Aug 20, 2008 at 9:53 AM, PeteDK <[EMAIL PROTECTED]> wrote: > > > > On 20 Aug., 17:56, "Emily Rodgers" <[EMAIL PROTECTED]> wrote: > > > -Original Message- > > >

Re: how to locate the OS currently logged in user??

2008-08-20 Thread PeteDK
On 20 Aug., 17:56, "Emily Rodgers" <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: django-users@googlegroups.com > > [mailto:[EMAIL PROTECTED] On Behalf Of Steve Holden > > Sent: 20 August 2008 16:37 > > To: django-users@googlegroups.com > > Subject: Re: how to locate the OS

RE: how to locate the OS currently logged in user??

2008-08-20 Thread Emily Rodgers
> -Original Message- > From: django-users@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of Steve Holden > Sent: 20 August 2008 16:37 > To: django-users@googlegroups.com > Subject: Re: how to locate the OS currently logged in user?? > > > PeteDK wrote: > > Hi. > > > > I

Re: how to locate the OS currently logged in user??

2008-08-20 Thread Steve Holden
PeteDK wrote: > Hi. > > I want to retreive the name of the currently logged in user on the OS > on which my django app lives. > Is this possible? > > The thing is. The app is to be used in a private environment, so all > the users have to log on to the webserver first(this cant be changed). > I

Re: how to locate the OS currently logged in user??

2008-08-20 Thread Guillaume Lederrey
2008/8/20 PeteDK <[EMAIL PROTECTED]>: > I want to retreive the name of the currently logged in user on the OS > on which my django app lives. > Is this possible? You should realize that there is no direct connection between the user logged in the webserver and the user connecting via HTTP to

Re: how to locate the OS currently logged in user??

2008-08-20 Thread PeteDK
On 20 Aug., 15:14, Christian Joergensen <[EMAIL PROTECTED]> wrote: > PeteDK wrote: > > Hi. > > > I want to retreive the name of the currently logged in user on the OS > > on which my django app lives. > > Is this possible? > > You are aware that on most systems, more than one user is allowed to

Re: how to locate the OS currently logged in user??

2008-08-20 Thread Christian Joergensen
PeteDK wrote: > Hi. > > I want to retreive the name of the currently logged in user on the OS > on which my django app lives. > Is this possible? You are aware that on most systems, more than one user is allowed to login concurrently? [...] > i have looked into the python standard library,