Solved

Gina DLL AND PROFILES ?

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now