Home > Error Code > Error Code 80072020.

Error Code 80072020.

The underlying error is LDAP_OPERATIONS_ERROR. I've posted this question in the OS/W2k3 selection, because I suspect the solution lies here and not within the ASP-page I've created. 0 Comment Question by:I-eye Facebook Twitter LinkedIn Email https://www.experts-exchange.com/questions/21737267/0x80072020-error-when-trying-to-access-the-Active-Directory-using-LDAP-within-ASP.htmlcopy Here is the Code that I am using: ------------------------- Const E_ADS_PROPERTY_NOT_FOUND = &h8000500D Const ADS_SECURE_AUTHENTICATION = 1 Set oADSysInfo = CreateObject("ADSystemInfo") userDN = oADSysInfo.UserName Set oADSysInfo =nothing Response.Write("UserDN: " + userDN) Who created the Secret Stairs as a way into Mordor and for what purpose? this content

This is an ASP issue and would better be answered in a web forum. Are you running IIS 5.0? Do American foods contain unsafe levels of glyphosates Shortest code to throw SIGILL What's a word/phrase like "compulsion" or "addiction" that is more about guilt than physiology or anxiety? Can anyone suggest mewhat is wrong in the following script.Set conn = Server.CreateObject("ADODB.Connection")Set oRoot = GetObject("LDAP://rootDSE")sDomain = oRoot.Get("defaultNamingContext")Set oDomain = GetObject("LDAP://" & sDomain)TIA,Vijay Marc Scheuner [MVP ADSI] 2006-01-26 05:49:34 UTC PermalinkRaw https://social.technet.microsoft.com/Forums/scriptcenter/en-US/76563b26-d481-4876-bb92-c2e0e2db78fd/ldap-getobject-failing-with-error-80072020?forum=ITCG

Connect with top rated Experts 12 Experts available now in Live! Join Us! *Tek-Tips's functionality depends on members receiving e-mail. I need to be sure that this will 100% fix the problem before releasing the software. I also see that a large number of people are trying this withthe same error.

  • All rights reserved.
  • Try Free For 30 Days Join & Write a Comment Already a member?
  • I tried to follow the instructions thatI followed from your referencedpost: ------------------------------------------------ The problem is that your web page is running under the context of iUSR_Servername and does not have access
  • There are numerous exa,pes of web sites that can do this.
  • Is this an intranet server?
  • I saved it as default.asp.
  • I've disabled the anonymous access on the site that hosts the script that accesses the AD.
  • However, when the code runs, it fails with error 80072020.
  • Nullam posuere felis a lacus tempor eget dignissim arcu adipiscing.

What user account is IIS running under? 0 Message Author Comment by:I-eye2006-02-15 Comment Utility Permalink(# a15968525) For now it's my desktop. Also, ten 'how to...' sections, with screen shots showing which menus to use. All rights reserved.Unauthorized reproduction or linking forbidden without expressed written permission. As I mentioned from my Saturday, July 16, 2011 1:18 PM post, I am on a Windows 2000 Server as well.

YOu can use Integrated to detect teh calling user and get active dir or you can set teh web site to use anonymous and it will return the web site account Update the explanations of your anti-virus and operate a complete scan of your drive in Safe Mode. jv Monday, July 18, 2011 3:07 PM Reply | Quote 0 Sign in to vote Hi Jv, Please take a look at these links: http://msdn.microsoft.com/en-us/library/aa706065(v=vs.85).aspx http://blogs.technet.com/b/heyscriptingguy/archive/2004/12/13/how-can-i-run-a-script-under-alternate-credentials.aspx This seems to be the https://forums.iis.net/t/1179966.aspx?LDAP+GetObject+Failing+with+Error+80072020 I have changed my service to run under a domain level account instead of the local system account and this seems to have cured my problem.

At the same time, remember that all those symbols on your Background also take a modest number of boot time to put themselves. In IIS7 and later teher are facilities for doing what youare tying to do but I believe they canonly be imlpemented under ASP.NET where we can store passwords securely. jv Monday, July 18, 2011 8:16 PM Reply | Quote 0 Sign in to vote Jv, I am glad that Microsoft provided a way to provide authentication to AD via a The code I am using right now works for the project and we even found a way to allow FireFox to use the Trusted Authentication as well.

I would like to have a seamless process, so I prefer not to ask users who are using Internet Explorer to login. Stage 7. HRESULT OpenDSObject( [in] BSTR lpszDNName, [in] BSTR lpszUserName, [in] BSTR lpszPassword, [in] LONG lnReserved, [out] IDispatch **ppOleDsObj ); Otherwise, I would have been required to install Are you aComputer / IT professional?Join Tek-Tips Forums!

Here is my code: <% Dim sLogonUser : sLogonUser = Request.ServerVariables("Logon_User") Dim sDomain : sDomain = Mid(sLogonUser, 1, Instr(1, sLogonUser, "\") - 1) Dim sLogonName : sLogonName = Mid(sLogonUser, Instr(1, sLogonUser, news Here is how to overcome this issue. Proton - neutron fusion? I am out of ideas on this issue.

Codes beginning 08005... We are running on an intranet; this Web site is not open to the Internet; so, the users who are using it already have read access to the AD forest; so I then use a separate ASP page with only the User Credentials that I then added to my main page as an #Include. have a peek at these guys Regards, Dr.

Probability: A flaw in logic? The web server is configured with integrated windows auth. Subscribe to our monthly newsletter for tech news and trends Membership How it Works Gigs Live Careers Plans and Pricing For Business Become an Expert Resource Center About Us Who We

I got success after changing the application pool as below: Process model load user profile = true share|improve this answer answered Jul 29 at 13:00 jose comar 11 add a comment|

I am sorry to say that all of you missed the goal post on this one. It is a violation of the delegation rule. He still gets the errormessage when trying to open the site. 0 Message Author Comment by:I-eye2006-02-16 Comment Utility Permalink(# a15969356) also my computer has been set to "Trusted for delegation"... I am sorry to say that all of you missed the goal post on this one.

Just click the bos - If on a DC you need to also choose 'Digest Auth' You must clear the 'Anonymous' choice or teh user will be prompted for their credentials. We do trhis on many sites in ASP and ASP.NET to allow users to change their personal inforation such as hoe address and phone number. In the IIS properties IWA has been selected as authentication method. [code] Set conn = CreateObject("ADODB.Connection") Set rs = CreateObject("ADODB.Recordset") Set oRoot = GetObject("LDAP://rootDSE") sDomain = oRoot.Get("defaultNamingContext") Set oDomain = GetObject("LDAP://" check my blog I am surprised that you do not already know this.

What user account is IIS running under? You are being forced to authenticate locally with teh challenge box. Privacy Statement Terms of Use Contact Us Advertise With Us Hosted on Microsoft Azure Follow us on: Twitter Facebook Microsoft Feedback on IIS MenuExperts Exchange Browse BackBrowse Topics Open Questions Open jv Edited by jrv Saturday, July 16, 2011 4:59 PM Saturday, July 16, 2011 4:32 PM Reply | Quote 0 Sign in to vote Ok guys - as promised I am

share|improve this answer answered Sep 2 '11 at 15:50 ghostJago 1,74741845 I'll leave the question open for a while in case anyone else has any observations about this particular Action 3. The emperor's proposition with marbles and two urns Could the atmosphere be compressed and put into bottles? When I run the Code then, it returns the Domain Account information, which is not what I am looking for.