This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

I'm getting this error every time I try to bind to a domain in a different forest using DirectoryEntry in C#.

Any Idea what it means?

asked 19 Jan '15, 09:54

guyziv2110's gravatar image

guyziv2110
1112
accept rate: 0%

closed 19 Jan '15, 13:56

grahamb's gravatar image

grahamb ♦
19.8k330206

The question has been closed for the following reason "Question is off-topic or not relevant" by grahamb 19 Jan '15, 13:56


Your question is a bit confusing. A LDAP unbindrequest from a bind request. LDAP Result code 19 is LDAP_CONSTRAINT_VIOLATION , which could be caused by a couple of conditions.

permanent link

answered 19 Jan '15, 10:11

jwilleke's gravatar image

jwilleke
111
accept rate: 0%

What is confusing ? Can you please give me a direction on how to troubleshoot the issue?

(19 Jan '15, 10:20) guyziv2110

provide your code and full message from the results.

(19 Jan '15, 10:21) jwilleke

Okay just a second.

(19 Jan '15, 10:22) guyziv2110

I can't provide all the information as a comment so I wrote it as an answer.

Here is the code:

(line 1) DirectoryEntryWrapper deTrustedForest = new DirectoryEntryWrapper("LDAP://fullForestDnsName/RootDSE");

(line 2) string strConfigDN = string.Empty;

(line 3) strConfigDN = deTrustedForest.Properties["configurationNamingContext"].Value.ToString();

The unbindRequest error shows in wireshark as soon as I try to access the property "configurationNamingContext" of deTrustedForest (line 3).

And here is the unbindRequest full message:

0....X...c....O.. .. .......x.....objectclass0....+..subschemaSubentry. dsServiceName..namingContexts..defaultNamingContext..schemaNamingContext..configurationNamingContext..rootDomainNamingContext..supportedControl..supportedLDAPVersion..supportedLDAPPolicies..supportedSASLMechanisms..dnsHostName..ldapServiceName. serverName..supportedCapabilities0........d.......0.....0....S..subschemaSubentry1....:.8CN=Aggregate,CN=Schema,CN=Configuration,DC=tstb,DC=local0...... dsServiceName1....n.lCN=NTDS Settings,CN=SERVERXX,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=tstb,DC=local0.......namingContexts1.......DC=tstb,DC=local.!CN=Configuration,DC=tstb,DC=local.+CN=Schema,CN=Configuration,DC=tstb,DC=local."DC=DomainDnsZones,DC=tstb,DC=local."DC=ForestDnsZones,DC=tstb,DC=local0.......defaultNamingContext1.......DC=tstb,DC=local0....H..schemaNamingContext1....-.+CN=Schema,CN=Configuration,DC=tstb,DC=local0....E..configurationNamingContext1....#.!CN=Configuration,DC=tstb,DC=local0....1..rootDomainNamingContext1.......DC=tstb,DC=local0.......supportedControl1.......1.2.840.113556.1.4.319..1.2.840.113556.1.4.801..1.2.840.113556.1.4.473..1.2.840.113556.1.4.528..1.2.840.113556.1.4.417..1.2.840.113556.1.4.619..1.2.840.113556.1.4.841..1.2.840.113556.1.4.529..1.2.840.113556.1.4.805..1.2.840.113556.1.4.521..1.2.840.113556.1.4.970..1.2.840.113556.1.4.1338..1.2.840.113556.1.4.474..1.2.840.113556.1.4.1339..1.2.840.113556.1.4.1340..1.2.840.113556.1.4.1413..2.16.840.1.113730.3.4.9..2.16.840.1.113730.3.4.10..1.2.840.113556.1.4.1504..1.2.840.113556.1.4.1852..1.2.840.113556.1.4.802..1.2.840.113556.1.4.1907..1.2.840.113556.1.4.1948..1.2.840.113556.1.4.1974..1.2.840.113556.1.4.1341..1.2.840.113556.1.4.2026..1.2.840.113556.1.4.2064..1.2.840.113556.1.4.2065..1.2.840.113556.1.4.20660...."..supportedLDAPVersion1.......3..20....<..supportedLDAPPolicies1.......MaxPoolThreads..MaxDatagramRecv..MaxReceiveBuffer..InitRecvTimeout..MaxConnections..MaxConnIdleTime..MaxPageSize..MaxQueryDuration..MaxTempTableSize..MaxResultSetSize. MinResultSets..MaxResultSetsPerConn..MaxNotificationPerConn..MaxValRange..ThreadMemoryLimit..SystemMemoryLimitPercent0....I..supportedSASLMechanisms1....*..GSSAPI. GSS-SPNEGO..EXTERNAL. DIGEST-MD50....'..dnsHostName1.......serverxx.tstb.local0....7..ldapServiceName1.... ..tstb.local:[email protected] serverName1....].[CN=SERVERXX,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=tstb,DC=local0.......supportedCapabilities1....|..1.2.840.113556.1.4.800..1.2.840.113556.1.4.1670..1.2.840.113556.1.4.1791..1.2.840.113556.1.4.1935..1.2.840.113556.1.4.20800........e..... ......0........B.

(19 Jan '15, 10:30) guyziv2110

Does it help you?

(19 Jan '15, 10:34) guyziv2110

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×1,620
×24
×12

question asked: 19 Jan '15, 09:54

question was seen: 3,547 times

last updated: 19 Jan '15, 13:56

p​o​w​e​r​e​d by O​S​Q​A