Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LDAP authentication problem

Status
Not open for further replies.

WOF

Programmer
Jul 26, 2007
1
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top