Solved

Gina DLL AND PROFILES ?

Posted on 1998-12-03
4
545 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

622 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