Page 1 of 2 12>
Topic Options
#103593 - 2003-08-11 02:08 AM Group Membership over a Dialup
dick_morriss Offline
Fresh Scripter

Registered: 2002-09-12
Posts: 18
Loc: Tasmania Police AUS
I have a query for anyone who has experience with using Windows XP over a dialup.

Previously we have used kixtart to look at NT domain group membership in logon scripts to do certain things (create shortcuts on the desktop to network resources). Our clients were Win98, and if we put users in a group, the corresponding EnumGroup and InGroup would reflect the changes right away (no doubt using KXRPC services).

Under WindowsXP, these changes are not reflected until users logon with the "Logon with dial-up networking" option checked!! I dont want to expect our users to do this everytime they logon.

Is there anyway to get WindowsXP to update group membership details on the fly ?? or... if not get Kixtart on WindowsXP to query the KXRPC service to get the details right away.

Any ideas/help gratefully received.

Top
#103594 - 2003-08-11 02:22 AM Re: Group Membership over a Dialup
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
If the computer is joined into the domain and the user logs on with cached creds, then InGroup will work regardless of when the user RAS's in.
If that is not the case, the user needs to connect to IPC$ first.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#103595 - 2003-08-11 03:01 AM Re: Group Membership over a Dialup
dick_morriss Offline
Fresh Scripter

Registered: 2002-09-12
Posts: 18
Loc: Tasmania Police AUS
The computer indeed is a member of the group, and the ingroup and enumgroup functions do work, they just dont return the correct results.
Top
#103596 - 2003-08-11 03:02 AM Re: Group Membership over a Dialup
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
They will need to login to the domain with their domain account and dial-up at least once in order to actually cache the credentials. Afterwards, they can use a cached login without using the dial-up. KiXtart will also need to be run at least once with the dial-up established so that it can fill the token cache. Afterwards it can use the token cache to determine group membership. However, if you make changes to group memberships, then the user will need to refresh the token cache again.

Also, only Windows 9x require the KiXtart RPC Server service for some KiXtart functionality.

