Win32 API Question

Posted by Lalit_M on Stack Overflow See other posts from Stack Overflow or by Lalit_M
Published on 2010-05-11T00:07:32Z Indexed on 2010/05/11 0:14 UTC
Read the original article Hit count: 609

Filed under:

We have developed a ASP.NET web application and has implemented a custom authentication solution using active directory as the credentials store. Our front end application uses a normal login form to capture the user name and password and leverages the Win32 LogonUser method to authenticate the user’s credentials. When we are calling the LogonUser method, we are using the LOGON32_LOGON_NETWORK as the logon type.

The issue we have found is that user profile folders are being created under the C:\Users folder of the web server. The folder seems to be created when a new user who has never logged on before is logging in for the first time. As the number of new users logging into the application grows, disk space is shrinking due to the large number of new user folders getting created.

Has anyone seen this behavior with the Win32 LogonUser method? Does anyone know how to disable this behavior?

© Stack Overflow or respective owner

Related posts about winapi