diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2014-10-19 12:28:13 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-10-30 16:36:51 +0100 |
commit | 7b21c328e617a3dba6bbf7b1d1bab71e01ba4af9 (patch) | |
tree | e2df88229f9ba4ad097f1d7411b19ebeb9be126a /src/tools | |
parent | d969ba46904766480d65cf8c13e92210dc15227f (diff) | |
download | sssd-7b21c328e617a3dba6bbf7b1d1bab71e01ba4af9.tar.gz sssd-7b21c328e617a3dba6bbf7b1d1bab71e01ba4af9.tar.xz sssd-7b21c328e617a3dba6bbf7b1d1bab71e01ba4af9.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.
Diffstat (limited to 'src/tools')
0 files changed, 0 insertions, 0 deletions