471,887 Members | 1,613 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,887 software developers and data experts.

LoginAdmin.dll

Trying to run a page that requires admin rights. Tried using the
LogonAdmin.dll but doen't seem to be working.

Here's my code:

'--------------------------------------------------------
Dim objLogon, Username, Password, Domain

Username = "administrator"
Password = "thepwd"
Domain = "theserver"
Set objLogon = Server.CreateObject("LoginAdmin.ImpersonateUser")
objLogon.Logon Username, Password, Domain

Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.CreateFolder("c:\Blocked\NewOne")

objLogon.Logoff
Set objLogon = Nothing
'--------------------------------------------------------

Only the local admin has access to the Blocked folder.
The dll doesn't reurn any errors but i get get the permission denied error
from the line that tries to create the folder.

What am i missing?

any suggestions would be appreciated

-nathan-
Jul 19 '05 #1
2 3513
Hi

For "IUSER_XXXX" account, Give write permission to "Blocked" folder. and then try

Cheers

Pravin Pati
Jul 19 '05 #2
Thanx for your reply.
I forgot to mension i am not using the anonymous user so that s not going
to work

I'm sure someone has come accross this situation??

"Pravin Patil [MVP]" <pr******@mastek.com> wrote in message
news:9E**********************************@microsof t.com...
Hi,

For "IUSER_XXXX" account, Give write permission to "Blocked" folder. and then try.
Cheers,

Pravin Patil

Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Geoff Wickens | last post: by
1 post views Thread by t.schwenk | last post: by
1 post views Thread by Daniel C. Di Vita | last post: by
5 posts views Thread by Daniel Di Vita | last post: by
reply views Thread by Nachi | last post: by
reply views Thread by YellowAndGreen | last post: by
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.