No, I'm just in la-la land with a one day deadline to get this added to something that
already exists and so I'm a bit more "list happy" than I probably need to be right
now. It grinds me that I can spend quite a while looking things over, trying,
experimenting, etc., then decide to write the list and bug everyone and moments later
realize my error.
My trouble is related to domain security, domain trusts, etc. I'm working on my
personal laptop which isn't in any of my client's domains. So naturally, I'm going to
get a "user does not exist" -- I don't have permission to the user object in the
target domain. Du-uh. Once I logged in as a Domain Admin on a machine in a domain
with a two-way trust to the target PDC, bingo. Everything worked.
I just stopped with the blow-by-blow when I realized I was totally spacing it. Isn't
right for everyone else. (And my apologies.) I think the thing that caused me to
think "better check this out with the list" was the "'server' must be YOUR PDC"
verbage in the documentation, so I wondered about a cross-domain scenario.
Just another oppurtunity to says "kudos" to Jens Helberg for this great Win32::Lanman
module... All better now.
Chris
-----
Chris Olive
[EMAIL PROTECTED]
---------- Original Message ----------------------------------
From: tony.o'[EMAIL PROTECTED]
Date: Mon, 13 May 2002 16:45:28 -0500
>
>Error 1317 is "The specified user does not exist." so maybe LABBOX is not
>the pdc of the domain where 'testdude' lives?
>
>Tony
>
>
>
>
>
> "Chris Olive"
>
> <[EMAIL PROTECTED]> To:
><[EMAIL PROTECTED]>
> Sent by: cc:
><[EMAIL PROTECTED]>
> [EMAIL PROTECTED] Subject: Re: Help
>w/Win32::Lanman::WTSSetUserConfig()
> eState.com
>
>
>
>
>
>
>
> 05/13/02 04:30 PM
>
> Please respond to colive
>
>
>
>
>
>
>
>
>NEVER FAILS. If I post a message to a list, I see my error RIGHT AWAY
>after I've bugged 5000 people world-wide about it... 8-)
>
>Should be "GetLastError()" for one. Now I am getting an error 1317, so my
>question still stands somewhat on the cross domain thing (whilst I look
>into what an error 1317 is....)
>
>Chris
>-----
>Chris Olive
>[EMAIL PROTECTED]
>---------- Original Message ----------------------------------
>From: "Chris Olive" <[EMAIL PROTECTED]>
>Reply-To: <[EMAIL PROTECTED]>
>Date: Mon, 13 May 2002 17:24:32 -0400
>
>>Trying to script WTS setups from an "app server." The following code does
>NOT work on a valid WTS account that exists:
>>
>>perl -e 'use Win32::Lanman; $h = { workingdirectory => "c:
>\\working\\directory", terminalserverprofilepath => "
>\\\\server\\profiles\\path" }; $rv = Win32::Lanman::WTSSetUserConfig( "
>\\\\LABBOX", "testdude", $h ); unless ($rv) { print "Dude, somethings
>wrong: " . Win32::Lanman::GetError() . "\n" } else { print "RV: $rv\n" };'
>>
>>Nothing prints, and I see no changes in the Terminal Server Profile for
>the user in question. Now, I'm wondering... The documentation says
>"'server' should be your PDC." LABBOX is not my PDC, but is the PDC for
>another domain. I am in domain A on box MYBOX trying to set the TS profile
>in domain B on box LABBOX. Is this possible?
>>
>>***Really** would appreciate anything anyone has to offer on the WTS calls
>in Win32::Lanman. I can't seem to get them to work, but maybe this cross
>domain scenario doesn't work... 8-(
>>
>>Chris
>>-----
>>Chris Olive
>>[EMAIL PROTECTED]
>>
>>_______________________________________________
>>Perl-Win32-Admin mailing list
>>[EMAIL PROTECTED]
>>To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>>
>_______________________________________________
>Perl-Win32-Admin mailing list
>[EMAIL PROTECTED]
>To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
>
>
>
>_______________________________________________
>Perl-Win32-Admin mailing list
>[EMAIL PROTECTED]
>To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs