Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Gina DLL AND PROFILES ?

Posted on 1998-12-03
4
Medium Priority
?
546 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 200 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
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…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

721 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