This topic is locked
[SOLVED]

 Capture Windows Authentication

3/24/2010 6:42:33 PM
ASPRunnerPro General questions
W
wisdom2009 author

Hi,
I have a field called UserID that needs to be to autopopulated, basically the userID is the Windows authentication that the users use to login on their computer. how can i capture it in the add page as ready only.
Thank you

C
clig 3/25/2010



Hi,
I have a field called UserID that needs to be to autopopulated, basically the userID is the Windows authentication that the users use to login on their computer. how can i capture it in the add page as ready only.
Thank you


This just parses the login and removes the domain + \: <%= Right(Request.ServerVariables("REMOTE_USER"), InStr(Request.ServerVariables("REMOTE_USER"), "\") + 1) %>
otherwise assign the default value or insert into: Request.ServerVariables("REMOTE_USER")

W
wisdom2009 author 3/25/2010

Thanks for your response. I did try this but it did return blank values, i am not sure what i need to do in the server to allow me populated. Any suggestions
Thanks

W
wisdom2009 author 3/25/2010

I did figure out how to fixed. I had to uncheck the box Enable anonymous access in the IISM and it's working as i expected.
Thank you again for your help