| Apache :: AuthCookiedBiradius. DBI µ¥ÀÌÅͺ£À̽º°¡ µÞ¹ÞħµÇ´Â AuthCookie ¸ðµâ°ú ¼±ÅÃÀû RADIUS ¼¹öÀÔ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
Apache :: AuthCookiedBiradius. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~barracode/
Apache :: AuthCookiedBiradius. ű×
Apache :: AuthCookiedBiradius. ¼³¸í
DBI µ¥ÀÌÅͺ£À̽º ¹× ¼±ÅÃÀû RADIUS ¼¹ö°¡ µÞ¹Þħ µÈ AuthCookie ¸ðµâ. Apache :: AuthCookiedBiraRadius´Â DBI µ¥ÀÌÅͺ£À̽º°¡ µÞ¹ÞħÇÏ´Â AuthCookie ¸ðµâ°ú httpd.conf ¶Ç´Â .htaccessÀÇ ¼±ÅÃÀû RADIUS Server.Synopsis ###################### ######################### # # PortalDBI_Groupstyple # # portaldbi_groupstable # # portaldbi_groupfield # # portaldbi_groupuserfield # # portaldbi_encryptiontype ¾øÀ½ | Crypt | MD5 # # PortalDBI_A on | on # # portaldbi_c on | # # portaldbi_c on | Off # # portaldbi_e on | on # # portaldbi_f on | Off # # portaldbi_gg on | off # # portaldbi_log_field # portaldbi_radius_host ¾øÀ½ # # portaldbi_radius_port 1645 # # portaldbi_radius_secret ¾øÀ½ # # portaldbi_radius_timeout 45 # authCookiedeBug 0,1,2,3 # # # ############################################################################################################################################################################################## ##################### Å°¼±Àº ù ¹ø° perlsetvar portaldbi_secretkeyfile /usr/local/apache/conf/site.key perlmoduleÀ̾î¾ßÇÕ´Ï´Ù Apache :: AuthCookiedBiradius PerlsetVar PortalPath / PerlsetVar PortalLogi. nScript /login.pl PerlSetVar AuthCookieDebug 1 PerlSetVar PortalDBI_DSN 'DBI : ´ëÇпø : È£½ºÆ® = ·ÎÄà ȣ½ºÆ® Æ÷Æ® = 5432 DBNAME =ÇÏ¿© MyDatabase'PerlSetVar PortalDBI_User "DATABASE_USER"PerlSetVar PortalDBI_Password "DATABASE_PASSWORD"PerlSetVar PortalDBI_UsersTable "»ç¿ëÀÚ"PerlSetVar PortalDBI_UserField "»ç¿ëÀÚ ID"PerlSetVar PortalDBI_PasswordField "ºñ¹Ð¹øÈ£" perlsetvar portaldbi_sessionlifetime 00-24-00-00 authType Apache :: AuthType Apache :: AuthCookiedBiradius authName Portal SetHandler Perl-Script PerlHandler Apache :: ·¹Áö½ºÆ®¸® ¿É¼Ç + execcgi # login.pl authType Apache : : AuthCookiedBiradius AuthName Portal SetHandler Perl-Script PerlHandler Apache :: ·Î±×ÀÎ ############################## ######### # ######################################### ###### # °³ÀÎ <µð·ºÅ丮 Ȩ httpd html private/> authtype apache :: AuthCookiedBiradius authname portal perlsetvar portaldbi_b on perlauthenhandler apache :: AuthCookiedBiradius-> atternal iCate PerlauthzHandler Apache :: AuthCookiedBiradius-> ±ÇÇÑ ºÎ¿©°¡ À¯È¿ÇÑ »ç¿ëÀÚ # Ķ¸°´õ <µð·ºÅ丮> Authtype Appache :: AuthCookiedBiradius AuthName Portal PerlsetVar PortalDBI_A on PerlauthenHandler Apache :: AuthCookiedBiradius-> Authicate PerlauthzHandler Apache ÀÎÁõ :: AuthCookiedBiRADIUS-> ±ÇÇÑ ºÎ¿© À¯È¿ÇÑ »ç¿ëÀÚ Çʿ伺ÀÌ ¸ðµâÀº ƼÄÏ ±â¹Ý º¸È£¸¦ À§ÇØ DBI µ¥ÀÌÅͺ£À̽º°¡ÀÖ´Â Apache :: AuthCookie°¡ Á¦°øÇÏ´Â ±âº» ¸ÞÄ¿´ÏÁòÀ» »ç¿ëÇÏ´Â ÀÎÁõ Çڵ鷯ÀÔ´Ï´Ù. Á¦°øµÇ´Â µÎ °³ÀÇ ÅäÅ«, »ç¿ëÀÚ À̸§ ¹× ¾ÏÈ£°¡ÀÖ´Â µÎ °³ÀÇ ÅäÅ«À» ±â¹ÝÀ¸·ÎÇÕ´Ï´Ù. »ç¿ëÀÚ À̸§Àº ±âº» ÀÎÁõÀÌ »ç¿ë µÈ °Íó·³ ¿ø°Ý »ç¿ëÀÚ¸¦ ¼³Á¤ÇÏ´Â µ¥ »ç¿ëµË´Ï´Ù. À¯È¿ÇÑ ÄíÅ°°¡ Á¦°øµÇÁö ¾Ê°í º¸È£ µÈ À§Ä¡¿¡ ¾×¼¼½ºÇÏ·Á°í ½ÃµµÇÏ¸é ¸ðµâÀº HTML ·Î±×ÀÎ ¾ç½ÄÀ» ÀμâÇÕ´Ï´Ù (CGI ¶Ç´Â ´Ù¸¥ Çڵ鷯¿¡ ÀÇÇØ »ý¼º µÈ). ·Î±×ÀÎ ÇÒ ¶§ Ç×»ó µ¿ÀÏÇÑ Ç׸ñ ÆäÀÌÁö·Î »ç¶÷µéÀ» º¸³»·Á´Â °æ¿ì Á¤Àû ÆÄÀÏÀÌ µÇ½Ê½Ã¿À. ÀÌ ·Î±×ÀÎ ¾ç½Ä¿¡´Â »ç¿ëÀÚ À̸§°ú ¾ÏÈ£ Çʵ尡 ÀÖ½À´Ï´Ù. Á¦ÃâÇÒ ¶§ »ç¿ëÀÚ À̸§°ú ¾ÏÈ£´Â DBI µ¥ÀÌÅͺ£À̽º¿¡¼ ã½À´Ï´Ù. Á¦°øµÈ ¾ÏÈ£´Â µ¥ÀÌÅͺ£À̽ºÀÇ ¾ÏÈ£¿¡ ´ëÇØ È®Àε˴ϴÙ. µ¥ÀÌÅͺ£À̽ºÀÇ ¾ÏÈ£´Â ÀÏ¹Ý ÅؽºÆ® ¶Ç´Â ¾ÏÈ£ÀÇ crypt () ¶Ç´Â md5_hex () üũ¼¶ÀÌ µÉ ¼ö ÀÖ½À´Ï´Ù. ÀÌ°ÍÀÌ ¼º°øÇÏ¸é »ç¿ëÀÚ¿¡°Ô ƼÄÏÀÌ ¹ßÇàµË´Ï´Ù. ÀÌ Æ¼ÄÏ¿¡´Â »ç¿ëÀÚ À̸§, À̽´ ½Ã°£, ¸¸·á ½Ã°£ ¹× ¼¹öÀÇ MD5 üũ¼¶°ú ¼¹öÀÇ ºñ¹Ð Å°°¡ µé¾î ÀÖ½À´Ï´Ù. ÄíÅ°ÀÇ Å¬¶óÀ̾ðÆ®·Î µ¹¾Æ ¿À±â Àü¿¡ ¼±ÅÃÀûÀ¸·Î ¾ÏÈ£È µÉ ¼ö ÀÖ½À´Ï´Ù. ¾Ïȣȴ Ŭ¶óÀ̾ðÆ®°¡ ¸¸·á ½Ã°£À» º¸Áö ¸øÇÏ°ÔÇÏ´Â °æ¿ì¿¡¸¸ À¯¿ëÇÕ´Ï´Ù. Àü¼Û¿¡¼ ¾ÏÈ£¸¦ º¸È£ÇÏ·Á¸é SSL ¾ÏÈ£È µÈ ¿¬°áÀ» »ç¿ëÇϽʽÿÀ. ÀÌ Æ¼ÄÏÀº ºê¶ó¿ìÀú°¡ ÀúÀåµË´Ï´Ù. »ç¿ëÀÚ°¡ ¿ø·¡º¸±â¸¦ ¿ø·¡ ¿ø·¡ virew¸¦ ¿øÇÏ´Â À§Ä¡·Î ¸®µð·º¼Ç (¶Ç´Â ·Î±×ÀÎ "Á¤¸» Á¤Àû ÆÄÀÏÀ̾ú½À´Ï´Ù).ÀÌ ¾×¼¼½º¿Í ÀÌÈÄ·Î º¸È£ µÈ ¹®¼¿¡ ¾×¼¼½ºÇÏ·Á´Â ½Ãµµ´Â ºê¶ó¿ìÀú°¡ ƼÄÏÀ» ¼¹ö·Î ¹ÝȯÇÕ´Ï´Ù. ¼¹ö´Â ¾ÏÈ£È µÈ ƼÄÏÀÌ È°¼ºÈ µÈ °æ¿ì »ç¿ëÀÚ À̸§À» ÃßÃâÇÑ ´ÙÀ½ ¹®Á¦ ½Ã°£, ¸¸·á ½Ã°£ ¹× üũ¼¶À» ÃßÃâÇÕ´Ï´Ù. »õ üũ¼¶Àº »ç¿ëÀÚ À̸§, ¹®Á¦ ½Ã°£, ¸¸·á ½Ã°£ ¹× ºñ¹Ð Å°¸¦ ´Ù½Ã °è»êÇÕ´Ï´Ù. Ŭ¶óÀ̾ðÆ®°¡ Á¦°ø ÇÑ Ã¼Å©¼¶°ú µ¿ÀÇÇÏ¸é µ¥ÀÌÅÍ°¡ º¯Á¶µÇÁö ¾Ê¾Ò À½À» ¾Ë°í ÀÖ½À´Ï´Ù. ¿ì¸®´Â ´ÙÀ½À¸·Î ¸¸·á ½Ã°£ÀÌ Áö³ªÁö ¾Ê¾Ò´ÂÁö È®ÀÎÇϽʽÿÀ. ±×·¸Áö ¾ÊÀº °æ¿ì ƼÄÏÀº ¿©ÀüÈ÷ ÁÁÀ¸¹Ç·Î Username.Authorization °Ë»ç¸¦ ¼³Á¤ ÇÑ ´ÙÀ½ "À¯È¿ÇÑ »ç¿ëÀÚ°¡ ÇÊ¿äÇÕ´Ï´Ù"¶Ç´Â "»ç¿ëÀÚ Jacob ÇÊ¿ä"¼³Á¤ÀÌ Àü´ÞµÇ´ÂÁö È®ÀÎÇϽʽÿÀ. ¸¶Áö¸·À¸·Î "±×·ì foo"Áö½Ã¹®ÀÌ ÁÖ¾îÁö¸é ¸ðµâÀº ±×·ì µ¥ÀÌÅͺ£À̽º¿¡¼ »ç¿ëÀÚ À̸§À» Á¶È¸ÇÏ°í »ç¿ëÀÚ°¡ ³ª¿µÈ ±×·ì Áß ÇϳªÀÇ ±¸¼º¿øÀÎÁö È®ÀÎÇÕ´Ï´Ù. ÀÌ·¯ÇÑ ¸ðµç °Ë»ç°¡ Àü´ÞµÇ¸é ¿äûÇÑ ¹®¼°¡ Ç¥½ÃµË´Ï´Ù. ƼÄÏÀÌ ¸¸·áµÇ¾ú°Å³ª ±×·¸Áö ¾ÊÀ¸¸é À¯È¿ÇÏÁö ¾ÊÀº °æ¿ì ºê¶ó¿ìÀú¿¡¼ »èÁ¦µÇ°í ·Î±×ÀÎ ¾ç½ÄÀÌ ´Ù½Ã Ç¥½ÃµË´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.
Apache :: AuthCookiedBiradius. °ü·Ã ¼ÒÇÁÆ®¿þ¾î