#103593 - 2003-08-11 02:08 AM
Group Membership over a Dialup
|
dick_morriss
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
|
|
|
|
#103595 - 2003-08-11 03:01 AM
Re: Group Membership over a Dialup
|
dick_morriss
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
|
|
|
|
#103599 - 2003-08-11 03:20 AM
Re: Group Membership over a Dialup
|
dick_morriss
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
|
|
|
|
#103602 - 2003-08-11 03:58 AM
Re: Group Membership over a Dialup
|
dick_morriss
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
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
|
|
|
|
#103606 - 2003-08-11 04:15 AM
Re: Group Membership over a Dialup
|
dick_morriss
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
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
|
|
|
|
#103610 - 2003-08-11 04:52 AM
Re: Group Membership over a Dialup
|
Howard Bullock
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.
|
|
Top
|
|
|
|
#103611 - 2003-08-11 05:25 AM
Re: Group Membership over a Dialup
|
dick_morriss
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
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.
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 1147 anonymous users online.
|
|
|