1.4 Using Novell.Directory.Ldap on Linux

To use Novell.Directory.Ldap:

  1. Download the Novell.Directory.Ldap.dll file from http://forge.novell.com/modules/xfmod/project/?ldapcsharp if you don't have it.

  2. Copy Novell.Directory.Ldap.dll to an appropriate location in your project.

  3. Set the directory containing Novell.Directory.Ldap.dll in your MONO_PATH variable as follows:

    Figure 1-2 Linux Setup

  4. In your project makefile set reference to Novell.Directory.Ldap.dll using

    /r:/home/project/lib/Novell.Directory.Ldap.dll

  5. Add the following line to your code:

    Using Novell.Directory.Ldap;
    

NOTE:Adding the namespace using statement to your code is unnecessary, but can simplify object names. If you do not add this statement, then you must declare an object as Novell.Directory.Ldap.LdapConnection, instead of LdapConnection.