LECTURE 1 JLDAP ( LDAP Class Libraries for Java )¤ÎƳÆþ

¡û ¤Ï¤¸¤á¤Ë

Java ¤Ç LDAP ¥¯¥é¥¤¥¢¥ó¥È¤òºîÀ®¤¹¤ë¤ËºÝ¤·¤Æ¡¢´û¤ËÍÑ°Õ¤µ¤ì¤Æ¤¤¤ë LDAP ÀܳÍѤΥ¯¥é¥¹¥é¥¤¥Ö¥é¥ê¤ò»ÈÍѤ¹¤ë¤³¤È¤Ë¤·¤Þ¤¹¡£LDAP ¤Î»ÅÍͤòÊÙ¶¯¤·¤Æ¥×¥í¥È¥³¥ë¤½¤Î¤â¤Î¤ò¼ÂÁõ¤·¤Æ¤¤¤¯¤Î¤â¶½Ì£¿¼¤¤¤Ç¤¹¤¬¡¢¤½¤³¤Þ¤Ç¤ä¤ëÄø¤Ë LDAP ¤È¤¤¤¦µ»½Ñ¤¬¹¥¤­¤Ê¤ï¤±¤Ç¤Ï¤Ê¤¤¤Î¤Ç¡£¡£¡£¤È¤¤¤¦¤Î¤ÏÃÖ¤¤¤È¤¤¤Æ¡¢Ã±¤Ë LDAP ¥¯¥é¥¤¥¢¥ó¥È¤òºîÀ®¤·¤¿¤¤¾ì¹ç¤Ï´û¸¤Î¥¯¥é¥¹¥é¥¤¥Ö¥é¥ê¤ò»ÈÍѤ¹¤ë¤Î¤¬¤Ï¤ë¤«¤ËÊØÍø¤Ç¤¹¡£

¼«Ê¬¤¬Ä´ºº¤·¤¿¥¯¥é¥¹¥é¥¤¥Ö¥é¥ê¤Ï°Ê²¼¤Î 2 ¤Ä¤Ç¤¹¡£

Netscape Directory SDK Netscape ¤¬ Ä󶡤·¤Æ¤¤¤ë¥¯¥é¥¹¥é¥¤¥Ö¥é¥ê¤Ç¤¹¡£¤Á¤Ê¤ß¤Ë C ¸À¸ìÈǤ⸺ߤ·¤Þ¤¹¡£ mozilla.org ¤Î Directory SDK ¤Î¥Ú¡¼¥¸ ¤«¤é¥ª¡¼¥×¥ó¥½¡¼¥¹¤È¤·¤Æ´ó£¤µ¤ì¤¿¥½¡¼¥¹¥³¡¼¥É¤ò¥À¥¦¥ó¥í¡¼¥É¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤³¤ì¤é¤Î ¥½¡¼¥¹¥³¡¼¥É¤Ï NPL ( Netscape Public Licence ) ¤Î²¼¤ÇÄ󶡤µ¤ì¤Æ¤¤¤Þ¤¹¡£ NPL ¤Ï¥À¥¦¥ó¥í¡¼¥É¥Ú¡¼¥¸¤«¤é¤¿¤É¤ì¤Þ¤¹¡£
¤Ê¤ª¡¢iplanet ¤Î ³«È¯¼ÔÍÑ¥À¥¦¥ó¥í¡¼¥É¥µ¥¤¥È ¤«¤é¥Ð¥¤¥Ê¥êÈǤò¥À¥¦¥ó¥í¡¼¥É¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¤¬¡¢¤³¤Á¤é¤Î¥é¥¤¥»¥ó¥¹¤Ë¤Ä¤¤¤Æ¤Ï Îɤ¯Ê¬¤«¤ê¤Þ¤»¤óm(__)m
JLDAP ( LDAP Class Libraries for Java ) Novell ¤¬¥ª¡¼¥×¥ó¥½¡¼¥¹¤È¤·¤Æ OpenLDAP ¤Ë´ó£¤·¤¿ ¥¯¥é¥¹¥é¥¤¥Ö¥é¥ê¤Ç¤¹¡£ The OpenLDAP Public Licence ¤Î²¼¤ÇÄ󶡤µ¤ì¤Æ¤¤¤Þ¤¹¡£

ËÜʸ½ñ¤Ç¤Ï¡¢JLDAP ¤ò»ÈÍѤ·¤Æ LDAP ¥¯¥é¥¤¥¢¥ó¥È¥×¥í¥°¥é¥à¤òºîÀ®¤·¤Þ¤¹¡£

¡û JLDAP ¤Î¥¤¥ó¥¹¥È¡¼¥ë

