469,312 Members | 2,446 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,312 developers. It's quick & easy.

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 3366
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
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.