s3-winbindd: Use the correct enums for samr_QueryDomainInfo.
authorAndreas Schneider <asn@samba.org>
Wed, 30 Mar 2011 09:08:31 +0000 (11:08 +0200)
committerAndreas Schneider <asn@samba.org>
Fri, 1 Apr 2011 08:41:15 +0000 (10:41 +0200)
(cherry picked from commit d9ad60f0dc40be1e1d533f96ec0032e01035d85b)

source3/winbindd/winbindd_msrpc.c

index f01308cae7fb7c4cff51d991943180021f4f3cd6..13a5d649d39d12d8db8565205ae600f34ef4d641 100644 (file)
@@ -987,7 +987,7 @@ static NTSTATUS msrpc_lockout_policy(struct winbindd_domain *domain,
 
        status = dcerpc_samr_QueryDomainInfo(b, mem_ctx,
                                             &dom_pol,
-                                            12,
+                                            DomainLockoutInformation,
                                             &info,
                                             &result);
        if (!NT_STATUS_IS_OK(status)) {
@@ -1037,7 +1037,7 @@ static NTSTATUS msrpc_password_policy(struct winbindd_domain *domain,
 
        status = dcerpc_samr_QueryDomainInfo(b, mem_ctx,
                                             &dom_pol,
-                                            1,
+                                            DomainPasswordInformation,
                                             &info,
                                             &result);
        if (!NT_STATUS_IS_OK(status)) {