0

Is it possible to get the current windows user from with in pylons?

I am starting a pylons app that is going to be used from within a controlled Windows domain.

Is it possible to get the logged on user?

Much like I would do in ASP.NET with Page.User.Identity.Name.

Daniel
  • 21
  • 2

1 Answers1

3

You can do this with the standard getpass module:

import getpass
getpass.getuser()
jkp
  • 78,960
  • 28
  • 103
  • 104