4 // Martin Willemoes Hansen (mwh@sysrq.dk)
6 // (C) 2003 Martin Willemoes Hansen
11 using Mono
.Directory
.LDAP
;
13 namespace MonoTests
.Directory
.LDAP
16 public class BindSimpleTest
{
21 string myLDAPPath
= "ldap://ldap.toshok.org";
22 string username
= "cn=Manager,dc=toshok,dc=org", passwd
= "evotest";
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
);
31 Console
.WriteLine("The '" + myLDAPPath
+ "' path not found.");
32 Console
.WriteLine("Exception : " + e
.Message
);