Page 1 of 1 1
Topic Options
#118172 - 2004-04-16 11:48 PM TokenCache not 'sticking'
Steve_B Offline
Fresh Scripter

Registered: 2004-02-04
Posts: 15
Hello all,

Here's a problem I've been battling for a few weeks. I have an Active Directory domain with a trusting NT resource domain (ie. NT domain trusts AD domain). The users in the AD domain log on to NT4 PCs in the resource domain.

At each logon, the Kix cache has to be re-populated which delays logons significantly (obviously), especially over my slower links. So, upon more investigation I find that the "CacheAge" value is not being written to the TokenCache registry key, and it looks like the cached group list is incomplete (only grabbing about 2/3 of the groups). Essentially, Kix doesn't know it's supposed to be maintaining the cache because there's no CacheAge value, so it repopulates. If I force the CacheAge value to be there (through a reg hack), the logon speeds immediately get improve.

The Event Log on the NT4 PC has a corresponding error: "Event ID 1332. Failed to resolve SID(s) Error : No mapping between account names and security IDs was done. (0x534/1332)." My thoughts are the cache starts populating, Kix can't resolve the SID to an account name, so Kix aborts the caching process prior to writing the CacheAge value.

The NT workstations are using the resource domain's WINS and DNS. If I move the machine to the AD domain AND use the AD domain's DNS the cache gets populated, the CacheAge gets set and all is well.

I think it's a name resolution issue at the DNS in the resource domain, and Kix is only a symptom so that's where I'm focusing attention now. It has similarities to this recent thread. Anyone have any thoughts or seen behaviour like this?

Thanks,
Steve

Top
#118173 - 2004-04-16 11:59 PM Re: TokenCache not 'sticking'
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I doubt your issue is related to that other thread. That one is NT4 domain with no mention of trusts or AD presently existing. That said, this has been discussed before, and IIRC, the solution was to use KiX 3.63 until the NT4 domain is gone. I believe Howard Bullock had a greater involvement and in fact I think he experienced the issue first hand.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#118174 - 2004-04-17 12:17 AM Re: TokenCache not 'sticking'
Steve_B Offline
Fresh Scripter

Registered: 2004-02-04
Posts: 15
Thanks Les. Hope using 3.63 isn't the solution though. I don't want to lose my UDF's and all else good that comes with 4.22. We have another NT resource domain that used to have NT workstations (they've since moved to the AD domain) and we never saw the problem there. But there are many differences that may cause one to have the problem and the other to not have it, like a 2-way trust, using different DNS, etc.
Top
#118175 - 2004-04-17 01:09 AM Re: TokenCache not 'sticking'
burnsc Offline
Starting to like KiXtart

Registered: 2004-04-14
Posts: 171
There are some similarities.

1) My TokenCache is not always retrieving all the Groups. (I was not watching this before so I ran some quick tests. On Average I am retrieveing 75-80% of the member groups. Apparently the group I needed was early in the 'pull list'.)
2) This domain has trusts with MANY other domains (I would say 50+ domains)
3) Corporate has an Active Directory Domain. They will be deploying it soon.

I do not believe the Active Directory domain is currently trusted with the 'working domains'. However, corporate does say they have some people at higher level on that domain.

I admit that I am a newbie to kixtart, and most of my network knowledge has been learned from trial and error and book reading. So sometimes I am still a little nieve on some of the inner workings

Just a sidenote Kixtart 3.63 did not help my time any.

Top
#118176 - 2004-04-17 01:17 AM Re: TokenCache not 'sticking'
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
not sure it's a dns problem as NT clients do trust highly on WINS.
anyway, having abou one third of group-cache missing and having not better information in logs...
I think this is time for ruud to answer where does kix fail.
and does it quit caching if one sid-translate fails?
_________________________
!

download KiXnet

Top
#118177 - 2004-04-17 01:28 AM Re: TokenCache not 'sticking'
Steve_B Offline
Fresh Scripter

Registered: 2004-02-04
Posts: 15
I guess there's two questions here: a) why is my SID match failing and b) why does Kix bail if my SID match fails.

I'd love to hear Ruud's input on b) . As for a), I think it may have something to do with some of the groups. They were migrated from an NT domain to the AD domain. I'm testing this now and will post results.

Steve

Top
#118178 - 2004-04-19 07:00 PM Re: TokenCache not 'sticking'
Steve_B Offline
Fresh Scripter

Registered: 2004-02-04
Posts: 15
Lonkero,

Do you think this is a bug in the Kix code? Are there other methods for submitting bugs, or does Ruud actively monitor the board to offer input?

I haven't found the cause of the failing SID matching yet. The only workaround that I've come up with so far is to write the CacheAge key in the login script so the users won't have to re-build their cache every time. This obviously is not a nice workaround.

Steve

Top
#118179 - 2004-04-22 08:26 PM Re: TokenCache not 'sticking'
Steve_B Offline
Fresh Scripter

Registered: 2004-02-04
Posts: 15
Well, I'm still trying to figure this one out, so I'm putting forth another call for help. And if Ruud's watching, I'd love some input.

Does anyone have an environment similar to mine that they could see if they get the same results?

- Active Directory domain with a user ID
- NT resource domain with a 1-way trust (Resource domain trusts AD domain)
- NT4 workstation in the resource domain
- Log into the NT 4 machine with your AD ID.
- Delete the HKCU\Software\KiXtart\TokenCache\CacheAge entry
- Run a kix script that uses Kix4.22 and runs the @HOMEDIR macro (any macro that makes a call to AD should do, but this is the one I've been testing with)
- look in Event Viewer on the NT workstation, in the Application log, for an Event ID 1332 associated with the KiX script running
- Check the registry at HKCU\Software\KiXtart\TokenCache to see if the CacheAge value has been re-added.

I've tried this in 3 of my NT resource domains and get the same results across the board. 1-way and 2-way trusts give the same results. Just trying to determine if this is something limited to our environment or not.

Any help or thoughts would be appreciated.

TIA
Steve

Top
#118180 - 2004-04-24 01:43 PM Re: TokenCache not 'sticking'
burnsc Offline
Starting to like KiXtart

Registered: 2004-04-14
Posts: 171
I am wondering where we are on this too. I was forced to put out the kixstart script for all my users irregardless of slowness .

Thanks

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 472 anonymous users online.
Newest Members
StuTheCoder, M_Moore, BeeEm, min_seow, Audio
17884 Registered Users

Generated in 0.065 seconds in which 0.03 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org