Solved

Gina DLL AND PROFILES ?

Posted on 1998-12-03
4
544 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

751 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