Solved

Validating username/password against novell

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

821 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