I see there is already a thread here that is somewhat similar to this
one, but since I can't find any answers there, I'm going to post my
question here with the hope that this thread sees better luck!

I am creating an application that allows users to make LDAP queries.
For this, I am using the Novell Ldap dll v 2.1.11 with Active Directory.
I am coding in C# on VS 2005.

The following sequence throws a thread aborted error:

searchResults = new DataTable();
LdapConnection con = null;
LdapSearchResults results = null;

string ldapHost = "XX.XX.XX.XX";
int ldapPort = System.Convert.ToInt32("389");
String loginDN =
String password = "etc";
String searchBase = "cn=Users,dc=XXX,dc=com";
String searchFilter = "(givenName=blahblah)";

con = new LdapConnection();
log.Write(TraceLevel.Error, "new connection.");
con.Connect(ldapHost, ldapPort);
con.Bind(loginDN, password);

con.Connect(ldapHost, ldapPort);
con.Bind(loginDN, password);

The error thrown is:

Full information as follows:
Source: Novell.Directory.Ldap
Message: Thread was being aborted.
Stack Trace: Run
at Novell.Directory.Ldap.Connection.ReaderThread.Run( )
at System.Threading.ThreadHelper.ThreadStart_Context( Object state)
at System.Threading.ExecutionContext.Run(ExecutionCon text
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

Help appreciated!

john_washington's Profile: http://forums.novell.com/member.php?userid=78472
View this thread: http://forums.novell.com/showthread.php?t=404345