èæ¯
å¼ç¤¾ã®ä»¥ä¸ã®ããã°è¨äºã§ã¯ãRadius ãµã¼ãã¼ãä½æã㦠WorkSpaces ã®å¤è¦ç´ èªè¨¼ãå®è£ ããæ¹æ³ãç´¹ä»ãã¦ãã¾ãã
ãã®è¨äºã§ã¯ãFREERadius
㨠google-authenticator
ã®ããã±ã¼ã¸ã使ã£ã¦ Radius ãµã¼ãã¼ãä½æãã¦ãã¾ãã
ããã¦ããã®ãµã¼ãã¼ä¸ã§google-authenticator
ã使ã£ã¦ã¯ã³ã¿ã¤ã ãã¹ã¯ã¼ãï¼OTPï¼çºè¡ç¨ã® QR ã³ã¼ãã表示ããæ¹æ³ãç´¹ä»ãã¦ãã¾ãã
ãã®å¾ã2次å ã³ã¼ãã表示ããURLã¨2次å ã³ã¼ãã表示ããã¾ãã
Warning: pasting the following URL into your browser exposes the OTP secret to Google:
https://www.google.com/chart?chs=200x200&chld=M|0&cht=qr&chl=otpauth://totp/[email protected]%3Fsecret%xxxxxx%26issuer%3Dradius.leaf.local
ãããã2024å¹´ 4æé ããããã®URLã«ã¢ã¯ã»ã¹ããã¨404ã¨ã©ã¼ãè¿ãããããã«ãªããQRã³ã¼ãã表示ã§ããªããªãã¾ããã
ãã®QRã³ã¼ãã表示ããURLã¯ãGoogleã®/chart
APIã使ç¨ãã¦ãã¾ãããããã®APIãå»æ¢ã«ãªã£ãããã使ããªããªã£ãããã§ãã
åèãªã³ã¯ï¼github.com
解決æ¹æ³
ä¸è¨ã®åèãªã³ã¯ã®ã³ãããã¡ãã»ã¼ã¸ã«ããã¨ã以ä¸ã®æ¹æ³ã§è§£æ±ºã§ãã¾ãã
- libqrencodeãã¤ã³ã¹ãã¼ã«ãã¦ããã¼ã«ã«ã§QRã³ã¼ããçæãã端æ«ã«è¡¨ç¤ºããã
- 表示ãããã·ã¼ã¯ã¬ãããæåã§å ¥åããã
qrencode ã¨ããã©ã¤ãã©ãª
qrencode
ã¨ããã©ã¤ãã©ãªãã¤ã³ã¹ãã¼ã«ãããã¨ã§ãQRã³ã¼ããã·ã§ã«ç°å¢ã§è¡¨ç¤ºã§ããããã§ããã¤ã³ã¹ãã¼ã«ã¯ä»¥ä¸ã®ã³ãã³ãã§è¡ãã¾ãï¼
sudo yum install qrencode
ã¤ã³ã¹ãã¼ã«ä»¥éã« QRã³ã¼ããçºè¡ããã³ãã³ããå®è¡ããã¨ãQRã³ã¼ããã¿ã¼ããã«ä¸ã«è¡¨ç¤ºããã¾ãã
sudo -u ã¦ã¼ã¶ã¼å /usr/bin/google-authenticator
qrencode
ãã¤ã³ã¹ãã¼ã«ããã¨ã以éã¯google-authenticator
ãèªåçã«ããã使ãããã«ãªãã¾ãã
quickchart.io
ã¸ã®ç½®ãæãã¯ãã¾ããå§ãã§ããªã
Google ã® /chart
API ã®ä»£ããã«ã quickchart.io ã® /chart
API ã使ãæ¹æ³ãããã¾ãããããã¯ãã¾ããå§ãã§ãã¾ããã
çç±ã¯ãQRã³ã¼ããä½æããããã«ãã¯ã³ã¿ã¤ã ãã¹ã¯ã¼ãï¼OTPï¼ã®æ
å ±ãå«ãã¹ãã¼ã ï¼otpauth://ï¼ãå¤é¨ã®ãµã¤ãã«éä¿¡ãããã¨ã«ãªãããã§ããæ©å¯æ
å ±ãå¤é¨ã«æ¸¡ããªã¹ã¯ãããããã注æãå¿
è¦ã§ãã
åèã¨ãã¦ã以ä¸ã®GitHubã®Issueã«åæ§ã®ã³ã¡ã³ããããã¾ãï¼
GitHub Issue 244 2049835137
è¦ç´ããã¨ãæ©å¯ãã¼ã¿ã第ä¸è
ã®ãµã¤ãã«éä¿¡ããããªãå ´åãqrencode
ãã¤ã³ã¹ãã¼ã«ãã¦ãQRã³ã¼ãããã¼ã«ã«ã§çæããæ¹æ³ãæ¨å¥¨ããã¾ãã
ã¾ã¨ã
2024å¹´4æ以éãGoogleã®/chart
APIã®å»æ¢ã«ãããQRã³ã¼ãã®è¡¨ç¤ºãã§ããªããªãã¾ããã
ãã®åé¡ã«å¯¾ãã解決çã¨ãã¦ãlibqrencode
ãã¤ã³ã¹ãã¼ã«ãããã¼ã«ã«ã§QRã³ã¼ããçæããæ¹æ³ãæ¨å¥¨ãã¦ãã¾ãããã®æ¹æ³ã§ã¯ãQRã³ã¼ããå¤é¨ã«éä¿¡ãããã¨ãªããæ©å¯æ
å ±ãå®å
¨ã«æ±ããã¨ãã§ãã¾ãã
ã¾ããå¤é¨ãµã¼ãã¹ã§ããquickchart.io
ãå©ç¨ãããã¨ãèãããã¾ãããæ©å¯æ
å ±ã第ä¸è
ã®ãµã¤ãã«éä¿¡ãããªã¹ã¯ããããããæ
éãªå¤æãå¿
è¦ã§ããå®å
¨æ§ãéè¦ããå ´åã¯ããã¼ã«ã«ã§ã®QRã³ã¼ãçæããå§ããã¾ãã
ä½è«
ãã¬ã¼ãã³ã°ã®ããã«ã丹沢ã®å¤§åå°¾æ ¹ã1æ¥ã«4å¾å¾©ãã¦ã¿ã¾ããã Yamapã¨ããã¢ããªã使ãã¨ãå¹³åãã¼ã¹ã移åè·é¢ãç²å¾æ¨é«ãGPSæ å ±ãè¦ããã®ã§ãã¨ã¦ãé¢ç½ãã§ãã
å±±é ã¯å¤æ¯ãç´
èã綺éºã§ããã
å±±æ¬ å²ä¹ (è¨äºä¸è¦§)
ã«ã¹ã¿ãã¼ãµã¯ã»ã¹é¨ã®ã¤ã³ãã©ã¨ã³ã¸ãã¢ã
å±±ãèµ°ãã®ã趣å³ã§ãã