Re: NTLM authentication
"Willy Denoyette [MVP]" <willy.denoyett e@telenet.bewro te in message
news:OZKB41AMHH A.3588@TK2MSFTN GP06.phx.gbl...
This is working perfectly - thanks for the tip.
One final question: is the line "LdapSessionOpt ions so =
ldap.SessionOpt ions;" actually necessary...? Removing it doesn't (seem to)
make any difference...
"Willy Denoyette [MVP]" <willy.denoyett e@telenet.bewro te in message
news:OZKB41AMHH A.3588@TK2MSFTN GP06.phx.gbl...
using System.Director yServices.Proto cols;
...
using (LdapConnection ldap = new LdapConnection( "DomainName or DC name"))
{
LdapSessionOpti ons so = ldap.SessionOpt ions;
ldap.AuthType = AuthType.Kerber os; // or NTLM but ...
ldap.Bind(new NetworkCredenti al("username", "password",
"domain"));
}
// done
...
using (LdapConnection ldap = new LdapConnection( "DomainName or DC name"))
{
LdapSessionOpti ons so = ldap.SessionOpt ions;
ldap.AuthType = AuthType.Kerber os; // or NTLM but ...
ldap.Bind(new NetworkCredenti al("username", "password",
"domain"));
}
// done
One final question: is the line "LdapSessionOpt ions so =
ldap.SessionOpt ions;" actually necessary...? Removing it doesn't (seem to)
make any difference...
Comment