亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? createcorbaschema.java

?? java tutorial.sun公司官方出品。java入門書籍。最新版
?? JAVA
字號:
/* * Copyright (c) 1995 - 2008 Sun Microsystems, Inc.  All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * *   - Redistributions of source code must retain the above copyright *     notice, this list of conditions and the following disclaimer. * *   - Redistributions in binary form must reproduce the above copyright *     notice, this list of conditions and the following disclaimer in the *     documentation and/or other materials provided with the distribution. * *   - Neither the name of Sun Microsystems nor the names of its *     contributors may be used to endorse or promote products derived *     from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Copyright (c) 2006.  Sun Microsystems. All rights reserved. *  * Creates the schema for storing CORBA object references according * to RFC 2714. After running this program, you should verify that * the schema has been updated correctly by using the directory server's * administration tool. If the schema has not been properly updated, * use the administration tool to correct it. * * You should first turn off schema-checking at the directory server  * before running this program. * * usage: * java [-Djava.naming.provider.url=<ldap_server_url>] \ *     CreateCorbaSchema [-h|-l|-s[n|n41|ad]] [-n<dn>] [-p<passwd>] [-a<auth>]  *       * -h		Print the usage message * * -l		List the CORBA schema in the directory * * -s[n|n41|ad]	Update schema: *                -sn   means use a workaround for schema bugs in *                      pre-4.1 releases of Netscape Directory Server; * *		  -sn41 means use a workaround for schema bugs in *                      Netscape Directory Server version 4.1; * *		  -sad  means use a workaround for schema bugs in *                      Microsoft Windows 2000 Active Directory * * -n<dn> 	Use <dn> as the distinguished name for authentication * * -p<passwd>	Use <passwd> as the password for authentication * * -a<auth>	Use <auth> as the authentication mechanism. Default is "simple". * * * If neither -s, -l, nor -h has been specified, the default is "-l". * * The following example inserts the CORBA schema from RFC 2714 in a * Netscape Directory (using the workaround for 4.1 schema bugs), * logging in as "cn=directory manager" with the password "secret". * *     java CreateCorbaSchema -sn41 "-ncn=directory manager" -psecret * * @author Rosanna Lee */import javax.naming.*;import javax.naming.directory.*;public class CreateCorbaSchema extends CreateJavaSchema{    private static String[] allAttrs = {	"corbaIor",	"corbaRepositoryId"    };    private static String[] allOCs = {	"corbaObject",	"corbaObjectReference",	"corbaContainer"    };    public static void main(String[] args) {	new CreateCorbaSchema().run(args, allAttrs, allOCs);    }    CreateCorbaSchema() {    }    /**     * Add new attributes:     * 	corbaIor     * 	corbaRepositoryId     */    protected void updateAttributes(DirContext attrRoot, String[] attrIDs) 	throws NamingException {	/* Get rid of old attr IDs */	for (int i = 0; i < attrIDs.length; i++) {	    attrRoot.destroySubcontext(attrIDs[i]);	}	/* Add new and updated attr definitions */// corbaIor	Attributes attrs = new BasicAttributes(true); // ignore case	attrs.put("NUMERICOID", "1.3.6.1.4.1.42.2.27.4.1.14");	attrs.put("NAME", "corbaIor");	attrs.put("DESC", "Stringified interoperable object reference of a CORBA object");	attrs.put("SYNTAX", "1.3.6.1.4.1.1466.115.121.1.26");	attrs.put("EQUALITY", "caseIgnoreIA5Match");	attrs.put("SINGLE-VALUE", "true");	attrRoot.createSubcontext("corbaIor", attrs);	System.out.println("Created corbaIor attribute");// corbaRepositoryId	attrs = new BasicAttributes(true);	attrs.put("NUMERICOID", "1.3.6.1.4.1.42.2.27.4.1.15");	attrs.put("NAME", "corbaRepositoryId");	attrs.put("DESC", "Repository ids of interfaces implemented by a CORBA object");	attrs.put("SYNTAX", "1.3.6.1.4.1.1466.115.121.1.15");	attrs.put("EQUALITY", "caseExactMatch");	attrRoot.createSubcontext("corbaRepositoryId", attrs);	System.out.println("Created corbaRepositoryId attribute");    }    // Object Classes    protected void updateObjectClasses(DirContext ocRoot, String[] ocIDs) 	throws NamingException {	/* Get rid of old OCs - reverse order */	for (int i = ocIDs.length - 1; i >= 0; i--) {    	    ocRoot.destroySubcontext(ocIDs[i]);	}// corbaObject	Attributes attrs = new BasicAttributes(true);	attrs.put("NUMERICOID", "1.3.6.1.4.1.42.2.27.4.2.9");	attrs.put("NAME", "corbaObject");	attrs.put("DESC", "CORBA object representation");	attrs.put("SUP", "top");	attrs.put("ABSTRACT", "true");	Attribute optional = new BasicAttribute("MAY", "corbaRepositoryId");	optional.add("description");	attrs.put(optional);	ocRoot.createSubcontext("corbaObject", attrs);	System.out.println("Created corbaObject object class");// corbaObjectReference	attrs = new BasicAttributes(true);	attrs.put("NUMERICOID", "1.3.6.1.4.1.42.2.27.4.2.11");	attrs.put("NAME", "corbaObjectReference");	attrs.put("DESC", "CORBA interoperable object reference");	attrs.put("SUP", "corbaObject");	attrs.put("AUXILIARY", "true");	Attribute corMust = new BasicAttribute("MUST", "corbaIor");	if (netscape41bug) {	    corMust.add("objectclass");	}	if (netscapebug) {	    // Netscape ignores 'SUP' so we must add explicitly	    attrs.put(optional);	}	attrs.put(corMust);	ocRoot.createSubcontext("corbaObjectReference", attrs);	System.out.println("Created corbaObjectReference object class");// corbaContainer	attrs = new BasicAttributes(true);	attrs.put("NUMERICOID", "1.3.6.1.4.1.42.2.27.4.2.10");	attrs.put("NAME", "corbaContainer");	attrs.put("DESC", "Container for a CORBA object");	attrs.put("SUP", "top");	attrs.put("STRUCTURAL", "true");	Attribute ccMust = new BasicAttribute("MUST", "cn");	if (netscape41bug) {	    ccMust.add("objectclass");	}	attrs.put(ccMust);	ocRoot.createSubcontext("corbaContainer", attrs);	System.out.println("Created corbaContainer object class");    }    /**     * Inserts attribute definitions from RFC 2714 into the schema.     *     * This method maps the LDAP schema definitions in RFC 2714 onto the     * proprietary attributes required by the Active Directory schema.     *     * The resulting attribute definitions are identical to those of RFC 2714.     */    protected void insertADAttributes(DirContext rootCtx, DirContext schemaCtx)	throws NamingException {System.out.println("  [inserting new attribute definitions ...]");	String dn = schemaCtx.getNameInNamespace();	String attrID;	attrID = new String("corbaIor");	Attributes attrs1 = new BasicAttributes();	attrs1.put(new BasicAttribute("adminDescription", attrID));	attrs1.put(new BasicAttribute("attributeID",	    "1.3.6.1.4.1.42.2.27.4.1.14"));	attrs1.put(new BasicAttribute("attributeSyntax", "2.5.5.5"));	attrs1.put(new BasicAttribute("cn", attrID));	attrs1.put(new BasicAttribute("description",	    "Stringified interoperable object reference of a CORBA object"));	attrs1.put(new BasicAttribute("distinguishedName", "CN=" + attrID +	    "," + dn));	attrs1.put(new BasicAttribute("isSingleValued", "TRUE"));	attrs1.put(new BasicAttribute("lDAPDisplayName", attrID));	attrs1.put(new BasicAttribute("name", attrID));	attrs1.put(new BasicAttribute("objectCategory", "CN=Attribute-Schema," +	    dn));	attrs1.put(new BasicAttribute("objectClass", "attributeSchema"));	attrs1.put(new BasicAttribute("oMSyntax", "22"));	attrs1.put(new BasicAttribute("searchFlags", "0"));	attrs1.put(new BasicAttribute("systemOnly", "FALSE"));	schemaCtx.createSubcontext("cn=" + attrID, attrs1);System.out.println("    [" + attrID + "]");	attrID = new String("corbaRepositoryId");	Attributes attrs2 = new BasicAttributes();	attrs2.put(new BasicAttribute("adminDescription", attrID));	attrs2.put(new BasicAttribute("attributeID",	    "1.3.6.1.4.1.42.2.27.4.1.15"));	attrs2.put(new BasicAttribute("attributeSyntax", "2.5.5.12"));	attrs2.put(new BasicAttribute("cn", attrID));	attrs2.put(new BasicAttribute("description",	    "Repository ids of interfaces implemented by a CORBA object"));	attrs2.put(new BasicAttribute("distinguishedName", "CN=" + attrID +	    "," + dn));	attrs2.put(new BasicAttribute("isSingleValued", "FALSE"));	attrs2.put(new BasicAttribute("lDAPDisplayName", attrID));	attrs2.put(new BasicAttribute("name", attrID));	attrs2.put(new BasicAttribute("objectCategory", "CN=Attribute-Schema," +	    dn));	attrs2.put(new BasicAttribute("objectClass", "attributeSchema"));	attrs2.put(new BasicAttribute("oMSyntax", "64"));	attrs2.put(new BasicAttribute("searchFlags", "0"));	attrs2.put(new BasicAttribute("systemOnly", "FALSE"));	schemaCtx.createSubcontext("cn=" + attrID, attrs2);System.out.println("    [" + attrID + "]");        flushADSchemaMods(rootCtx); // finally    }    /**     * Inserts object class definitions from RFC 2714 into the schema.     *     * This method maps the LDAP schema definitions in RFC 2714 onto the     * proprietary attributes required by the Active Directory schema.     *     * The resulting object class definitions differ from those of RFC 2714     * in the following ways:     *     *     - Abstract and auxiliary classes are now defined as structural.     *     - The corbaObject class now inherits from corbaContainer.     *     - The corbaObjectReference class now inherits from corbaObject.     *     * The effect of these differences is that CORBA object references     * cannot be mixed-in with other directory entries, they may only be     * stored as stand-alone entries.     *     * The reason for these differences is due to the way auxiliary classes     * are supported in Active Directory. Only the names of structural     * classes (not auxiliary) may appear in the object class attribute of     * an entry. Therefore, the abstract and auxiliary classes in the CORBA     * schema definition is re-defined as structural.     */    protected void insertADObjectClasses(DirContext rootCtx,	DirContext schemaCtx) throws NamingException {System.out.println("  [inserting new object class definitions ...]");	String dn = schemaCtx.getNameInNamespace();	String attrID;	attrID = new String("corbaContainer");	Attributes attrs1 = new BasicAttributes();	attrs1.put(new BasicAttribute("cn", attrID));	attrs1.put(new BasicAttribute("objectClass", "classSchema"));	attrs1.put(new BasicAttribute("defaultHidingValue", "FALSE"));	attrs1.put(new BasicAttribute("governsID",	    "1.3.6.1.4.1.42.2.27.4.2.10"));	attrs1.put(new BasicAttribute("lDAPDisplayName", attrID));	attrs1.put(new BasicAttribute("mustContain", "cn"));	attrs1.put(new BasicAttribute("objectClassCategory", "1"));	attrs1.put(new BasicAttribute("systemOnly", "FALSE"));	attrs1.put(new BasicAttribute("subclassOf", "top"));	attrs1.put(new BasicAttribute("possSuperiors", "top")); //any superior	attrs1.put(new BasicAttribute("description",	    "Container for a CORBA object"));	schemaCtx.createSubcontext("cn=" + attrID, attrs1);System.out.println("    [" + attrID + "]");	flushADSchemaMods(rootCtx); // corbaObject relys on corbaContainer	attrID = new String("corbaObject");	Attributes attrs2 = new BasicAttributes();	attrs2.put(new BasicAttribute("cn", attrID));	attrs2.put(new BasicAttribute("objectClass", "classSchema"));	attrs2.put(new BasicAttribute("defaultHidingValue", "FALSE"));	attrs2.put(new BasicAttribute("governsID",	    "1.3.6.1.4.1.42.2.27.4.2.9"));	attrs2.put(new BasicAttribute("lDAPDisplayName", attrID));	Attribute coMay = new BasicAttribute("mayContain");	coMay.add("corbaRepositoryId");	coMay.add("description");	attrs2.put(coMay);	attrs2.put(new BasicAttribute("objectClassCategory", "1"));	attrs2.put(new BasicAttribute("systemOnly", "FALSE"));	attrs2.put(new BasicAttribute("subclassOf", "corbaContainer"));	attrs2.put(new BasicAttribute("description",	    "CORBA object representation"));	schemaCtx.createSubcontext("cn=" + attrID, attrs2);System.out.println("    [" + attrID + "]");	flushADSchemaMods(rootCtx); // corbaObjectReference relys on corbaObject	attrID = new String("corbaObjectReference");	Attributes attrs3 = new BasicAttributes();	attrs3.put(new BasicAttribute("cn", attrID));	attrs3.put(new BasicAttribute("objectClass", "classSchema"));	attrs3.put(new BasicAttribute("defaultHidingValue", "FALSE"));	attrs3.put(new BasicAttribute("governsID",	    "1.3.6.1.4.1.42.2.27.4.2.11"));	attrs3.put(new BasicAttribute("lDAPDisplayName", attrID));	attrs3.put(new BasicAttribute("mustContain", "corbaIor"));	attrs3.put(new BasicAttribute("objectClassCategory", "1"));	attrs3.put(new BasicAttribute("systemOnly", "FALSE"));	attrs3.put(new BasicAttribute("subclassOf", "corbaObject"));	attrs3.put(new BasicAttribute("description",	    "CORBA interoperable object reference"));	schemaCtx.createSubcontext("cn=" + attrID, attrs3);System.out.println("    [" + attrID + "]");	flushADSchemaMods(rootCtx); // finally    }    protected void printUsage(String msg) {	printUsageAux(msg, "Corba");    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲色图清纯唯美| 国产美女娇喘av呻吟久久| 一区二区久久久久| 精品亚洲欧美一区| 欧美日韩在线观看一区二区 | 国产精品综合二区| 91电影在线观看| 精品国产自在久精品国产| 一卡二卡三卡日韩欧美| 国产传媒欧美日韩成人| 欧美一区二区三区四区高清| 亚洲精品国产第一综合99久久| 韩国成人福利片在线播放| 欧美日韩精品一区视频| 亚洲毛片av在线| 成人免费不卡视频| 久久久综合精品| 韩国v欧美v亚洲v日本v| 精品成人佐山爱一区二区| 视频在线观看一区| 欧美在线观看一区二区| 亚洲免费av高清| 99视频一区二区| 国产精品久久久久久亚洲毛片 | 亚洲欧洲国产日韩| 国产91露脸合集magnet| 欧美成人激情免费网| 乱一区二区av| 日韩美女一区二区三区四区| 免费成人在线观看视频| 日韩三级伦理片妻子的秘密按摩| 日本网站在线观看一区二区三区| 这里只有精品电影| 欧美aaaaaa午夜精品| 4438x成人网最大色成网站| 亚洲福利视频一区| 欧美顶级少妇做爰| 奇米影视一区二区三区小说| 91精品国产91久久久久久最新毛片 | 亚洲aⅴ怡春院| 欧美精品乱码久久久久久| 亚洲成av人片一区二区三区| 91精品婷婷国产综合久久竹菊| 香蕉成人啪国产精品视频综合网| 欧美人与z0zoxxxx视频| 老司机精品视频导航| 久久综合网色—综合色88| 国产精品一区二区三区网站| 中文字幕欧美日韩一区| 色呦呦国产精品| 亚洲18女电影在线观看| 欧美成人女星排行榜| 成人av综合在线| 亚洲一二三区在线观看| 日韩一区二区在线免费观看| 国产一区二区不卡| 最新日韩在线视频| 欧美精品丝袜久久久中文字幕| 久久99精品国产麻豆婷婷| 国产精品久久看| 欧美日韩一区不卡| 国内精品免费**视频| 国产精品麻豆视频| 欧美丰满高潮xxxx喷水动漫| 国产在线国偷精品产拍免费yy| 国产精品久久久久久久久晋中| 欧美视频一二三区| 国产麻豆成人精品| 一区二区三区高清不卡| 337p日本欧洲亚洲大胆色噜噜| 不卡av免费在线观看| 美女视频一区二区| 亚洲影视资源网| 久久久久综合网| 欧美色视频在线| 成人性生交大片免费| 日韩电影免费在线看| 亚洲同性gay激情无套| 欧美成人综合网站| 色播五月激情综合网| 国产一区二区三区久久悠悠色av| 亚洲国产美女搞黄色| 中文字幕av资源一区| 日韩一区二区三区三四区视频在线观看 | 日韩一区二区精品葵司在线| 99久久99久久综合| 日本sm残虐另类| 一区二区三区中文字幕精品精品| 久久久久久久久久久黄色| 717成人午夜免费福利电影| 97精品久久久午夜一区二区三区| 国内成人免费视频| 五月天欧美精品| 亚洲欧美二区三区| 亚洲国产精品v| 欧美va亚洲va香蕉在线| 欧美日韩视频在线第一区 | 日韩三级精品电影久久久| 色激情天天射综合网| 成人免费观看男女羞羞视频| 六月丁香婷婷色狠狠久久| 亚洲成av人片在线观看| 亚洲一卡二卡三卡四卡无卡久久| 最新国产成人在线观看| 国产精品嫩草影院av蜜臀| 精品粉嫩超白一线天av| 欧美一区二区二区| 91精品在线观看入口| 欧美福利视频一区| 欧美日韩精品一区视频| 欧美日韩成人在线一区| 欧美体内she精视频| 欧美亚一区二区| 欧美三级一区二区| 欧美一a一片一级一片| 在线观看免费亚洲| 欧美日韩一区二区电影| 7777精品伊人久久久大香线蕉的 | 国产成人a级片| 国产伦精品一区二区三区免费| 韩国女主播成人在线观看| 精品亚洲欧美一区| 国产宾馆实践打屁股91| 成人黄色小视频| 91亚洲精品久久久蜜桃网站| 91豆麻精品91久久久久久| 欧美性大战久久久久久久蜜臀| 欧美精品色综合| 精品久久一区二区三区| 国产欧美精品区一区二区三区| 国产精品乱码一区二三区小蝌蚪| 中文字幕一区二区三区av| 一区二区三区四区不卡在线| 天涯成人国产亚洲精品一区av| 美女网站一区二区| 国产成人av电影在线观看| 91偷拍与自偷拍精品| 欧美日本精品一区二区三区| 精品成人在线观看| 一区二区在线观看免费| 日韩国产精品大片| 国产99久久久国产精品潘金网站| 91论坛在线播放| 91精品国产综合久久国产大片| 欧美va亚洲va| 亚洲桃色在线一区| 青青草原综合久久大伊人精品优势| 久久99久久99小草精品免视看| 国产91丝袜在线18| 欧美高清一级片在线| 国产视频一区在线播放| 一级特黄大欧美久久久| 韩国视频一区二区| 欧美丝袜丝nylons| 国产日韩三级在线| 亚洲图片欧美一区| 高清不卡一区二区| 欧美伦理影视网| 国产精品卡一卡二卡三| 日本中文字幕一区二区有限公司| 国产福利精品一区二区| 91麻豆精品国产91久久久更新时间| 中文在线免费一区三区高中清不卡| 亚洲线精品一区二区三区八戒| 国产高清精品久久久久| 久久中文字幕电影| 午夜视频久久久久久| 99久久99久久精品国产片果冻 | 中文字幕一区二区三| 蜜桃一区二区三区在线观看| 91黄色免费看| 中文字幕欧美区| 久久99国产精品久久99| 欧美日韩一级二级三级| 国产精品久久久久aaaa樱花| 久久aⅴ国产欧美74aaa| 在线不卡免费av| 伊人性伊人情综合网| www.在线欧美| 久久精品免费在线观看| 看电影不卡的网站| 欧美日韩精品一区二区三区四区 | 国产精品欧美精品| 精品一区二区三区的国产在线播放| 欧美亚洲另类激情小说| 最新成人av在线| 成人app网站| 中文av一区二区| 国产99久久久国产精品潘金| 日本一区二区三区电影| 国产一区二区电影| 国产亚洲精品久| 国产激情视频一区二区三区欧美| 欧美成人一区二区三区在线观看| 日本不卡视频一二三区| 91麻豆精品国产91久久久 | 欧美精品一区男女天堂| 久久er精品视频| 精品国产成人系列| 国产成人在线观看免费网站|