| authen :: htpasswd. Apache .htpAsswd ÆÄÀÏÀ» ÀÐ°í ¼öÁ¤ÇÒ ¼öÀÖ´Â Perl ÀÎÅÍÆäÀ̽º. |
Áö±Ý ´Ù¿î·Îµå |
authen :: htpasswd. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- David Kamholz
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~mramberg/Catalyst-Plugin-Authentication-Store-DBIC-0.09/lib/Catalyst/Plugin/Authentication/Store/DBIC/Backend.pm
authen :: htpasswd. ű×
authen :: htpasswd. ¼³¸í
Apache .htpAsswd ÆÄÀÏÀ» ÀÐ°í ¼öÁ¤ÇÏ´Â Perl ÀÎÅÍÆäÀ̽º. authen :: htpasswd´Â apache .htpAsswd ÆÄÀÏÀ» ÀÐ°í ¼öÁ¤ÇÏ´Â perl ÀÎÅÍÆäÀ̽ºÀÔ´Ï´Ù. Synopsis My $ pwfile = authen :: htpasswd-> new ( 'user.txt', {excrypt_hash => md5 '}); # »ç¿ëÀÚ¸¦ ÀÎÁõÇÕ´Ï´Ù (±âº»ÀûÀ¸·Î ¸ðµç Çؽà ¸Þ¼Òµå¸¦ üũÇÕ´Ï´Ù.). ($ PWFILE-> 'foo') {...} # ÆÄÀÏÀ» ¼öÁ¤ÇÕ´Ï´Ù (Áï½Ã ¾²±â) $ PWFILE-> update_user ( 'Bob ', $ Password, $ Á¤º¸); $ pwfile-> add_user ( 'jim', $ password); $ pwfile-> delete_user ( 'jim'); # »ç¿ëÀÚ °´Ã¼¸¦ ÆÄÀÏ¿¡ ¹ÀÎ »ç¿ëÀÚ °´Ã¼ = $ pwfile-> lookup_user ( 'bob'); if ($ user-> check_password ( 'Vroom', )) {...} # º¸¾È Çؽà $ USER-> ¾ÏÈ£ ( 'foo') ¸¸ »ç¿ëÇϽʽÿÀ. # $ user-> set (password => bar ', examble_info =>'editor) ÆÄÀÏÀ» ¾¹´Ï´Ù. # ÇÑ ¹ø¿¡ ÇÑ ¹ø ÀÌ»ó º¯°æÇϰųª ÆÄÀÏÀ» Á÷Á¢ °ü¸®ÇϽʽÿÀ $ user = authen :: htpasswd :: user-> new ( 'bill', {hashed_password => iq.iuwbuihlpe '}); ³» $ user = authen :: htpasswd :: user-> new ( 'bill', 'bar', 'staff', {encrypt_hash => 'crypt'}); PASSWD $ USER-> TO_LINE " ";ÀÌ ¸ðµâÀº Apache ½ºÅ¸ÀÏÀÇ .htpAsswd ÆÄÀÏ¿¡ Æí¸®ÇÏ°í °´Ã¼ ÁöÇâ ÀÎÅÍÆäÀ̽º¸¦ Á¦°øÇÕ´Ï´Ù. MD5, SHA1 ¹× CRYPT¸¦ ÅëÇØ ¾ÏÈ£È µÈ ¾ÏÈ£´Â ¹°·Ð ÀÏ¹Ý (ClearText) Passwordss.Anderame ¹× ¾ÏÈ£ ÈÄ¿¡ º¸Åë (Ŭ¸®¾î ÅؽºÆ®) ¾ÏÈ£¸¦ Áö¿øÇÕ´Ï´Ù. extra_info ¹è¿À» ÅëÇØ ¾×¼¼½º ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.
authen :: htpasswd. °ü·Ã ¼ÒÇÁÆ®¿þ¾î