[ 11. August 2003, 03:03: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#103597 - 2003-08-11 03:07 AM Re: Group Membership over a Dialup
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I logged on to my XP laptop at home with cached creds and then established a RAS connection to my office. Ran the following script locally:
code:
break on
if ingroup('domain admins')
'yeah, in there'
endif

The result:
quote:
yeah, in there
So, I don't know what your problem is. Perhaps you don't have your networking setup properly.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#103598 - 2003-08-11 03:15 AM Re: Group Membership over a Dialup
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
To test Jens' theory, I delteted the reg key, HKEY_CURRENT_USER\Software\KiXtart\TokenCache and ran the test script without logging out. It re-populated the reg key and identified my membership.
I conclude that the group token cache will refresh even if logging on with cached creds and RASing in afterward.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#103599 - 2003-08-11 03:20 AM Re: Group Membership over a Dialup
dick_morriss Offline
Fresh Scripter

Registered: 2002-09-12
Posts: 18
Loc: Tasmania Police AUS
Thankyou all for your valuable input. I really appreciate it.

I agree with everything that has been said with regards to creating the initial cached credentials.

The problem lies when "group membership changes". If we put a user into a domain group, the group membership cannot be seen by EnumGroup or InGroup until the user logs on with the "Logon using dialup networking" checked.

I expect that this is the only way to update the users credentials locally over a dialup, and Kix must just look at the local cached credentials.

I understand that the KXRPC service is only used for Win95/98 clients because they down have direct access to this domain information, but the advantage in this case would be the domain group information is available without having to update the local domain credentials (ie. wihtout having to logon using dialup networking).

Does all this make sense, or am I not describing the problem clearly ???

TIA

Top
#103600 - 2003-08-11 03:24 AM Re: Group Membership over a Dialup
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I don't believe the token cache behaves any different when RASing in. If you make a recent change to group membership you should either flush the cache with /f or simply DelKey('HKEY_CURRENT_USER\Software\KiXtart\TokenCache').
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#103601 - 2003-08-11 03:46 AM Re: Group Membership over a Dialup
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
If you make changes to group memberships, then you of course need to establish a connection tot he domain controller in order to recache thesechanges on the local machine.

However, this can be done after logging into the workstation with cached credentials.

The one thing you haven't yet touched upon is a) when does the KiXtart script run, b) How is it being triggered, c) how is it being updated, d) what does it actually do.
_________________________
There are two types of vessels, submarines and targets.

Top
#103602 - 2003-08-11 03:58 AM Re: Group Membership over a Dialup
dick_morriss Offline
Fresh Scripter

Registered: 2002-09-12
Posts: 18
Loc: Tasmania Police AUS
Just to make sure I am no losing my marbles, I have done a few tests.

I have a user with cached credentials on a Windows XP dialup machine (ie they have logged onto it b4). I added him to a domain group for which I will check membership of using kixtart.

The user is logged in, and dialed up.

When running kix32 with no options, he is not shown as being a member of the group I added him to.

When running kix32 /f to refresh the token cache, he is not shown as being a member of the group I added him to.

I deleted the HKCU/Software/Kixtart/TokenCache key, and then ran kix32, and he is still not shown as being a member of the group I added him to.

I tried logging off, then logging on, then dialing up. Then tried the three tests above, and he is still not shown as a member of the group.

I logged off, then logged on with the "Logon using dialup networking" checked, ran the kix32 scripts, and he is NOW shown as being a member of the group I added him to.

I am starting to think this behaviour cannot be changed.

*cry*

Top
#103603 - 2003-08-11 04:09 AM Re: Group Membership over a Dialup
dick_morriss Offline
Fresh Scripter

Registered: 2002-09-12
Posts: 18
Loc: Tasmania Police AUS
To answer your questions Jens,

The kixtart script is specified under domain user accounts. Ie logon.bat. As you probably understand, when logging on using dialup networking it runs automatically.

To cater for when users logon using cached accounts, then dialup, I have been using the well documented wscript that monitors when a network adapter within a particular network segment is available, and the wscript runs the scripts directly.

Our logon script does a lot of different things. I can post it but you would go to sleep looking at it. Basically for the purposes of my problem, you can consider it to just use EnumGroups to look at the groups that the user is in.

But all this aside, I have just been running a test script eg If InGroup("Anyoldgroup") interactively from the command prompt.

Top
#103604 - 2003-08-11 04:09 AM Re: Group Membership over a Dialup
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
He must login with the domain account not a local account.

Check the various macros like @USERID, @LDOMAIN, and so on for correct settings.
_________________________
There are two types of vessels, submarines and targets.

Top
#103605 - 2003-08-11 04:13 AM Re: Group Membership over a Dialup
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Your test results conflict with mine so I am thinking there is a networking configuration issue. Run IPConfig /all and see what reports for WINS and node type.
My WINS is defined and my note type is H-node.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#103606 - 2003-08-11 04:15 AM Re: Group Membership over a Dialup
dick_morriss Offline
Fresh Scripter

Registered: 2002-09-12
Posts: 18
Loc: Tasmania Police AUS
Yep I am definately logged on as a domain user, not a local user.

If you have access to a dialup, try dialing up, then adding yourself to a domain group, allowing the change to replicate to all DC's, then running a script to see if you are in that group.

Top
#103607 - 2003-08-11 04:19 AM Re: Group Membership over a Dialup
dick_morriss Offline
Fresh Scripter

Registered: 2002-09-12
Posts: 18
Loc: Tasmania Police AUS
This is my PC network config FYI

H:\>ipconfig /all

Windows IP Configuration

Host Name . . . . . . . . . . . . : DIALUP-TEST8
Primary Dns Suffix . . . . . . . : police.tas.gov.au
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : police.tas.gov.au
tas.gov.au
gov.au

Ethernet adapter Local Area Connection:

Media State . . . . . . . . . . . : Media disconnected
Description . . . . . . . . . . . : Intel® PRO/100 VE Desktop Connection

Physical Address. . . . . . . . . : 00-09-6B-08-C1-12

PPP adapter Telstra:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
Physical Address. . . . . . . . . : 00-53-45-00-00-00
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 147.109.170.228
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 147.109.170.228
DNS Servers . . . . . . . . . . . : 192.190.61.139
192.190.61.149
Primary WINS Server . . . . . . . : 192.190.61.130
Secondary WINS Server . . . . . . : 192.190.61.149

H:\>

Top
#103608 - 2003-08-11 04:22 AM Re: Group Membership over a Dialup
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Did youcheck the KiXtart macros? Do you get the right @USERID, the correct @LSERVER, and so on?
_________________________
There are two types of vessels, submarines and targets.

Top
#103609 - 2003-08-11 04:31 AM Re: Group Membership over a Dialup
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
You are right... I was testing with an existing group. Cannot enumerate a newly added group with a cached account.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#103610 - 2003-08-11 04:52 AM Re: Group Membership over a Dialup
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Please review these old threads as I believe that they have a bearing on the current subject.

RESOLVED - BUG Help 4.01 INGROUP Failures

RESOLVED - BUG 4.01 ENUMGROUP Failures

You did not mention or I did not see what version you used to use when it worked and what version you are now using.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#103611 - 2003-08-11 05:25 AM Re: Group Membership over a Dialup
dick_morriss Offline
Fresh Scripter

Registered: 2002-09-12
Posts: 18
Loc: Tasmania Police AUS
To answer your questions, @ macro varisables like @USERID, @LSERVER are returned as expected.

I am testing with kix32.exe version 4.11. I will try the same tests with later versions just incase.

Top
#103612 - 2003-08-11 05:33 AM Re: Group Membership over a Dialup
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
The point I was trying to make and what is documented in the threads listed in my previous post is that I think that version 3.63 will do what you want but requires more network traffic - something you don't want on a dialup link.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
Page 1 of 2 12>


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

Who's Online
0 registered and 1258 anonymous users online.
Newest Members
JimDunn, fgarcia, Viginette, ManuvdWielNL, Sir_Barrington
17890 Registered Users

Generated in 0.069 seconds in which 0.024 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