[LU-16901] Provide l_getidentity_nss identity provider Created: 15/Jun/23  Updated: 20/Nov/23  Resolved: 18/Nov/23

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.16.0

Type: Bug Priority: Minor
Reporter: Shaun Tancheff Assignee: Shaun Tancheff
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates LU-15267 l_getidentity_nss utility Resolved
Related
is related to LU-17301 Client mount hangs for several minutes Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

l_getidenity to fetch user's supplementary groups info from NIS, LDAP and/or any other services that NSS modules exist for. Add lustre-only user/group configuration in plain files, keeping Lustre users and groups separate from Linux users/groups on Lustre server's machines for security reason



 Comments   
Comment by Gerrit Updater [ 15/Jun/23 ]

"Shaun Tancheff <shaun.tancheff@hpe.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/51329
Subject: LU-16901 utils: l_getidentity_nss
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: bf6a4565c11ae2d570e04f3d982e0bd1f4903d71

Comment by Andreas Dilger [ 16/Jun/23 ]

I think this was previously submitted under patch https://review.whamcloud.com/45634

My question there was:

Maybe I'm missing something, but doesn't the existing l_getidentity.c already handle lookups based on /etc/nsswitch.conf by calling the Glibc getpwuid/getgrouplist to do lookups in LDAP, NIS, SSS?

And the response from Alexander Zarochentsev was:

the idea is to have configuration independent from the system on in /etc/nsswitch.conf. at least I was told it is useful for server security.

but it didn't provide enough explanation about what security issues this addresses

It should be possible to query the LDAP without allowing the users to login to the MDS and needing a separate upcall?

Comment by Gerrit Updater [ 18/Nov/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/51329/
Subject: LU-16901 utils: l_getidentity with nss module support
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 5f9f92454ef2a46075c850546ad4ac1621038dcf

Comment by Peter Jones [ 18/Nov/23 ]

Landed for 2.16

Generated at Sat Feb 10 03:30:57 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.