WIN32 API question - Looking for answer asap
- by Lalit_M
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?
I have tried LOGON32_LOGON_BATCH but it was giving an error 1385 in authentication user.
I need either of the solution
1) Is there any way to stop the folder generation.
2) What parameter I need to pass this to work?
Thanks