예제 #1
0
        public static void MyClassInitialize(TestContext testContext)
        {
            var         path = @"..\..\..\input.xml";
            Credentials cred = Input.ReadXML(path);

            myDN       = cred.myDN;
            hostName   = cred.hostName;
            upn        = cred.upn;
            password   = cred.password;
            portNumber = cred.portNumber;
            basedn     = "cn=ExampleAdd,cn=Users,dc=vsphere,dc=local";
            basedn2    = "cn=ExampleAddSasl,cn=Users,dc=vsphere,dc=local";

            //False credentials
            myDN_F       = cred.myDN_F;
            hostName_F   = cred.hostName_F;
            upn_F        = cred.upn_F;
            password_F   = cred.password_F;
            portNumber_F = cred.portNumber_F;
            basedn_F     = "cn=Cap150,cn=Users,dc=vsphere,dc=local";

            dllPath = @"C:\Users\aalokr\workspaces_new\aalokr_lotus_ws_2k8_dev_new\lotus\lotus-main\vmdir\interop\csharp\VmDirInterop\LdapTest\";        //put all the dll in the LdapTest Folder

            Dll.SetDllDirectory(dllPath);
        }
예제 #2
0
        public static void MyClassInitialize(TestContext testContext)
        {
            var         path = @"..\..\..\input.xml";
            Credentials cred = Input.ReadXML(path);

            myDN       = cred.myDN;
            hostName   = cred.hostName;
            upn        = cred.upn;
            password   = cred.password;
            portNumber = cred.portNumber;

            //False credentials
            myDN_F       = cred.myDN_F;
            hostName_F   = cred.hostName_F;
            upn_F        = cred.upn_F;
            password_F   = cred.password_F;
            portNumber_F = cred.portNumber_F;

            filter = "(&(objectClass=person)(cn=ws2k8r2-aalok-d.eng.vmware.com))";

            attribute = "cs";                               //same as what you are searching
            value     = "ws2k8r2-aalok-d.eng.vmware.com";   //same as what you are searching

            filter_F = "(&(objectClass=person)(cn=ws2k8r2-aalok-f.eng.vmware.com))";
            dllPath  = @"C:\Users\aalokr\workspaces_new\aalokr_lotus_ws_2k8_dev_new\lotus\lotus-main\vmdir\interop\csharp\VmDirInterop\LdapTest\";       //put all the dll in the LdapTest Folder

            Dll.SetDllDirectory(dllPath);
        }