Results 1 to 2 of 2

Thread: GetObject("WinNT://"...

  1. #1
    Join Date
    Dec 1969

    Default GetObject("WinNT://"...

    I have had this piece of code sitting on our server for sometime, and for some reason it has stopped working (without me amending it!).<BR><BR>The only thing that have changed is the installation of the NIMDA fix requirements.<BR><BR>- CODE -------------------------------<BR><BR>&#060;%<BR> dim strUsername, GrpList<BR> strUsername=Replace(ucase(Request.ServerVariables( "REMOTE_USER")) , "\", "/") <BR> Response.Write strUsername<BR> set adsUser = getobject("WinNT://" & strUsername)<BR> <BR> for each group in adsUser.groups<BR> GrpList = GrpList & lcase(trim( & ";" <BR> Response.Write GrpList & "<BR>"<BR> next <BR>%&#062;<BR><BR>- ERROR ------------------------------<BR><BR>Microsoft VBScript runtime error &#039;800a0046&#039; <BR><BR>Permission denied: &#039;getobject&#039; <BR><BR>/security.asp, line 11 <BR><BR>--------------------------------------<BR><BR>Any ideas?<BR><BR>... Cheers Rudster

  2. #2
    Join Date
    Dec 1969

    Default RE: GetObject(

    It looks like you are trying to access a machine local group that you don&#039;t have permission to:<BR><BR>"set adsUser = getobject("WinNT://" & strUsername)"<BR><BR>If this worked before, obviously something in the Nimda "fix" or possibly someone changed your security settings. <BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts