Shibboleth

wikipedia:シボレス

シボレス (英語: Shibboleth) は、インターネット2の「ミドルウェア構想」(Middleware Initiative)[1] の下で、連合アイデンティティによる認証・認可基盤のアーキテクチャとそのオープンソースによる実装を創出するプロジェクトである。記述にはセキュリティ・アサーション・マーク付け言語 (SAML) を用いる。連合アイデンティティによって、あるセキュリティ領域での利用者情報を、連合に属する他の組織へ提供することができる。これによって複数の領域にまたがるシングルサインオン (SSO) を実現でき、コンテンツの提供者ごとに利用者名やパスワードを保守する必要がなくなる。アイデンティティ・プロバイダ (IdP) が利用者の情報を提供し、サービス・プロバイダ (SP) がその情報を利用して保護されたコンテンツにアクセスできるようにする。


IISShibboleth SP をインストールする
https://blog.osstech.co.jp/posts/2021/05/shibbolethsp-iis/


Logout Discussion
https://docs.shib.ncsu.edu/docs/logout.html

Logout Discussion
Logging out from Shibboleth is complicated, because there are at least three levels of sessions you must consider for removal:

1. Your application session. For example: a Drupal site that checks shibboleth at login to create a session. Once the session is started, the login is not checked again. It is assumed that the user of that session is always the same.
2. Your Service Provider (SP) session. The SP on your server creates a session in memory, and tracks this session with a browser cookie.
3. The Identity Provider (IdP) session. When the user logs in to the IdP, they get a session cookie that lets the IdP remember that it has seen the user before. If the same user goes to login to another shibboleth SP, the IdP can reuse the login and pass the appropriate message to the new SP without another login.



opensaml::SecurityPolicyException: Message expired, was issued too long ago.
https://shibboleth.atlassian.net/wiki/spaces/SHIB2/pages/2577072495/NativeSPTroubleshootingCommonErrors

Barring an actual replay attack, your SP's clock isn't synchronized with the clock of the IdP that issued the message. All servers using SAML MUST maintain accurate time. Refer to your OS documentation for information on how to synchronize with a reliable time source.

shibbolethのエラーは、イベントビューアで確認できる?
アプリケーションとサービスログ>Shibboleth

mac で disk I/O を確認する

macにUSBで接続しているポータブルHDDの、読み書き速度が知りたかった。


iostatコマンドで、指定した間隔でI/Oの統計情報(?)を表示する。

$ iostat 2
              disk0               disk1               disk3       cpu    load average
    KB/t  tps  MB/s     KB/t  tps  MB/s     KB/t  tps  MB/s  us sy id   1m   5m   15m
    6.19 1658 10.01    32.74   28  0.89     9.62   58  0.54  26 24 50  2.57 3.94 4.88
    4.01 1351  5.29     0.00    0  0.00     0.00    0  0.00   8 32 60  2.57 3.94 4.88
    4.08  875  3.48     0.00    0  0.00     0.00    0  0.00   9 32 59  2.68 3.94 4.87
    4.02  795  3.12     4.00    1  0.00     0.00    0  0.00   9 32 59  2.68 3.94 4.87
    4.49  823  3.61     4.00    1  0.01     0.00    0  0.00  12 31 57  2.68 3.94 4.87
    4.03  934  3.68     5.00    2  0.01     0.00    0  0.00  13 32 54  2.71 3.93 4.86
    4.02  630  2.47     0.00    0  0.00     0.00    0  0.00  19 32 49  2.71 3.93 4.86


KB/t, MB/sは読み込み速度なのか、書き込み速度なのかよくわからない。

$ man iostat
...
           The standard iostat device display shows the following statistics:

           KB/t    kilobytes per transfer
           tps     transfers per second
           MB/s    megabytes per second
...


disk0, disk1, disk3がどのデバイスなのかは、diskutilコマンドで調べられる。

$ man diskutil
...
     list [-plist] [internal | external] [physical | virtual] [device]
                List disks, including internal and external disks, whole disks and
                partitions, and various kinds of virtual or offline disks.

                If no argument is given, then all whole disks and their partitions are
                listed.
