winbind: Add "authoritative" to winbindd_response
authorVolker Lendecke <vl@samba.org>
Sun, 29 Jan 2017 16:46:12 +0000 (16:46 +0000)
committerVolker Lendecke <vl@samba.org>
Tue, 7 Mar 2017 08:15:17 +0000 (09:15 +0100)
This is a relevant piece of info in the samlogon response,
smbd and netlogond need to be able to react to it.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
nsswitch/winbind_struct_protocol.h

index 84829d2da74286bc7bd08e071c5a2d6ab6604098..a2e7d4c392c2d3c3464d1ad94993f16db37cb606 100644 (file)
@@ -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,7 +433,8 @@ struct winbindd_response {
                        char first_8_lm_hash[8];
                        fstring krb5ccname;
                        uint32_t reject_reason;
-                       uint32_t padding;
+                       uint8_t authoritative;
+                       uint8_t padding[3];
                        struct policy_settings {
                                uint32_t min_length_password;
                                uint32_t password_history;