JLDAP ( LDAP Class Libraries for Java ) ¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Þ¤¹¡£°Ê²¼¤Î¤â¤Î¤¬¥¤¥ó¥¹¥È¡¼¥ë¤ËɬÍפǤ¹¡£

  • JLDAP
  • JDK 1.1.7 °Ê¾å
  • SSL Àܳ¤ò»ÈÍѤ¹¤ë¾ì¹ç¤Ï¡¢JSSE ( Java Secure Socket Extension )
  • Apache Ant ( Java ÍѤΥӥë¥É¥Ä¡¼¥ë¡¢ http://jakarta.apache.org/ant/ ¤«¤é¥À¥¦¥ó¥í¡¼¥É¤Ç¤­¤Þ¤¹ )

JLDAP ¤Ï CVS ¤ò»È¤Ã¤Æ¥À¥¦¥ó¥í¡¼¥É¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¶ñÂÎŪ¤ÊÊýË¡¤Ï OpenLDAP ¤Î¥µ¥¤¥È¤Ëµ­½Ò¤µ¤ì¤Æ¤¤¤Þ¤¹¤¬¡¢´Êñ¤Ë¤Þ¤È¤á¤ë¤È°Ê²¼¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£

  1. CVSROOT ¤ò :pserver:anonymous@cvs.OpenLDAP.org:/repo/OpenLDAP ¤ËÀßÄꤹ¤ë
  2. °Ê²¼¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë
    % cvs login
    Password: (¥Ñ¥¹¥ï¡¼¥É¤Ï OpenLDAP)
    % cvs -z3 checkout -P -rTAG jldap
    % cvs logout
    
    
    ¤¿¤À¤·¡¢¢¬¤Î TAG ¤ÎÉôʬ¤Ï 2002/3/28 ¸½ºß NOVELL_INITIAL_CONTRIB ¤â¤·¤¯¤Ï NOVELL_REFRESH_CONTRIB ¤Î¤ß»ØÄê¤Ç¤­¤Þ¤¹¡£NOVELL_REFRESH_CONTRIB ¤ÎÊý¤¬¿·¤·¤¤¤Ç¤¹¡£ºÇ¿·ÈǤΥ¿¥°¤Ï HEAD ¤Ç¤¹¤¬¡¢HEAD ¥Ö¥é¥ó¥Á¤ò¼èÆÀ¤·¤¿¤¤¾ì¹ç¤Ï -r ¥ª¥×¥·¥ç¥ó¼«ÂΤò»ØÄꤷ¤Ê¤¤¤Ç²¼¤µ¤¤¡£

ºÇ¤â´Êñ¤Ê¥Ó¥ë¥ÉÊýË¡¤Ï¡¢´Ä¶­ÊÑ¿ô ANT_HOME ¤Ë Apache Ant ¤Î¥È¥Ã¥×¥Ç¥£¥ì¥¯¥È¥ê¤òÀßÄê¡¢´Ä¶­ÊÑ¿ô PATH ¤Ë $ANT_HOME/bin ( Win32 ´Ä¶­¤Ç¤Ï %ANT_HOME\bin )¤òÄɲᢴĶ­ÊÑ¿ô JAVA_HOME ¤Ë JDK ¤Î¥È¥Ã¥×¥Ç¥£¥ì¥¯¥È¥ê¤òÀßÄꤷ¤¿¾å¤Ç¡¢JLDAP ¤Î¥È¥Ã¥×¥Ç¥£¥ì¥¯¥È¥ê¤Ë°Ü¤Ã¤Æ ant all ¤Ç¥Ó¥ë¥É¼Â¹Ô¤Ç¤¹¡£

BUILD SUCCESSFUL ¤È½Ð¤¿¤é¥Ó¥ë¥ÉÀ®¸ù¤Ç¤¹¡£pkg ¥Ç¥£¥ì¥¯¥È¥êÇÛ²¼¤Ë API ¥É¥­¥å¥á¥ó¥È¤ª¤è¤Ó¥¯¥é¥¹¥é¥¤¥Ö¥é¥ê¤ò¸Ç¤á¤¿ jar ¥Õ¥¡¥¤¥ë¤¬ºîÀ®¤µ¤ì¤Æ¤¤¤Þ¤¹¡£

doc ¤È ietfdoc ¤È¤¤¤¦ 2 ¤Ä¤Î¥Ç¥£¥ì¥¯¥È¥ê¤¬ pkg ÇÛ²¼¤Ë¤¢¤ê¤Þ¤¹¤¬¡¢doc ¤ÎÊý¤Ï Novell Æȼ«¤Î API »ÅÍͤˤĤ¤¤Æµ­½Ò¤·¤¿¤â¤Î¤Ç¤¢¤ê¡¢ietfdoc ¤ÎÊý¤Ï IETF ¤Î¥É¥é¥Õ¥È¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤ë Java LDAP API ¤Î»ÅÍͤˤĤ¤¤Æµ­½Ò¤·¤¿¤â¤Î¤Ç¤¹¡£lib ÇÛ²¼¤Î ldap.jar ¤ò¥¯¥é¥¹¥Ñ¥¹¤ËÀßÄꤹ¤ì¤Ð¡¢¤¤¤º¤ì¤Îµ¡Ç½¤â»ÈÍѲÄǽ¤Ë¤Ê¤ê¤Þ¤¹¤¬¡¢ËÜʸ½ñ¤Ç¤Ï¸ß´¹À­¤Ëα°Õ¤¹¤Ù¤¯ IETF ¤Î¥É¥é¥Õ¥È¤Ë´ð¤Å¤¤¤¿¥×¥í¥°¥é¥à¤òºîÀ®¤·¤Æ¤¤¤­¤Þ¤¹¡£

¹¹¤Ë¾Ü¤·¤¤¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢JLDAP ¤Î¥È¥Ã¥×¥Ç¥£¥ì¥¯¥È¥êÆâ¤Ë¤¢¤ë README ¤ò»²¾È¤·¤Æ²¼¤µ¤¤¡£