Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / February 2005

Tip: Looking for answers? Try searching our database.

C# LDAP Connection

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
LDAP Connection stays open - 15 Feb 2005 09:29 GMT
Howzit.

I am currenlty using .NET C# to connect to the normal eDirectory tree to
auth users. My code is 3 lines long, using the Novell LDAP/C# API examples.

The code work 100% and the users can auth on my system.

The problem is: When i do an netstat -a on my windows server the
connections stays open. Every user that my code auth against the eDir
8.7.3 stays open. Even if my code make a call myConn.Disconnect( )...stays
open.

I've also used the Windows DirectoryServices code to test. Same problem.
Conn stays open to the eDir?

PLEASE HELP. This is a big problem at the moment, running 500..1000 users
online.

C# code using the Novell's API for C# & LDAP
---------------------------------------------

LdapConnection conn = new LdapConnection( );
conn.Connect( this.ldapHost, this.ldapPort );
conn.Bind( this.loginDN, this.password );
conn.Disconnect( );
Dilip Krishnan - 16 Feb 2005 05:16 GMT
Hello LDAP Connection stays open" LDAP Connection stays,
  Does the connection class implement a dispose method that you can call.
it could be that you need to free up the unmanaged resources

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com

> Howzit.
>
[quoted text clipped - 21 lines]
> conn.Bind( this.loginDN, this.password );
> conn.Disconnect( );

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.