I'm trying to connect to Novell LDAP server from a ASP.net C# application to authenticate my users.
I am using the novell ldap library Novell.Directory.Ldap and the code I use is pasted below. The problem
I facing is that the Connection.Bind call always throws an exception saying "Confidentiality required".
Can someone tell me what I need to do do on the machine running the C# application so that I can
do the authentication of my users versus the LDAP server. Do I need need to install and special certifcates on that machine.
Please note that I have control over the machine running the C# app however I do not have control over the machine hosting the
LDAP and I cannot change any of the LDAP server configurations.
LdapConnection Connection = new LdapConnection();
LDAPPort = Convert.ToInt16( ConfigurationSettings.AppSettings.Get("LDAPPort").ToString() );
LDAPServerIPAddress = ConfigurationSettings.AppSettings.Get("LDAPServerIPAddress").ToString();
Connection.Connect(LDAPServerIPAddress, LDAPPort);
if ( Connection.Connected )
{
Connection.Bind( strDN, strPassword );
if ( Connection.Bound )
{
// everything it's ok
Connection.Disconnect();
}
else
{
bError = true;
errMessage = "Connected, but couldn't authenticate the user on the LDAP server.";
}
Any help is much appreciated.
Nicolae "Super Programmer -not LDAP" Bogdan
I am using the novell ldap library Novell.Directory.Ldap and the code I use is pasted below. The problem
I facing is that the Connection.Bind call always throws an exception saying "Confidentiality required".
Can someone tell me what I need to do do on the machine running the C# application so that I can
do the authentication of my users versus the LDAP server. Do I need need to install and special certifcates on that machine.
Please note that I have control over the machine running the C# app however I do not have control over the machine hosting the
LDAP and I cannot change any of the LDAP server configurations.
LdapConnection Connection = new LdapConnection();
LDAPPort = Convert.ToInt16( ConfigurationSettings.AppSettings.Get("LDAPPort").ToString() );
LDAPServerIPAddress = ConfigurationSettings.AppSettings.Get("LDAPServerIPAddress").ToString();
Connection.Connect(LDAPServerIPAddress, LDAPPort);
if ( Connection.Connected )
{
Connection.Bind( strDN, strPassword );
if ( Connection.Bound )
{
// everything it's ok
Connection.Disconnect();
}
else
{
bError = true;
errMessage = "Connected, but couldn't authenticate the user on the LDAP server.";
}
Any help is much appreciated.
Nicolae "Super Programmer -not LDAP" Bogdan