(DISTFILES): Comment out a few missing files.
[mono-project.git] / mcs / class / Mono.Directory.LDAP / Test / Mono.Directory.LDAP / BindSimpleTest.cs
blob3a7946568fd09f5e3b887ba9228db7d5bc0afbe8
1 // BindSimpleTest.cs
2 //
3 // Authors:
4 // Martin Willemoes Hansen (mwh@sysrq.dk)
5 //
6 // (C) 2003 Martin Willemoes Hansen
7 //
9 using NUnit.Framework;
10 using System;
11 using Mono.Directory.LDAP;
13 namespace MonoTests.Directory.LDAP
15 [TestFixture]
16 public class BindSimpleTest {
18 [Test]
19 public void Stuff()
21 string myLDAPPath = "ldap://ldap.toshok.org";
22 string username = "cn=Manager,dc=toshok,dc=org", passwd = "evotest";
23 try {
24 Mono.Directory.LDAP.LDAP ld = new Mono.Directory.LDAP.LDAP (myLDAPPath);
26 ld.BindSimple (username, passwd);
28 Console.WriteLine("Successfully bound {0} at {1}", username, myLDAPPath);
30 catch(Exception e) {
31 Console.WriteLine("The '" + myLDAPPath + "' path not found.");
32 Console.WriteLine("Exception : " + e.Message);