Exception while accessing Active Directory and creating user [duplicate] - active-directory

I need to read the Active Directory, search users and create user functionality.
I am able to use DirectoryEntry in C# and Domain is only physical server.
In my production environment, I have two physical domain servers with same domain name. When I try to search the AD user or create, I am getting the following exception.
Exception : "0000202B: RefErr: DSID-031007EF, data 0, 1 access points" [extended Error 8235]
Note that I have Domain Admin privileges on the domain but I'm still having the same issue.

0000202B: could mean wrong DN/searchbase like incorrect DC value etc.

Your problem looks like a DNS problem. I know writting that, I've got statisticaly 80% chance being right. Check the domain name resolution from your client. Check your DNS and verify that your two domain controlers are well registered.

The error you are getting is referall related:
ERROR_DS_REFERRAL
8235 (0x202B)
A referral was returned from the server.
You can find the error codes linked at this MSDN Article.

Related

Open Group Policy Management Console (gpmc) for Another Domain

I am trying to open a gpmc for another domain. We have 2 AD Domains A and B. There are no trusts between them. My Computer is joined to Domain A and I want to open a gpmc for domain B.
For DSA (AD Users and Computers) this seems to be possible like this:
runas.exe /netonly /user:<Domain B>\<Domain B User> "mmc dsa.msc /domain=<Domain B>"
but when I try to run this for gpmc the following error comes up:
I probably do not have access to the logs of either domain.
This is working as expected and is not supposed to work. The GPMC console is designed to try to get a operational token for the PDC of the domain environment wherever you are opening the same. Because PDC(primary domain controller role holder in a domain ) is supposed to have the most recent copy of the group policies (but sometimes this is not true due to delayed replication etc.) So when you try to connect to GPMC of another domain it connects and sends a Kereros request which fails to get a ticket(to be considered same as token i mentioned above.) .
If you take a network trace in both the cases you will see that there is a TGT request to get a ticket for SPN ldap/(domain A) from the domain B domain controller which is not possible because you do not have trust between the domains. This fails with "KerberosV5:KRB_ERROR - KDC_ERR_S_PRINCIPAL_UNKNOWN (7)" . This is the moment you see the access is denied error as shown in screenshot . I hope that provides clarity on your query .
It's been a while, but with the help of a colleague we came to a solution. The GPMC has an option called trust detection (View -> Options -> General).
Once this options is disabled, the GPMC has to be closed so that this option is saved. If you then start the GPMC via
runas.exe /netonly /user:<Domain B>\<Domain B User> "mmc gpmc.msc /domain=<Domain B>"
the forest from domain B can be added and you can configure your GPOs as you normally would.

80192ee7 error during AzureAD MDM enrollment

Anyone familiar with error 80192ee7 while enrolling device?
After entering account in Join this device to Azure Active Directory, I can verify "Terms and conditions" page, and after that process crash and I get this error message.
Tnx In advance for answer.
This refers to some issue with the DNS service running on the machine, check if you are able to resolve to enrollment.manage.microsoft.com site.
These are mostly seen if you manage your own DNS and when the machine is not able to reach that site for some reason, I would start with DNS troubleshooting towards this.

To get the hierarchical structure from Active directory to power bi

I am trying to get the user hierarchy from the active directory to power bi
So, I am facing an error as :
Unable to Connect: We encountered an error while trying to connect. Details: "Active Directory: The active directory domain 'company1.uk' couldn't be found."
So, Can it be possible I can get it from a blank query to get the hierarchical structure or any other way?
If yes, Could you please help me with this
Thanks in advance
I had the exact error message in a lab environment and it turned out to be a DNS issue.
The domain controller had a made up domain with a few VMs joined to it. I had configured a domain override in the router's DNS (pfSense router) so that the AD Domain (in your case company1.uk) would defer to the lab domain controller for DNS. My issue was that I spelled it wrong, once I corrected that the error was resolved.
I imagine it would work if you also put specific DNS entries in for the domain and the hosts tied to it that you needed to communicate with.

Unable to create to obtain OpenId Configuration

I am using OpenIdConnect for Authentication with Azure AD. The application is hosted on IIS. I got below exception few days back:
IDX10803: Unable to create to obtain configuration from: 'https://login.microsoftonline.com/common/.well-known/openid-configuration'.
Stack Trace is: at Microsoft.IdentityModel.Protocols.ConfigurationManager`1.d__3.MoveNext()
After 30 to 40 mins the application automatically started working normally. I just want to know the possible reasons for above exception. Is it a network issue or any specific reason. Thanks.
Well, as the error says it was unable to get the config from: https://login.microsoftonline.com/common/.well-known/openid-configuration.
This is most likely a network issue, or a problem with Azure AD.
It could also happen if you used an invalid tenant id, but this is not the case here since you seem to have used "common" which is valid for multi-tenant apps.

Major Active Exception while accessing creating user : Exception 0000202B: RefErr: DSID-031007EF, data 0, 1 access points" [extended Error 8235]

I need to read the Active Directory, search users and create user functionality.
I am able to use DirectoryEntry in C# and Domain is only physical server.
In my production environment, I have two physical domain servers with same domain name. When I try to search the AD user or create, I am getting the following exception.
Exception : "0000202B: RefErr: DSID-031007EF, data 0, 1 access points" [extended Error 8235]
Note that I have Domain Admin privileges on the domain but I'm still having the same issue.
0000202B: could mean wrong DN/searchbase like incorrect DC value etc.
Your problem looks like a DNS problem. I know writting that, I've got statisticaly 80% chance being right. Check the domain name resolution from your client. Check your DNS and verify that your two domain controlers are well registered.
The error you are getting is referall related:
ERROR_DS_REFERRAL
8235 (0x202B)
A referral was returned from the server.
You can find the error codes linked at this MSDN Article.

Resources