I've been looking for a easy way to get the users windows ID on my intranet portal PHP application. I found a few things but nothing that promising.

I have a MSSQL database and PHP on a IIS server. AD windows environment.

Any ideas for me to look into? Anyone done this?

Thanks in advance!