Commit 3ee60641 authored by Marvin S. Addison's avatar Marvin S. Addison
Browse files

Add comment to clarify purpose of custom hostname verifier.


git-svn-id: https://svn.middleware.vt.edu/svn/ed/edsamples@10057 fa4a4108-76f2-0310-9f0d-ba9fffaf4ff6
parent c1673fa3
......@@ -36,6 +36,8 @@ namespace EdIdTest
// VT Enterprise Directory requires LDAPv3
conn.SessionOptions.ProtocolVersion = 3;
conn.SessionOptions.SecureSocketLayer = true;
// Must use custom hostname verification strategy due to DNS aliases
conn.SessionOptions.VerifyServerCertificate += new VerifyServerCertificateCallback(
new EdHostnameVerifier(LDAP_HOST).VerifyCertificate);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment