On Jun 19, 2007, at 4:29 PM, Bill Witherspoon wrote:
> Just finished testing and I cannot get Win Auth to work. I've tried
> all
> the variations that I can think of:
>
> user='billw', user='Emcorp\billw', user='[EMAIL PROTECTED]', user='\:',
> user='\\', etc.
>
> (Emcorp being our domain) along with appropriate passwords (and no
> password, etc.)
One Python trick that is essential when dealing with backslashes is
the r"text" construction. Preceding any literal string with the
letter 'r' tells Python not to interpret backslashes (and any other
'special meaning' character) as anything except a normal character.
So if you have a Windows server that is: \\MySystem\MyServer, you can
represent that easiest in Python by using: r"\\MySystem\MyServer".
This trick comes in handy for both Windows pathing and when creating
regular expressions, where you want the backslash interpreted by the
re module, not the Python string handler.
So try the permutations above, but use: user=r"\\Emcorp\billw"
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]