Page 1 of 2 12>
Topic Options
#34240 - 2002-12-06 04:29 PM Bug or Feature: @PRIV
Crazy Eddie Offline
Starting to like KiXtart

Registered: 2002-11-20
Posts: 105
Loc: Sacramento, CA USA
Gurus,

Is this a bug or a feature?

When logging onto a workstation that is a member of a domain, using a local cached domain account, the Macro @PRIV returns GUEST, regardless of the real user rights.

This code returns the fact that rights are actually ADMIN, not guest:

code:
 	$IsAdmin=""
SELECT
CASE INGROUP("\\@WKSTA\Administrators") = 1
$IsAdmin="Yes"
Case 1
$IsAdmin="No"
ENDSELECT

So, is this a bug, or a feature?
-Crazy Eddie
_________________________
{Insert your favorite Witty Tag Line here}

Top
#34241 - 2002-12-06 04:57 PM Re: Bug or Feature: @PRIV
Crazy Eddie Offline
Starting to like KiXtart

Registered: 2002-11-20
Posts: 105
Loc: Sacramento, CA USA
In this situation, the following macros also return blank:

@FullName
@PrimaryGroup
@HomeDir
_________________________
{Insert your favorite Witty Tag Line here}

Top
#34242 - 2002-12-06 04:59 PM Re: Bug or Feature: @PRIV
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
This would indicate that the workstation cannot retrieve the information from the domain controller.

