librpc:idl: Make netlogon_samlogon_response public
authorAndreas Schneider <asn@samba.org>
Wed, 21 Feb 2024 07:56:06 +0000 (08:56 +0100)
committerJule Anger <janger@samba.org>
Fri, 1 Mar 2024 07:42:09 +0000 (07:42 +0000)
This is required that we can use it with ndrdump or in python to decode
a NETLOGON_SAM_LOGON_RESPONSE_EX ldap response.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15588

Signed-off-by: Andreas Schneider <asn@samba.org>
Pair-Programmed-With: Guenther Deschner <gd@samba.org>

Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit e758425869729a43136ae51e6baecb2061d1525b)

librpc/idl/nbt.idl
librpc/ndr/ndr_nbt.c
librpc/ndr/ndr_nbt.h

index 11814e7970e6a344a0da1deed4b8f55706b6a011..46be2eae7e2e7e2d9b53901f549d3c8dabb41661 100644 (file)
@@ -490,7 +490,7 @@ interface nbt
                [case(NETLOGON_NT_VERSION_5EX)] NETLOGON_SAM_LOGON_RESPONSE_EX nt5_ex;
        } netlogon_samlogon_response_union;
 
-       typedef [nopush,nopull] struct {
+       typedef [nopush,nopull,noprint,public] struct {
                uint32 ntver;
                [switch_is(ntver)] netlogon_samlogon_response_union data;
        } netlogon_samlogon_response;
index 8ed9f0a5f05489288fe912cb7c7ae51991bcf5c4..96956fdb005b0bc0ed3a78066210ac7ff496f841 100644 (file)
@@ -392,7 +392,7 @@ _PUBLIC_ enum ndr_err_code ndr_pull_netlogon_samlogon_response(struct ndr_pull *
        return NDR_ERR_SUCCESS;
 }
 
-_PUBLIC_ void ndr_print_netlogon_samlogon_response(struct ndr_print *ndr, const char *name, struct netlogon_samlogon_response *r)
+_PUBLIC_ void ndr_print_netlogon_samlogon_response(struct ndr_print *ndr, const char *name, const struct netlogon_samlogon_response *r)
 {
        ndr_print_struct(ndr, name, "netlogon_samlogon_response");
        if (r == NULL) { ndr_print_null(ndr); return; }
index 7c06301d02bf97ceed765df6e75cb61edbb7aa53..9297876b2b30c0abbd8465ef1b77639664248ba2 100644 (file)
@@ -37,6 +37,6 @@ enum ndr_err_code ndr_pull_NETLOGON_SAM_LOGON_RESPONSE_EX_with_flags(struct ndr_
                                                                     uint32_t nt_version_flags);
 enum ndr_err_code ndr_push_netlogon_samlogon_response(struct ndr_push *ndr, int ndr_flags, const struct netlogon_samlogon_response *r);
 enum ndr_err_code ndr_pull_netlogon_samlogon_response(struct ndr_pull *ndr, int ndr_flags, struct netlogon_samlogon_response *r);
-void ndr_print_netlogon_samlogon_response(struct ndr_print *ndr, const char *name, struct netlogon_samlogon_response *r);
+void ndr_print_netlogon_samlogon_response(struct ndr_print *ndr, const char *name, const struct netlogon_samlogon_response *r);
 
 #endif /* _LIBRPC_NDR_NDR_NBT_H */