Solved

Gina DLL AND PROFILES ?

Posted on 1998-12-03
4
541 Views
Last Modified: 2013-12-03
I've created a new Gina DLL that  must handle user profiles, user scripts
and Roaming default user profile.

All works fine excepts first connection of a new user on Domain server.
NT says it cannot load the profile. (the true msgina works fine and
 gets the remote default user profile but not mine).

Did someone experienced the same problem ?
What fields are to be filled in the WLX_PROFILE_V2_0 structure ?
Is there a workaround to this problem ?
0
Comment
Question by:gulliver
  • 3
4 Comments
 
LVL 6

Expert Comment

by:stsanz
ID: 1416640
I have had this problem recently, and had it work (including network default user profile) by filling WLX_PROFILE_V2_0 fields the following way :
(I assume your logon server name is 'ServerName')

dwType : WLX_PROFILE_TYPE_V2_0
pszProfile : usri3_profile field of structure USER_INFO_3 (get it using NetUserGetInfo API)
pszPolicy : \\ServerName\netlogon\ntconfig.pol
pszNetworkDefaultUserProfile : \\ServerName\netlogon\Default User
pszServerName : \\ServerName
pszEnvironment : LOGONSERVER=\\ServerName

'netlogon\ntconfig.pol' and 'netlogon\Default User' paths seem to be hard coded.

I have found these informations by calling Microsoft MSGINA function WlxLoggedOutSas from my GINA, so I could see how MSGINA fills WLX_PROFILE_V2_0 fields.

Hope this helps.


0
 

Author Comment

by:gulliver
ID: 1416641
We've tried to fill the WLX_PROFILE_V2_0 structure with all the necessary fields but the Winlogon continues to load the local Default User and not the Remote one ?

Is there another thing to do ?
Can you describe briefly the overall login process that you use in your GINA ?

Thanks a lot
0
 
LVL 6

Accepted Solution

by:
stsanz earned 100 total points
ID: 1416642
Windows NT makes a time check on the remote and local default user profile to load the most recent one.

To test if your GINA works fine with remote default profiles, try to follow the procedure indicated on Microsoft Knowledge base item Q163215 ("How to Create a Base Profile for All Users") :
http://support.microsoft.com/support/kb/articles/q163/2/15.asp
0
 
LVL 6

Expert Comment

by:stsanz
ID: 1416643
Sorry, the correct Knowledge base item is not Q163215, but Q168475 (http://support.microsoft.com/support/kb/articles/q168/4/75.asp)

If it still doesn't work with your GINA, try calling Microsoft MSGINA WlxLoggedOutSAS and compare WLX_PROFILE_V2_0 field values returned by MSGINA with your own.

0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question