Page 1 of 1 1
Topic Options
#30016 - 2002-10-01 06:38 PM LPT mapping using InGroup problems
Robert Leslie Offline
Fresh Scripter

Registered: 2002-07-22
Posts: 8
Loc: Don Mills, ON
Greetings all

Forgive me if this has been covered somewhere already, but I've spent more than 6 hours looking for it, but not finding anything that fixes it.

Here's the situation: I've been using kixtart for about three years now, and have used the same (basically) script since the beginning. After upgrading to 4.10, the mapping to an LPT no longer works, except on Win9x machines.

I've included below the section of the script that used to work, but no longer does.

The group name is proper (Active Directory, Win2k server), and the UNC path to the printer share name is correct. (If I remove the InGroup section and use @userid=, it works fine.)

IF InGroup ("PRT-1-5-HP8000")
USE LPT1: "\\TORFP01\5-HP8000"
ENDIF

I'd be most appreciative of a solution. Thanks in advance.

Bob

Top
#30017 - 2002-10-01 06:59 PM Re: LPT mapping using InGroup problems
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
So, are you saying that MAP works and that INGROUP doesn't?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#30018 - 2002-10-01 07:02 PM Re: LPT mapping using InGroup problems
Robert Leslie Offline
Fresh Scripter

Registered: 2002-07-22
Posts: 8
Loc: Don Mills, ON
"MAP" is not in the picture. It is simply the term I used when describing what I was trying to do. "@userid" does work, but that can be tedious if you have a number of users. I may have to resort to it though, unless I can come up with a solution.
Top
#30019 - 2002-10-01 07:08 PM Re: LPT mapping using InGroup problems
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I meant the process of mapping the printer with USE...

So the topic "LPT mapping using InGroup problems" could then just be "InGroup problems".

What tests have you done and are all your INGROUPs failing? Anything in the event log or KiXtart.log?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#30020 - 2002-10-01 07:19 PM Re: LPT mapping using InGroup problems
Robert Leslie Offline
Fresh Scripter

Registered: 2002-07-22
Posts: 8
Loc: Don Mills, ON
Sorry - misunderstood MAP. Yes I've been using the USE function. Drive mappings seem to work ok, and LPT mappings work ok. Stick INGROUP in there, and they do not - but used to. I don't know if this was designed in 4.10 or maybe is just fallout (bug?) from some other change.

An update to this - I've updated to 4.11 to see if that makes any difference. It doesn't. I've tried the whole ordeal on a Win9x machine, and the script works perfectly. NT platform - no go.

[ 01. October 2002, 19:51: Message edited by: Robert Leslie ]

Top
#30021 - 2002-10-01 08:00 PM Re: LPT mapping using InGroup problems
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Anything in the event log or KiXtart.log?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#30022 - 2002-10-01 08:36 PM Re: LPT mapping using InGroup problems
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
So, the INGROUP doesn't work?! Have you tried putting the domain name in front of the group name and did you refresh the token cache ?
What's the result of this:
code:
IF InGroup('PRT-1-5-HP8000')
? 'InGroup works'
ELSE
? 'InGroup Failed'
ENDIF

Do all groups fail?
Also can you get a list of groupnames with ENUMGROUP? See the KiXtart Manual for an example.
_________________________
There are two types of vessels, submarines and targets.

Top
#30023 - 2002-10-01 08:49 PM Re: LPT mapping using InGroup problems
Robert Leslie Offline
Fresh Scripter

Registered: 2002-07-22
Posts: 8
Loc: Don Mills, ON
When you say "event log", I'm assuming you mean on the workstation. No there's nothing in there. I've searched, but not been able to find a kixtart.log file on the workstation or the DC servers. Please advise if I'm not looking in the right places.
Top
#30024 - 2002-10-01 09:05 PM Re: LPT mapping using InGroup problems
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Yes, the event log on the client. Have you tried Jens' code? Try it with a well known group as well. just run a little mini-script from a DOS box.

code:
Break on
IF InGroup('Domain Users')
? 'InGroup Domain Users works'
ELSE
? 'InGroup Domain Users Failed'
ENDIF

IF InGroup('PRT-1-5-HP8000')
? 'InGroup PRT-1-5-HP8000 works'
ELSE
? 'InGroup PRT-1-5-HP8000 Failed'
ENDIF
get $

Also try running it with KiX32 /f
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#30025 - 2002-10-01 09:36 PM Re: LPT mapping using InGroup problems
Robert Leslie Offline
Fresh Scripter

Registered: 2002-07-22
Posts: 8
Loc: Don Mills, ON
Ok, I've run that script, and it does fail when it comes to the InGroup. I don't understand why, unless it's something to do with the type of group it is in the AD (Global Security Group).

I've just run it with the /f (it took a minute to figure out to include the name of the script) and it worked properly. I tested by deleting the lpt mapping, then ran it again, and it worked again.

What's the /f do?

I've now tried without the /f and it still works. What's up with that? By the way, the script doesn't fail now either.

I don't know why - it must be something to do with the /f, but it seems to work right now.

Thanks a bunch.

[ 01. October 2002, 21:54: Message edited by: Robert Leslie ]

Top
#30026 - 2002-10-01 09:42 PM Re: LPT mapping using InGroup problems
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Is it just that one group that fails or does it fail for every group? What is the similarity between the groups that do fail?
_________________________
There are two types of vessels, submarines and targets.

Top
#30027 - 2002-10-01 09:56 PM Re: LPT mapping using InGroup problems
Robert Leslie Offline
Fresh Scripter

Registered: 2002-07-22
Posts: 8
Loc: Don Mills, ON
Please see the message above that I edited. It looks like it's working correctly now - I'll monitor it for a couple days to be sure.

But I'm really interested in what fixed it.

Thanks again.

Top
#30028 - 2002-10-01 10:18 PM Re: LPT mapping using InGroup problems
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Please read the KiXtart Manual with regards to the /f parameter (around page 19). It refreshes the token cache for group-membership information.
_________________________
There are two types of vessels, submarines and targets.

Top
#30029 - 2002-10-01 10:19 PM Re: LPT mapping using InGroup problems
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
It's all a matter of cache.

http://helpdesk.kixtart.org/KixManual2001/Reference/GroupMembership.asp
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

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 837 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.062 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