PC Review


Reply
Thread Tools Rate Thread

DirectoryEntry GlobalCatalog

 
 
kenguil@msn.com
Guest
Posts: n/a
 
      20th Sep 2005
I'm hoping that this is the right group to post this to and that
someone will have an answer to this.

Environment:
1) Laptop joined to domain "foo.com", logged in using cached
credentials
2) Test Virtual Server DC/GC is PDC of Domain "bar.local" with Loopback
adapter as its NIC (laptop can PING the Test Virtual server via the
loopback adapter)

Problem:
I'm using the following code inside of a try-catch block to try to
connect to a GC in "bar.local" from the host operating system:

try
{
....
DirectoryEntry deGC = new DirectoryEntry( "GC://bar.local",
@"bar\administrator", "password", AuthenticationTypes.Secure );
....
}
catch( COMException COMe )
{
....

my catch block doesn't catch an error, so I feel that I'm safe to use
my DirectoryEntry object as the passed object to the DirectorySearcher
function [DirectorySearcher seek = new DirectorySearcher( deGC );].
This gives me an error (caught in the new try-catch block) of 'The
specified domain either does not exist or could not be contacted'.
Looking at the DirectoryEntry object via Visual Studio and I can see an
error of '<error: an exception of type:
{System.Runtime.InteropServices.COMException} occurred>' in the GUID
and NativeGUID fields.

I've verified that I am able to log on to the Virtual Server using the
account specified and I'm able to PING the server. I've verified that
the IP settings are correct and that the DC/GC is the DNS and WINS
server over the loopback adapter. The laptop receives it's wireless IP
address and Internet access via my home network (call it domain
"fubar.none") and I receive the same result when I try to access that
domain [DirectoryEntry("fubar.none", "administrator", "otherPassword",
AuthenticationTypes.Secure);].

Does anyone have any pointers on what I should be looking for next?
I'm starting to pull my hair out and I'm bald enough already...

Thank you,
Ken

 
Reply With Quote
 
 
 
 
Marc Scheuner [MVP ADSI]
Guest
Posts: n/a
 
      20th Sep 2005
>try
>{
>DirectoryEntry deGC = new DirectoryEntry( "GC://bar.local",
>@"bar\administrator", "password", AuthenticationTypes.Secure );


I would try GC://dc=bar,dc=local as your bind string.

Marc
================================================================
Marc Scheuner May The Source Be With You!
Berne, Switzerland m.scheuner -at- inova.ch
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't delete info in backup GlobalCatalog file Rick Windows Vista General Discussion 0 9th Apr 2009 05:11 PM
Can't delete info in backup GlobalCatalog file Rick Windows Vista Performance 0 9th Apr 2009 05:11 PM
Can't delete info in backup GlobalCatalog file Rick Windows Vista File Management 0 9th Apr 2009 05:11 PM
Question about MediaID, GlobalCatalog, and GlobalCatalogBackup fil =?Utf-8?B?SUVVUk8=?= Windows Vista General Discussion 2 4th Oct 2007 05:09 AM
GlobalCatalog misaro Microsoft Windows 2000 Active Directory 2 4th Aug 2004 04:48 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:19 PM.