captainPlus
Programmer
Hello,
I'm trying to get the currently logged on user in an ASP.NET application. But I need both "anonymous access" and "nt authorization". When anonymous access set to on, none of methods to get user identity works. They either return IUSR_XX or ASPNET.
I need both authentication method to provide direct access to local users and a login form for other users.
I crawled a lot on the net. Many posts say it's impossible to get user identity while using anonymous access. It's so reasonable I think. When client is able to connect anonymously, it's normal to not to send any logon information.
But then I realized Microsoft Project Server's login logic. It both works with NT Authorization and anonymous access. Native users are able to use NT Authorization, others can login by typing their username/password set in project server. This is what I exactly need.
Because Project Server use IIS too, I begin to think perhaps there may be a workaround for this. But I'm not sure if this is related or not with the SharePointServices thing that Project Server natively depends on...
Do you have an idea? Is it possible to get currently logged user's name while anonymous access is set to on?
Thanks,
Ali
I'm trying to get the currently logged on user in an ASP.NET application. But I need both "anonymous access" and "nt authorization". When anonymous access set to on, none of methods to get user identity works. They either return IUSR_XX or ASPNET.
I need both authentication method to provide direct access to local users and a login form for other users.
I crawled a lot on the net. Many posts say it's impossible to get user identity while using anonymous access. It's so reasonable I think. When client is able to connect anonymously, it's normal to not to send any logon information.
But then I realized Microsoft Project Server's login logic. It both works with NT Authorization and anonymous access. Native users are able to use NT Authorization, others can login by typing their username/password set in project server. This is what I exactly need.
Because Project Server use IIS too, I begin to think perhaps there may be a workaround for this. But I'm not sure if this is related or not with the SharePointServices thing that Project Server natively depends on...
Do you have an idea? Is it possible to get currently logged user's name while anonymous access is set to on?
Thanks,
Ali