apache2 :: authnetldap.Apache2 :: AuthNetLdapÀº Apache¿¡ ´ëÇÑ »ç¿ëÀÚ ÀÎÁõÀ» À§ÇØ Net :: LDAP ¸ðµâÀ» »ç¿ëÇÏ´Â mod_perl ¸ðµâÀÔ´Ï´Ù. | |
Áö±Ý ´Ù¿î·Îµå |
apache2 :: authnetldap. ¼øÀ§ ¹× ¿ä¾à
±¤°í
- ƯÇã:
- Perl Artistic License
- °¡°Ý:
- FREE
- °Ô½ÃÀÚ À̸§:
- Mark Wilcox
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~speeves/Apache2-AuthNetLDAP-0.01/AuthNetLDAP.pm
apache2 :: authnetldap. ű×
apache2 :: authnetldap. ¼³¸í
Apache2 :: AuthNetLDAP´Â Apache¿¡ ´ëÇÑ »ç¿ëÀÚ ÀÎÁõÀ» À§ÇØ Net :: LDAP ¸ðµâÀ» »ç¿ëÇÏ´Â mod_perl ¸ðµâÀÔ´Ï´Ù. Apache2 :: AuthNetNetLDAP´Â Apache.Synopsis AuthName "LDAP Test Auth"AuthType Basic #¿¡ ¹ÙÀεù ÇؾßÇÏ´Â °æ¿ì Authtype Basic "AuthType Basic (#perlsetvar binddn)À» °Ë»ö ÇÒ ¶§ ¹ÙÀεù ÇؾßÇÏ´Â °æ¿ì ´ÙÀ½ µÎ °¡Áö¸¦ ¼³Á¤ÇÏ´Â mod_perl ¸ðµâÀÔ´Ï´Ù. "uid = user1, ou = people, o = acme.com"#Optional #perlsetvar bindpwd "¾ÏÈ£"#Optional perlsetvar basedn "ou = people, o = acme.com"perlsetvar ldapserver ldap.acme.com perlsetvar ldapport 389 #perlsetvar uidattr uid perlsetvar uidattr mail #perlsetvar alternatepwattribute alternateattribute #perlsetvar searchscope base | ÇϳªÀÇ | SUB # ±âº»°ªÀº #perlsetvar ldapfilter "((cours = csa) (class = a))"#Optional # LDAP ¼¹ö¿ÍÀÇ Åë½ÅÀ» ¾ÏÈ£ÈÇÏ°í ³×Æ®¿öÅ©¸¦ ÅëÇØ ¸íÈ®ÇÑ ÅؽºÆ® ¾ÏÈ£¸¦ º¸³»Áö ¾ÊÀ¸·Á¸é USESTARTTLS ¿¹ | ¾Æ´Ï¿ä # ÀÎÁõÀÇ ´ëü ¹æ¹ýÀ» Çã¿ëÇÏ·Á´Â °æ¿ì PerlsetVar AllowAlternateAuth ¿¹ | No À¯È¿ÇÑ »ç¿ëÀÚ PerlauthenHandler Apache2 :: AuthNetLDAPTHis ¸ðµâÀº Net :: LDAP ¸ðµâÀ» »ç¿ëÇÏ¿© LDAP¸¦ ÅëÇØ »ç¿ëÀÚ¸¦ ÀÎÁõÇÕ´Ï´Ù. ÀÌ ¸ðµâÀº Graham BarrÀÇ "Pure"Perl LDAP API.It ¶ÇÇÑ Apache :: AuthPerlDap°ú µ¿ÀÏÇÑ ¸Å°³ º¯¼ö¸¦ »ç¿ëÇÏÁö¸¸ 4 °³ÀÇ Ãß°¡ ¸Å°³ º¯¼ö¸¦ Ãß°¡Çß½À´Ï´Ù. ¸Å°³ º¯¼ö´Â ´ÙÀ½°ú °°½À´Ï´Ù. Ãʱâ LDAP user.perlsetVar BindPwDused¿¡ Ãʱâ LDAP »ç¿ëÀÚ¸¦ ¼³Á¤ÇÏ´Â µ¥ ÀÖ½À´Ï´Ù. Ãʱâ LDAP password.perlsetvar basedn ÀÌ°ÍÀº LDAP Server.PerlsetVar¿¡¼ »ç¿ëÀÚ¸¦ ãÀ» ¶§ »ç¿ëµÇ´Â °Ë»ö ÀڷḦ ¼³Á¤ÇÕ´Ï´Ù. LDAP ¼¹öÀÇ È£½ºÆ® À̸§Àº »ç¿ëÇÏ·Á´Â LDAP ¼¹öÀÇ È£½ºÆ® À̸§ÀÔ´Ï´Ù. PerlsetVar uidattrthe user.perlsetvar alternatePwAttributeTest¸¦ Á¶È¸ÇÏ´Â µ¥ »ç¿ëµÇ´Â ¼Ó¼º $ Password¸¦ Å×½ºÆ® ÇÒ ´ëü ¼Ó¼ºÀÔ´Ï´Ù. ÀÌ·¸°ÔÇϸéÀÌ ¿É¼ÇÀÌ »ç¿ëµÇ´Â °æ¿ì userdn ¹× ¾ÏÈ£¸¦ LDAP ¼¹ö¿¡ ¹ÙÀεùÇÏ·Á°í ½ÃµµÇÏ´Â ´ë½Å ´Ù¸¥ ¼Ó¼ºÀ» Å×½ºÆ® ÇÒ ¼ö ÀÖ½À´Ï´Ù.ÀÌ ¿É¼ÇÀ» »ç¿ëÇϸé initial bind.perlsetvar allowAlternateAuthis AllowSternAteAuthis AllowBlernateAuthÀÇ AllowSalternAteAuth°¡ ¼³Á¤µÇ¾î¾ßÇÕ´Ï´Ù. ´ëü ÀÎÁõ ¹æ¹ý (±âº»ÀûÀ¸·Î LDAP µ¥ÀÌÅͺ£À̽º¿¡ ¸ðµç »ç¿ëÀÚ°¡¾ø´Â °æ¿ì ÀÎÁõ ¹æ¹ýÀ» È¥ÇÕ ÇÒ ¼ö ÀÖ½À´Ï´Ù). ÀÌ´Â Apache-AuthennTLM ¶Ç´Â Basic Authentication.PerlsetVar SearchScopeOptional°ú °°Àº ´Ù¸¥ ÀÎÁõ ÀÏ ¼öÀÖ´Â ´ÙÀ½ Çڵ鷯°¡ µÉ ¼öÀÖ´Â ´ÙÀ½ Çڵ鷯¸¦ È®ÀÎÇÏ°í È®ÀÎ ÇÏ¿©ÀÌ ÀÛ¾÷À» ¼öÇàÇÕ´Ï´Ù. Çϳª, Çϳª ¶Ç´Â ÇÏÀ§°¡ µÉ ¼ö ÀÖ½À´Ï´Ù. ±âº»°ªÀº ÇÏÀ§ÀÔ´Ï´Ù. LDAP SearchÀÇ ¹üÀ§¸¦ °áÁ¤ÇÕ´Ï´Ù. PerlsetVar LDAPFilterThis´Â RFC 2254¿¡¼ Á¤ÀÇ µÈ´ë·Î LDAP ÇÊÅÍÀÔ´Ï´Ù. ÀÌ°ÍÀº ¼±Åà »çÇ×ÀÔ´Ï´Ù. Á¦°øµÈ °æ¿ì UID¸¦ È®ÀÎÇÏ´Â ÇÊÅÍ¿Í ÇÔ²² È°¼ºÈµË´Ï´Ù. ¿¹¸¦ µé¾î,ÀÌ ¼¼Æ®°¡ÀÖ´Â °æ¿ì : PerlsetVar UIDAttr UIDPerlsetVar LDAPFilter "((COLSE = 41300) (CLASSCODE = Y)"(CLASSCODE = Y) "»ç¿ëÀÚ À̸§Àº »ç¿ëÀÚ À̸§"nicku "·Î ÀÎÁõÇÕ´Ï´Ù. ±×·¯¸é ´ÙÀ½ ÇÊÅÍ°¡ »ý¼ºµË´Ï´Ù. ´ÙÀ½°ú °°ÀÌ ÀÎÁõ ÇÒ Ç׸ñÀ» °Ë»öÇϽʽÿÀ. (((ÄÚ½º = 41300) (year = 3) (classCode = y)) (uid = nicku)) NickuÀÇ LDAP Ç׸ñÀÌ 41300ÀÇ ¼Ó¼º °úÁ¤À» °®´Â °æ¿ì¿¡¸¸ Nicku Access¸¦ Çã¿ëÇÕ´Ï´Ù. , ¼Ó¼ºÀÌ 3°ú °°°í Y.¿Í µ¿ÀÏÇÑ ¼Ó¼º Ŭ·¡½º Äڵ尡 ¿Ã¹Ù¸¥ °æ¿ì ¾ÏÈ£°¡ ¿Ã¹Ù¸¥ °æ¿ì. ÀÌ°ÍÀº ´ë±Ô¸ð µð·ºÅ丮, ¿¹¸¦ µé¾î, University.PerlsetVar UsestartTlSoptional¿¡¼ »ç¿ëÀÚ ±×·ì¿¡ ´ëÇÑ ¾×¼¼½º¸¦ Á¦ÇÑÇÏ´Â µ¥ À¯¿ë ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¿¹ ¶Ç´Â ¾Æ´Ï¿À ÀÏ ¼ö ÀÖ½À´Ï´Ù. YES ÀÎ °æ¿ì ³×Æ®¿öÅ©¸¦ ÅëÇØ ¾ÏÈ£¸¦ º¸³»±â Àü¿¡ LDAP ¼¹ö¿¡ ´ëÇÑ TLS ¾ÏÈ£È ¿¬°áÀ» ½ÃÀÛÇÏÁö ¾ÊÀ¸¸é ½ÇÆÐÇÕ´Ï´Ù. ¿É¼Ç ¸ðµâ IO :: Socket :: SSLÀÌ ¼³Ä¡µÇ¾î ÀÖ¾î¾ßÇÕ´Ï´Ù. ÀÌ°ÍÀº OpenSSL¿¡ ÀÇÁ¸ÇÏ´Â NET :: SSLEAY¿¡ µû¶ó ´Ù¸¨´Ï´Ù. ¹°·Ð LDAP ¼¹ö´Â ½ÃÀÛ TLS¸¦ Áö¿øÇؾßÇÕ´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.
apache2 :: authnetldap. °ü·Ã ¼ÒÇÁÆ®¿þ¾î