From 4580af21084a28a49d0ff1fcff4394beaa6a5fa8 Mon Sep 17 00:00:00 2001 From: mksahakyan Date: Mon, 3 Apr 2023 11:47:59 +0200 Subject: [PATCH] update --- .../main/markdown/dcache-configuration-oicd | 156 ++++++++++++++++++ 1 file changed, 156 insertions(+) diff --git a/docs/TheBook/src/main/markdown/dcache-configuration-oicd b/docs/TheBook/src/main/markdown/dcache-configuration-oicd index 8b137891791..d4246d7f254 100644 --- a/docs/TheBook/src/main/markdown/dcache-configuration-oicd +++ b/docs/TheBook/src/main/markdown/dcache-configuration-oicd @@ -1 +1,157 @@ + + +### Introduction to multimap and OIDC Plug-ins in dCache + +- Dedicated OIDC plugin for authenticating + +- For Mapping use multimapplug-in: mapmany different credentialsto dCache uid and gid + +- Changes to gPlazma.conffile + +### Enable oidc authentication plugin + +### Replacing usual vorolemap plug-in + +> map optional vorolemap #2.1 + +> map sufficient multimap gplazma.multimap.file=/etc/dcache/multi-mapfile.wlcg_jwt + + + +we will have now + +# /etc/dcache/gplazma.conf +... +auth optional oidc +map sufficient multimap gplazma.multimap.file=/etc/dcache/multi-mapfile.wlcg_jwt +... + + + + +Lets have a look on a complete configuration example and go through the each phase. + + +>vi etc/dcache/gplazma.conf + + ```ini + +cat >/etc/dcache/gplazma.conf < touch /etc/dcache/htpasswd +> +> +> htpasswd -bm /etc/dcache/htpasswd admin admin +> + + +**optional** here means, the success or failure of this plug-in is only important if it is the only plug-in in the stack associated +with this type. + + **#2** **map** - converts this identity to some dCache user. + + **#2.1** the “grid-mapfile”-file, the client-certificate’s DN is mapped to a +virtual user-name. + + + ```ini +cat >/etc/grid-security/grid-mapfile </etc/grid-security/grid-vorolemap </etc/grid-security/storage-authzdb < OK +Jan 05 13:44:47 os-46-install1.novalocal dcache@dCacheDomain[25977]: | | +Jan 05 13:44:47 os-46-install1.novalocal dcache@dCacheDomain[25977]: | +--authzdb REQUISITE:FAIL (no mappable principal) => FAIL (ends the phase) +Jan 05 13:44:47 os-46-install1.novalocal dcache@dCacheDomain[25977]: | +Jan 05 13:44:47 os-46-install1.novalocal dcache@dCacheDomain[25977]: +--(ACCOUNT) skipped +Jan 05 13:44:47 os-46-install1.novalocal dcache@dCacheDomain[25977]: | +Jan 05 13:44:47 os-46-install1.novalocal dcache@dCacheDomain[25977]: +--(SESSION) skipped +Jan 05 13:44:47 os-46-install1.novalocal dcache@dCacheDomain[25977]: | +Jan 05 13:44:47 os-46-install1.novalocal dcache@dCacheDomain[25977]: +--(VALIDATION) skipped +Jan 05 13:45:15 os-46-install1.novalocal dcache@dCacheDomain[25977]: 05 Jan 2023 13:45:15 (pool1) [] The file system containing the data files appears to have less free space (40,453,738,496 bytes) than expected (40,453,779,120 bytes); reducing the pool size to 40,455,127,376 bytes to compensate. Notice that this does not leave any space for the meta data. If such data is stored on the same file system, then it is paramount that the pool size is reconfigured to leave enough space for the meta data. + ``` + + + + + +Finally, **session** adds some additional information, for example the user’s home directory. + + +This ability to split login steps between different plugins may make the process seem complicated; however, +it is also very powerful and allows dCache to work with many different authentication schemes. + + + + + +