summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorSamuel Cabrero <scabrero@samba.org>2021-06-22 10:23:04 +0200
committerJeremy Allison <jra@samba.org>2022-05-19 17:51:33 +0000
commitcc0ef447cdc1c5f77162e52f44852aaaf6047d12 (patch)
tree3ee356a048bd3ccfc46d547db02d8788ff89c69c /librpc
parentba40aad05b7ee5f55b85434fe872fbb0b9cda5da (diff)
downloadsamba-cc0ef447cdc1c5f77162e52f44852aaaf6047d12.tar.gz
s3:winbind: Convert winbindd_dual_pam_chauthtok() from struct based to NDR based
Signed-off-by: Samuel Cabrero <scabrero@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'librpc')
-rw-r--r--librpc/idl/samr.idl2
-rw-r--r--librpc/idl/winbind.idl13
2 files changed, 13 insertions, 2 deletions
diff --git a/librpc/idl/samr.idl b/librpc/idl/samr.idl
index 867862dcd5c..fffa853ce3f 100644
--- a/librpc/idl/samr.idl
+++ b/librpc/idl/samr.idl
@@ -347,7 +347,7 @@ import "misc.idl", "lsa.idl", "security.idl";
DOMAIN_SERVER_DISABLED = 2
} samr_DomainServerState;
- typedef struct {
+ typedef [public] struct {
uint16 min_password_length;
uint16 password_history_length;
samr_PasswordProperties password_properties;
diff --git a/librpc/idl/winbind.idl b/librpc/idl/winbind.idl
index 9ec98bd0878..2d209448841 100644
--- a/librpc/idl/winbind.idl
+++ b/librpc/idl/winbind.idl
@@ -1,5 +1,5 @@
#include "idl_types.h"
-import "lsa.idl", "netlogon.idl", "misc.idl", "security.idl", "idmap.idl";
+import "lsa.idl", "netlogon.idl", "samr.idl", "misc.idl", "security.idl", "idmap.idl";
[
uuid("bf09192c-ed60-4928-9dff-d0d7bcb03ed8"),
@@ -237,6 +237,17 @@ interface winbind
[in,flag(NDR_SECRET)] DATA_BLOB old_lm_hash_enc
);
+ NTSTATUS wbint_PamAuthChangePassword(
+ [in,string,charset(UTF8)] char *client_name,
+ [in] hyper client_pid,
+ [in] uint32 flags,
+ [in,string,charset(UTF8)] char *user,
+ [in,string,charset(UTF8),flag(NDR_SECRET)] char *old_password,
+ [in,string,charset(UTF8),flag(NDR_SECRET)] char *new_password,
+ [out,ref] samr_DomInfo1 **dominfo,
+ [out,ref] samPwdChangeReason *reject_reason
+ );
+
/* Public methods available via IRPC */
typedef [switch_type(uint16)] union netr_LogonLevel netr_LogonLevel;