//returns 1 if success and 0 if failure
        public  int CreateConnection ()
        {
            try {
                ldConn = new LdapConnection ();
                if (ldConn == null)
                    throw new Exception ("Ldap Connection is null");

                bool isServerReachable = CheckServerReachability (this.server, LDAPOption.LDAP_PORT, VMDirConstants.SERVERTIMEOUT_IN_MILLI);
                if (isServerReachable == true) {
                    ldConn.VmDirSafeLDAPBind (this.server, this.bindDN, this.password);
                    _schemaManager = new SchemaManager (this);
                    _schemaManager.RefreshSchema ();
                    return 1;
                }
                return 0;

            } catch (Exception e) {
                return 0; 
            }
        }