58
gPlazma2: Plugins and Configuration Karsten Schwank Zeuthen, 17.4.2012 

gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

gPlazma2: Plugins and ConfigurationKarsten Schwank

Zeuthen, 17.4.2012 

Page 2: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 2

Overview● Basics● Plugins● Migrating from v1 to v2● Introducing Argus● Introducing Kerberos● Examples

● The WLCG Case● Using Kerberos and NIS 

● Summary

Page 3: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 3

Basics

Authorization with gPlazma2 is● A 4 step process

● Authenticate – “Who are we talking to?”● Map – “How does the authenticated user fit into 

our site?”● Account – “Is the account currently banned?”● Session – “What is the user allowed to access?”

Configuration of gPlazma2 is● Done via the file /etc/dcache/gplazma.conf

Page 4: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 4

Step 1: Authentication (auth)

Who are we talking to? ● Pin “Principals” to the subject● Plugins:

● KPWD – dCache's own file based mechanism● VOMS – Virtual Organization Membership Service● X509 – X.509 certificate extractor● JAAS – Java Authentication and Authorization Service● XACML – Use a XACML server (e.g., GUMS)● gPlazma1 – Use old gPlazma

Page 5: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 5

auth:kpwd

● KPWDgplazma.kpwd.file [/etc/dcache/dcache.kpwd]

Username+Password kpwd Principal

login behrmann read-write 1000 1000 /foo /bar / /O=Grid/O=NorduGrid/OU=ndgf.org/CN=Gerd Behrmann [email protected]

passwd behrmann aec59c36 read-write 1000 1000 / /

Page 6: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 6

auth:x509

● X.509 certificate extractor

X.509 chain DN

Page 7: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 7

auth:voms

● Virtual Organization Membership Service

X.509 chain FQAN

gplazma.vomsdir.ca [/etc/grid-security/certificates]

gplazma.vomsdir.dir [/etc/grid-security/vomsdir]

Page 8: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 8

auth:xacml

● XACML

X.509 chain Username

gplazma.vomsdir.ca [/etc/grid-security/certificates]

gplazma.vomsdir.dir [/etc/grid-security/certificates]

gplazma.voms.validate

gplazma.xacml.service.url

gplazma.xacml.client.type

Page 9: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 9

auth:jaas

● Java Authentication and Authorization Service

Username+Password Username

gplazma.jaas.name

Page 10: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 10

auth:gplazma1

● Use gPlazma1 as a plugin

gplazma.legacy.config [/etc/dcache/dcachesrm-gplazma.policy]

gPlazma1 supportedcredentials

gPlazma1 supportedUser information

Page 11: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 11

Step 2: Mapping (map)How does the authenticated user fit in our site?

● Use the “principals” from auth step to assign a local name to the subject

● Plugins:● KPWD: dCache's file based solution● KRB5: Kerberos● NSSwitch: Username and Groupname● NIS: Network Information System ● AuthzDB: Local file based solution● GridMap: Local file based solution● VoRoleMap: Local file based solution● gPlazma1

Page 12: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 12

map:kpwd

● KPWD

gplazma.kpwd.file [/etc/dcache/dcache.kpwd]

DN/Kerberos Username

mapping "/O=Grid/O=NorduGrid/OU=ndgf.org/CN=Gerd Behrmann" behrmann

Page 13: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 13

map:krb5

● Kerberos

Kerberos Username

Page 14: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 14

map:gridmap

● GridMap

DN Username

gplazma.gridmap.file [/etc/grid-security/grid-mapfile]

"/O=GermanGrid/OU=DESY/CN=Tigran Mkrtchyan" tigran

Page 15: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 15

map:vorolemap

● VoRolemap

DN+FQAN Username

gplazma.vorolemap.file [/etc/grid-security/grid-vorolemap] "/O=GermanGrid/OU=DESY/CN=Tigran Mkrtchyan" "/dteam" tigran

Page 16: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 16

map:nsswitch

● NSSwitch

Username UID+GID

/etc/nsswitch.conf

Page 17: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 17

map:nis

● NIS

Username UID+GID

gplazma.nis.domain [domain.com]

gplazma.nis.server [niserv.domain.com]

Page 18: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 18

map:authzdb

● AuthzDB

Username UID+GID

