Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > ADSI General > DirectoryEntry ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 5349 of 5419
Post > Topic >>

DirectoryEntry and LDAP unbind/rebind

by =?Utf-8?B?TWljaGVs?= <Michel@[EMAIL PROTECTED] > Aug 1, 2008 at 06:21 AM

Here is my scenario. I am using .Net with C# (Visual Studio 2005, .net 2)
to 
access a Sun LDAP server using SSL. This all works fine. However, one
thing 
I'd like to do is to is:
- connect to LDAP server over SSL
- bind anonymously
- run a query
- unbind
- rebind with a specified username/password
- run a query
- close the SSL connection down
The key being that I only want to do the SSL key exchange once. I know
this 
is possible, since I've done it using alternate technologies.

So I coded it up as follows:

        entry = new DirectoryEntry(path, null, null, 
AuthenticationTypes.SecureSocketsLayer);
        searchOne(entry...); // The DirectorySearcher gets created here,
etc.
        // Reset user/password info
        entry.Username = dn;
        entry.Password = password;
        searchOne(entry...);

Even though this works, underneath the hood, I get 2 ssl connections. Is 
there anyway to make this work?

Hope this is clear. Thanks.
 




 6 Posts in Topic:
DirectoryEntry and LDAP unbind/rebind
=?Utf-8?B?TWljaGVs?= <  2008-08-01 06:21:03 
Re: DirectoryEntry and LDAP unbind/rebind
"Joe Kaplan" &l  2008-08-01 08:56:59 
Re: DirectoryEntry and LDAP unbind/rebind
=?Utf-8?B?TWljaGVs?= <  2008-08-01 07:13:02 
Re: DirectoryEntry and LDAP unbind/rebind
=?Utf-8?B?TWljaGVs?= <  2008-08-01 08:05:01 
Re: DirectoryEntry and LDAP unbind/rebind
"Joe Kaplan" &l  2008-08-01 13:50:04 
Re: DirectoryEntry and LDAP unbind/rebind
=?Utf-8?B?TWljaGVs?= <  2008-08-11 13:02:07 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Nov 20 16:31:27 CST 2008.