diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/librpc/idl/misc.idl | 6 | ||||
-rw-r--r-- | source4/librpc/idl/samr.idl | 6 | ||||
-rw-r--r-- | source4/rpc_server/samr/samr_password.c | 2 |
3 files changed, 8 insertions, 6 deletions
diff --git a/source4/librpc/idl/misc.idl b/source4/librpc/idl/misc.idl index 5d40753448..2f21b63105 100644 --- a/source4/librpc/idl/misc.idl +++ b/source4/librpc/idl/misc.idl @@ -39,5 +39,11 @@ interface misc SAM_DATABASE_PRIVS = 2 /* Privileges */ } netr_SamDatabaseID; + typedef [public,v1_enum] enum { + SAMR_REJECT_OTHER = 0, + SAMR_REJECT_TOO_SHORT = 1, + SAMR_REJECT_COMPLEXITY = 2 + } samr_RejectReason; + } diff --git a/source4/librpc/idl/samr.idl b/source4/librpc/idl/samr.idl index 1555dadfeb..c6ad14ce04 100644 --- a/source4/librpc/idl/samr.idl +++ b/source4/librpc/idl/samr.idl @@ -1141,11 +1141,7 @@ /************************/ /* Function 0x3f */ - typedef [v1_enum] enum { - SAMR_REJECT_OTHER = 0, - SAMR_REJECT_TOO_SHORT = 1, - SAMR_REJECT_COMPLEXITY = 2 - } samr_RejectReason; + declare enum samr_RejectReason; typedef struct { samr_RejectReason reason; diff --git a/source4/rpc_server/samr/samr_password.c b/source4/rpc_server/samr/samr_password.c index acbb02a795..95524c22a9 100644 --- a/source4/rpc_server/samr/samr_password.c +++ b/source4/rpc_server/samr/samr_password.c @@ -830,7 +830,7 @@ NTSTATUS samdb_set_password_sid(struct ldb_context *ctx, TALLOC_CTX *mem_ctx, struct samr_Password *ntNewHash, BOOL user_change, BOOL restrictions, - uint32_t *reject_reason, + enum samr_RejectReason *reject_reason, struct samr_DomInfo1 **_dominfo) { NTSTATUS nt_status; |