473,396 Members | 1,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

C# LDAP Connection

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( );

Nov 23 '05 #1
1 21968
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.

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( );


Nov 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Luca Bighi | last post by:
I try to use ldap-star-tls to connect to a win2003 domain controller and browse AD. $ds = ldap_connect("ldap://$ad_server/") ,"389"); // Connect to an LDAP server echo $debug?"<BR>LDAP...
1
by: ngiven | last post by:
Dear PHP Programmers, Here is what I have: PHP Version 4.3.8 LDAP Support enabled RCS Version $Id: ldap.c,v 1.130.2.10 2004/06/01 21:05:33 iliaa Exp $ Total Links 0/unlimited API Version...
0
by: Tim | last post by:
Hello, I'm trying very (too) hard to log uses LDAP (via ADSI) to autheniticate users in an A2k2 application. We have AD and I have that working slick. We are in a tranistion from NDS to AD and...
5
by: Bryan | last post by:
Hello, I have a asp.net app working with directory services on my Windows XP development machine. However when I moved the application over to our production server (Win 2000 Server) it no longer...
4
by: Terry Miller | last post by:
I have DB2 V8.2 loaded on a Redhat Enterprise Linux version 3 (RHEL 3) box. RHEL is configured to talk to LDAP for authenticaton besides the local passwd file. I can verify this by executing an su...
0
by: sbartz | last post by:
Greetings, My ldap application relies on user input for a ldap server uri, so I am looking for a way to use the ldap api to determine whether the ldap server is up or not. All the docs have to...
1
by: =?Utf-8?B?SHV0dHk=?= | last post by:
I am new at trying to authenticate users against LDAP. I am getting the error "Unable to establish secure connection with the server" with my current code. Here's what I have thus far. <add...
1
by: Erick Perez - Quadrian Enterprises, S.A. | last post by:
Hi, I have a MS Windows AD domain, and have one OU with more tan 1000 users objects. When I try to read it, I hit the 1000 limit of AD while returning objects, so I'm asking for advice as to how...
2
by: schtroumfps | last post by:
Hi, I have developed an internal application in ASP.NET 2.0/C# that is using an LDAP connection. Basically, I am getting the LDAP users to match some user’s roles and rights that I have in SQL...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.