Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LDAP session plugin: automatic creation of homedir #7503

Open
samuambroj opened this issue Jan 29, 2024 · 1 comment
Open

LDAP session plugin: automatic creation of homedir #7503

samuambroj opened this issue Jan 29, 2024 · 1 comment
Labels
enhancement A request that enhances existing behaviour

Comments

@samuambroj
Copy link

Dear dCache Team,

We have tested a basic gplazma configuration with OIDC and LDAP [1]. The OIDC related properties consist of just 2 lines [2] and the connection to LDAP has also worked, where the gplazma.ldap.root-dir was set up and verified that it worked. The value we used includes the %homeDirectory% from the LDAP attributes.
In the end we have been able to upload files with an OIDC token and the file ended up under the desired directory. One example [3].
All of this has worked because we have created beforehand the corresponding directory in the Chimera namespace and to make this work with thousands of users, we will need a script for the creation of the home directories, or and here comes the feature request maybe this could be performed by dCache. If dCache could check if the home directory exists, and if not create it, it would be welcome.

Best,
Samuel

[1]

# cat /etc/dcache/gplazma.conf 
auth optional oidc

map optional ldap

session optional ldap

[2]

# grep oidc /etc/dcache/dcache.conf 
gplazma.oidc.provider!FELS = https://<url> -profile=oidc -accept=username 
gplazma.oidc.audience-targets = <audience>

[3]

$ curl -v -k -L -T test-1 -H "Authorization: Bearer $(oidc-token bwda_public_client)" https://<webdav-endpoint>:2880/test-1
@samuambroj
Copy link
Author

Added @XMol

@lemora lemora added the enhancement A request that enhances existing behaviour label Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A request that enhances existing behaviour
Projects
None yet
Development

No branches or pull requests

2 participants