Support Requests: Browse | Submit New | Admin

[#26867] Patch to get username from windows API instead of environment

Date:
2009-08-05 08:45
Priority:
3
Submitted By:
Jesper Skov (jskovjbdk)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Patch to get username from windows API instead of environment

Detailed description
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.

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
sspi-1.3.1-adds-userlookup.diff Adds user lookup via Windows API Download

Changes:

Field Old Value Date By
File Added4661: sspi-1.3.1-adds-userlookup.diff2009-08-05 08:45jskovjbdk