Solved

Validating username/password against novell

Posted on 2004-08-16
5
553 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
5 Comments
 
LVL 37

Expert Comment

by:gregoryyoung
Comment Utility
heres how to strongly name your assembly, very easy :)

0
 
LVL 37

Expert Comment

by:gregoryyoung
Comment Utility
0
 
LVL 8

Author Comment

by:hendridm
Comment Utility
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
Comment Utility
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
Comment Utility
Closed, 500 points refunded.
CetusMOD
Community Support Moderator
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

771 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now