T
t.schwenk
hi ng!
for our intranet i try to connect to the WinNT://
namespace from an asp (or from global.asa) to retrieve the
usergroups which the current user is in (in order to
regulate intranet-access).
so i use:
sUser = Request.ServerVariables("LOGON_USER")
sUser = Right(sUser, Len(sUser) - InStr(sUser, "\"))
Set objUser = GetObject("WinNT://company/" & sUser
& ",user")
that works fine on my local machine, but when i copy the
file to our intranet-server i get a 'permission denied'
error in the line of the GetObject-statement.
now i found that knowledge-base-article 248187
http://support.microsoft.com/default.aspx?scid=kb;EN-
US;248187
which states, that i have to impersonate an admin-user to
connect to WinNT:// ...
i followd their guideline and created the LoginAdmin.dll
and registered it.
now i get 'Error Type0x8007052E)' which (according to
internet-sources) translates to 'unknown username or bad
password' ... again in the codeline of the GetObject-
statement.
has anybody experienced the same or does anybody run an
intranet with access-permissioning by adsi??
i have searched the entire web, read so many articles
(which did apply only to parts of the problem) and i don't
know what to search for next, anymore.
i'm grateful for any hint in the right direction or any
contact that is familiar with the problem.
thanks a lot!
cheers
thilo
for our intranet i try to connect to the WinNT://
namespace from an asp (or from global.asa) to retrieve the
usergroups which the current user is in (in order to
regulate intranet-access).
so i use:
sUser = Request.ServerVariables("LOGON_USER")
sUser = Right(sUser, Len(sUser) - InStr(sUser, "\"))
Set objUser = GetObject("WinNT://company/" & sUser
& ",user")
that works fine on my local machine, but when i copy the
file to our intranet-server i get a 'permission denied'
error in the line of the GetObject-statement.
now i found that knowledge-base-article 248187
http://support.microsoft.com/default.aspx?scid=kb;EN-
US;248187
which states, that i have to impersonate an admin-user to
connect to WinNT:// ...
i followd their guideline and created the LoginAdmin.dll
and registered it.
now i get 'Error Type0x8007052E)' which (according to
internet-sources) translates to 'unknown username or bad
password' ... again in the codeline of the GetObject-
statement.
has anybody experienced the same or does anybody run an
intranet with access-permissioning by adsi??
i have searched the entire web, read so many articles
(which did apply only to parts of the problem) and i don't
know what to search for next, anymore.
i'm grateful for any hint in the right direction or any
contact that is familiar with the problem.
thanks a lot!
cheers
thilo