SFImpersonator.dll 
Author Message
 SFImpersonator.dll

Hallo,

I tried to use the  SFImpersonator.dll for VB-Script, but I received an
Error Message:

Line 17
In German:
Fehler: Der Client besitzt ein erforderliches Recht nicht

In English
Error: The Client han't the rights

Which rights the SFImpersonator.dll need to excute on a Windows 2000
Professional ?
Has anyone for Informatioon/Readme for the SFImpersonator.dll ?
Thanks

Fred

Source: http://www.*-*-*.com/
SFImpersonator... Execute Code under the security context of another user.
26 kilobytes

Another MUST GET. Every NT administrator known to man could have a use for
this thing. No longer do we have to shell out to SU or RUNAS. More than
that, it's extremely easy to use. With this object one can impersonate the
security context of another user. Using the component in your code is as
simple as the following.

  Const LOGON_INTERACTIVE = 2
  Const LOGON_NETWORK = 3
  Const LOGON_BATCH = 4
  Const LOGON_SERVICE = 5

  Dim oNet
  Set oNet = CreateObject("Wscript.Network")
  MsgBox oNet.UserDomain & "\" & oNet.UserName

  Dim impo
  Set impo = CreateObject("sfImpersonator.Impostor")

  'The dot in the third parameter is the domain name - "." means local
domain
  impo.Impersonate "UserName", "Password", ".", LOGON_INTERACTIVE
  MsgBox oNet.UserDomain & "\" & oNet.UserName

  impo.RevertToSelf
  MsgBox oNet.UserDomain & "\" & oNet.UserName



Wed, 19 May 2004 05:57:06 GMT  
 SFImpersonator.dll
Hi Fred

If you read in the forums on this site, you'll see that you have to grant
the permission "Act as part of the operating system" to the user who wants
to use this dll.

Regards
Stefan Pahrmann



Quote:
> Hallo,

> I tried to use the  SFImpersonator.dll for VB-Script, but I received an
> Error Message:

> Line 17
> In German:
> Fehler: Der Client besitzt ein erforderliches Recht nicht

> In English
> Error: The Client han't the rights

> Which rights the SFImpersonator.dll need to excute on a Windows 2000
> Professional ?
> Has anyone for Informatioon/Readme for the SFImpersonator.dll ?
> Thanks

> Fred

> Source: http://cwashington.netreach.net/main/tools/default.asp?topic=n-z
> SFImpersonator... Execute Code under the security context of another user.
> 26 kilobytes

> Another MUST GET. Every NT administrator known to man could have a use for
> this thing. No longer do we have to shell out to SU or RUNAS. More than
> that, it's extremely easy to use. With this object one can impersonate the
> security context of another user. Using the component in your code is as
> simple as the following.

>   Const LOGON_INTERACTIVE = 2
>   Const LOGON_NETWORK = 3
>   Const LOGON_BATCH = 4
>   Const LOGON_SERVICE = 5

>   Dim oNet
>   Set oNet = CreateObject("Wscript.Network")
>   MsgBox oNet.UserDomain & "\" & oNet.UserName

>   Dim impo
>   Set impo = CreateObject("sfImpersonator.Impostor")

>   'The dot in the third parameter is the domain name - "." means local
> domain
>   impo.Impersonate "UserName", "Password", ".", LOGON_INTERACTIVE
>   MsgBox oNet.UserDomain & "\" & oNet.UserName

>   impo.RevertToSelf
>   MsgBox oNet.UserDomain & "\" & oNet.UserName



Thu, 20 May 2004 17:14:16 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Sfimpersonator.dll - required privilege

2. Required privilege using SFImpersonator.dll

3. sfImpersonator and RegOBJ.dll

4. Defrag without admin rights + SFImpersonator

5. SFImpersonator running called apps

6. SFImpersonator

7. SFImpersonator

8. SFImpersonator running called apps

9. SFImpersonator Question

10. sfimpersonator doesn't work ??

11. Sfimpersonator error: required priviledge...

12. DLL DLL DLL DLL DLL DLL

 

 
Powered by phpBB® Forum Software