]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:kdc: Add ‘samdb’ parameter to samba_kdc_get_device_info_blob()
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 3 Oct 2023 01:58:52 +0000 (14:58 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 12 Oct 2023 23:13:32 +0000 (23:13 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/kdc/pac-glue.c

index dc50e4cb14653fd47a8ed450acfa0059c17ea1c5..5b1f3c6a055943b8fbe4db0b836f188709db979b 100644 (file)
@@ -2035,6 +2035,7 @@ static krb5_error_code samba_kdc_create_device_info_blob(TALLOC_CTX *mem_ctx,
 
 static krb5_error_code samba_kdc_get_device_info_blob(TALLOC_CTX *mem_ctx,
                                                      krb5_context context,
+                                                     struct ldb_context *samdb,
                                                      struct samba_kdc_entry *device,
                                                      DATA_BLOB **device_info_blob)
 {
@@ -2455,6 +2456,7 @@ krb5_error_code samba_kdc_update_pac(TALLOC_CTX *mem_ctx,
                        /* Also regenerate device info. */
                        code = samba_kdc_get_device_info_blob(tmp_ctx,
                                                              context,
+                                                             samdb,
                                                              device.entry,
                                                              &device_info_blob);
                        if (code != 0) {