September 29th, 2003, 12:23 PM
how to get the NT authentication user and password with python??
How do I get the NT authentication user and password with python?? I need it to access SQL 2000.
thanks in advance,
September 29th, 2003, 12:55 PM
win32api.GetUserName() will get you the current logged in user. Not sure how you'd get the password though.
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
"I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
September 29th, 2003, 10:19 PM
Hehe, the simple answer would be to make your Python script ask for the password