winbind: Extend wbcAuthenticateUserEx to provide PAC
authorChristof Schmitt <christof.schmitt@us.ibm.com>
Wed, 18 Jul 2012 21:38:47 +0000 (14:38 -0700)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 21 Sep 2012 02:49:32 +0000 (19:49 -0700)
commit1bc2f28b9420829645ed571daf2a17e6688b2103
tree24001ed654ed1634f3f9f48f075010a02a4052d7
parent8a6a13ab51f404525ff18f65d5a22132c465898e
winbind: Extend wbcAuthenticateUserEx to provide PAC

With this new interface, external applications that have authenticated
to an ADS can pass the PAC from the Kerberos ticket to
wbcAuthenticateUserEx. winbindd decodes and extracts the info3
information for the external application. If winbindd can verify the PAC
signature, the info3 from the PACis also added to the netsamlogon_cache.

The info3 data can be used by the external application to get the uid
and primary gid. The data in netsamlogon_cache allows to retrieve the
complete group list through the NSS function getgrouplist.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
nsswitch/libwbclient/wbc_pam.c
nsswitch/libwbclient/wbclient.h
nsswitch/winbind_struct_protocol.h
source3/winbindd/winbindd_pam.c
source3/winbindd/winbindd_pam_auth_crap.c
source3/winbindd/winbindd_proto.h