I am stumped! I'm trying to validate a username and password against NDS. I previously got it working with ASP using the Novell NDAP component and this code:
Set loNwSess = Server.CreateObject("NWSes
loNWSess.Bindery = True
loNWSess.RunScripts = False
loNWSess.DisplayResults = False
ValidateUser = loNWSess.Login(sServer, sUsername, sPassword, false)
However, I need something that will work with ASP.NET/C#. I tried encapsulating the NWsess.dll as a .NET component, but I couldn't get it to add to the GAC, which was probably because I have no clue what the hell it is. It said something like it couldn't add it because it lacked a "strong name".
This method looked promising:
But I don't know how to use it in ASP.NET! The example says I need the line "using Novell.Directory.Ldap" at the top, but that doesn't seem to work in my ASP.NET code. I tried:
<%@ Import Namespace="Novell.Director
" %> but it says the namespace cannot be found even though the file is in my 'bin' folder.
Is there a SIMPLE example of how to check a username and password against a Novell directory? I'd be willing to use System.DirectoryServices as long as I can get a working example.
Points will only be awared for working examples or links to working examples. I've gotten plenty of recommendations from various web site, including Novell's hopelessly complex web site, but I can't get anything to work. Please help!
I'm not using Visual Studio, so an example that doesn't require it would be more useful. I'm just using TextPad.