Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Validating username/password against novell

Posted on 2004-08-16
5
Medium Priority
?
563 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
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

972 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