]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libcli/auth: remove unused creds->sid
authorStefan Metzmacher <metze@samba.org>
Wed, 2 Oct 2024 17:04:02 +0000 (19:04 +0200)
committerJule Anger <janger@samba.org>
Wed, 13 Nov 2024 10:39:12 +0000 (10:39 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15425

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
(cherry picked from commit a9308c490cb5ec8908a3e4c13e2ce8a08b9027e9)

libcli/auth/credentials.c
libcli/auth/schannel_state_tdb.c
librpc/idl/schannel.idl

index 342dcd95154a117215b09b6c93d47436c18d65e7..07b146579f6722854fa78638a6059e94760cd34e 100644 (file)
@@ -709,8 +709,6 @@ struct netlogon_creds_CredentialState *netlogon_creds_server_init(TALLOC_CTX *me
        }
        creds->ex->client_sid = *client_sid;
 
-       creds->sid = &creds->ex->client_sid;
-
        if (negotiate_flags & NETLOGON_NEG_SUPPORTS_AES) {
                status = netlogon_creds_init_hmac_sha256(creds,
                                                         client_challenge,
@@ -1207,12 +1205,6 @@ struct netlogon_creds_CredentialState *netlogon_creds_copy(
                *creds->ex = *creds_in->ex;
        }
 
-       if (creds->ex != NULL) {
-               creds->sid = &creds->ex->client_sid;
-       } else {
-               creds->sid = NULL;
-       }
-
        memcpy(creds->session_key, creds_in->session_key, sizeof(creds->session_key));
        memcpy(creds->seed.data, creds_in->seed.data, sizeof(creds->seed.data));
        memcpy(creds->client.data, creds_in->client.data, sizeof(creds->client.data));
index ee7ee546baffd423c2f91f87b5ee2c3f45b1cfb3..4154997fc0256b16bbec74db0be33b8fc4559011 100644 (file)
@@ -92,10 +92,6 @@ NTSTATUS schannel_store_session_key_tdb(struct db_context *db_sc,
                return NT_STATUS_INTERNAL_ERROR;
        }
 
-       if (creds->sid == NULL) {
-               return NT_STATUS_INTERNAL_ERROR;
-       }
-
        if (strlen(creds->computer_name) > 15) {
                /*
                 * We may want to check for a completely
@@ -208,8 +204,6 @@ NTSTATUS schannel_fetch_session_key_tdb(struct db_context *db_sc,
                goto done;
        }
 
-       creds->sid = &creds->ex->client_sid;
-
        DEBUG(3,("schannel_fetch_session_key_tdb: restored schannel info key %s\n",
                keystr));
 
index 76b0dfd4c5532c88f9295332a393559eab39a7b0..ad296f48d845da94de0bb26390049f5800e3724a 100644 (file)
@@ -35,7 +35,6 @@ interface schannel
                netr_SchannelType secure_channel_type;
                [string,charset(UTF8)] uint8 computer_name[];
                [string,charset(UTF8)] uint8 account_name[];
-               [skip] dom_sid *sid;
                netlogon_creds_CredentialState_extra_info *ex;
        } netlogon_creds_CredentialState;