s3:winbind: Create service principal inside add_ccache_to_list()
authorSamuel Cabrero <scabrero@samba.org>
Thu, 7 Jul 2022 09:22:05 +0000 (11:22 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 12 Jul 2022 11:47:30 +0000 (11:47 +0000)
commit8bef8e3de9fc96ff45319f80529e878977563f3a
treeeff4276cddfb95dbbf89c1f58babe250e63909e4
parent2235a4aac4e879c0ffe462f9eed454c7792efc85
s3:winbind: Create service principal inside add_ccache_to_list()

The function can build the service principal itself, there is no
need to do it in the caller. This removes code duplication.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14979

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/winbindd/winbindd_cred_cache.c
source3/winbindd/winbindd_pam.c
source3/winbindd/winbindd_proto.h