Talk About Network

Google





Software > ADSI General > Re: eDirectory ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 9 Topic 5354 of 5437
Post > Topic >>

Re: eDirectory Authentication in .net

by "Joe Kaplan" <joseph.e.kaplan@[EMAIL PROTECTED] > Aug 5, 2008 at 03:19 PM

Do you need to use a different ****t when connecting to this server via SSL?

Perhaps you need to specify "10.16.173:636" in your identifier?

Normally, you should be accessing the server by hostname and should not
have 
to override SSL verification as the server's certificate should be fine
and 
should chain normally, but sometimes it is helpful to override the 
verification.

Note also that if you need to get this authentication approach to scale 
effectively, you will need to reuse your existing LdapConnection across 
multiple requests as you will run out of TCP wildcard ****ts if you open
and 
close the connection over and over in rapid succession.

Joe K.

-- 
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services
Programming"
http://www.directoryprogramming.net
--
"nelsonad" <nelsonad@[EMAIL PROTECTED]
> wrote in message 
news:8CCF5226-69B9-4709-9635-EB94B8F7188C@[EMAIL PROTECTED]
> Hi, I'm having some issues using S.DS.P LdapConnection to try and
> authenticate a login/password with a server hosting eDirectory.
>
> I've tried this LdapConnection con = new LdapConnection(new
> LdapDirectoryIdentifier(this.SearchRoot), new
> System.Net.NetworkCredential(this.tbUserName.Text,
this.tbPassword.Text),
> AuthType.Basic);
> where
> SearchRoot = "10.16.173"
> username="customer"
> password="password"
> I can successfully log into iManager on the server hosting eDirectory,
but
> trying in the windows app i get an exception of:
> DirectoryOperationException - Confidentiality is required for this 
> operation
>
> So i tried setting:
> con.SessionOptions.SecureSocketLayer = true;
> con.SessionOptions.VerifyServerCertificate = new
> VerifyServerCertificateCallback(ServerCallback);
>
> Where ServerCallback just returns true, and now i get an LdapException
> errorcode 81 The LDAP server is unavailable.
>
> Thanks in advance for any advice you can offer, I've been searching for
> quite a while now and keep coming up short.
>
> Adam
 




 9 Posts in Topic:
eDirectory Authentication in .net
=?Utf-8?B?bmVsc29uYWQ=?=   2008-08-05 10:48:01 
Re: eDirectory Authentication in .net
"Joe Kaplan" &l  2008-08-05 15:19:41 
Re: eDirectory Authentication in .net
=?Utf-8?B?bmVsc29uYWQ=?=   2008-08-05 16:16:01 
Re: eDirectory Authentication in .net
"Joe Kaplan" &l  2008-08-05 20:33:04 
Re: eDirectory Authentication in .net
Lance R <lmrobins@[EMA  2008-08-06 08:37:44 
Re: eDirectory Authentication in .net
=?Utf-8?B?bmVsc29uYWQ=?=   2008-08-06 10:23:01 
Re: eDirectory Authentication in .net
Lance R <lmrobins@[EMA  2008-08-06 11:06:05 
Re: eDirectory Authentication in .net
=?Utf-8?B?bmVsc29uYWQ=?=   2008-08-06 13:31:00 
Re: eDirectory Authentication in .net
"Joe Kaplan" &l  2008-08-06 17:29:01 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
localhost-V2008-12-19 Thu Jan 8 19:10:41 PST 2009.