|
¡û ¤Ï¤¸¤á¤Ë
LDAP ¥¯¥é¥¤¥¢¥ó¥ÈºîÀ®¤Î¼ê»Ï¤á¤È¤·¤Æ¡¢LDAP ¥µ¡¼¥Ð¤ØÀܳ¤¹¤ë¤³¤È¤«¤é»Ï¤á¤Þ¤·¤ç¤¦! Á´¤Æ¤Î LDAP ¥¯¥é¥¤¥¢¥ó¥È¥×¥í¥°¥é¥ß¥ó¥°¤Î´ðËÜ»ö¹à¤Ç¤¹¤Î¤Ç¡¢¤·¤Ã¤«¤êÍý²ò¤·¤Æ¤ª¤¤¤Æ²¼¤µ¤¤¡£
¡û ¥µ¥ó¥×¥ë¥×¥í¥°¥é¥à
LDAP ¥µ¡¼¥Ð¤ËÀܳ¤·¡¢ÀÚÃǤ¹¤ë¤À¤±¤Îñ½ã¤Ê¥µ¥ó¥×¥ë¥×¥í¥°¥é¥à LDAPConnect.java ¤Ç¤¹¡£¤³¤Î¥¯¥é¥¹¤¬¹Ô¤¦½èÍý¤Ï
- »ØÄꤵ¤ì¤¿ LDAP ¥µ¡¼¥Ð¤ËÀܳ¤¹¤ë
- »ØÄꤵ¤ì¤¿¥æ¡¼¥¶¤ª¤è¤Ó¥Ñ¥¹¥ï¡¼¥É¤Çǧ¾Ú¤ò¹Ô¤¦
- ǧ¾Ú¤µ¤ì¤¿¤«¤É¤¦¤«³Îǧ¤¹¤ë
- LDAP ¥µ¡¼¥Ð¤È¤ÎÀܳ¤òÀÚÃǤ¹¤ë
¤Î 4 ¤Ä¤Î½èÍý¤Ç¤¹¡£JLDAP ¤Î¥¯¥é¥¹¥é¥¤¥Ö¥é¥ê¤Ë¥¯¥é¥¹¥Ñ¥¹¤¬Ä̤äƤ¤¤ë¤³¤È¤òÁ°Äé¤È¤·¤Æ¡¢javac LDAPConnect.java ¤Ç¥³¥ó¥Ñ¥¤¥ë¤·¤Æ²¼¤µ¤¤¡£¥³¥ó¥Ñ¥¤¥ë¤¬½ªÎ»¤·¤¿¤é¡¢
java LDAPConnect [LDAP¥µ¡¼¥Ð̾/IP¥¢¥É¥ì¥¹] [bind¥æ¡¼¥¶¤ÎDN] [bind¥æ¡¼¥¶¤Î¥Ñ¥¹¥ï¡¼¥É]
¤Ç¼Â¹Ô¤Ç¤¹¡£ÆäËÎã³°¤¬È¯À¸¤»¤º¡¢Àµ¾ï¤Ëǧ¾Ú¤µ¤ì¤ì¤Ð
Connected to [LDAP¥µ¡¼¥Ð̾/IP¥¢¥É¥ì¥¹] Authenticated Disconnected
¤ÎÍͤÊɽ¼¨¤¬ÆÀ¤é¤ì¤Þ¤¹¡£Îã³°¤¬È¯À¸¤·¤¿¤êǧ¾Ú¤µ¤ì¤Æ¤¤¤Ê¤«¤Ã¤¿¤ê¤¹¤ë¤Èɽ¼¨¤¬ÊѤï¤ê¤Þ¤¹¤¬¡¢¤½¤ÎÊդˤĤ¤¤Æ¤Ï°Ê¹ß¤Î¥µ¥ó¥×¥ë¥×¥í¥°¥é¥à¤ÎÀâÌÀ¤Ê¤É¤ÇÍý²ò¤·¤Æ¤¤¤Ã¤Æ²¼¤µ¤¤
¤Ê¤ª¡¢¤Ï¤¸¤á¤Ë ¤Î¥Ú¡¼¥¸¤«¤éÁ´¤Æ¤Î¥µ¥ó¥×¥ë¥×¥í¥°¥é¥à¤ò¸Ç¤á¤¿ tar ¥Ü¡¼¥ë¤ò¥À¥¦¥ó¥í¡¼¥É¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
--- LDAPConnect.java ---
1 import org.ietf.ldap.LDAPConnection; 2 import org.ietf.ldap.LDAPException; 3 4 5 /** 6 * »ØÄꤵ¤ì¤¿ LDAP ¥µ¡¼¥Ð¤ËÀܳ¤·¡¢Ç§¾Ú¾õÂÖ¤ò³Îǧ¤·¤¿¸åÀܳ¤òÀÚÃǤ¹¤ë¥¯¥é¥¹¡£ 7 * 8 * @version 19 May 2002 9 * @author Ryo Ichinose 10 */ 11 public class LDAPConnect 12 { 13 /** 14 * LDAP Protocol Version 3 15 */ 16 public static final int LDAP_V3 = 3; // LDAPv3 17 18 19 /** 20 * »ØÄꤵ¤ì¤¿ LDAP ¥µ¡¼¥Ð¤ËÀܳ¤·¡¢Ç§¾Ú¾õÂÖ¤ò³Îǧ¤·¤¿¸åÀÚÃǤ¹¤ë¡£ 21 * 22 * @param host ¥Û¥¹¥È̾¤â¤·¤¯¤Ï IP¥¢¥É¥ì¥¹ 23 * @param binddn bind ¥æ¡¼¥¶¤Î DN 24 * @param bindpw bind ¥æ¡¼¥¶¤Î¥Ñ¥¹¥ï¡¼¥É 25 */ 26 public void connect( String host, String binddn, String bindpw ) 27 { 28 LDAPConnection lc = new LDAPConnection(); 29 30 try { 31 // LDAP ¥µ¡¼¥Ð¤ËÀܳ¤¹¤ë¡£¥Ý¡¼¥È¤Ï¥Ç¥Õ¥©¥ë¥È(389ÈÖ)¤ò»È¤¦¡£ 32 lc.connect( host, LDAPConnection.DEFAULT_PORT ); 33 System.out.println( "Connected to " + host ); 34 35 36 // »ØÄꤵ¤ì¤¿ DN ¤ª¤è¤Ó¥Ñ¥¹¥ï¡¼¥É¤Ç¥Ð¥¤¥ó¥É(ǧ¾Ú)¤¹¤ë¡£ 37 // ¤³¤ì¤ò¼Â¹Ô¤·¤Ê¤¤¾ì¹ç¡¢anonymous ¾õÂÖ¤ÇÁàºî¤¹¤ë¤³¤È¤Ë¤Ê¤ë¡£ 38 lc.bind( LDAPConnect.LDAP_V3, binddn, bindpw ); 39 40 41 // LDAP ¥µ¡¼¥Ð¤Ëǧ¾Ú¤µ¤ì¤¿¤«¤É¤¦¤«¤ò³Îǧ¤¹¤ë¡£ 42 // 43 // lc.bind() ¤Ë´Ö°ã¤Ã¤¿¥Ñ¥¹¥ï¡¼¥É¤ò»ØÄꤷ¤¿¾ì¹ç¡¢LDAPException 44 // ¤¬ throw ¤µ¤ì¤ë¤¬¡¢¤½¤Î¾¤ÎÍýͳ(´ü¸ÂÀÚ¤ì¤Ê¤É)¤Ë¤è¤Ã¤Æǧ¾Ú 45 // ¤µ¤ì¤Æ¤¤¤Ê¤¤²ÄǽÀ¤â¤¢¤ë¤¿¤á¡¢isBound() ¥á¥½¥Ã¥É¤Ç³Îǧ¤¹¤ë¡£ 46 47 if ( lc.isBound() ) { 48 System.out.println( "Authenticated" ); 49 } 50 else { 51 System.out.println( "Not authenticated" ); 52 } 53 54 // Àܳ¤òÀÚÃǤ¹¤ë¡£ 55 lc.disconnect(); 56 System.out.println( "Disconnected" ); 57 } 58 catch( LDAPException e ) { 59 System.out.println( "LDAPException occured : " + 60 e.toString() ); 61 } 62 } 63 64 65 /** 66 * ¥¨¥ó¥È¥ê¥Ý¥¤¥ó¥È 67 * 68 * @param args 69 * <ul> 70 * <li>args[0] --- ¥Û¥¹¥È̾¤â¤·¤¯¤Ï IP ¥¢¥É¥ì¥¹ 71 * <li>args[1] --- bind ¥æ¡¼¥¶¤Î DN 72 * <li>args[2] --- bind ¥æ¡¼¥¶¤Î¥Ñ¥¹¥ï¡¼¥É 73 * </ul> 74 */ 75 public static void main( String[] args ) 76 { 77 LDAPConnect obj = new LDAPConnect(); 78 obj.connect( args[0], args[1], args[2] ); 79 } 80 }
¡û ¥µ¥ó¥×¥ë¥×¥í¥°¥é¥à¤ÎÀâÌÀ
¤Ç¤Ï¡¢¥µ¥ó¥×¥ë¥×¥í¥°¥é¥à¤Ë¤Ä¤¤¤ÆÀâÌÀ¤·¤Æ¤¤¤¤Þ¤¹¡£
- 1 ¡Á 2 ¹ÔÌÜ
»ÈÍѤ¹¤ë JLDAP ¤Î¥¯¥é¥¹¥é¥¤¥Ö¥é¥ê¤Î¥Ñ¥Ã¥±¡¼¥¸»ØÄê¤ò¹Ô¤Ã¤Æ¤¤¤Þ¤¹¡£org.ietf.ldap ¥Ñ¥Ã¥±¡¼¥¸¤Ï¡¢IETF ¤Î¥É¥é¥Õ¥È¤Çµ½Ò¤µ¤ì¤Æ¤¤¤ë LDAP ÍÑ Java API ¤òǼ¤á¤Æ¤¢¤ë¥Ñ¥Ã¥±¡¼¥¸ ¤Ç¤¹¡£JLDAP ¤Ç¤Ï¡¢IETF ¤Î¥É¥é¥Õ¥È¤Ë½àµò¤·¤¿¥¯¥é¥¹¥é¥¤¥Ö¥é¥ê¤Î¾¤Ë Novell Æȼ«¤Î¥¯¥é¥¹ ¥é¥¤¥Ö¥é¥ê¤ò»ÈÍѤ¹¤ë¤³¤È¤¬ÅöÁ³¤Ç¤¤Þ¤¹¡£¤¬¡¢ËÜʸ½ñ( ¤ª¤è¤Ó°Ê¹ß¤Îʸ½ñ )¤Ë¤ª¤¤¤Æ¤Ï´ðËÜŪ¤Ë org.ietf.ldap ¥Ñ¥Ã¥±¡¼¥¸Æâ¤Î¥¯¥é¥¹¤Î¤ß¤ò»ÈÍѤ·¤Þ¤¹¡£¤³¤ì¤Ë¤è¤Ã¤Æ¡¢Â¾¤Î Directory SDK ¤È¤Î¸ß´¹À¤òÊݤĤ³¤È¤ò°Õ¼±¤·¤Æ¤¤¤Þ¤¹(¼ÂºÝ¤Ë¤Ï¥Ñ¥Ã¥±¡¼¥¸Ì¾¤Ï½¤Àµ¤¹¤ëɬÍפ¬¤¢¤Ã¤¿¤ê¤·¤Þ¤¹¤¬)¡£
LDAPConnect ¥¯¥é¥¹¤Ç¤Ï¡¢LDAPConnection ¤ª¤è¤Ó LDAPException ¤Î 2 ¤Ä¤Î¥¯¥é¥¹¤Î¤ß¤ò»ÈÍѤ·¤Þ¤¹¡£
- 19 ¡Á 62 ¹ÔÌÜ ( LDAPConnect#connect() )
LDAPConnect#connect() ¥á¥½¥Ã¥É¤Ç¡¢Á´¤Æ¤Î½èÍý¤ò¹Ô¤¤¤Þ¤¹¡£³Æ¥ö½ê¤Ë¤Ä¤¤¤Æ°Ê¹ß¤ÇÀâÌÀ¤·¤Þ¤¹¡£
- 28 ¹ÔÌÜ
LDAP API ¤ÎÁ´¤Æ¤ÎÁàºî¤Î´ðËܤȤʤë LDAPConnection ¥¯¥é¥¹¤Î¥¤¥ó¥¹¥¿¥ó¥¹¤òºîÀ®¤·¤Æ¤¤¤Þ¤¹¡£ LDAPConnection ¥¯¥é¥¹¤Ï¡¢LDAP ¥µ¡¼¥Ð¤Ø¤ÎÀܳ¡¢¥Ç¥£¥ì¥¯¥È¥ê¥¨¥ó¥È¥ê¤Î¸¡º÷¡¢Äɲᢺï½ü¡¢ ½¤Àµ¡¢¤½¤Î¾ÍÍ¡¹¤Ê¥á¥½¥Ã¥É¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£ºÇ¤âÉÑÈˤË( ¤È¤¤¤¦¤«É¬¤º )»ÈÍѤ¹¤ë¥¯¥é¥¹¤Ç ¤¹¡£
- 31 ¡Á 33 ¹ÔÌÜ
LDAPConnection#connect() ¥á¥½¥Ã¥É¤ò»È¤Ã¤Æ LDAP ¥µ¡¼¥Ð¤ËÀܳ¤·¤Æ¤¤¤Þ¤¹¡£²¿¤é¤«¤ÎÍýͳ¤Ç Àܳ¤Ë¼ºÇÔ¤·¤¿¾ì¹ç¡¢LDAPException ¤¬ throw ¤µ¤ì¤Þ¤¹¡£
public void LDAPConnection#connect( String host, int port ) throws LDAPException host : LDAP ¥µ¡¼¥Ð¤Î¥Û¥¹¥È̾¡¢¤â¤·¤¯¤Ï IP ¥¢¥É¥ì¥¹ port : LDAP ¥µ¡¼¥Ð¤ËÀܳ¤¹¤ëºÝ¤Î¥Ý¡¼¥ÈÈֹ档 LDAP ¥µ¡¼¥Ó¥¹¤Î¥Ç¥Õ¥©¥ë¥È¥Ý¡¼¥ÈÈÖ¹æ¤Ï 389 ÈÖ
LDAPException ¤¬¤É¤Î¤è¤¦¤ÊÍýͳ¤Ç throw ¤µ¤ì¤¿¤«¤òÃΤëÊýË¡¤Ë¤Ä¤¤¤Æ¤Ï¸åÄøÀâÌÀ¤·¤Þ¤¹¡£
- 36 ¡Á 38 ¹ÔÌÜ
¥Ç¥£¥ì¥¯¥È¥ê¤ËÂФ¹¤ëÁàºî¤òÆÃÄê¤Î¥æ¡¼¥¶¸¢¸Â¤Ç¼Â¹Ô¤¹¤ë¤¿¤á¤Ë¡¢bind() ( ǧ¾Ú ) ¤·¤Þ¤¹¡£ bind() ¤·¤Ê¤¤¾ì¹ç¡¢anonymous ¾õÂÖ¤ÇÁàºî¤ò¹Ô¤¦¤³¤È¤Ë¤Ê¤ë¤Î¤Ç¡¢LDAP ¥µ¡¼¥Ð¦¤Î¥¢¥¯¥»¥¹ À©¸æ¤Ë¤è¤Ã¤ÆÁàºî¤¬ÉÔ²Äǽ¤Ê¾ì¹ç¤¬¤¢¤ê¤Þ¤¹¡£É¬Íפʸ¢¸Â¤ò»ý¤Ã¤¿¥æ¡¼¥¶¤Ç bind() ¤·¤Ê¤¤¤È ¤¤¤±¤Þ¤»¤ó( anonymous ¤Ç¤è¤±¤ì¤Ð bind() ¤¹¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó )¡£
public void LDAPConnection#bind( int version, String dn, String passwd ) throws LDAPException version : bind ¤ò¼Â¹Ô¤¹¤ëºÝ¤Ë»ÈÍѤ¹¤ë LDAP ¤Î¥Ð¡¼¥¸¥ç¥ó¡£LDAPv2 ¤ò»È¤¦¾ì¹ç¤Ï 2¡¢ LDAPv3 ¤ò»È¤¦¾ì¹ç¤Ï 3 ¤ò»ØÄê dn : bind ¤¹¤ë¥æ¡¼¥¶¤Î DN passwd : bind ¤¹¤ë¥æ¡¼¥¶¤Î¥Ñ¥¹¥ï¡¼¥É
bind() ¤Ë»ØÄꤹ¤ë dn ¤ª¤è¤Ó passwd ¤¬Àµ¤·¤¯¤Ê¤¤¾ì¹ç¡¢LDAPException ¤¬ throw ¤µ¤ì¤Þ¤¹¡£
bind() ¥á¥½¥Ã¥É¤Ï¾å¤Î·Á¼°°Ê³°¤Î·Á¤Ç¤¤¤¯¤Ä¤«¥ª¡¼¥Ð¡¼¥í¡¼¥É¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤½¤ì¤¾¤ì¤Î¾Ü ºÙ¤Ë¤Ä¤¤¤Æ¤Ï JLDAP ¤Î API ¥É¥¥å¥á¥ó¥È¤ò»²¾È¤·¤Æ²¼¤µ¤¤¡£
- 41 ¡Á 52 ¹ÔÌÜ
bind() ¤ÇÎã³°¤¬È¯À¸¤·¤Ê¤«¤Ã¤¿¾ì¹ç¤Ç¤â¡¢¼ÂºÝ¤Ë¤Ïǧ¾Ú¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤¬¤¢¤êÆÀ¤Þ¤¹(¥æ¡¼¥¶ ¤Î¥í¥°¥¤¥ó´ü¸ÂÀÚ¤ì¤Ê¤É)¡£Àµ¤·¤¯Ç§¾Ú¤µ¤ì¤Æ¤¤¤ë¤«¤É¤¦¤«³Îǧ¤¹¤ë¤Ë¤Ï¡¢ LDAPConnection#isBound() ¥á¥½¥Ã¥É¤ò»È¤¤¤Þ¤¹¡£
public boolean LDAPConnection#isBound()
ǧ¾Ú¤µ¤ì¤Æ¤¤¤ì¤Ð true¡¢Ç§¾Ú¤µ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð false ¤òÊÖ¤·¤Þ¤¹¡£
- 54 ¡Á 56 ¹ÔÌÜ
LDAP ¥µ¡¼¥Ð¤È¤ÎÀܳ¤òÀÚÃǤ·¤Þ¤¹¡£
public void LDAPConnection#disconnect() throws LDAPException
disconnect() ¥á¥½¥Ã¥É¤Ï¾å¤Î·Á¼°°Ê³°¤Î·Á¤Ç¥ª¡¼¥Ð¡¼¥í¡¼¥É¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ï JLDAP ¤Î API ¥É¥¥å¥á¥ó¥È¤ò»²¾È¤·¤Æ²¼¤µ¤¤¡£
- 58 ¡Á 61 ¹ÔÌÜ
¤³¤ì¤Þ¤Ç¤Î½èÍý¤Ç throw ¤µ¤ì¤ë²ÄǽÀ¤Î¤¢¤ë LDAPException ¤ò catch ¤·¤Æ¤¤¤Þ¤¹¡£¤³¤³¤Ç ¤Ï LDAPException#toString() ¤ÇÎã³°¤ÎÆâÍƤòɽ¼¨¤µ¤»¤Æ¤¤¤ë¤À¤±¤Ç¤¹¤¬¡¢Îã³°¤ÎÆâÍƤ˱þ¤¸ ¤Æ½èÍý¤òÊѤ¨¤¿¤¤¾ì¹ç¤â¤¢¤ë¤È»×¤¤¤Þ¤¹¡£
JLDAP ¤Ç¤Ï¡¢LDAP ¤Ë´Ø¤¹¤ëÁ´¤Æ¤ÎÎã³°¤Ï LDAPException ¤È¤·¤Æ throw ¤µ¤ì¤Þ¤¹¤¬¡¢Îã³°¤Î ÆâÍƤ˱þ¤¸¤Æ¥¨¥é¡¼¥³¡¼¥É¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Þ¤¹¡£¥¨¥é¡¼¥³¡¼¥É¤ò¼è¤ê¤À¤¹¤Ë¤Ï LDAPException#getLDAPResultCode() ¥á¥½¥Ã¥É¤ò»ÈÍѤ·¤Þ¤¹¡£
public int LDAPException#getLDAPResultCode()
¥¨¥é¡¼¥³¡¼¥É¤ÎÃͤ¬¤É¤Î¤è¤¦¤ÊÆâÍƤò¼¨¤·¤Æ¤¤¤ë¤Î¤«¤Ë¤Ä¤¤¤Æ¤Ï¡¢JLDAP API ¥É¥¥å¥á¥ó¥È¤Ë µ½Ò¤µ¤ì¤Æ¤¤¤ë¤Î¤Ç¡¢¾ÜºÙ¤Ï¤½¤Á¤é¤ò»²¾È¤·¤Æ²¼¤µ¤¤¡£¤Ê¤ª¡¢LDAPConnect ¥¯¥é¥¹¤Ë¤ª¤±¤ë½è Íý¤ÇȯÀ¸¤¹¤ë²ÄǽÀ¤Î¤¢¤ëÎã³°ÆâÍƤˤĤ¤¤Æ¡¢¼«Ê¬¤¬³Îǧ¤Ç¤¤¿ÈϰϤǰʲ¼¤Ë¤Þ¤È¤á¤Æ¤ª¤¤Þ ¤¹¡£¤³¤ì¤ÇÁ´¤Æ¤È¤¤¤¦°ÕÌ£¤Ç¤Ï¤¢¤ê¤Þ¤»¤óm(__)m¡£
¤Ê¤ª¡¢¤³¤³¤ÇȯÀ¸¤¹¤ëÎã³°¤Ï°Ê¹ß¤ÎÁ´¤Æ¤Î¥µ¥ó¥×¥ë¥×¥í¥°¥é¥à¤ÇƱ¤¸¾ò·ï¤ÇȯÀ¸¤·¤Þ¤¹ (Ʊ¤¸ ¤³¤È¤ò¤ä¤Ã¤Æ¤ë¤«¤é)¡£
ÈÖ¹æ ¥¨¥é¡¼¥³¡¼¥É¤ÎÄê¿ô̾(LDAPException.XXX ¤Î·Á¤Ç»²¾È²Ä) ÆâÍÆ 2 PROTOCOL_ERROR LDAP ¥µ¡¼¥Ð¤¬¥¯¥é¥¤¥¢¥ó¥È¤«¤éÉÔÀµ¤ÊÍ×µá¤ò¼õ¤±¼è¤Ã¤¿¡£LDAPConnect.java ¤Î¾ì¹ç¡¢bind() ¤ËÉÔÀµ¤Ê LDAP ¥Ð¡¼¥¸¥ç¥ó¤ò»ØÄꤹ¤ë¤ÈȯÀ¸¤¹¤ë¡£ 48 INAPPROPRIATE_AUTHENTICATION LDAP ¥¯¥é¥¤¥¢¥ó¥È¤¬Àµ¤·¤¯½èÍý¤Ç¤¤Ê¤¤Ç§¾ÚÊýË¡¤Ç bind() ¤ò»î¤ß¤Æ¤¤¤ë¡£¤È API ¥É¥¥å¥á¥ó¥È¤Ë½ñ¤«¤ì¤Æ¤¤¤ë¤¬¡¢LDAPConnect ¥¯¥é¥¹¤Î¾ì¹ç¡¢LDAP ¥µ¡¼¥Ð¤Ë¤ª¤¤¤Æ userPassword °À¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤Ê¤¤¥¨¥ó¥È¥ê¤ò¥æ¡¼¥¶¤È¤·¤Æ bind() ¤¹¤ëºÝ¤Ë ¥Ñ¥¹¥ï¡¼¥É¤ò»ØÄꤹ¤ë¤ÈÀ¸¤¸¤ë¡£ 49 INVALID_CREDENTIALS bind() ¤Ë¤è¤ëǧ¾Ú»þ¤Ë¸í¤Ã¤¿¾ðÊó¤ò»ØÄꤷ¤Æ¤¤¤ë¡£ÉÔÀµ¤Ê bind ¥æ¡¼¥¶¡¢¤â¤·¤¯¤Ï bind ¥Ñ¥¹¥ï¡¼¥É¤ò»ØÄꤷ¤¿ºÝ¤ËÀ¸¤¸¤ë²ÄǽÀ¡£ 91 CONNECT_ERROR Àܳ¼ºÇÔ¡£¤¢¤ë¤¤¤Ï³ÎΩ¤·¤¿¤Ï¤º¤ÎÀܳ¤¬ÀÚÃǤµ¤ì¤Æ¤¤¤ë¡£LDAPConnection#connect() ¤Ç¥µ¡¼¥Ð»ØÄꤢ¤ë¤¤¤Ï¥Ý¡¼¥È»ØÄê¤ò¸í¤Ã¤¿¾ì¹ç¤ËÀ¸¤¸¤ë²ÄǽÀ¡£
°Ê¾å¤Ç LDAPConnect.java ¤Ë¤Ä¤¤¤Æ¤ÎÀâÌÀ¤Ï½ª¤ï¤ê¤Ç¤¹¡£¼¡¤Ï¡¢¥Ç¥£¥ì¥¯¥È¥ê¥¨¥ó¥È¥ê¤ÎÅÐÏ¿/ºï½ü¤ÎÊýË¡¤ò¾Ò²ð¤·¤Þ¤¹¡£