Complete
Details
Details
Assignee
Andrew Walker
Andrew WalkerReporter
Bug Clerk
Bug ClerkLabels
Time remaining
0m
Components
Fix versions
Priority
Katalon Platform
Katalon Platform
Created November 11, 2021 at 6:17 PM
Updated August 19, 2022 at 4:55 PM
Resolved November 11, 2021 at 8:48 PM
PR: https://github.com/truenas/middleware/pull/7855
The kernel yp client will try up to 200 seconds currently for various yp-related requests. This PR makes three significant changes related to the NIS service:
1) get list of NIS users/groups through `ypcat` subprocess before using the python pwd and grp modules to get info for webui and middleware cache. This avoids enumerating users and groups through the aforementioned modules.
2) alter nsswitch.conf generation so that `nis` is only added if the NIS service is enabled and status is not FAULTED.
3) alter NIS health check so that it regenerates the nsswitch.conf on each run (once every ten minutes).