gplazma.authzdb.file [/etc/grid-security/storage-authzdb] authorize behrmann read-write 1000 1000 / /data/ /data/

Page 19: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 19

map:gplazma1

● gPlazma1

gplazma.legacy.config [/etc/dcache/dcachesrm-gplazma.policy]

gPlazma1 supporteduser information

More gPlazma1 User information

Page 20: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 20

Step 3: Account

Is the account currently banned?● Check if we have any reason not to allow 

the user to access our system● Plugins:

● KPWD: dCache's file based solution● Argus: a hierarchical centralized authentication 

and authorization service

Page 21: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 21

account:kpwd

● KPWD

gplazma.kpwd.file [/etc/dcache/dcache.kpwd]

Username Banned?

passwd behrmann # read-write 1000 1000 / /

Page 22: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 22

account:argus

● Argus gplazma.argus.hostcert [/etc/grid-security/hostcert.pem]

DN Banned?

gplazma.argus.hostkey [/etc/grid-security/hostkey.pem]

gplazma.argus.ca [/etc/grid-security/certificates]

gplazma.argus.endpoint [https://localhost:8154/authz]

Page 23: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 23

Step 4: Session

What is the user allowed to access?● Use the local name to assign home and root 

directory.● Plugins:

● KPWD: dCache's file based solution● NIS: Network Information System● NSSwitch: Name Service Switch● AuthzDB: Local file based solution● gPlazma1: Use old gPlazma as plugin 

Page 24: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 24

session:kpwd

● KPWDgplazma.kpwd.file [/etc/dcache/dcache.kpwd]

Username Home+Root+RO/RW

login behrmann read-write 1000 1000 /home /root / /O=Grid/O=NorduGrid/OU=ndgf.org/CN=Gerd Behrmann [email protected]

passwd behrmann aec59c36 read-write 1000 1000 / /

Page 25: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 25

session:nis

● NIS

Username Home+Root

gplazma.nis.domain [domain.com]

gplazma.nis.server [niserv.domain.com]

Page 26: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 26

session:nsswitch

● NSSwitch

UID+GID Home+Root

/etc/nsswitch.conf

Page 27: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 27

session:authzdb

● AuthzDB

Username Home+Root+RW/RO

gplazma.authzdb.file [/etc/grid-security/storage-authzdb] authorize behrmann read-write 1000 1000 / /data/ /data/

Page 28: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 28

session:gplazma1

● gPlazma1

gplazma.legacy.config [/etc/dcache/dcachesrm-gplazma.policy]

More gPlazma1user information

Home+Root+RW/RO

Page 29: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 29

Moving from v1 to v2

Page 30: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 30

v1   v2 plugins→

gPlazma v1 plugin

gPlazma v2 plugins, for each phases

Auth Map Account Session

kpwd opt: x509,opt: kpwd

suf: kpwd req: kpwd suf: kpwd

grid-mapfile opt: x509 opt: gridmap,suf: authzdb

req: gridmap suf: authzdb

gplazmalite-vorole-mapping

opt: x509,opt: voms

opt: vorolemap,suf: authzdb

req: vorolemap suf: authzdb

xacml-vo-mapping

opt: xacml suf: authzdb req: authzdb suf: authzdb

Key: opt = optional, suf = sufficient, req = requisite

Page 31: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 31

v1   v2: example→

● Top part of gPlazma v1 config file

Page 32: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 32

v1   v2: example→

● Ignore plugins that are switched off

Page 33: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 33

v1   v2: example→

● Consider the remaining plugins in their execution order

Page 34: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 34

● Use table to build initial gPlazma2 configuration

Page 35: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 35

v1   v2: example→

● Notice that there are some duplicates

Page 36: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 36

v1   v2: example→

● Adjust configuration to remove duplication

Page 37: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 37

Commercials

Argus

Page 38: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 38

Introducing Argus

● Centralized Policies● Hierarchical Distribution● Authentication● Authorization

subject,actionresource

poll

request

Policy Administration

Policy Decision

PolicyEnforcement

Page 39: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 40

Commercials End

See now: The standard case feat. Argus

Page 40: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 41

Example: WLCG

# step modifier plugin params k=v

/etc/dcache/gplazma.conf

Page 41: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 42

Example: WLCG● Users are authenticated by X.509 certificates with 

voms

# step modifier plugin params k=vauth optional x509auth optional voms

/etc/dcache/gplazma.conf

Page 42: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 43

Example: WLCG● Users are authenticated by X.509 certificates with 

voms

● Mapping by VoRoleMap and AuthzDB 

# step modifier plugin params k=vauth optional x509auth optional vomsmap optional vorolemapmap optional authzdb

/etc/dcache/gplazma.conf

Page 43: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 44

Example: WLCG● Users are authenticated by X.509 certificates with 

voms● Mapping by VoRoleMap and AuthzDB ● Banning by Argus

# step modifier plugin params k=vauth optional x509auth optional vomsmap optional vorolemapmap optional authzdbaccount requisite argus

/etc/dcache/gplazma.conf

Page 44: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 45

Example: WLCG● Users are authenticated by X.509 certificates with 

voms● Mapping by VoRoleMap and AuthzDB● Banning by Argus ● Session parameters by AuthzDB

# step modifier plugin params k=vauth optional x509auth optional vomsmap optional vorolemapmap optional authzdbaccount requisite argussession optional authzdb

/etc/dcache/gplazma.conf

Page 45: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 46

Example: WLCG

x509 vorolemap authzdb authzdbargus

X.509 Chain+ DN

DN + FQAN+ Username

Username+ UID+ GID

UID+GID+ home folder+ root folder

DN+ banned?

voms

X.509 Chain+FQAN

Page 46: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 47

More commercials

Identity mapping and Kerberos

Page 47: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 48

Identity Service

What's your name again?● Map Username to UID and reverse● Is not part of the login process● Used by NFS 4.1 server● Plugins:

● NIS● NSSwitch

Page 48: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 49

identity:nis

● NIS

UID+GID Username

gplazma.nis.domain [domain.com]

gplazma.nis.server [niserv.domain.com]

Page 49: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 50

identity:nss

● NSSwitch

UID+GID Username

/etc/nsswitch.conf

Page 50: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 54

Another example

Identity mapping and Kerberos in action

Page 51: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 55

Example: Kerberos + NIS

 

# step modifier plugin params k=v

/etc/dcache/gplazma.conf

Page 52: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 56

Example: Kerberos + NIS● Authentication is done by dCache “door”.

 

# step modifier plugin params k=v

/etc/dcache/gplazma.conf

Page 53: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 57

Example: Kerberos + NIS● Authentication is done by dCache “door”● Mapping to Username is done by krb5 plugin

 

# step modifier plugin params k=vmap optional krb5

/etc/dcache/gplazma.conf

Page 54: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 58

Example: Kerberos + NIS● Authentication is done by dCache “door”● Mapping to Username is done by krb5 plugin● Mapping to UID+GID is done by NIS plugin

 

# step modifier plugin params k=vmap optional krb5map optional nis

/etc/dcache/gplazma.conf

Page 55: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 59

Example: Kerberos + NIS● Authentication is done by dCache “door”● Mapping to Username is done by krb5 plugin● Mapping to UID+GID is done by NIS plugin● Session attributes are added by NIS plugin

 

# step modifier plugin params k=vmap optional krb5map optional nissession optional nis

/etc/dcache/gplazma.conf

Page 56: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 60

Example: Kerberos + NIS● Authentication is done by dCache “door”● Mapping to Username is done by krb5 plugin● Mapping to UID+GID is done by NIS plugin● Session attributes are added by NIS plugin● Identity mapping by NIS plugin

 # step modifier plugin params k=vmap optional krb5map optional nissession optional nisidentity optional nis

/etc/dcache/gplazma.conf

Page 57: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 61

Example: Kerberos + NIS

krb5 nis

Loginname+ Kerberos

Kerberos+ Username

Username+ UID+ GID

( ) nis

UID+GID+ home folder+ root folder

nis

Username ↔ UID

Page 58: gPlazma2: Plugins and Configuration Karsten Schwank ... › manuals › 2012 › workshop › ... · Gplazma2: Plugins and Configuration | Karsten Schwank | 17.4.2012 | Page 2 Overview

Gplazma2: Plugins and Configuration | Karsten Schwank  |  17.4.2012  |  Page 62

Summary

                                           Use gPlazma2.