| apache2 :: authcookiedbi. Apache2 :: AuthCookiedBi´Â DBI µ¥ÀÌÅͺ£À̽º°¡ µÞ¹ÞħÇÏ´Â AuthCookie ¸ðµâÀÔ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
apache2 :: authcookiedbi. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Jacob Davies and Matisse Enzer
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~matisse/Apache2-AuthCookieDBI-2.03/AuthCookieDBI.pm
apache2 :: authcookiedbi. ű×
apache2 :: authcookiedbi. ¼³¸í
Apache2 :: AuthCookiedBi´Â DBI µ¥ÀÌÅͺ£À̽º°¡ µÞ¹ÞħÇÏ´Â AuthCookie ¸ðµâÀÔ´Ï´Ù. apache2 :: AuthCookiedBi´Â httpd.conf ¶Ç´Â .htaccess perlmodule apache2 :: AutomCookiiedBI PerlsetVar whatefath / perlsetvar whielleginscript / lloginscript / llogin.pl # ¼¹ö °£ÀÇ Æ¼ÄÏÀ» °øÀ¯Çϱâ À§ÇØ AuthCokie #ÀÇ AuthCookie ¸ðµâÀÔ´Ï´Ù. PerlsetVar WhatmentDomain .Domain.com # ÀÌ´Â PerlsetVARWALLDBI_DSN "dbi : mysql : database = test"perlsetvar whateverdbi_secretkey "489E5EAAD8B3208F9AD8792EF3208F9AD8792EF4AFCA73592AC87762CE835C"# ¼±Åà »çÇ×Àº ¼±Åà »çÇ×ÀÔ´Ï´Ù.ÀÌ ¸ðµâÀº °¨Á¤Àû ÀÎ ±âº»°ªÀ» ¼³Á¤ÇÕ´Ï´Ù. PerlSetVar WhatEverDBI_User "¾Æ¹«µµ"PerlSetVar WhatEverDBI_Password "ºñ¹Ð¹øÈ£"PerlSetVar WhatEverDBI_UsersTable "»ç¿ëÀÚ"PerlSetVar WhatEverDBI_UserField "»ç¿ëÀÚ"PerlSetVar WhatEverDBI_PasswordField "ºñ¹Ð¹øÈ£"PerlSetVarÀÌ WhatEverDBI_CryptType "¾øÀ½"PerlSetVar WhatEverDBI_GroupsTable "±×·ì"PerlSetVar WhatEverDBI_GroupField "GRP"PerlSetVar WhatEverDBI_GroupUserField "»ç¿ëÀÚ"PerlSetVar WhatEverDBI_EncryptionType "¾øÀ½" perlsetvar wheelldbi_sessionlifetime 00-24-00-00 # authcookiedbi·Î º¸È£µË´Ï´Ù. authType Apache2 :: AuthCookiedBI authname ¸ðµç perlauthenHandler Apache2 :: AuthCookiedBi-> ÀÎÁõ perlauthzHandler apache2 :: AuthCookiedBi-> ±ÇÇÑ ºÎ¿© À¯È¿ÇÑ »ç¿ëÀÚ #°¡ ÇÊ¿äÇϰųª »ç¿ëÀÚ°¡ ÇÊ¿äÇÒ ¼ö ÀÖ½À´Ï´Ù. »ç¿ëÀÚ ¾ß°ö # ¼±ÅÃÀûÀ¸·Î ±×·ìÀÌ ÇÊ¿äÇÒ ¼ö ÀÖ½À´Ï´Ù. ±×·ì ½Ã½ºÅÛ # ·Î±×ÀÎ À§Ä¡°¡ ÇÊ¿äÇÕ´Ï´Ù. authtype apache2 :: authCookiedBI authname at whateD setHandler Perl-script offache2 :: AuthCookiedBi-> ·Î±×ÀÎ ÀÌ ¸ðµâÀº Apache2 :: AuthCookie°¡ Á¦°øÇÏ´Â ±âº» ¸ÞÄ¿´ÏÁòÀ» »ç¿ëÇÏ¿© ƼÄÏ ¿ë DBI µ¥ÀÌÅͺ£À̽º°¡ÀÖ´Â ±âº» ¸ÞÄ¿´ÏÁòÀ» »ç¿ëÇÏ´Â ÀÎÁõ Çڵ鷯ÀÔ´Ï´Ù. - º¸È£ ¹æÁö. Á¦°øµÇ´Â µÎ °³ÀÇ ÅäÅ«, »ç¿ëÀÚ À̸§ ¹× ¾ÏÈ£°¡ÀÖ´Â µÎ °³ÀÇ ÅäÅ«À» ±â¹ÝÀ¸·ÎÇÕ´Ï´Ù. »ç¿ëÀÚ À̸§Àº ±âº» ÀÎÁõÀÌ »ç¿ë µÈ °Íó·³ ¿ø°Ý »ç¿ëÀÚ¸¦ ¼³Á¤ÇÏ´Â µ¥ »ç¿ëµË´Ï´Ù. À¯È¿ÇÑ ÄíÅ°°¡ Á¦°øµÇÁö ¾Ê°í º¸È£ µÈ À§Ä¡¿¡ ¾×¼¼½ºÇÏ·Á°í ½ÃµµÇÏ¸é ¸ðµâÀº HTML ·Î±×ÀÎ ¾ç½ÄÀ» ÀμâÇÕ´Ï´Ù (CGI ¶Ç´Â ´Ù¸¥ Çڵ鷯¿¡ ÀÇÇØ »ý¼º µÈ). ·Î±×ÀÎ ÇÒ ¶§ Ç×»ó µ¿ÀÏÇÑ Ç׸ñ ÆäÀÌÁö·Î »ç¶÷µéÀ» º¸³»·Á´Â °æ¿ì Á¤Àû ÆÄÀÏÀÌ µÇ½Ê½Ã¿À. ÀÌ ·Î±×ÀÎ ¾ç½Ä¿¡´Â »ç¿ëÀÚ À̸§°ú ¾ÏÈ£ Çʵ尡 ÀÖ½À´Ï´Ù. Á¦ÃâÇÒ ¶§ »ç¿ëÀÚ À̸§°ú ¾ÏÈ£´Â DBI µ¥ÀÌÅͺ£À̽º¿¡¼ ã½À´Ï´Ù. Á¦°øµÈ ¾ÏÈ£´Â µ¥ÀÌÅͺ£À̽ºÀÇ ¾ÏÈ£¿¡ ´ëÇØ È®Àε˴ϴÙ. µ¥ÀÌÅͺ£À̽ºÀÇ ¾ÏÈ£´Â ÀÏ¹Ý ÅؽºÆ® ¶Ç´Â ¾ÏÈ£ÀÇ crypt () ¶Ç´Â md5_hex () üũ¼¶ÀÌ µÉ ¼ö ÀÖ½À´Ï´Ù. ÀÌ°ÍÀÌ ¼º°øÇÏ¸é »ç¿ëÀÚ¿¡°Ô ƼÄÏÀÌ ¹ßÇàµË´Ï´Ù. ÀÌ Æ¼ÄÏ¿¡´Â »ç¿ëÀÚ À̸§, À̽´ ½Ã°£, ¸¸·á ½Ã°£ ¹× ¼¹öÀÇ MD5 üũ¼¶°ú ¼¹öÀÇ ºñ¹Ð Å°°¡ µé¾î ÀÖ½À´Ï´Ù. ÄíÅ°ÀÇ Å¬¶óÀ̾ðÆ®·Î µ¹¾Æ ¿À±â Àü¿¡ ¼±ÅÃÀûÀ¸·Î ¾ÏÈ£È µÉ ¼ö ÀÖ½À´Ï´Ù. ¾Ïȣȴ Ŭ¶óÀ̾ðÆ®°¡ ¸¸·á ½Ã°£À» º¸Áö ¸øÇÏ°ÔÇÏ´Â °æ¿ì¿¡¸¸ À¯¿ëÇÕ´Ï´Ù. Àü¼Û¿¡¼ ¾ÏÈ£¸¦ º¸È£ÇÏ·Á¸é SSL ¾ÏÈ£È µÈ ¿¬°áÀ» »ç¿ëÇϽʽÿÀ. ÀÌ Æ¼ÄÏÀº ºê¶ó¿ìÀú°¡ ÀúÀåµË´Ï´Ù. »ç¿ëÀÚ°¡ ¿ø·¡º¸±â¸¦ ¿ø·¡ ¿ø·¡ virew¸¦ ¿øÇÏ´Â À§Ä¡·Î ¸®µð·º¼Ç (¶Ç´Â ·Î±×ÀÎ "Á¤¸» Á¤Àû ÆÄÀÏÀ̾ú½À´Ï´Ù).ÀÌ ¾×¼¼½º¿Í ÀÌÈÄ·Î º¸È£ µÈ ¹®¼¿¡ ¾×¼¼½ºÇÏ·Á´Â ½Ãµµ´Â ºê¶ó¿ìÀú°¡ ƼÄÏÀ» ¼¹ö·Î ¹ÝȯÇÕ´Ï´Ù. ¼¹ö´Â ¾ÏÈ£È µÈ ƼÄÏÀÌ È°¼ºÈ µÈ °æ¿ì »ç¿ëÀÚ À̸§À» ÃßÃâÇÑ ´ÙÀ½ ¹®Á¦ ½Ã°£, ¸¸·á ½Ã°£ ¹× üũ¼¶À» ÃßÃâÇÕ´Ï´Ù. »õ üũ¼¶Àº »ç¿ëÀÚ À̸§, ¹®Á¦ ½Ã°£, ¸¸·á ½Ã°£ ¹× ºñ¹Ð Å°¸¦ ´Ù½Ã °è»êÇÕ´Ï´Ù. Ŭ¶óÀ̾ðÆ®°¡ Á¦°ø ÇÑ Ã¼Å©¼¶°ú µ¿ÀÇÇÏ¸é µ¥ÀÌÅÍ°¡ º¯Á¶µÇÁö ¾Ê¾Ò À½À» ¾Ë°í ÀÖ½À´Ï´Ù. ¿ì¸®´Â ´ÙÀ½À¸·Î ¸¸·á ½Ã°£ÀÌ Áö³ªÁö ¾Ê¾Ò´ÂÁö È®ÀÎÇϽʽÿÀ. ±×·¸Áö ¾ÊÀº °æ¿ì ƼÄÏÀº ¿©ÀüÈ÷ ÁÁÀ¸¹Ç·Î Username.Authorization °Ë»ç¸¦ ¼³Á¤ ÇÑ ´ÙÀ½ "À¯È¿ÇÑ »ç¿ëÀÚ°¡ ÇÊ¿äÇÕ´Ï´Ù"¶Ç´Â "»ç¿ëÀÚ Jacob ÇÊ¿ä"¼³Á¤ÀÌ Àü´ÞµÇ´ÂÁö È®ÀÎÇϽʽÿÀ. ¸¶Áö¸·À¸·Î "±×·ì foo"Áö½Ã¹®ÀÌ ÁÖ¾îÁö¸é ¸ðµâÀº ±×·ì µ¥ÀÌÅͺ£À̽º¿¡¼ »ç¿ëÀÚ À̸§À» Á¶È¸ÇÏ°í »ç¿ëÀÚ°¡ ³ª¿µÈ ±×·ì Áß ÇϳªÀÇ ±¸¼º¿øÀÎÁö È®ÀÎÇÕ´Ï´Ù. ÀÌ·¯ÇÑ ¸ðµç °Ë»ç°¡ Àü´ÞµÇ¸é ¿äûÇÑ ¹®¼°¡ Ç¥½ÃµË´Ï´Ù. ƼÄÏÀÌ ¸¸·áµÇ¾ú°Å³ª ±×·¸Áö ¾ÊÀ¸¸é À¯È¿ÇÏÁö ¾ÊÀº °æ¿ì ºê¶ó¿ìÀú¿¡¼ »èÁ¦µÇ°í ·Î±×ÀÎ ¾ç½ÄÀÌ ´Ù½Ã Ç¥½ÃµË´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.
apache2 :: authcookiedbi. °ü·Ã ¼ÒÇÁÆ®¿þ¾î