Solved

Validating username/password against novell

Posted on 2004-08-16
5
559 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 37

Expert Comment

by:gregoryyoung
ID: 11816524
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

Independent Software Vendors: 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

Suggested Solutions

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

739 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