[PATCH] pass "authoritative" in samlogon through winbind

Stefan Metzmacher metze at samba.org
Tue Mar 7 07:21:47 UTC 2017


Hi Volker,

> --- a/nsswitch/winbind_struct_protocol.h
> +++ b/nsswitch/winbind_struct_protocol.h
> @@ -58,8 +58,9 @@ typedef char fstring[FSTRING_LEN];
>   *     removed WINBINDD_SID_TO_GID
>   *     removed WINBINDD_GID_TO_SID
>   *     removed WINBINDD_UID_TO_SID
> + * 29: added "authoritative" to response.data.auth
>   */
> -#define WINBIND_INTERFACE_VERSION 28
> +#define WINBIND_INTERFACE_VERSION 29
>  
>  /* Have to deal with time_t being 4 or 8 bytes due to structure alignment.
>     On a 64bit Linux box, we have to support a constant structure size
> @@ -432,6 +433,7 @@ struct winbindd_response {
>  			char first_8_lm_hash[8];
>  			fstring krb5ccname;
>  			uint32_t reject_reason;
> +			uint8_t authoritative;
>  			uint32_t padding;
>  			struct policy_settings {
>  				uint32_t min_length_password;

I guess we better change uint32_t padding into
uint8_t padding[3], it might be important for the the 32bit vs. 64bit client
with a 64bit winbindd.

Otherwise reviewed-by me.

Thanks!
metze

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170307/41f31cfd/signature.sig>


More information about the samba-technical mailing list