Windows error 0x8007202B, -2147016661

Detailed Error Information

DS_REFERRAL[1]

MessageA referral was returned from the server.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode7 (0x007)
NameFACILITY_WIN32[2][1]
DescriptionThis region is reserved to map undecorated error codes into HRESULTs.[2][1]
Error Code8235 (0x202b)

This is a Win32 error which has been mapped into an HRESULT. More information may be available in error 0x0000202b.

Questions

1vote
1answer

Able to authenticate with ldap behind firewall but user query brings no results c#

we have opened port 389 in the firewall to one of the root active directory servers in one network so that we can authenticate users of a website running on another network (with completely separate domains), I'm using C# for this and I can authenticate the user well with their [...] read more
c#
windows
active-directory
ldap
firewall
0votes
2answers

Adding user to Active Directory Group .net core: A referral was returned from the server

I'm building a .net core 3 website where I'm trying to add a user to an Active Directory security group. The below code works fine in my development environment but once it's deployed to IIS I receive: > System.DirectoryServices.DirectoryServicesCOMException (0x8007202B): A > referral was returned from the server. The error [...] read more
asp.net-core
iis
.net-core
active-directory
directoryservices
0votes
1answer

Configuring "Do not forcefully unload the users registry at user logoff" in User Profiles of Group Policy editor

I need to write a PowerShell script that should configure the below settings of Group policy in all the machines. Gpedit.msc → Computer Configuration → Administrative Templates → System → User Profiles → "Do not forcefully unload the users registry at user logoff" to "Enabled". As I am aware this [...] read more
powershell
powershell-3.0
powershell-remoting
user-profile
group-policy
0votes
0answers

Query Active Directory via SQL Server Linked Server on Trusted Domain Returns Error

I think a similar question posted HERE, but I am not sure if it is indeed the same solution for me. I have a SQL Server 2000 instance on the local domain, I can query it without error. But I need to query another active directory on a trusted domain, [...] read more
sql-server
active-directory
openquery
0votes
0answers

System.DirectoryServices.DirectoryServicesCOMException (0x8007202B): A referral was returned from the server

I am getting the exception (System.DirectoryServices.DirectoryServicesCOMException (0x8007202B): A referral was returned from the server.) while trying to read the manager's display name from Active Directory. Exception Snapshot: enter image description here [https://i.stack.imgur.com/GeFpL.png] The exception is occurring while doing the following check, if (grp != null && grp.Properties != null && [...] read more
c#
active-directory
0votes
0answers

C# Create GPO in AD

I create GPO private void button5_Click(object sender, EventArgs e) { CreateAndLinkGPO(domain, "OU=Company,OU=Users,OU=Users,DC=Company.local,DC=net", "new_test_policy"); } public void CreateAndLinkGPO(string strDomain, string strOU, string strGPOName) { GPM gpm = new GPMGMTLib.GPM(); IGPMConstants gpc = gpm.GetConstants(); IGPMDomain gpd = gpm.GetDomain(Environment.GetEnvironmentVariable("USERDNSDOMAIN"), "", gpc.UseAnyDC); GPMSOM som = gpd.GetSOM(strOU); GPMSearchCriteria gps = gpm.CreateSearchCriteria(); IGPMGPOCollection gpoc = gpd.SearchGPOs(gps); [...] read more
c#
dns
gpo

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0