Article
This cool solution is useful for the LDAP Application developers who tend to use Novell's LDAP Libraries for C#, which is a C# implementation of the client side LDAP SDK. And this article will let the readers know how to use the Novell.Directory.Ldap..dll (which is the library that has the LDAP APIs defined as part of the SDK) on Windows and Linux.
Prerequisite:
- You need to have the library Novell.Directory.Ldap.dll for setting up.
Download the Novell.Directory.Ldap.dll file from 'Downloads' section of http://developer.novell.com/wiki/index.php/LDAP_Libraries_for_C_sharp, if you don't have it. - You need to have Mono installed on Linux. Or if your OS is windows, you need to have Mono / Microsoft .Net installed.
On Linux:
- Copy the library Novell.Directory.Ldap.dll to your customized project workspace.
- Set MONO_PATH variable to point the directory containing Novell.Directory.Ldap.dll as follows (and to the directory having Mono.Security.dll, which will be installed as part of Mono, if use secured LDAP operations).
- In your project makefile set reference to Novell.Directory.Ldap.dll using /r:/home/proj/csharp/Novell.Directory.Ldap.dll (and /r:<path to the directory/Mono.Security.dll, if use secured LDAP operations)
- Start writing your application including your LDAP Namespace as follows:
Using Novell.Directory.Ldap;
On Windows (using .Net):
- Copy the library Novell.Directory.Ldap.dll and the Mono.Security.dll (This library will be used in case your application needs secured operations to be done. And this will be part of Mono. If you do have Mono installed, get the library from http://www.mono-project.com) to your customized project workspace.
- Start Visual Studio .NET. Select File -> New -> Project.
- In the Project tab, select the appropriate type to create a C# project.
- Select an appropriate project template in the template tab.
- Enter the project name and click OK.
- Select Project -> Add reference -> Browse.
- In Browse, select Novell.Directory.Ldap.dll and mono.security.dll from the location you copied in Step 1. And click OK to Add Reference.
- Start writing your application including your LDAP Namespace as follows:
Using Novell.Directory.Ldap;
For the further references on the details of API and usage, you can visit http://developer.novell.com/wiki/index.php/LDAP_Libraries_for_C_sharp
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.
Related Articles
User Comments
- Be the first to comment! To leave a comment you need to Login or Register
Nope.. We are coming up with
Submitted by palaniappan1 on 6 August 2009 - 10:59pm.
Nope.. We are coming up with few fixes and we'll be releasing those LDAP libraries soon (may be with in a week or so)
:)
Palaniappan.
- Be the first to comment! To leave a comment you need to Login or Register




2