I have a problem with replication between my servers but belive I have a dns error I have tried to do a ldap query to check that the GUID is correct but when I run it I am getting error 10. What am I doing wrong below is the results of my ldap query
ld = ldap_open("", 389);
Established connection to .
Retrieving base DSA information...
Result <0>: (null)
Matched DNs:
Getting 1 entries:
>> Dn:
1> currentTime: 04/24/2006 12:20:45 GMT Standard Time GMT Daylight Time;
1> subschemaSubentry: CN=Aggregate,CN=Schema,CN=Configuration,DC=darwen,DC=brookhouse,DC=net;
1> dsServiceName: CN=NTDS Settings,CN=DARWEN-DC01,CN=Servers,CN=DARWEN,CN=Sites,CN=Configuration,DC=darwen,DC=brookhouse,DC=net;
5> namingContexts: DC=darwen,DC=brookhouse,DC=net; CN=Configuration,DC=darwen,DC=brookhouse,DC=net; CN=Schema,CN=Configuration,DC=darwen,DC=brookhouse,DC=net; DC=DomainDnsZones,DC=darwen,DC=brookhouse,DC=net; DC=ForestDnsZones,DC=darwen,DC=brookhouse,DC=net;
1> defaultNamingContext: DC=darwen,DC=brookhouse,DC=net;
1> schemaNamingContext: CN=Schema,CN=Configuration,DC=darwen,DC=brookhouse,DC=net;
1> configurationNamingContext: CN=Configuration,DC=darwen,DC=brookhouse,DC=net;
1> rootDomainNamingContext: DC=darwen,DC=brookhouse,DC=net;
22> supportedControl: 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;
2> supportedLDAPVersion: 3; 2;
12> supportedLDAPPolicies: MaxPoolThreads; MaxDatagramRecv; MaxReceiveBuffer; InitRecvTimeout; MaxConnections; MaxConnIdleTime; MaxPageSize; MaxQueryDuration; MaxTempTableSize; MaxResultSetSize; MaxNotificationPerConn; MaxValRange;
1> highestCommittedUSN: 637178;
4> supportedSASLMechanisms: GSSAPI; GSS-SPNEGO; EXTERNAL; DIGEST-MD5;
1> dnsHostName: DARWEN-DC01.darwen.brookhouse.net;
1> ldapServiceName: darwen.brookhouse.net:darwen-dc01$@DARWEN.BROOKHOUSE.NET;
1> serverName: CN=DARWEN-DC01,CN=Servers,CN=DARWEN,CN=Sites,CN=Configuration,DC=darwen,DC=brookhouse,DC=net;
3> supportedCapabilities: 1.2.840.113556.1.4.800; 1.2.840.113556.1.4.1670; 1.2.840.113556.1.4.1791;
1> isSynchronized: TRUE;
1> isGlobalCatalogReady: TRUE;
1> domainFunctionality: 0 = ( DS_BEHAVIOR_WIN2000 );
1> forestFunctionality: 0 = ( DS_BEHAVIOR_WIN2000 );
1> domainControllerFunctionality: 2 = ( DS_BEHAVIOR_WIN2003 );
-----------
res = ldap_bind_s(ld, NULL, &NtAuthIdentity, 1158); // v.3
{NtAuthIdentity: User='administrator'; Pwd= <unavailable>; domain = 'darwen.brookhouse.net'.}
Authenticated as dn:'administrator'.
Expanding base 'CN=Configuration,DC=Forest_Root_Domain'...
Error: Search: Referral. <10>
Result <10>: 0000202B: RefErr: DSID-031006E0, data 0, 1 access points
ref 1: 'forest_root_domain'
Matched DNs:
Getting 0 entries:
ld = ldap_open("", 389);
Established connection to .
Retrieving base DSA information...
Result <0>: (null)
Matched DNs:
Getting 1 entries:
>> Dn:
1> currentTime: 04/24/2006 12:20:45 GMT Standard Time GMT Daylight Time;
1> subschemaSubentry: CN=Aggregate,CN=Schema,CN=Configuration,DC=darwen,DC=brookhouse,DC=net;
1> dsServiceName: CN=NTDS Settings,CN=DARWEN-DC01,CN=Servers,CN=DARWEN,CN=Sites,CN=Configuration,DC=darwen,DC=brookhouse,DC=net;
5> namingContexts: DC=darwen,DC=brookhouse,DC=net; CN=Configuration,DC=darwen,DC=brookhouse,DC=net; CN=Schema,CN=Configuration,DC=darwen,DC=brookhouse,DC=net; DC=DomainDnsZones,DC=darwen,DC=brookhouse,DC=net; DC=ForestDnsZones,DC=darwen,DC=brookhouse,DC=net;
1> defaultNamingContext: DC=darwen,DC=brookhouse,DC=net;
1> schemaNamingContext: CN=Schema,CN=Configuration,DC=darwen,DC=brookhouse,DC=net;
1> configurationNamingContext: CN=Configuration,DC=darwen,DC=brookhouse,DC=net;
1> rootDomainNamingContext: DC=darwen,DC=brookhouse,DC=net;
22> supportedControl: 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;
2> supportedLDAPVersion: 3; 2;
12> supportedLDAPPolicies: MaxPoolThreads; MaxDatagramRecv; MaxReceiveBuffer; InitRecvTimeout; MaxConnections; MaxConnIdleTime; MaxPageSize; MaxQueryDuration; MaxTempTableSize; MaxResultSetSize; MaxNotificationPerConn; MaxValRange;
1> highestCommittedUSN: 637178;
4> supportedSASLMechanisms: GSSAPI; GSS-SPNEGO; EXTERNAL; DIGEST-MD5;
1> dnsHostName: DARWEN-DC01.darwen.brookhouse.net;
1> ldapServiceName: darwen.brookhouse.net:darwen-dc01$@DARWEN.BROOKHOUSE.NET;
1> serverName: CN=DARWEN-DC01,CN=Servers,CN=DARWEN,CN=Sites,CN=Configuration,DC=darwen,DC=brookhouse,DC=net;
3> supportedCapabilities: 1.2.840.113556.1.4.800; 1.2.840.113556.1.4.1670; 1.2.840.113556.1.4.1791;
1> isSynchronized: TRUE;
1> isGlobalCatalogReady: TRUE;
1> domainFunctionality: 0 = ( DS_BEHAVIOR_WIN2000 );
1> forestFunctionality: 0 = ( DS_BEHAVIOR_WIN2000 );
1> domainControllerFunctionality: 2 = ( DS_BEHAVIOR_WIN2003 );
-----------
res = ldap_bind_s(ld, NULL, &NtAuthIdentity, 1158); // v.3
{NtAuthIdentity: User='administrator'; Pwd= <unavailable>; domain = 'darwen.brookhouse.net'.}
Authenticated as dn:'administrator'.
Expanding base 'CN=Configuration,DC=Forest_Root_Domain'...
Error: Search: Referral. <10>
Result <10>: 0000202B: RefErr: DSID-031006E0, data 0, 1 access points
ref 1: 'forest_root_domain'
Matched DNs:
Getting 0 entries: