473,569 Members | 2,764 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Disconne ct( )...stays
open.

I've also used the Windows DirectoryServic es 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 21996
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.Disconne ct(
)...stays open.

I've also used the Windows DirectoryServic es 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
2761
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 Connection handler:$ds<BR>":""; if ($ds == 0) { echo "<H1>Cannot connect to LDAP server to authenticate</H1>"; echo "<H3>Use the browser back button...
1
2667
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 2004 Vendor Name OpenLDAP
0
1631
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 I would like to get the NDS side working during the transition. I know the concept of what required Microsoft's information is very sparse and...
5
2331
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 works. I use this code to try to connect to ldap: System.DirectoryServices.DirectoryEntry entry = new...
4
6564
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 to a User Id that exists in LDAP and not in the local /etc/passwd file. Also verified that the connection to LDAP is working by ssh into the box....
0
1719
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 say is this: initialize(uri) Opens a new connection with an LDAP server, and return an LDAP object (see 1.1.4) used to perform operations on that...
1
2101
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 name="ADConnectionString" connectionString="LDAP://ldap-r.hutty.com:389/cn=finmed,ou=roles,dc=hutty,dc=com"/> <add name="MyADMembershipProvider"...
1
5433
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 to read them. Here is my actual code, it is not the cleanest as I am learning python. Suggestions are welcomed :) Runnig this script on RedHat 5.x...
2
6291
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 2005 tables. When I am testing the application locally this is working perfectly. I have place the application on an internal test server (inside the...
0
7694
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8118
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7666
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6278
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5504
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
936
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.