Solved

Validating username/password against novell

Posted on 2004-08-16
5
560 Views
Last Modified: 2008-01-09
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("NWSessLib.NWSessCtrl.1")
      loNWSess.Bindery = True
      loNWSess.RunScripts = False
      loNWSess.DisplayResults = False
      Call loNWSess.Logout(sServer)
      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:
http://www.novell.com/coolsolutions/cooldev/features/a_net_cplus_ldap_library_cdev.html

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.Directory.Ldap.dll" %> 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.
0
Comment
Question by:hendridm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 11816520
heres how to strongly name your assembly, very easy :)

0
 
LVL 8

Author Comment

by:hendridm
ID: 11822669
I got it to work in a much simpler way without using assemblies or code behind.  Here is what I came up with:
http://www.danhendricks.com/code/ASP.NET/Authenticating%20Novell%20with%20LDAP/

The problem was with Novell's version of the Novell.Directory.Ldap.dll.  When I used the one included with the Mono Win32 package, it worked like a charm.  Not sure how or why they differ, but it threw me for quite a loop.

This question can be closed.
0
 

Expert Comment

by:PashaMod
ID: 11939737
A request has been made in Community Support to close this question at:

http://www.experts-exchange.com/Community_Support/Q_21112835.html

If there are no objections a moderator will finalize this question in 4 days with

- PAQ the question and refunding points

Please post any comments here

Thank you,

PashaMod
Community Support Moderator @ Experts Exchange
0
 

Accepted Solution

by:
CetusMOD earned 0 total points
ID: 11979340
Closed, 500 points refunded.
CetusMOD
Community Support Moderator
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question