-
Notifications
You must be signed in to change notification settings - Fork 496
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix regression in getting sid_info for local users (#14488)
While fixing an unrelated bug that affected LDAP failover, a restart of the winbind service was removed from the directory services setup method. Changes to directory services health checks in electric eel improved error recovery and eliminated the need for this step. Unfortunately, this removal exposed that user.get_user_obj and group.get_group_obj were still relying on winbind to perform SID resolution (which failed because winbind had not started yet on the server). As of electric eel, the SID values for local accounts are derived from the `id` value of the user / group entry in their respective database table. This commit robustizes SID lookups for local accounts through get_obj methods by retrieving via user.query and group.query.
- Loading branch information
Showing
3 changed files
with
43 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters