[THIN] Re: OT: populate AD user info

  • From: Brian Lilley <Brian.Lilley@xxxxxxxxxxxxx>
  • To: "'thin@xxxxxxxxxxxxx'" <thin@xxxxxxxxxxxxx>
  • Date: Thu, 15 Jan 2004 11:33:18 -0000

Affirmative,

Copy that wingman...maintain current vectors.

So, to summarise.. cross the red with the blue..right got it...
$£"%*%ffW%E(%$%1100010010100100100000"W£$"£$(*WFKF)()*$"^%%$&$%"^$£  ÎÏÍ++˦
äàåçêëèïîìÄÅ..............Session dropped due to user error : Contact your
systems adminstrator error #1



-----Original Message-----
From: Braebaum, Neil [mailto:Neil.Braebaum@xxxxxxxxxxxxxxxxx]
Sent: 15 January 2004 11:16
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: OT: populate AD user info


Uncanny - my background (post mainframe days) was as (among other
things) a UNIX 'C' systems programmer...

This could be a case for Mulder and Scully (said sotto voce) ;-)

Neil

PS: just for emphasis, don't go there with the WinNT provider and
opendsobject - trust me on that. And don't cross the red and blue
wires...

> -----Original Message-----
> From: Brian Lilley [mailto:Brian.Lilley@xxxxxxxxxxxxx] 
> Sent: 15 January 2004 11:12
> To: 'thin@xxxxxxxxxxxxx'
> Subject: [THIN] Re: OT: populate AD user info
> 
> Once again... thanks Neil, re: the ts profile stuff, thats 
> the conclusion I came to also, I did actually try and wrap 
> the unmanaged exported terminal services api with .net but, 
> like you say, trying to understand the parameters had me 
> flumoxed, mostly because I don't come from the old 'C' days.  
> So, I used tsprof in the end.... :o)
> 
> cheers again, Brianos 
> 
> -----Original Message-----
> From: Braebaum, Neil [mailto:Neil.Braebaum@xxxxxxxxxxxxxxxxx]
> Sent: 15 January 2004 10:49
> To: thin@xxxxxxxxxxxxx
> Subject: [THIN] Re: OT: populate AD user info
> 
> Comments inline...
> 
> > -----Original Message-----
> > From: Brian Lilley [mailto:Brian.Lilley@xxxxxxxxxxxxx]
> > Sent: 15 January 2004 10:34
> > To: 'thin@xxxxxxxxxxxxx'
> > Subject: [THIN] Re: OT: populate AD user info
> > 
> > Neil,
> > 
> > What is HTA???
> 
> HTML application. Useful in this context, because you can do 
> stuff, effectively in client-side browser code that would 
> normally break, or be stopped, by the browser's security 
> model. Plus you don't necessarily need a web server to provide for it.
> 
> Things like add / remove programs in W2K are HTAs, as are 
> other OS type dialogs / GUIs.
> 
> > And while were on the subject...
> > 
> > I am trying to pull out term services specific info for users via
> > the ADSI interface and the WinNT provider,
> 
> Good luck with that! ;-)
> 
> But seriously - ya can't - at least not like that. It was 
> outside of ADSI (unless you truly are a steely-eyed missile 
> man, and can decode
> userparameters?) - at least until you've got W2K3 across the board.
> 
> > here is a VB script that
> > should work 
> 
> Um, good luck with that (TM) ;-)
> 
> > Set DSO = GetObject("WinNT:")
> > Set usr = DSO.OpenDSObject("WinNT://OURDOMAIN/username01", 
> > "OURDOMAIN\administratorid", "password", ADS_SECURE_AUTHENTICATION) 
> 
> Quick tip - don't use opendsobject with the WinNT provider - 
> otherwise, devils be there.
> 
> > usr.GetInfo
> > WScript.echo usr.TerminalServicesProfilePath 
> > WScript.echo usr.HomeDirectory 
> > WScript.echo usr.FullName 
> > WScript.echo usr.Description 
> 
> In the style of Brick Top: you're always going to have 
> problems using the WinNT provider, and much user stuff - at 
> least one of the above is only available via the LDAP provider.
> 
> > when I run it, it bombs out with
> >  
> > C:\temp\b.vbs(8, 1) Microsoft VBScript runtime error: Object doesn't
> > support this property or method: 'usr.TerminalServicesProfilePath' 
> 
> Quite reasonable - it doesn't. With W2K3, you can do it 
> (although you may need to check the property name is 
> accurate), but I believe you need W2K3 at more than one end.
> 
> > if i query any 'standard' properties on the DSO object other than TS
> > related ones, it works fine? 
> 
> fullname should barf, too, via the WinNT provider.
> 
> The problem being that these things are not true properties 
> in the schema, they are part of a data blob - which is no 
> doubt partly the reason why Microsoft stuck it to us with not 
> being able to deal with these things with ADSI (at least 
> vanilla) before W2K3.
> 
> There are COM object distributed that wrap the API calls to 
> do this for W2K environments - you'd have to register the 
> appropriate DLL(s) and use objects exposed through them. Or 
> there's tsprof - which is standard, so you could call this 
> from within your vbscript, with the parameters selected or identified.
> 
> There's also another utility - somewhere on thethin.net that 
> allows you to modify all the TS properties from the command 
> line, which you could call from within an ADSI script, so 
> that you could set everything in one place.
> 
> Neil

***********************************************
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.
************************************************

********************************************************
This Week's Sponsor - RTO Software / TScale
What's keeping you from getting more from your terminal servers? Did you
know, in most cases, CPU Utilization IS NOT the single biggest constraint to
scaling up?! Get this free white paper to understand the real constraints &
how to overcome them. SAVE MONEY by scaling-up rather than buying more
servers. http://www.rtosoft.com/Enter.asp?ID=147
*********************************************************
Useful Thin Client Computing Links are available at:
http://thethin.net/links.cfm
***********************************************************
For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm

_____________________________________________________________________

This message has been checked for all known viruses on behalf of Vivista by
MessageLabs. 

http://www.messagelabs.com or Email: mailsweeper.info@xxxxxxxxxxxxx

Vivista formerly Securicor Information Systems for further information
http://www.vivista.co.uk  



**********************************************************************
The information contained in this e-mail message is intended
only for the individuals named above.  If you are not the 
intended recipient, you should be aware that any 
dissemination, distribution, forwarding or other duplication 
of this communication is strictly prohibited.  The views 
expressed in this e-mail are those of the individual author 
and not necessarily those of Vivista Limited.  
Prior to taking any action based upon this e-mail message 
you should seek appropriate confirmation of its authenticity.
If you have received this e-mail in error, please immediately 
notify the sender by using the e-mail reply facility.
**********************************************************************


_____________________________________________________________________

This message has been checked for all known viruses on behalf of Vivista by 
MessageLabs. 

http://www.messagelabs.com or Email: mailsweeper.info@xxxxxxxxxxxxx

Vivista formerly Securicor Information Systems for further information 
http://www.vivista.co.uk  

********************************************************
This Week's Sponsor - RTO Software / TScale
What's keeping you from getting more from your terminal servers? Did you
know, in most cases, CPU Utilization IS NOT the single biggest constraint to
scaling up?! Get this free white paper to understand the real constraints &
how to overcome them. SAVE MONEY by scaling-up rather than buying more
servers. http://www.rtosoft.com/Enter.asp?ID=147
*********************************************************
Useful Thin Client Computing Links are available at:
http://thethin.net/links.cfm
***********************************************************
For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm

Other related posts: