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
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
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
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
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.
>
>
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
> -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
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 ?
> 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
>
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
> > > >
> -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
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
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-
> > >
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
> -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
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
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
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
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,
19 matches
Mail list logo