Daniel M. Hendricks

Novell LDAP Authentication

This example will show you how to use Novell’s LDAP Library to authenticate users with ASP.NET Forms Authentication. Visual Studio.NET not required!

Important Note: I am not experienced with either Novell or the complex working of ASP.NET. I was able to get this working through many hours of searching. If you are having problems getting it to work it is unlikely that I will be able to assist you further.

Download Files: login.zip

Requirements

  • Mono Win32 Binary Package – Download the latest Win32 installer for Mono. We only need the Novell.Directory.Ldap.dll file, so you don’t need to install the samples or XSP if you do not wish.
  • Working Novell Installtion with LDAP Enabled – Alternatively, you can set up an account on Novell’s test server.

Setup

I have included all the files you need to give it a try:

  1. Download the above ZIP file and extract it’s contents to its own IIS Virtual Directory.
  2. Place the Novell.Directory.Ldap.dll file in your applications bin folder.
  3. Change the login.aspx file as needed, paying special attention to the “userDN”. You will need to specify a correct DN for your organization.

Once you have it configured, try accessing your application. For example, if you created the virtual directory “LoginTest” on your local machine, try visiting http://localhost/LoginTest/.

Code Snippet

<%@ Import Namespace="System.Web.Security" %>
<%@ Import Namespace="Novell.Directory.Ldap" %>


Reference

Post a Comment

You must be logged in to post a comment.

Tip: Sign up for a free Gravatar to have a photo next to your comment! Your gravatar will follow you around when you post to blogs that support it, based on the e-mail address you use to post.