[ 06. December 2002, 17:04: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#34243 - 2002-12-06 05:03 PM Re: Bug or Feature: @PRIV
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
also, what is the kixtart version?

{edit}
I was the mover.

[ 06. December 2002, 17:04: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#34244 - 2002-12-06 05:09 PM Re: Bug or Feature: @PRIV
Waltz Offline
Seasoned Scripter

Registered: 2002-08-01
Posts: 485
Loc: Waterloo, Ontario, Canada
...hmmmm....
quote:
using a local cached domain account
_________________________
We all live in a Yellow Subroutine...

Top
#34245 - 2002-12-06 05:10 PM Re: Bug or Feature: @PRIV
Crazy Eddie Offline
Starting to like KiXtart

Registered: 2002-11-20
Posts: 105
Loc: Sacramento, CA USA
Version 4.12 (Latest).

It can get the information...it just isn't.

It must be relying on the token that exists, which in this case is a local token...not from a DC.

Your permissions use pass-thru authentication, so your rights are the same as if you interactively logged onto the domain. You are still a local admin, if you {Domain}\userID would be admin locally.

I doubt this really belongs in "starters." Maybe not in BETA...but certainly not here.

-Crazy Eddie
_________________________
{Insert your favorite Witty Tag Line here}

Top
#34246 - 2002-12-06 05:12 PM Re: Bug or Feature: @PRIV
Crazy Eddie Offline
Starting to like KiXtart

Registered: 2002-11-20
Posts: 105
Loc: Sacramento, CA USA
Hmmm is right.

@Priv should, IMO, return blank, or correctly resolve the permissions.
_________________________
{Insert your favorite Witty Tag Line here}

Top
#34247 - 2002-12-06 05:12 PM Re: Bug or Feature: @PRIV
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Is the computer connected to the domain when you log in? I suspect that it isn't connected, thus you won't be able to pull information from the domain controller. And @FULLNAME for example is being pulled from the domain controller.
_________________________
There are two types of vessels, submarines and targets.

Top
#34248 - 2002-12-06 05:13 PM Re: Bug or Feature: @PRIV
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
eddie, was not sure.
scripts was my first intend but then somehow my click pointed here.

anyway, there might be...
I'm on cache now so might test as well.
_________________________
!

download KiXnet

Top
#34249 - 2002-12-06 05:15 PM Re: Bug or Feature: @PRIV
Crazy Eddie Offline
Starting to like KiXtart

Registered: 2002-11-20
Posts: 105
Loc: Sacramento, CA USA
Complete scenario:

Laptop, not connected to the domain via enthernet or dialup.

User logs onto the laptop (which has previously been logged onto in normal interative mode) using UserName, domain password, Domain.

Laptop (local NT) authenticates the user based on locally cached account information. No script executes.

Connect to the network using dialup networking/VPN. Network connectivity and ADMIN rights proven to exist.

Run a script that uses these macros, they report as described.
_________________________
{Insert your favorite Witty Tag Line here}

Top
#34250 - 2002-12-06 05:19 PM Re: Bug or Feature: @PRIV
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
This is NOT a bug. Most macros are resolved by contacting the authenticating domain controller or KiXtart RPC Server (in case of Windows 9x). since there is no domain controller, those macros cannot be resolved and are thus empty or contain their default value.

The macros are not cached locally.
_________________________
There are two types of vessels, submarines and targets.

Top
#34251 - 2002-12-06 05:22 PM Re: Bug or Feature: @PRIV
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
back, checked all macros.
yes, like the eventlog probably shows that there was failure trying to get the info.

my ldrive currently shows:
\\JOOEL\NETLOGON\

as there is no such thing in my armada.
as said cached permissions don't cache everything and kix does not use even the little cache it could.
_________________________
!

download KiXnet

Top
#34252 - 2002-12-06 05:24 PM Re: Bug or Feature: @PRIV
Crazy Eddie Offline
Starting to like KiXtart

Registered: 2002-11-20
Posts: 105
Loc: Sacramento, CA USA
Please bear with me...

I understand the mechanism.

The fact that @FullName is blank - I'm okay with that.

The fact that @Priv returns a *bad* value - that seems wrong to me.

The macros could (attempt) contact the domain, to get the values. I think we see that it is not. It is relying on the existing token.

Also, the environment shows that the %LogonServer% is the last BDC that authenticated the user in interactive mode.
_________________________
{Insert your favorite Witty Tag Line here}

Top
#34253 - 2002-12-06 05:34 PM Re: Bug or Feature: @PRIV
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ok, I did a test.
only logon domain was info about where this account belongs.
other parts:
quote:

?@LDRIVE
?@LSERVER
?@PRIMARYGROUP
?@PRIV
?@SITE
?@USERID
?@WKSTA

returned:

quote:

\\JOOEL\NETLOGON\
\\JOOEL

GUEST

NieminenJooel
JOOEL



[ 06. December 2002, 17:35: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#34254 - 2002-12-06 05:38 PM Re: Bug or Feature: @PRIV
Crazy Eddie Offline
Starting to like KiXtart

Registered: 2002-11-20
Posts: 105
Loc: Sacramento, CA USA
And I would contend that @Lserver and @PRIV are returning incorrect data.

[ 06. December 2002, 17:38: Message edited by: Crazy Eddie ]
_________________________
{Insert your favorite Witty Tag Line here}

Top
#34255 - 2002-12-06 05:46 PM Re: Bug or Feature: @PRIV
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hmmm...
lserver is returning correct as it is where I'm logging on when in cached data.
ldrive is not queried anywhere but there is only added the netlogon after the server which is not 100% sure.
from manual:
quote:

@PRIV
User's privilege level (GUEST, USER, ADMIN)

but I've heard that it means not wksta rights but domain rights.
so, I would think this is bug.

BUT, see on your wksta:
net localgroup administrators

 
for me it shows only localadmin-accoun even though I am there.

so, it's "bug" in net.
_________________________
!

download KiXnet

Top
#34256 - 2002-12-06 05:47 PM Re: Bug or Feature: @PRIV
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Nope, since it cannot contact the domain controller to determine your actual domain privileges it goes with a default 'GUEST' privilege. I also suspect that LSERVEr is the local computer's name since that one did perform the authentication.

I don't see anything unusual in the returned macros for a disconnected workstation.

[ 06. December 2002, 17:47: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#34257 - 2002-12-06 05:54 PM Re: Bug or Feature: @PRIV
Crazy Eddie Offline
Starting to like KiXtart

Registered: 2002-11-20
Posts: 105
Loc: Sacramento, CA USA
SeaLeopard - It can contact the Domain Controller. It just isn't doing it.

I'm ready to close out this thread, since I'm getting resistance to my complaint.
_________________________
{Insert your favorite Witty Tag Line here}

Top
#34258 - 2002-12-06 06:05 PM Re: Bug or Feature: @PRIV
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
actually, I think it should return admin.
but somehow it returns it not.

ldrive is not got anywhere, it's just added to lserver.

what comes to priv, manual does not say it ask from dc, so it is lacking info or it's doing it wrong as this wksta sees me as admin even though not connected.
_________________________
!

download KiXnet

Top
#34259 - 2002-12-06 06:10 PM Re: Bug or Feature: @PRIV
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
quote:
Connect to the network using dialup networking/VPN
Does the dial-up/VPN authentication authenticate against the domain controller or another authenticator?

It still sounds to me that the user on the laptop never authenticates against the domain controller but is using cached information
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 2 12>


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

Who's Online
1 registered (mole) and 1300 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.073 seconds in which 0.027 seconds were spent on a total of 13 queries. Zlib compression enabled.

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