diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2014-10-19 12:28:13 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-11-18 20:33:46 +0100 |
commit | 35b4b217fa2b91bfc8d58c47024faf41c95fc807 (patch) | |
tree | 6517adfb61aedb2f721855c3f6b38887b2f1c117 /src/util/sss_ini.h | |
parent | 2745b0156f12df7a7eb93d57716233243658e4d9 (diff) | |
download | sssd-35b4b217fa2b91bfc8d58c47024faf41c95fc807.tar.gz sssd-35b4b217fa2b91bfc8d58c47024faf41c95fc807.tar.xz sssd-35b4b217fa2b91bfc8d58c47024faf41c95fc807.zip |
KRB5: Do not switch_creds() if already the specified user
The code didn't have to handle this case previously as sssd_be was always
running as root and switching to the ccache as the user logging in.
Also handle NULL creds on restore_creds() in case there was no switch.
One less if-condition and fewer indentation levels.
Related:
https://fedorahosted.org/sssd/ticket/2370
Reviewed-by: Sumit Bose <sbose@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/util/sss_ini.h')
0 files changed, 0 insertions, 0 deletions