...
$ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *121.3 GB   disk0
   1:                        EFIEFI⁩                     209.7 MB   disk0s1
   2:                 Apple_APFS ⁨Container disk2⁩         121.1 GB   disk0s2

/dev/disk1 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *1.0 TB     disk1
   1:                        EFIEFI⁩                     209.7 MB   disk1s1
   2:                 Apple_APFS ⁨Container disk2⁩         1000.0 GB  disk1s2

/dev/disk2 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +1.1 TB     disk2
                                 Physical Stores disk0s2, disk1s2
   1:                APFS Volume ⁨Macintosh HD - Data⁩     819.4 GB   disk2s1
   2:                APFS Volume ⁨Preboot⁩                 708.6 MB   disk2s2
   3:                APFS Volume ⁨Recovery⁩                1.1 GB     disk2s3
   4:                APFS Volume ⁨VM⁩                      1.1 MB     disk2s4
   5:                APFS Volume ⁨Macintosh HD⁩            15.2 GB    disk2s5
   6:              APFS Snapshot ⁨com.apple.os.update-...⁩ 15.2 GB    disk2s5s1

/dev/disk3 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *1.0 TB     disk3
   1:                        EFIEFI⁩                     209.7 MB   disk3s1
   2:                  Apple_HFS ⁨ADATA HV620⁩             999.9 GB   disk3s2

mac で ファイル、ディレクトリ の差分を見たい

Windowsだと、DFにお世話になってます。

https://www.vector.co.jp/soft/win95/util/se113286.html
https://www.google.com/search?q=df+windows&source=lnms&tbm=isch&sa=X&ved=2ahUKEwjw0NT-msr4AhXNet4KHbYhDwUQ_AUoBHoECAEQBg&biw=1264&bih=817&dpr=2.2


mac で調べてみると、有料アプリばっかり(?)のようだったので、kdiff3をインストールして使用しました。

http://kdiff3.sourceforge.net/

Office365の自動保存をデフォルトでオフにする

https://sun0range.com/microsoft-office/not-auto-save-office365/

Microsoft Office 365系を使用している場合、TeamsやOneDriveなど、Microsoftクラウド上に保存されているOfficeファイルはデフォルトで自動保存がオンになるようです。

□OneDriveとSharePoint OnlineのファイルをExcelの規定で自動保存する
↑ここのチェックを外す!

デンマーク

ビャーネ・ストロヴストルップ(Bjarne Stroustrup)
wikipedia:ビャーネ・ストロヴストルップ

C++の開発者の名前(Stroustrup)が全然覚えられなかった。今も。



大森貝塚の本を読んだときに、スティーンストルプという名前が出てきた。



貝塚の研究は19世紀後半にデンマークで始められた
wikipedia:貝塚

貝塚の研究は19世紀後半にデンマークで始められた[9]。ヨーロッパ先史考古学の指導的位置にあったデンマーク人考古学者でデンマーク国立博物館館長のイェンス・ヤコブ・アスムッセン・ウォルソー(英語版)は、同じデンマーク人の動物学者ヤペトゥス・ステーンストロップ(Johannes Japetus Smith Steenstrup)および...

StroustrupとSteenstrupの strup が同じつづりだったので、



↑ネットで調べたり本を読んだりしたが、読み方はわからなかった。。
 デンマーク語の本自体は興味深い内容だが、覚えるのは大変そう。





デンマークの場所ってどこ
https://www.google.com/maps/place/%E3%83%87%E3%83%B3%E3%83%9E%E3%83%BC%E3%82%AF/@56.1488816,7.0586993,6z/data=!3m1!4b1!4m5!3m4!1s0x464b27b6ee945ffb:0x528743d0c3e092cd!8m2!3d56.26392!4d9.501785
↑漠然と北欧ということしか知らなかったがドイツの北にある。


デンマーク語って難しい?
https://tokuhain.arukikata.co.jp/copenhagen/2009/11/post_17.html


・せんせいが “びゃーね・すぽっすぽっ” と呼ばれる理由
https://hej.hatenablog.com/entry/2012/03/05/025910