Greetings,
I am using rubysspi to create an authenticated job service on Windows. It is coded in Java, but I used rubysspi to prototype
the SSPI part (still using it - it works, so I may never get around to replace it :)
The attached patch gets around a problem I experienced: my environment variables did not properly reflect the logged
on user (when running as a Windows Service, if memory serves me right).
So I added code to fetch user+domain information from the Windows API instead of the environment.
The patch may be botched, since I manually extracted it from the server-side changes I'll post in a bit. My apologies
if it causes problems.
|