Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
authorJeremy Allison <jra@samba.org>
Sat, 12 Jan 2008 06:38:42 +0000 (22:38 -0800)
committerJeremy Allison <jra@samba.org>
Sat, 12 Jan 2008 06:38:42 +0000 (22:38 -0800)
111 files changed:
.gitignore
examples/VFS/skel_opaque.c
examples/VFS/skel_transparent.c
examples/libsmbclient/Makefile
examples/libsmbclient/tree.c
source/Makefile.in
source/client/client.c
source/configure.in
source/include/includes.h
source/include/smb_macros.h
source/include/talloc_stack.h
source/include/transfer_file.h [new file with mode: 0644]
source/include/vfs.h
source/include/vfs_macros.h
source/lib/charcnv.c
source/lib/dbwrap_tdb.c
source/lib/netapi/examples/getdc/getdc.c
source/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c
source/lib/netapi/examples/netdomjoin/netdomjoin.c
source/lib/netapi/joindomain.c
source/lib/netapi/netapi.c
source/lib/netapi/netapi.h
source/lib/sharesec.c
source/lib/talloc/talloc.c
source/lib/talloc/talloc.h
source/lib/talloc/testsuite.c
source/lib/talloc_stack.c
source/lib/tdb/common/freelist.c
source/lib/tdb/common/io.c
source/lib/tdb/common/lock.c
source/lib/tdb/common/open.c
source/lib/tdb/common/tdb.c
source/lib/tdb/common/tdb_private.h
source/lib/tdb/common/transaction.c
source/lib/tdb/common/traverse.c
source/lib/tdb/configure.ac
source/lib/tdb/include/tdb.h
source/lib/util.c
source/lib/util_str.c
source/lib/util_transfer_file.c [new file with mode: 0644]
source/libaddns/dns.h
source/libnet/libnet_conf.c
source/libnet/libnet_join.c
source/libnet/libnet_join.h
source/librpc/gen_ndr/cli_dfs.c
source/librpc/gen_ndr/cli_dfs.h
source/librpc/gen_ndr/cli_echo.c
source/librpc/gen_ndr/cli_echo.h
source/librpc/gen_ndr/cli_epmapper.c
source/librpc/gen_ndr/cli_epmapper.h
source/librpc/gen_ndr/cli_eventlog.c
source/librpc/gen_ndr/cli_eventlog.h
source/librpc/gen_ndr/cli_initshutdown.c
source/librpc/gen_ndr/cli_initshutdown.h
source/librpc/gen_ndr/cli_lsa.c
source/librpc/gen_ndr/cli_lsa.h
source/librpc/gen_ndr/cli_netlogon.c
source/librpc/gen_ndr/cli_netlogon.h
source/librpc/gen_ndr/cli_srvsvc.c
source/librpc/gen_ndr/cli_srvsvc.h
source/librpc/gen_ndr/cli_svcctl.c
source/librpc/gen_ndr/cli_svcctl.h
source/librpc/gen_ndr/cli_unixinfo.c
source/librpc/gen_ndr/cli_unixinfo.h
source/librpc/gen_ndr/cli_winreg.c
source/librpc/gen_ndr/cli_winreg.h
source/librpc/gen_ndr/cli_wkssvc.c
source/librpc/gen_ndr/cli_wkssvc.h
source/librpc/gen_ndr/srv_dfs.c
source/librpc/gen_ndr/srv_echo.c
source/librpc/gen_ndr/srv_epmapper.c
source/librpc/gen_ndr/srv_eventlog.c
source/librpc/gen_ndr/srv_initshutdown.c
source/librpc/gen_ndr/srv_lsa.c
source/librpc/gen_ndr/srv_netlogon.c
source/librpc/gen_ndr/srv_srvsvc.c
source/librpc/gen_ndr/srv_svcctl.c
source/librpc/gen_ndr/srv_unixinfo.c
source/librpc/gen_ndr/srv_winreg.c
source/librpc/gen_ndr/srv_wkssvc.c
source/libsmb/clirap.c
source/libsmb/dsgetdcname.c
source/locking/locking.c
source/modules/vfs_cacheprime.c
source/modules/vfs_commit.c
source/modules/vfs_default.c
source/modules/vfs_full_audit.c
source/modules/vfs_readahead.c
source/nmbd/nmbd_incomingrequests.c
source/param/loadparm.c
source/passdb/pdb_ldap.c
source/rpc_server/srv_srvsvc_nt.c
source/smbd/blocking.c
source/smbd/close.c
source/smbd/connection.c
source/smbd/nttrans.c
source/smbd/open.c
source/smbd/oplock.c
source/smbd/process.c
source/smbd/reply.c
source/smbd/sec_ctx.c
source/smbd/server.c
source/smbd/service.c
source/smbd/trans2.c
source/smbd/vfs.c
source/torture/cmd_vfs.c
source/utils/net_ads.c
source/utils/net_dns.c
source/utils/net_dom.c
source/utils/net_lookup.c
source/winbindd/winbindd_locator.c

index 00ad9c82c0ba9d446920322eebb14f5575b18075..f11de0883839937534256b21aaca9b92879449ad 100644 (file)
@@ -35,3 +35,13 @@ source/winbindd/winbindd_proto.h
 source/cscope.out
 source/torture.tdb
 source/pkgconfig/*.pc
+source/st
+examples/VFS/Makefile
+examples/VFS/config.log
+examples/VFS/config.status
+examples/VFS/configure
+examples/VFS/module_config.h
+examples/VFS/module_config.h.in
+examples/VFS/shadow_copy_test.so
+examples/VFS/skel_opaque.so
+examples/VFS/skel_transparent.so
index 8c05479a62d673d818b6e0e80db872f068a96a86..5b196af5eb32dc384981f6a81d4f630032c5a06e 100644 (file)
@@ -130,9 +130,9 @@ static int skel_close(vfs_handle_struct *handle, files_struct *fsp, int fd)
        return vfswrap_close(NULL, fsp, fd);
 }
 
-static ssize_t skel_read(vfs_handle_struct *handle, files_struct *fsp, int fd, void *data, size_t n)
+static ssize_t skel_read(vfs_handle_struct *handle, files_struct *fsp, void *data, size_t n)
 {
-       return vfswrap_read(NULL, fsp, fd, data, n);
+       return vfswrap_read(NULL, fsp, data, n);
 }
 
 static ssize_t skel_pread(vfs_handle_struct *handle, struct files_struct *fsp, void *data, size_t n, SMB_OFF_T offset)
@@ -140,9 +140,9 @@ static ssize_t skel_pread(vfs_handle_struct *handle, struct files_struct *fsp, v
        return vfswrap_pread(NULL, fsp, data, n, offset);
 }
 
-static ssize_t skel_write(vfs_handle_struct *handle, files_struct *fsp, int fd, const void *data, size_t n)
+static ssize_t skel_write(vfs_handle_struct *handle, files_struct *fsp, const void *data, size_t n)
 {
-       return vfswrap_write(NULL, fsp, fd, data, n);
+       return vfswrap_write(NULL, fsp, data, n);
 }
 
 ssize_t skel_pwrite(vfs_handle_struct *handle, struct files_struct *fsp, const void *data, size_t n, SMB_OFF_T offset)
@@ -155,15 +155,15 @@ static SMB_OFF_T skel_lseek(vfs_handle_struct *handle, files_struct *fsp, SMB_OF
        return vfswrap_lseek(NULL, fsp, offset, whence);
 }
 
-static ssize_t skel_sendfile(vfs_handle_struct *handle, int tofd, files_struct *fsp, int fromfd, const DATA_BLOB *hdr,
+static ssize_t skel_sendfile(vfs_handle_struct *handle, int tofd, files_struct *fromfsp, const DATA_BLOB *hdr,
                                        SMB_OFF_T offset, size_t n)
 {
-       return vfswrap_sendfile(NULL, tofd, fsp, fromfd, hdr, offset, n);
+       return vfswrap_sendfile(NULL, tofd, fromfsp, hdr, offset, n);
 }
 
-static ssize_t skel_recvfile(vfs_handle_struct *handle, int fromfd, files_struct *fsp, int tofd, SMB_OFF_T offset, size_t n)
+static ssize_t skel_recvfile(vfs_handle_struct *handle, int fromfd, files_struct *tofsp, SMB_OFF_T offset, size_t n)
 {
-       return vfswrap_recvfile(NULL, fromfd, fsp, tofd, offset, n);
+       return vfswrap_recvfile(NULL, fromfd, tofsp, offset, n);
 }
 
 static int skel_rename(vfs_handle_struct *handle,  const char *oldname, const char *newname)
index f15cdfdb705f619dd50e85cd709741f513bc1e0a..55407be10cc708dcd55e0fc7918dc830fc70c872 100644 (file)
@@ -124,9 +124,9 @@ static int skel_close(vfs_handle_struct *handle, files_struct *fsp, int fd)
        return SMB_VFS_NEXT_CLOSE(handle, fsp, fd);
 }
 
-static ssize_t skel_read(vfs_handle_struct *handle, files_struct *fsp, int fd, void *data, size_t n)
+static ssize_t skel_read(vfs_handle_struct *handle, files_struct *fsp, void *data, size_t n)
 {
-       return SMB_VFS_NEXT_READ(handle, fsp, fd, data, n);
+       return SMB_VFS_NEXT_READ(handle, fsp, data, n);
 }
 
 static ssize_t skel_pread(vfs_handle_struct *handle, files_struct *fsp, void *data, size_t n, SMB_OFF_T offset)
@@ -134,9 +134,9 @@ static ssize_t skel_pread(vfs_handle_struct *handle, files_struct *fsp, void *da
        return SMB_VFS_NEXT_PREAD(handle, fsp, data, n, offset);
 }
 
-static ssize_t skel_write(vfs_handle_struct *handle, files_struct *fsp, int fd, const void *data, size_t n)
+static ssize_t skel_write(vfs_handle_struct *handle, files_struct *fsp, const void *data, size_t n)
 {
-       return SMB_VFS_NEXT_WRITE(handle, fsp, fd, data, n);
+       return SMB_VFS_NEXT_WRITE(handle, fsp, data, n);
 }
 
 static ssize_t skel_pwrite(vfs_handle_struct *handle, files_struct *fsp, const void *data, size_t n, SMB_OFF_T offset)
@@ -149,14 +149,14 @@ static SMB_OFF_T skel_lseek(vfs_handle_struct *handle, files_struct *fsp, SMB_OF
        return SMB_VFS_NEXT_LSEEK(handle, fsp, offset, whence);
 }
 
-static ssize_t skel_sendfile(vfs_handle_struct *handle, int tofd, files_struct *fsp, int fromfd, const DATA_BLOB *hdr, SMB_OFF_T offset, size_t n)
+static ssize_t skel_sendfile(vfs_handle_struct *handle, int tofd, files_struct *fromfsp, const DATA_BLOB *hdr, SMB_OFF_T offset, size_t n)
 {
-       return SMB_VFS_NEXT_SENDFILE(handle, tofd, fsp, fromfd, hdr, offset, n);
+       return SMB_VFS_NEXT_SENDFILE(handle, tofd, fromfsp, hdr, offset, n);
 }
 
-static ssize_t skel_recvfile(vfs_handle_struct *handle, int fromfd, files_struct *fsp, int tofd, SMB_OFF_T offset, size_t n)
+static ssize_t skel_recvfile(vfs_handle_struct *handle, int fromfd, files_struct *tofsp, SMB_OFF_T offset, size_t n)
 {
-       return SMB_VFS_NEXT_RECVFILE(handle, fromfd, fsp, tofd, offset, n);
+       return SMB_VFS_NEXT_RECVFILE(handle, fromfd, tofsp, offset, n);
 }
 
 static int skel_rename(vfs_handle_struct *handle,  const char *oldname, const char *newname)
index be383aea671c53347ae68a8d706f7af71de4ec09..6500707e75ca1e583de96c6c546ad9ffa6e8c157 100644 (file)
@@ -5,7 +5,7 @@ SAMBA_INCL = ../../source/include
 EXTLIB_INCL = -I/usr/include/gtk-1.2 \
              -I/usr/include/glib-1.2 \
              -I/usr/lib/glib/include
-
+EXTLIB_INCL = `gtk-config --cflags`
 
 DEFS = -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
 CFLAGS = -O0 -g -I$(SAMBA_INCL) $(EXTLIB_INCL) $(DEFS)
@@ -13,7 +13,7 @@ CFLAGS = -O0 -g -I$(SAMBA_INCL) $(EXTLIB_INCL) $(DEFS)
 LDFLAGS = -L/usr/local/samba/lib \
          -lldap -lkrb5 -lgssapi_krb5
 #LIBSMBCLIENT = /usr/local/samba/lib/libsmbclient.so
-LIBSMBCLIENT = ../../source/bin/libsmbclient.a -ldl -lresolv
+LIBSMBCLIENT = -lsmbclient -ldl -lresolv
 
 TESTS= testsmbc \
        testacl \
index d5a71e2868361f7d3f254294717f166226ed69a2..6e34cd05627c4d47ee05b654e0329baeadf6ba4e 100644 (file)
@@ -24,6 +24,8 @@
 
 #include <stdio.h>
 #include <errno.h>
+#include <string.h>
+#include <stdlib.h>
 #include <gtk/gtk.h>
 #include "libsmbclient.h"
 
index a3a7e5628f43a7f8070dc6a9ffeee41bd8c7a755..5257b6fcac1376a6e369905f468edf90946e2730 100644 (file)
@@ -290,7 +290,8 @@ LIBSAMBAUTIL_OBJ = $(TALLOC_OBJ) $(LIBREPLACE_OBJ)
 LIB_WITHOUT_PROTO_OBJ = $(LIBREPLACE_OBJ) $(SOCKET_WRAPPER_OBJ) $(NSS_WRAPPER_OBJ) $(TALLOC_OBJ) \
        lib/messages.o librpc/gen_ndr/ndr_messaging.o lib/messages_local.o \
        lib/messages_ctdbd.o lib/packet.o lib/ctdbd_conn.o lib/talloc_stack.o \
-       lib/interfaces.o lib/rbtree.o lib/memcache.o
+       lib/interfaces.o lib/rbtree.o lib/memcache.o \
+       lib/util_transfer_file.o
 
 LIB_WITH_PROTO_OBJ = $(VERSION_OBJ) lib/charcnv.o lib/debug.o lib/fault.o \
          lib/interface.o lib/md4.o \
@@ -336,8 +337,7 @@ LIBADDNS_OBJ0 = libaddns/dnsrecord.o libaddns/dnsutils.o  libaddns/dnssock.o \
               libaddns/dnsgss.o libaddns/dnsmarshall.o
 LIBADDNS_OBJ = $(LIBADDNS_OBJ0) $(TALLOC_OBJ)
 
-LIBWBCLIENT_OBJ = nsswitch/wb_common.o lib/talloc/talloc.o \
-                 nsswitch/libwbclient/wbclient.o \
+LIBWBCLIENT_OBJ = nsswitch/libwbclient/wbclient.o \
                  nsswitch/libwbclient/wbc_util.o \
                  nsswitch/libwbclient/wbc_pwd.o \
                  nsswitch/libwbclient/wbc_idmap.o \
@@ -572,7 +572,7 @@ SMBD_OBJ_BASE = $(PARAM_WITHOUT_REG_OBJ) $(SMBD_OBJ_SRV) $(LIBSMB_OBJ) \
                $(NOTIFY_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
                $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
                $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) \
-               $(REGISTRY_OBJ) $(POPT_LIB_OBJ) \
+               $(REGISTRY_OBJ) $(POPT_LIB_OBJ) @LIBWBCLIENT_STATIC@ \
                $(BUILDOPT_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ) $(LIBNET_OBJ)
 
 PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
@@ -605,7 +605,7 @@ SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
            web/swat.o web/neg_lang.o
 
 SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(LIBSMB_OBJ) \
-          $(LOCKING_OBJ) $(PASSDB_OBJ) $(SECRETS_OBJ) $(KRBCLIENT_OBJ) \
+          $(LOCKING_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SECRETS_OBJ) $(KRBCLIENT_OBJ) \
           $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) $(PLAINTEXT_AUTH_OBJ) \
           $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
            $(PASSCHANGE_OBJ) $(LDB_OBJ)
@@ -626,7 +626,7 @@ SMBTREE_OBJ = utils/smbtree.o $(PARAM_OBJ) \
             $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) $(SECRETS_OBJ) \
              rpc_client/cli_pipe.o $(RPC_PARSE_OBJ2) \
              $(RPC_CLIENT_OBJ1) \
-            $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ) $(GROUPDB_OBJ) \
+            $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(LDB_OBJ) $(GROUPDB_OBJ) \
             $(LIBMSRPC_GEN_OBJ)
 
 TESTPARM_OBJ = utils/testparm.o \
@@ -636,12 +636,12 @@ TESTPARM_OBJ = utils/testparm.o \
 PASSWD_UTIL_OBJ = utils/passwd_util.o
 
 SMBPASSWD_OBJ = utils/smbpasswd.o $(PASSWD_UTIL_OBJ) $(PASSCHANGE_OBJ) \
-               $(PARAM_OBJ) $(SECRETS_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) \
+               $(PARAM_OBJ) $(SECRETS_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
                $(GROUPDB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
                $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) \
                $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) $(LDB_OBJ) 
 
-PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) \
+PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
                $(LIBSAMBA_OBJ) $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) \
                $(SECRETS_OBJ) $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) libsmb/asn1.o \
                $(RPC_PARSE_OBJ1) $(DOSERR_OBJ) $(LDB_OBJ) $(ERRORMAP_OBJ) 
@@ -662,7 +662,7 @@ RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
 
 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
              $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
-             $(RPC_PARSE_OBJ) $(PASSDB_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
+             $(RPC_PARSE_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
              $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
             $(LIBADS_OBJ) $(SECRETS_OBJ) $(POPT_LIB_OBJ) \
             $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(LDB_OBJ) 
@@ -675,7 +675,7 @@ LIBSMBCLIENT_OBJ = libsmb/libsmbclient.o libsmb/libsmb_compat.o \
                   $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
                   $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
                   $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
-                  $(SECRETS_OBJ) $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
+                  $(SECRETS_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
 
 LIBSMBSHAREMODES_OBJ = libsmb/smb_share_modes.o $(TDBBASE_OBJ)
 
@@ -686,7 +686,7 @@ LIBSMBSHAREMODES_OBJ = libsmb/smb_share_modes.o $(TDBBASE_OBJ)
 LIBBIGBALLOFMUD_MAJOR = 0
 
 LIBBIGBALLOFMUD_OBJ = $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ) \
-       $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) $(PASSDB_OBJ) \
+       $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ \
        $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
 
 CLIENT_OBJ1 = client/client.o client/clitar.o rpc_client/cli_pipe.o \
@@ -697,7 +697,7 @@ CLIENT_OBJ1 = client/client.o client/clitar.o rpc_client/cli_pipe.o \
 CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
             $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
              $(READLINE_OBJ) $(POPT_LIB_OBJ) $(SECRETS_OBJ) \
-             $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
+             $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
             $(DISPLAY_SEC_OBJ) 
 
 UTIL_REG_OBJ = lib/util_reg.o
@@ -733,7 +733,7 @@ LIBNETAPI_OBJ  = $(LIBNETAPI_OBJ1) $(LIBNET_OBJ) \
                 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
                 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
                 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
-                $(SECRETS_OBJ) $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
+                $(SECRETS_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
                 $(DCUTIL_OBJ) $(LIBADS_OBJ)
 
 LIBNET_OBJ = libnet/libnet_conf.o libnet/libnet_join.o
@@ -750,7 +750,7 @@ NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_domain.o utils/net_help.o \
           utils/net_conf.o auth/token_util.o utils/net_dom.o nsswitch/wb_client.o
 
 NET_OBJ = $(NET_OBJ1) $(PARAM_WITHOUT_REG_OBJ) $(SECRETS_OBJ) $(LIBSMB_OBJ) \
-         $(RPC_PARSE_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
+         $(RPC_PARSE_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
          $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
          $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
          $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(POPT_LIB_OBJ) \
@@ -798,7 +798,7 @@ NSSTEST_OBJ = torture/nsstest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
                  $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
 
 PDBTEST_OBJ = torture/pdbtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
-               $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
+               $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
                $(SMBLDAP_OBJ) $(POPT_LIB_OBJ) $(LDB_OBJ)
 
 
@@ -813,7 +813,7 @@ LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) \
 
 SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
                $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
-               $(PASSDB_OBJ) $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
+               $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
                $(SECRETS_OBJ) \
                $(POPT_LIB_OBJ) $(DCUTIL_OBJ) $(LIBADS_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
 
@@ -821,7 +821,7 @@ SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
                $(PARAM_OBJ) \
                $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
                $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(SECRETS_OBJ) $(POPT_LIB_OBJ) \
-               $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
+               $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
 
 EVTLOGADM_OBJ0 = utils/eventlogadm.o
 
@@ -878,7 +878,7 @@ WINBIND_WINS_NSS_OBJ = nsswitch/wins.o $(PARAM_OBJ) \
 
 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
                pam_smbpass/pam_smb_acct.o pam_smbpass/support.o
-PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
+PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
                $(SECRETS_OBJ) $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
                $(RPC_PARSE_OBJ1) $(DOSERR_OBJ) $(LDB_OBJ) $(ERRORMAP_OBJ)
 
@@ -912,7 +912,7 @@ WINBINDD_OBJ1 = \
                auth/token_util.o
 
 WINBINDD_OBJ = \
-               $(WINBINDD_OBJ1) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
+               $(WINBINDD_OBJ1) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
                $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
                $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
                $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
@@ -923,7 +923,7 @@ WINBINDD_OBJ = \
 
 WBINFO_OBJ = nsswitch/wbinfo.o $(LIBSAMBA_OBJ) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
                $(SECRETS_OBJ) $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) $(RPC_PARSE_OBJ1) \
-               $(DOSERR_OBJ) lib/winbind_util.o
+               $(DOSERR_OBJ) lib/winbind_util.o @LIBWBCLIENT_STATIC@
 
 WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ) $(SOCKET_WRAPPER_OBJ) @WINBIND_NSS_EXTRA_OBJS@
 
@@ -947,7 +947,7 @@ LDB_LDAP_OBJ=@LDBLDAP@
 LDB_OBJ = ${LDB_COMMON_OBJ} ${LDB_TDB_OBJ} ${LDB_LDAP_OBJ} ${LDB_MODULES_OBJ}
 
 LDB_CMDLINE_OBJ = $(PARAM_OBJ) $(SECRETS_OBJ) $(LIBSMB_OBJ) \
-         $(RPC_PARSE_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
+         $(RPC_PARSE_OBJ) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
          $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
          $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
          $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(POPT_LIB_OBJ) \
@@ -989,7 +989,7 @@ NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
 NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ) $(POPT_LIB_OBJ) \
                libsmb/asn1.o libsmb/spnego.o libsmb/clikrb5.o libads/kerberos.o \
                libads/kerberos_verify.o $(SECRETS_OBJ) $(SERVER_MUTEX_OBJ) \
-               libads/authdata.o $(RPC_PARSE_OBJ1) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
+               libads/authdata.o $(RPC_PARSE_OBJ1) $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(GROUPDB_OBJ) \
                $(SMBLDAP_OBJ) $(DOSERR_OBJ) rpc_parse/parse_net.o $(LIBNMB_OBJ) \
                $(LDB_OBJ) $(ERRORMAP_OBJ) 
 
@@ -998,7 +998,7 @@ VLP_OBJ1 = ../testsuite/printing/vlp.o $(RPC_CLIENT_OBJ1) $(RPC_PARSE_OBJ2) $(RP
 VLP_OBJ = $(VLP_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
          $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
          $(READLINE_OBJ) $(POPT_LIB_OBJ) $(SECRETS_OBJ) \
-         $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
+         $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
          $(DISPLAY_SEC_OBJ)
 
 ######################################################################
@@ -1046,8 +1046,8 @@ replacetort : SHOWFLAGS bin/replacetort@EXEEXT@
 timelimit : SHOWFLAGS bin/timelimit@EXEEXT@
 
 nsswitch : SHOWFLAGS bin/winbindd@EXEEXT@ bin/wbinfo@EXEEXT@ @WINBIND_NSS@ \
-       @WINBIND_WINS_NSS@ bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol@EXEEXT@ \
-       @WINBIND_KRB5_LOCATOR@
+       @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
+       bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol@EXEEXT@
 
 wins : SHOWFLAGS @WINBIND_WINS_NSS@
 
@@ -1393,9 +1393,9 @@ bin/ldbdel: $(BINARY_PREREQS) $(LDBDEL_OBJ) @BUILD_POPT@ @LIBWBCLIENT_SHARED@
                @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
                $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) @WINBIND_LIBS@
 
-bin/libwbclient.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ)
+bin/libwbclient.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) nsswitch/wb_common.o lib/talloc/talloc.o
        @echo Linking shared library $@
-       @$(SHLD_DSO) $(LIBWBCLIENT_OBJ) \
+       @$(SHLD_DSO) $(LIBWBCLIENT_OBJ) nsswitch/wb_common.o lib/talloc/talloc.o \
                @SONAMEFLAG@`basename $@`.$(SONAME_VER)
        @ln -s -f `basename $@` $@.$(SONAME_VER)
 
index 46f056021e6b154eb51b650eafe3019660f36981..267c13048ec37de942e99f80972fbe2f0218e039 100644 (file)
@@ -4624,7 +4624,7 @@ static int do_message_op(void)
        set_global_myworkgroup( "" );
        set_global_myname( "" );
 
-        /* set default debug level to 0 regardless of what smb.conf sets */
+        /* set default debug level to 1 regardless of what smb.conf sets */
        setup_logging( "smbclient", true );
        DEBUGLEVEL_CLASS[DBGC_ALL] = 1;
        if ((dbf = x_fdup(x_stderr))) {
index 5eb85c727d12bf0d46f861b617cd3d46ccb9649a..4222d93227e142ea4bc2170164686144435d4232 100644 (file)
@@ -322,6 +322,7 @@ AC_SUBST(LIBADDNS)
 AC_SUBST(INSTALL_LIBWBCLIENT)
 AC_SUBST(UNINSTALL_LIBWBCLIENT)
 AC_SUBST(LIBWBCLIENT_SHARED)
+AC_SUBST(LIBWBCLIENT_STATIC)
 AC_SUBST(LIBWBCLIENT)
 AC_SUBST(WINBIND_LIBS)
 
@@ -6160,7 +6161,15 @@ if test x"$HAVE_WINBIND" = x"no"; then
        WINBIND_WINS_NSS=""
 fi
 
-if test $BLDSHARED = true -a x"$HAVE_WINBIND" = x"yes"; then
+BUILD_LIBWBCLIENT_SHARED=yes
+
+AC_ARG_ENABLE(libwbclient-shared,
+[ --enable-libwbclient-shared  Build libwbclient as shared object (default=yes, \"no\" only for --enable-developer)],
+       [if eval "test x$enable_developer = xyes -a x$enable_libwbclient_shared = xno" ; then
+               BUILD_LIBWBCLIENT_SHARED=no
+       fi])
+
+if test $BLDSHARED = true -a x"$HAVE_WINBIND" = x"yes" -a x"$BUILD_LIBWBCLIENT_SHARED" = x"yes"; then
        NSS_MODULES="${WINBIND_NSS} ${WINBIND_WINS_NSS}"
        ## Only worry about libwbclient if we have shared library support
        ## and winbindd
@@ -6170,6 +6179,8 @@ if test $BLDSHARED = true -a x"$HAVE_WINBIND" = x"yes"; then
        UNINSTALL_LIBWBCLIENT=uninstalllibwbclient
        WINBIND_LIBS="-lwbclient"
        LDFLAGS="$LDFLAGS -L./bin"
+else
+       LIBWBCLIENT_STATIC=bin/libwbclient.a
 fi
 
 if test x"$HAVE_WINBIND" = x"yes"; then
@@ -6494,6 +6505,8 @@ SMB_MODULE(vfs_readahead, \$(VFS_READAHEAD_OBJ), "bin/readahead.$SHLIBEXT", VFS)
 SMB_MODULE(vfs_fileid, \$(VFS_FILEID_OBJ), "bin/fileid.$SHLIBEXT", VFS)
 SMB_MODULE(vfs_syncops, \$(VFS_SYNCOPS_OBJ), "bin/syncops.$SHLIBEXT", VFS)
 SMB_MODULE(vfs_zfsacl, \$(VFS_ZFSACL_OBJ), "bin/zfsacl.$SHLIBEXT", VFS)
+SMB_MODULE(vfs_notify_fam, \$(VFS_NOTIFY_FAM_OBJ), "bin/notify_fam.$SHLIBEXT", VFS)
+
 
 SMB_SUBSYSTEM(VFS,smbd/vfs.o)
 
index 14ef2258e6f4e2cd76843f6857443ded696f0c41..e9477d8ba1620116e73a325e7851b212f3826984 100644 (file)
@@ -811,6 +811,9 @@ enum flush_reason_enum {
 #include "srvstr.h"
 #include "safe_string.h"
 
+/* prototypes from lib/util_transfer_file.c */
+#include "transfer_file.h"
+
 #ifdef __COMPAR_FN_T
 #define QSORT_CAST (__compar_fn_t)
 #endif
index 3324f3fc02de6891fe6a7559c4153af266cefe80..463a2bdb0b8fc578f9cd3fad80471cb1a5f61ce6 100644 (file)
@@ -385,4 +385,12 @@ do { \
 #define ISDOTDOT(p) (*(p) == '.' && *((p) + 1) == '.' && *((p) + 2) == '\0')
 #endif /* ISDOTDOT */
 
+#ifndef toupper_ascii_fast
+/* Warning - this must only be called with 0 <= c < 128. IT WILL
+ * GIVE GARBAGE if c > 128 or c < 0. JRA.
+ */
+extern char toupper_ascii_fast_table[];
+#define toupper_ascii_fast(c) toupper_ascii_fast_table[(unsigned int)(c)];
+#endif
+
 #endif /* _SMB_MACROS_H */
index 331893cbd6184e2367d82a4d27174f56f146f261..a2a12f8a633ba15c4785f69f0cccfd90db5fbf52 100644 (file)
@@ -45,6 +45,7 @@
  */
 
 TALLOC_CTX *talloc_stackframe(void);
+TALLOC_CTX *talloc_stackframe_pool(size_t poolsize);
 
 /*
  * Get us the current top of the talloc stack.
diff --git a/source/include/transfer_file.h b/source/include/transfer_file.h
new file mode 100644 (file)
index 0000000..79ad9c4
--- /dev/null
@@ -0,0 +1,32 @@
+/*
+ * Unix SMB/CIFS implementation.
+ * Utility functions to transfer files.
+ *
+ * Copyright (C) Michael Adam 2008
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef __TRANSFER_FILE_H__
+#define __TRANSFER_FILE_H__
+
+ssize_t transfer_file_internal(void *in_file,
+                              void *out_file,
+                              size_t n,
+                              ssize_t (*read_fn)(void *, void *, size_t),
+                              ssize_t (*write_fn)(void *, const void *, size_t));
+
+SMB_OFF_T transfer_file(int infd, int outfd, SMB_OFF_T n);
+
+#endif /* __TRANSFER_FILE_H__ */
index 02cfb12836fa77477636c32a1b749a568e442622..0be3886227895401d44e166ea7b8f1bd119e4508 100644 (file)
 /* Leave at 22 - not yet released. Remove parameter fd from fremovexattr. - obnox */
 /* Leave at 22 - not yet released. Remove parameter fd from fsetxattr. - obnox */
 /* Leave at 22 - not yet released. Remove parameter fd from aio_cancel. - obnox */
+/* Leave at 22 - not yet released. Remove parameter fd from read. - obnox */
+/* Leave at 22 - not yet released. Remove parameter fd from write. - obnox */
+/* Leave at 22 - not yet released. Remove parameter fromfd from sendfile. - obnox */
+/* Leave at 22 - not yet released. Remove parameter fromfd from recvfile. - obnox */
 
 
 
@@ -290,13 +294,13 @@ struct vfs_ops {
                
                int (*open)(struct vfs_handle_struct *handle, const char *fname, files_struct *fsp, int flags, mode_t mode);
                int (*close_fn)(struct vfs_handle_struct *handle, struct files_struct *fsp, int fd);
-               ssize_t (*read)(struct vfs_handle_struct *handle, struct files_struct *fsp, int fd, void *data, size_t n);
+               ssize_t (*read)(struct vfs_handle_struct *handle, struct files_struct *fsp, void *data, size_t n);
                ssize_t (*pread)(struct vfs_handle_struct *handle, struct files_struct *fsp, void *data, size_t n, SMB_OFF_T offset);
-               ssize_t (*write)(struct vfs_handle_struct *handle, struct files_struct *fsp, int fd, const void *data, size_t n);
+               ssize_t (*write)(struct vfs_handle_struct *handle, struct files_struct *fsp, const void *data, size_t n);
                ssize_t (*pwrite)(struct vfs_handle_struct *handle, struct files_struct *fsp, const void *data, size_t n, SMB_OFF_T offset);
                SMB_OFF_T (*lseek)(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_OFF_T offset, int whence);
-               ssize_t (*sendfile)(struct vfs_handle_struct *handle, int tofd, files_struct *fsp, int fromfd, const DATA_BLOB *header, SMB_OFF_T offset, size_t count);
-               ssize_t (*recvfile)(struct vfs_handle_struct *handle, int fromfd, files_struct *fsp, int tofd, SMB_OFF_T offset, size_t count);
+               ssize_t (*sendfile)(struct vfs_handle_struct *handle, int tofd, files_struct *fromfsp, const DATA_BLOB *header, SMB_OFF_T offset, size_t count);
+               ssize_t (*recvfile)(struct vfs_handle_struct *handle, int fromfd, files_struct *tofsp, SMB_OFF_T offset, size_t count);
                int (*rename)(struct vfs_handle_struct *handle, const char *oldname, const char *newname);
                int (*fsync)(struct vfs_handle_struct *handle, struct files_struct *fsp);
                int (*stat)(struct vfs_handle_struct *handle, const char *fname, SMB_STRUCT_STAT *sbuf);
index 63e566b33457df652f1496c30e441a7e2153bf7b..9232e94a421f98008d8bd573df26ea88fb2a1486 100644 (file)
 /* File operations */
 #define SMB_VFS_OPEN(conn, fname, fsp, flags, mode) (((conn)->vfs.ops.open)((conn)->vfs.handles.open, (fname), (fsp), (flags), (mode)))
 #define SMB_VFS_CLOSE(fsp, fd) ((fsp)->conn->vfs.ops.close_fn((fsp)->conn->vfs.handles.close_hnd, (fsp), (fd)))
-#define SMB_VFS_READ(fsp, fd, data, n) ((fsp)->conn->vfs.ops.read((fsp)->conn->vfs.handles.read, (fsp), (fd), (data), (n)))
+#define SMB_VFS_READ(fsp, data, n) ((fsp)->conn->vfs.ops.read((fsp)->conn->vfs.handles.read, (fsp), (data), (n)))
 #define SMB_VFS_PREAD(fsp, data, n, off) ((fsp)->conn->vfs.ops.pread((fsp)->conn->vfs.handles.pread, (fsp), (data), (n), (off)))
-#define SMB_VFS_WRITE(fsp, fd, data, n) ((fsp)->conn->vfs.ops.write((fsp)->conn->vfs.handles.write, (fsp), (fd), (data), (n)))
+#define SMB_VFS_WRITE(fsp, data, n) ((fsp)->conn->vfs.ops.write((fsp)->conn->vfs.handles.write, (fsp), (data), (n)))
 #define SMB_VFS_PWRITE(fsp, data, n, off) ((fsp)->conn->vfs.ops.pwrite((fsp)->conn->vfs.handles.pwrite, (fsp), (data), (n), (off)))
 #define SMB_VFS_LSEEK(fsp, offset, whence) ((fsp)->conn->vfs.ops.lseek((fsp)->conn->vfs.handles.lseek, (fsp), (offset), (whence)))
-#define SMB_VFS_SENDFILE(tofd, fsp, fromfd, header, offset, count) ((fsp)->conn->vfs.ops.sendfile((fsp)->conn->vfs.handles.sendfile, (tofd), (fsp), (fromfd), (header), (offset), (count)))
-#define SMB_VFS_RECVFILE(fromfd, fsp, tofd, offset, count) ((fsp)->conn->vfs.ops.recvfile((fsp)->conn->vfs.handles.recvfile, (fromfd), (fsp), (tofd), (offset), (count)))
+#define SMB_VFS_SENDFILE(tofd, fromfsp, header, offset, count) ((fsp)->conn->vfs.ops.sendfile((fsp)->conn->vfs.handles.sendfile, (tofd), (fromfsp), (header), (offset), (count)))
+#define SMB_VFS_RECVFILE(fromfd, tofsp, offset, count) ((fsp)->conn->vfs.ops.recvfile((fsp)->conn->vfs.handles.recvfile, (fromfd), (tofsp), (offset), (count)))
 #define SMB_VFS_RENAME(conn, old, new) ((conn)->vfs.ops.rename((conn)->vfs.handles.rename, (old), (new)))
 #define SMB_VFS_FSYNC(fsp) ((fsp)->conn->vfs.ops.fsync((fsp)->conn->vfs.handles.fsync, (fsp)))
 #define SMB_VFS_STAT(conn, fname, sbuf) ((conn)->vfs.ops.stat((conn)->vfs.handles.stat, (fname), (sbuf)))
 /* File operations */
 #define SMB_VFS_OPAQUE_OPEN(conn, fname, fsp, flags, mode) (((conn)->vfs_opaque.ops.open)((conn)->vfs_opaque.handles.open, (fname), (fsp), (flags), (mode)))
 #define SMB_VFS_OPAQUE_CLOSE(fsp, fd) ((fsp)->conn->vfs_opaque.ops.close_fn((fsp)->conn->vfs_opaque.handles.close_hnd, (fsp), (fd)))
-#define SMB_VFS_OPAQUE_READ(fsp, fd, data, n) ((fsp)->conn->vfs_opaque.ops.read((fsp)->conn->vfs_opaque.handles.read, (fsp), (fd), (data), (n)))
+#define SMB_VFS_OPAQUE_READ(fsp, data, n) ((fsp)->conn->vfs_opaque.ops.read((fsp)->conn->vfs_opaque.handles.read, (fsp), (data), (n)))
 #define SMB_VFS_OPAQUE_PREAD(fsp, data, n, off) ((fsp)->conn->vfs_opaque.ops.pread((fsp)->conn->vfs_opaque.handles.pread, (fsp), (data), (n), (off)))
-#define SMB_VFS_OPAQUE_WRITE(fsp, fd, data, n) ((fsp)->conn->vfs_opaque.ops.write((fsp)->conn->vfs_opaque.handles.write, (fsp), (fd), (data), (n)))
+#define SMB_VFS_OPAQUE_WRITE(fsp, data, n) ((fsp)->conn->vfs_opaque.ops.write((fsp)->conn->vfs_opaque.handles.write, (fsp), (data), (n)))
 #define SMB_VFS_OPAQUE_PWRITE(fsp, data, n, off) ((fsp)->conn->vfs_opaque.ops.pwrite((fsp)->conn->vfs_opaque.handles.pwrite, (fsp), (data), (n), (off)))
 #define SMB_VFS_OPAQUE_LSEEK(fsp, offset, whence) ((fsp)->conn->vfs_opaque.ops.lseek((fsp)->conn->vfs_opaque.handles.lseek, (fsp), (offset), (whence)))
-#define SMB_VFS_OPAQUE_SENDFILE(tofd, fsp, fromfd, header, offset, count) ((fsp)->conn->vfs_opaque.ops.sendfile((fsp)->conn->vfs_opaque.handles.sendfile, (tofd), (fsp), (fromfd), (header), (offset), (count)))
-#define SMB_VFS_OPAQUE_RECVFILE(fromfd, fsp, tofd, offset, count) ((fsp)->conn->vfs_opaque.ops.recvfile((fsp)->conn->vfs_opaque.handles.recvfile, (fromfd), (fsp), (tofd), (offset), (count)))
+#define SMB_VFS_OPAQUE_SENDFILE(tofd, fromfsp, header, offset, count) ((fsp)->conn->vfs_opaque.ops.sendfile((fsp)->conn->vfs_opaque.handles.sendfile, (tofd), (fromfsp), (header), (offset), (count)))
+#define SMB_VFS_OPAQUE_RECVFILE(fromfd, tofsp, offset, count) ((fsp)->conn->vfs_opaque.ops.recvfile((fsp)->conn->vfs_opaque.handles.recvfile, (fromfd), (tofsp), (offset), (count)))
 #define SMB_VFS_OPAQUE_RENAME(conn, old, new) ((conn)->vfs_opaque.ops.rename((conn)->vfs_opaque.handles.rename, (old), (new)))
 #define SMB_VFS_OPAQUE_FSYNC(fsp) ((fsp)->conn->vfs_opaque.ops.fsync((fsp)->conn->vfs_opaque.handles.fsync, (fsp)))
 #define SMB_VFS_OPAQUE_STAT(conn, fname, sbuf) ((conn)->vfs_opaque.ops.stat((conn)->vfs_opaque.handles.stat, (fname), (sbuf)))
 /* File operations */
 #define SMB_VFS_NEXT_OPEN(handle, fname, fsp, flags, mode) (((handle)->vfs_next.ops.open)((handle)->vfs_next.handles.open, (fname), (fsp), (flags), (mode)))
 #define SMB_VFS_NEXT_CLOSE(handle, fsp, fd) ((handle)->vfs_next.ops.close_fn((handle)->vfs_next.handles.close_hnd, (fsp), (fd)))
-#define SMB_VFS_NEXT_READ(handle, fsp, fd, data, n) ((handle)->vfs_next.ops.read((handle)->vfs_next.handles.read, (fsp), (fd), (data), (n)))
+#define SMB_VFS_NEXT_READ(handle, fsp, data, n) ((handle)->vfs_next.ops.read((handle)->vfs_next.handles.read, (fsp), (data), (n)))
 #define SMB_VFS_NEXT_PREAD(handle, fsp, data, n, off) ((handle)->vfs_next.ops.pread((handle)->vfs_next.handles.pread, (fsp), (data), (n), (off)))
-#define SMB_VFS_NEXT_WRITE(handle, fsp, fd, data, n) ((handle)->vfs_next.ops.write((handle)->vfs_next.handles.write, (fsp), (fd), (data), (n)))
+#define SMB_VFS_NEXT_WRITE(handle, fsp, data, n) ((handle)->vfs_next.ops.write((handle)->vfs_next.handles.write, (fsp), (data), (n)))
 #define SMB_VFS_NEXT_PWRITE(handle, fsp, data, n, off) ((handle)->vfs_next.ops.pwrite((handle)->vfs_next.handles.pwrite, (fsp), (data), (n), (off)))
 #define SMB_VFS_NEXT_LSEEK(handle, fsp, offset, whence) ((handle)->vfs_next.ops.lseek((handle)->vfs_next.handles.lseek, (fsp), (offset), (whence)))
-#define SMB_VFS_NEXT_SENDFILE(handle, tofd, fsp, fromfd, header, offset, count) ((handle)->vfs_next.ops.sendfile((handle)->vfs_next.handles.sendfile, (tofd), (fsp), (fromfd), (header), (offset), (count)))
-#define SMB_VFS_NEXT_RECVFILE(handle, fromfd, fsp, tofd, offset, count) ((handle)->vfs_next.ops.recvfile((handle)->vfs_next.handles.recvfile, (fromfd), (fsp), (tofd), (offset), (count)))
+#define SMB_VFS_NEXT_SENDFILE(handle, tofd, fromfsp, header, offset, count) ((handle)->vfs_next.ops.sendfile((handle)->vfs_next.handles.sendfile, (tofd), (fromfsp), (header), (offset), (count)))
+#define SMB_VFS_NEXT_RECVFILE(handle, fromfd, tofsp, offset, count) ((handle)->vfs_next.ops.recvfile((handle)->vfs_next.handles.recvfile, (fromfd), (tofsp), (offset), (count)))
 #define SMB_VFS_NEXT_RENAME(handle, old, new) ((handle)->vfs_next.ops.rename((handle)->vfs_next.handles.rename, (old), (new)))
 #define SMB_VFS_NEXT_FSYNC(handle, fsp) ((handle)->vfs_next.ops.fsync((handle)->vfs_next.handles.fsync, (fsp)))
 #define SMB_VFS_NEXT_STAT(handle, fname, sbuf) ((handle)->vfs_next.ops.stat((handle)->vfs_next.handles.stat, (fname), (sbuf)))
index 8a00b235ccc10c99eac953afed06d22ee47ff666..eeff80545905587e530adf431cb96be000c81c73 100644 (file)
@@ -614,10 +614,16 @@ size_t convert_string_allocate(TALLOC_CTX *ctx, charset_t from, charset_t to,
   out:
 
        destlen = destlen - o_len;
-       if (ctx) {
-               ob = (char *)TALLOC_REALLOC(ctx,ob,destlen);
-       } else {
-               ob = (char *)SMB_REALLOC(ob,destlen);
+       /* Don't shrink unless we're reclaiming a lot of
+        * space. This is in the hot codepath and these
+        * reallocs *cost*. JRA.
+        */
+       if (o_len > 1024) {
+               if (ctx) {
+                       ob = (char *)TALLOC_REALLOC(ctx,ob,destlen);
+               } else {
+                       ob = (char *)SMB_REALLOC(ob,destlen);
+               }
        }
 
        if (destlen && !ob) {
@@ -778,7 +784,7 @@ char *strdup_upper(const char *s)
        while (*p) {
                if (*p & 0x80)
                        break;
-               *q++ = toupper_ascii(*p);
+               *q++ = toupper_ascii_fast(*p);
                p++;
        }
 
@@ -844,7 +850,7 @@ char *talloc_strdup_upper(TALLOC_CTX *ctx, const char *s)
        while (*p) {
                if (*p & 0x80)
                        break;
-               *q++ = toupper_ascii(*p);
+               *q++ = toupper_ascii_fast(*p);
                p++;
        }
 
index 83a0d111aa7926fd0e77cb6393788e77a8fc5f36..710e45de6be924fbb7bbadc63f854a92e15494be 100644 (file)
@@ -160,8 +160,7 @@ static int db_tdb_fetch(struct db_context *db, TALLOC_CTX *mem_ctx,
 
        state.mem_ctx = mem_ctx;
        state.result = 0;
-       state.data.dptr = NULL;
-       state.data.dsize = 0;
+       state.data = tdb_null;
 
        tdb_parse_record(ctx->wtdb->tdb, key, db_tdb_fetch_parse, &state);
 
index 4f5c5332d577cc1f5be72bb58fd88e0efa8e4819..cdd4d0b3b4fc263b3b7d37e54d18de775b4e8659 100644 (file)
@@ -46,7 +46,7 @@ int main(int argc, char **argv)
 
        status = NetGetDCName(argv[1], argv[2], &buffer);
        if (status != 0) {
-               printf("GetDcName failed with: %s\n", libnetapi_errstr(ctx, status));
+               printf("GetDcName failed with: %s\n", libnetapi_errstr(status));
        } else {
                printf("%s\n", (char *)buffer);
        }
index 4a3588e9abae1dddf959a1e1fd82d035adcfdb91..9dc2a181385059f88d58e9bba5487b93dc363bcb 100644 (file)
@@ -147,13 +147,13 @@ static void callback_apply_description_change(GtkWidget *widget,
        status = NetServerSetInfo(NULL, 1005, (uint8_t *)&info1005, &parm_err); 
        if (status) {
                debug("NetServerSetInfo failed with: %s\n",
-                       libnetapi_errstr(state->ctx, status));
+                       libnetapi_errstr(status));
                dialog = gtk_message_dialog_new(GTK_WINDOW(state->window_main),
                                                GTK_DIALOG_DESTROY_WITH_PARENT,
                                                GTK_MESSAGE_ERROR,
                                                GTK_BUTTONS_OK,
                                                "Failed to change computer description: %s.",
-                                               libnetapi_errstr(state->ctx, status));
+                                               libnetapi_errstr(status));
                g_signal_connect_swapped(dialog, "response",
                                         G_CALLBACK(gtk_widget_destroy),
                                         dialog);
@@ -439,7 +439,7 @@ static void callback_do_join(GtkWidget *widget,
                                         state->password,
                                         unjoin_flags);
                if (status != 0) {
-                       err_str = libnetapi_errstr(state->ctx, status);
+                       err_str = libnetapi_errstr(status);
                        g_print("callback_do_join: failed to unjoin (%s)\n",
                                err_str);
 
@@ -463,7 +463,7 @@ static void callback_do_join(GtkWidget *widget,
                               state->password,
                               join_flags);
        if (status != 0) {
-               err_str = libnetapi_errstr(state->ctx, status);
+               err_str = libnetapi_errstr(status);
                g_print("callback_do_join: failed to join (%s)\n", err_str);
 
                dialog = gtk_message_dialog_new(GTK_WINDOW(state->window_parent),
index a0ac0b1e5618fa325849526403d4cf96c15d06d8..29f66a17a2dfa76271d5fbe524f27306fc5308e8 100644 (file)
@@ -105,9 +105,9 @@ int main(int argc, char **argv)
                               join_flags);
        if (status != 0) {
                const char *errstr = NULL;
-               errstr = libnetapi_get_error_string(ctx);
+               errstr = libnetapi_get_error_string(ctx, status);
                if (!errstr) {
-                       errstr = libnetapi_errstr(ctx, status);
+                       errstr = libnetapi_errstr(status);
                }
                printf("Join failed with: %s\n", errstr);
        } else {
index e4fb63eebb55541743aef65b0fb10ed552d403be..b268e41a2a4e4a9548397327d789ec4b36460eeb 100644 (file)
@@ -49,7 +49,7 @@ static WERROR NetJoinDomainLocal(struct libnetapi_ctx *mem_ctx,
                uint32_t flags = DS_DIRECTORY_SERVICE_REQUIRED |
                                 DS_WRITABLE_REQUIRED |
                                 DS_RETURN_DNS_NAME;
-               status = DsGetDcName(mem_ctx, NULL, domain_name,
+               status = dsgetdcname(mem_ctx, NULL, domain_name,
                                     NULL, NULL, flags, &info);
                if (!NT_STATUS_IS_OK(status)) {
                        return ntstatus_to_werror(status);
@@ -244,7 +244,7 @@ static WERROR NetUnjoinDomainLocal(struct libnetapi_ctx *mem_ctx,
                } else {
                        domain = lp_workgroup();
                }
-               status = DsGetDcName(mem_ctx, NULL, domain,
+               status = dsgetdcname(mem_ctx, NULL, domain,
                                     NULL, NULL, flags, &info);
                if (!NT_STATUS_IS_OK(status)) {
                        return ntstatus_to_werror(status);
index d4cb3a9fe2f2d7c14f29915a9f9ac9fb23765384..ce00054e6e9adb2ed8df3323dba6f1d15b589903 100644 (file)
@@ -192,8 +192,7 @@ NET_API_STATUS libnetapi_set_workgroup(struct libnetapi_ctx *ctx,
 /****************************************************************
 ****************************************************************/
 
-const char *libnetapi_errstr(struct libnetapi_ctx *ctx,
-                            NET_API_STATUS status)
+const char *libnetapi_errstr(NET_API_STATUS status)
 {
        if (status & 0xc0000000) {
                return get_friendly_nt_error_msg(NT_STATUS(status));
@@ -220,9 +219,23 @@ NET_API_STATUS libnetapi_set_error_string(struct libnetapi_ctx *ctx,
 /****************************************************************
 ****************************************************************/
 
-const char *libnetapi_get_error_string(struct libnetapi_ctx *ctx)
+const char *libnetapi_get_error_string(struct libnetapi_ctx *ctx,
+                                      NET_API_STATUS status)
 {
-       return ctx->error_string;
+       struct libnetapi_ctx *tmp_ctx = ctx;
+
+       if (!tmp_ctx) {
+               status = libnetapi_getctx(&tmp_ctx);
+               if (status != 0) {
+                       return NULL;
+               }
+       }
+
+       if (tmp_ctx->error_string) {
+               return tmp_ctx->error_string;
+       }
+
+       return libnetapi_errstr(status);
 }
 
 /****************************************************************
index 4a40b32fc95d4239cbc4200d54db21f4321bea58..274a167d5364115d7534e67c68fa3fffce6e4f3f 100644 (file)
 #ifndef __LIB_NETAPI_H__
 #define __LIB_NETAPI_H__
 
+/****************************************************************
+ include some basic headers
+****************************************************************/
+
+#include <inttypes.h>
+
+/****************************************************************
+ NET_API_STATUS
+****************************************************************/
+
 #define NET_API_STATUS uint32_t
 #define NET_API_STATUS_SUCCESS 0
 
@@ -46,9 +56,10 @@ NET_API_STATUS libnetapi_get_debuglevel(struct libnetapi_ctx *ctx, char **debugl
 NET_API_STATUS libnetapi_set_username(struct libnetapi_ctx *ctx, const char *username);
 NET_API_STATUS libnetapi_set_password(struct libnetapi_ctx *ctx, const char *password);
 NET_API_STATUS libnetapi_set_workgroup(struct libnetapi_ctx *ctx, const char *workgroup);
-const char *libnetapi_errstr(struct libnetapi_ctx *ctx, NET_API_STATUS status);
+const char *libnetapi_errstr(NET_API_STATUS status);
 NET_API_STATUS libnetapi_set_error_string(struct libnetapi_ctx *ctx, const char *error_string);
-const char *libnetapi_get_error_string(struct libnetapi_ctx *ctx);
+const char *libnetapi_get_error_string(struct libnetapi_ctx *ctx, NET_API_STATUS status);
+
 
 /****************************************************************
 ****************************************************************/
index ba025dacc15019d2e1b92f8bed56f15f5f0419b3..f6ff701d5b79ae587dcab9c19950d2dfed7ed675 100644 (file)
@@ -228,25 +228,20 @@ bool share_access_check(const NT_USER_TOKEN *token, const char *sharename,
 {
        uint32 granted;
        NTSTATUS status;
-       TALLOC_CTX *mem_ctx = NULL;
        SEC_DESC *psd = NULL;
        size_t sd_size;
        bool ret = True;
 
-       if (!(mem_ctx = talloc_init("share_access_check"))) {
-               return False;
-       }
-
-       psd = get_share_security(mem_ctx, sharename, &sd_size);
+       psd = get_share_security(talloc_tos(), sharename, &sd_size);
 
        if (!psd) {
-               TALLOC_FREE(mem_ctx);
                return True;
        }
 
        ret = se_access_check(psd, token, desired_access, &granted, &status);
 
-       talloc_destroy(mem_ctx);
+       TALLOC_FREE(psd);
+
        return ret;
 }
 
index 3e976bc0fcfb8e17b07531d07636ca2a43b5496f..9dcd8a2a83cf4e9254b79c8e9f264efdbc8587a4 100644 (file)
@@ -60,6 +60,8 @@
 #define TALLOC_MAGIC 0xe814ec70
 #define TALLOC_FLAG_FREE 0x01
 #define TALLOC_FLAG_LOOP 0x02
+#define TALLOC_FLAG_POOL 0x04          /* This is a talloc pool */
+#define TALLOC_FLAG_POOLMEM 0x08       /* This is allocated in a pool */
 #define TALLOC_MAGIC_REFERENCE ((const char *)1)
 
 /* by default we abort when given a bad pointer (such as when talloc_free() is called 
@@ -109,6 +111,19 @@ struct talloc_chunk {
        const char *name;
        size_t size;
        unsigned flags;
+
+       /*
+        * "pool" has dual use:
+        *
+        * For the talloc pool itself (i.e. TALLOC_FLAG_POOL is set), "pool"
+        * marks the end of the currently allocated area.
+        *
+        * For members of the pool (i.e. TALLOC_FLAG_POOLMEM is set), "pool"
+        * is a pointer to the struct talloc_chunk of the pool that it was
+        * allocated from. This way children can quickly find the pool to chew
+        * from.
+        */
+       void *pool;
 };
 
 /* 16 byte alignment seems to keep everyone happy */
@@ -200,12 +215,87 @@ const char *talloc_parent_name(const void *ptr)
        return tc? tc->name : NULL;
 }
 
+/*
+  A pool carries an in-pool object count count in the first 16 bytes.
+  bytes. This is done to support talloc_steal() to a parent outside of the
+  pool. The count includes the pool itself, so a talloc_free() on a pool will
+  only destroy the pool if the count has dropped to zero. A talloc_free() of a
+  pool member will reduce the count, and eventually also call free(3) on the
+  pool memory.
+
+  The object count is not put into "struct talloc_chunk" because it is only
+  relevant for talloc pools and the alignment to 16 bytes would increase the
+  memory footprint of each talloc chunk by those 16 bytes.
+*/
+
+#define TALLOC_POOL_HDR_SIZE 16
+
+static unsigned int *talloc_pool_objectcount(struct talloc_chunk *tc)
+{
+       return (unsigned int *)((char *)tc + sizeof(struct talloc_chunk));
+}
+
+/*
+  Allocate from a pool
+*/
+
+static struct talloc_chunk *talloc_alloc_pool(struct talloc_chunk *parent,
+                                             size_t size)
+{
+       struct talloc_chunk *pool_ctx = NULL;
+       size_t space_left;
+       struct talloc_chunk *result;
+       size_t chunk_size;
+
+       if (parent == NULL) {
+               return NULL;
+       }
+
+       if (parent->flags & TALLOC_FLAG_POOL) {
+               pool_ctx = parent;
+       }
+       else if (parent->flags & TALLOC_FLAG_POOLMEM) {
+               pool_ctx = (struct talloc_chunk *)parent->pool;
+       }
+
+       if (pool_ctx == NULL) {
+               return NULL;
+       }
+
+       space_left = ((char *)pool_ctx + TC_HDR_SIZE + pool_ctx->size)
+               - ((char *)pool_ctx->pool);
+
+       /*
+        * Align size to 16 bytes
+        */
+       chunk_size = ((size + 15) & ~15);
+
+       if (space_left < chunk_size) {
+               return NULL;
+       }
+
+       result = (struct talloc_chunk *)pool_ctx->pool;
+
+#if defined(DEVELOPER) && defined(VALGRIND_MAKE_MEM_UNDEFINED)
+       VALGRIND_MAKE_MEM_UNDEFINED(result, size);
+#endif
+
+       pool_ctx->pool = (void *)((char *)result + chunk_size);
+
+       result->flags = TALLOC_MAGIC | TALLOC_FLAG_POOLMEM;
+       result->pool = pool_ctx;
+
+       *talloc_pool_objectcount(pool_ctx) += 1;
+
+       return result;
+}
+
 /* 
    Allocate a bit of memory as a child of an existing pointer
 */
 static inline void *__talloc(const void *context, size_t size)
 {
-       struct talloc_chunk *tc;
+       struct talloc_chunk *tc = NULL;
 
        if (unlikely(context == NULL)) {
                context = null_context;
@@ -215,11 +305,19 @@ static inline void *__talloc(const void *context, size_t size)
                return NULL;
        }
 
-       tc = (struct talloc_chunk *)malloc(TC_HDR_SIZE+size);
-       if (unlikely(tc == NULL)) return NULL;
+       if (context != NULL) {
+               tc = talloc_alloc_pool(talloc_chunk_from_ptr(context),
+                                      TC_HDR_SIZE+size);
+       }
+
+       if (tc == NULL) {
+               tc = (struct talloc_chunk *)malloc(TC_HDR_SIZE+size);
+               if (unlikely(tc == NULL)) return NULL;
+               tc->flags = TALLOC_MAGIC;
+               tc->pool  = NULL;
+       }
 
        tc->size = size;
-       tc->flags = TALLOC_MAGIC;
        tc->destructor = NULL;
        tc->child = NULL;
        tc->name = NULL;
@@ -245,6 +343,33 @@ static inline void *__talloc(const void *context, size_t size)
        return TC_PTR_FROM_CHUNK(tc);
 }
 
+/*
+ * Create a talloc pool
+ */
+
+void *talloc_pool(const void *context, size_t size)
+{
+       void *result = __talloc(context, size + TALLOC_POOL_HDR_SIZE);
+       struct talloc_chunk *tc;
+
+       if (unlikely(result == NULL)) {
+               return NULL;
+       }
+
+       tc = talloc_chunk_from_ptr(result);
+
+       tc->flags |= TALLOC_FLAG_POOL;
+       tc->pool = (char *)result + TALLOC_POOL_HDR_SIZE;
+
+       *talloc_pool_objectcount(tc) = 1;
+
+#if defined(DEVELOPER) && defined(VALGRIND_MAKE_MEM_NOACCESS)
+       VALGRIND_MAKE_MEM_NOACCESS(tc->pool, size);
+#endif
+
+       return result;
+}
+
 /*
   setup a destructor to be called on free of a pointer
   the destructor should return 0 on success, or -1 on failure.
@@ -420,7 +545,29 @@ static inline int _talloc_free(void *ptr)
        }
 
        tc->flags |= TALLOC_FLAG_FREE;
-       free(tc);
+
+       if (tc->flags & (TALLOC_FLAG_POOL|TALLOC_FLAG_POOLMEM)) {
+               struct talloc_chunk *pool;
+               unsigned int *pool_object_count;
+
+               pool = (tc->flags & TALLOC_FLAG_POOL)
+                       ? tc : (struct talloc_chunk *)tc->pool;
+
+               pool_object_count = talloc_pool_objectcount(pool);
+
+               if (*pool_object_count == 0) {
+                       TALLOC_ABORT("Pool object count zero!");
+               }
+
+               *pool_object_count -= 1;
+
+               if (*pool_object_count == 0) {
+                       free(pool);
+               }
+       }
+       else {
+               free(tc);
+       }
        return 0;
 }
 
@@ -718,6 +865,15 @@ void talloc_free_children(void *ptr)
                        talloc_steal(new_parent, child);
                }
        }
+
+       if ((tc->flags & TALLOC_FLAG_POOL)
+           && (*talloc_pool_objectcount(tc) == 1)) {
+               tc->pool = ((char *)tc + TC_HDR_SIZE + TALLOC_POOL_HDR_SIZE);
+#if defined(DEVELOPER) && defined(VALGRIND_MAKE_MEM_NOACCESS)
+               VALGRIND_MAKE_MEM_NOACCESS(
+                       tc->pool, tc->size - TALLOC_POOL_HDR_SIZE);
+#endif
+       }
 }
 
 /* 
@@ -769,6 +925,7 @@ void *_talloc_realloc(const void *context, void *ptr, size_t size, const char *n
 {
        struct talloc_chunk *tc;
        void *new_ptr;
+       bool malloced = false;
 
        /* size zero is equivalent to free() */
        if (unlikely(size == 0)) {
@@ -808,7 +965,24 @@ void *_talloc_realloc(const void *context, void *ptr, size_t size, const char *n
                free(tc);
        }
 #else
-       new_ptr = realloc(tc, size + TC_HDR_SIZE);
+       if (tc->flags & TALLOC_FLAG_POOLMEM) {
+
+               new_ptr = talloc_alloc_pool(tc, size + TC_HDR_SIZE);
+               *talloc_pool_objectcount((struct talloc_chunk *)
+                                        (tc->pool)) -= 1;
+
+               if (new_ptr == NULL) {
+                       new_ptr = malloc(TC_HDR_SIZE+size);
+                       malloced = true;
+               }
+
+               if (new_ptr) {
+                       memcpy(new_ptr, tc, MIN(tc->size,size) + TC_HDR_SIZE);
+               }
+       }
+       else {
+               new_ptr = realloc(tc, size + TC_HDR_SIZE);
+       }
 #endif
        if (unlikely(!new_ptr)) {       
                tc->flags &= ~TALLOC_FLAG_FREE; 
@@ -816,7 +990,10 @@ void *_talloc_realloc(const void *context, void *ptr, size_t size, const char *n
        }
 
        tc = (struct talloc_chunk *)new_ptr;
-       tc->flags &= ~TALLOC_FLAG_FREE; 
+       tc->flags &= ~TALLOC_FLAG_FREE;
+       if (malloced) {
+               tc->flags &= ~TALLOC_FLAG_POOLMEM;
+       }
        if (tc->parent) {
                tc->parent->child = tc;
        }
index e1033916817d86b913393824a8a711e30acc6968..5431971655ed7093a2e9d2db3c3239da69c18177 100644 (file)
@@ -116,6 +116,7 @@ typedef void TALLOC_CTX;
 
 /* The following definitions come from talloc.c  */
 void *_talloc(const void *context, size_t size);
+void *talloc_pool(const void *context, size_t size);
 void _talloc_set_destructor(const void *ptr, int (*destructor)(void *));
 int talloc_increase_ref_count(const void *ptr);
 size_t talloc_reference_count(const void *ptr);
index e16c91f8b9c27cb0b3f308ff42a2d13ae5413eb4..fedbda95aac23dbb86d2701a43385df04dbb023e 100644 (file)
@@ -813,6 +813,25 @@ static bool test_speed(void)
 
        talloc_free(ctx);
 
+       ctx = talloc_pool(NULL, 1024);
+
+       tv = timeval_current();
+       count = 0;
+       do {
+               void *p1, *p2, *p3;
+               for (i=0;i<loop;i++) {
+                       p1 = talloc_size(ctx, loop % 100);
+                       p2 = talloc_strdup(p1, "foo bar");
+                       p3 = talloc_size(p1, 300);
+                       talloc_free_children(ctx);
+               }
+               count += 3 * loop;
+       } while (timeval_elapsed(&tv) < 5.0);
+
+       talloc_free(ctx);
+
+       fprintf(stderr, "talloc_pool: %.0f ops/sec\n", count/timeval_elapsed(&tv));
+
        tv = timeval_current();
        count = 0;
        do {
@@ -1066,6 +1085,23 @@ static bool test_autofree(void)
        return true;
 }
 
+static bool test_pool(void)
+{
+       void *pool;
+       void *p1, *p2, *p3, *p4;
+
+       pool = talloc_pool(NULL, 1024);
+
+       p1 = talloc_size(pool, 80);
+       p2 = talloc_size(pool, 20);
+       p3 = talloc_size(p1, 50);
+       p4 = talloc_size(p3, 1000);
+
+       talloc_free(pool);
+
+       return true;
+}
+
 struct torture_context;
 bool torture_local_talloc(struct torture_context *tctx)
 {
@@ -1094,6 +1130,7 @@ bool torture_local_talloc(struct torture_context *tctx)
        ret &= test_free_parent_deny_child(); 
        ret &= test_talloc_ptrtype();
        ret &= test_talloc_free_in_destructor();
+       ret &= test_pool();
 
        if (ret) {
                ret &= test_speed();
index d887b2d4154abf54919105279ea517963c57211c..2722fb96768636ccd64fac6e896d25c1c74c2422 100644 (file)
@@ -64,9 +64,9 @@ static int talloc_pop(TALLOC_CTX *frame)
  * not explicitly freed.
  */
 
-TALLOC_CTX *talloc_stackframe(void)
+static TALLOC_CTX *talloc_stackframe_internal(size_t poolsize)
 {
-       TALLOC_CTX **tmp, *top;
+       TALLOC_CTX **tmp, *top, *parent;
 
        if (talloc_stack_arraysize < talloc_stacksize + 1) {
                tmp = TALLOC_REALLOC_ARRAY(NULL, talloc_stack, TALLOC_CTX *,
@@ -78,7 +78,18 @@ TALLOC_CTX *talloc_stackframe(void)
                talloc_stack_arraysize = talloc_stacksize + 1;
         }
 
-       top = talloc_new(talloc_stack);
+       if (talloc_stacksize == 0) {
+               parent = talloc_stack;
+       }
+       else {
+               parent = talloc_stack[talloc_stacksize-1];
+       }
+
+       if (poolsize) {
+               top = talloc_pool(parent, poolsize);
+       } else {
+               top = talloc_new(parent);
+       }
 
        if (top == NULL) {
                goto fail;
@@ -94,6 +105,16 @@ TALLOC_CTX *talloc_stackframe(void)
        return NULL;
 }
 
+TALLOC_CTX *talloc_stackframe(void)
+{
+       return talloc_stackframe_internal(0);
+}
+
+TALLOC_CTX *talloc_stackframe_pool(size_t poolsize)
+{
+       return talloc_stackframe_internal(poolsize);
+}
+
 /*
  * Get us the current top of the talloc stack.
  */
index b109643f23561790f7616a963551c7bf64c13385..c086c151fa686ceafd421c563313a734bf6d279f 100644 (file)
 
 #include "tdb_private.h"
 
+/* 'right' merges can involve O(n^2) cost when combined with a
+   traverse, so they are disabled until we find a way to do them in 
+   O(1) time
+*/
+#define USE_RIGHT_MERGES 0
+
 /* read a freelist record and check for simple errors */
 int tdb_rec_free_read(struct tdb_context *tdb, tdb_off_t off, struct list_struct *rec)
 {
@@ -56,7 +62,7 @@ int tdb_rec_free_read(struct tdb_context *tdb, tdb_off_t off, struct list_struct
 }
 
 
-
+#if USE_RIGHT_MERGES
 /* Remove an element from the freelist.  Must have alloc lock. */
 static int remove_from_freelist(struct tdb_context *tdb, tdb_off_t off, tdb_off_t next)
 {
@@ -75,6 +81,7 @@ static int remove_from_freelist(struct tdb_context *tdb, tdb_off_t off, tdb_off_
        TDB_LOG((tdb, TDB_DEBUG_FATAL,"remove_from_freelist: not on list at off=%d\n", off));
        return TDB_ERRCODE(TDB_ERR_CORRUPT, -1);
 }
+#endif
 
 
 /* update a record tailer (must hold allocation lock) */
@@ -93,8 +100,6 @@ static int update_tailer(struct tdb_context *tdb, tdb_off_t offset,
    neccessary. */
 int tdb_free(struct tdb_context *tdb, tdb_off_t offset, struct list_struct *rec)
 {
-       tdb_off_t right, left;
-
        /* Allocation and tailer lock */
        if (tdb_lock(tdb, -1, F_WRLCK) != 0)
                return -1;
@@ -105,9 +110,10 @@ int tdb_free(struct tdb_context *tdb, tdb_off_t offset, struct list_struct *rec)
                goto fail;
        }
 
+#if USE_RIGHT_MERGES
        /* Look right first (I'm an Australian, dammit) */
-       right = offset + sizeof(*rec) + rec->rec_len;
-       if (right + sizeof(*rec) <= tdb->map_size) {
+       if (offset + sizeof(*rec) + rec->rec_len + sizeof(*rec) <= tdb->map_size) {
+               tdb_off_t right = offset + sizeof(*rec) + rec->rec_len;
                struct list_struct r;
 
                if (tdb->methods->tdb_read(tdb, right, &r, sizeof(r), DOCONV()) == -1) {
@@ -122,13 +128,18 @@ int tdb_free(struct tdb_context *tdb, tdb_off_t offset, struct list_struct *rec)
                                goto left;
                        }
                        rec->rec_len += sizeof(r) + r.rec_len;
+                       if (update_tailer(tdb, offset, rec) == -1) {
+                               TDB_LOG((tdb, TDB_DEBUG_FATAL, "tdb_free: update_tailer failed at %u\n", offset));
+                               goto fail;
+                       }
                }
        }
-
 left:
+#endif
+
        /* Look left */
-       left = offset - sizeof(tdb_off_t);
-       if (left > TDB_DATA_START(tdb->header.hash_size)) {
+       if (offset - sizeof(tdb_off_t) > TDB_DATA_START(tdb->header.hash_size)) {
+               tdb_off_t left = offset - sizeof(tdb_off_t);
                struct list_struct l;
                tdb_off_t leftsize;
                
@@ -145,7 +156,12 @@ left:
 
                left = offset - leftsize;
 
-               /* Now read in record */
+               if (leftsize > offset ||
+                   left < TDB_DATA_START(tdb->header.hash_size)) {
+                       goto update;
+               }
+
+               /* Now read in the left record */
                if (tdb->methods->tdb_read(tdb, left, &l, sizeof(l), DOCONV()) == -1) {
                        TDB_LOG((tdb, TDB_DEBUG_FATAL, "tdb_free: left read failed at %u (%u)\n", left, leftsize));
                        goto update;
@@ -153,21 +169,24 @@ left:
 
                /* If it's free, expand to include it. */
                if (l.magic == TDB_FREE_MAGIC) {
-                       if (remove_from_freelist(tdb, left, l.next) == -1) {
-                               TDB_LOG((tdb, TDB_DEBUG_FATAL, "tdb_free: left free failed at %u\n", left));
-                               goto update;
-                       } else {
-                               offset = left;
-                               rec->rec_len += leftsize;
+                       /* we now merge the new record into the left record, rather than the other 
+                          way around. This makes the operation O(1) instead of O(n). This change
+                          prevents traverse from being O(n^2) after a lot of deletes */
+                       l.rec_len += sizeof(*rec) + rec->rec_len;
+                       if (tdb_rec_write(tdb, left, &l) == -1) {
+                               TDB_LOG((tdb, TDB_DEBUG_FATAL, "tdb_free: update_left failed at %u\n", left));
+                               goto fail;
                        }
+                       if (update_tailer(tdb, left, &l) == -1) {
+                               TDB_LOG((tdb, TDB_DEBUG_FATAL, "tdb_free: update_tailer failed at %u\n", offset));
+                               goto fail;
+                       }
+                       tdb_unlock(tdb, -1, F_WRLCK);
+                       return 0;
                }
        }
 
 update:
-       if (update_tailer(tdb, offset, rec) == -1) {
-               TDB_LOG((tdb, TDB_DEBUG_FATAL, "tdb_free: update_tailer failed at %u\n", offset));
-               goto fail;
-       }
 
        /* Now, prepend to free list */
        rec->magic = TDB_FREE_MAGIC;
@@ -261,6 +280,7 @@ tdb_off_t tdb_allocate(struct tdb_context *tdb, tdb_len_t length, struct list_st
                tdb_off_t rec_ptr, last_ptr;
                tdb_len_t rec_len;
        } bestfit;
+       float multiplier = 1.0;
 
        if (tdb_lock(tdb, -1, F_WRLCK) == -1)
                return 0;
@@ -295,18 +315,27 @@ tdb_off_t tdb_allocate(struct tdb_context *tdb, tdb_len_t length, struct list_st
                                bestfit.rec_len = rec->rec_len;
                                bestfit.rec_ptr = rec_ptr;
                                bestfit.last_ptr = last_ptr;
-                               /* consider a fit to be good enough if
-                                  we aren't wasting more than half
-                                  the space */
-                               if (bestfit.rec_len < 2*length) {
-                                       break;
-                               }
                        }
                }
 
                /* move to the next record */
                last_ptr = rec_ptr;
                rec_ptr = rec->next;
+
+               /* if we've found a record that is big enough, then
+                  stop searching if its also not too big. The
+                  definition of 'too big' changes as we scan
+                  through */
+               if (bestfit.rec_len > 0 &&
+                   bestfit.rec_len < length * multiplier) {
+                       break;
+               }
+               
+               /* this multiplier means we only extremely rarely
+                  search more than 50 or so records. At 50 records we
+                  accept records up to 11 times larger than what we
+                  want */
+               multiplier *= 1.05;
        }
 
        if (bestfit.rec_ptr != 0) {
@@ -328,3 +357,25 @@ tdb_off_t tdb_allocate(struct tdb_context *tdb, tdb_len_t length, struct list_st
        return 0;
 }
 
+
+
+/* 
+   return the size of the freelist - used to decide if we should repack 
+*/
+int tdb_freelist_size(struct tdb_context *tdb)
+{
+       tdb_off_t ptr;
+       int count=0;
+
+       if (tdb_lock(tdb, -1, F_RDLCK) == -1) {
+               return -1;
+       }
+
+       ptr = FREELIST_TOP;
+       while (tdb_ofs_read(tdb, ptr, &ptr) == 0 && ptr != 0) {
+               count++;
+       }
+
+       tdb_unlock(tdb, -1, F_RDLCK);
+       return count;
+}
index 8ab0768883709467876939127a3dc6dddfeb4822..172ab69d8c9e69ae7f160071567c4d885ac7848c 100644 (file)
@@ -101,8 +101,8 @@ static int tdb_write(struct tdb_context *tdb, tdb_off_t off,
                                         off+written);
                }
                if (written == -1) {
-                       /* Ensure ecode is set for log fn. */
-                       tdb->ecode = TDB_ERR_IO;
+               /* Ensure ecode is set for log fn. */
+               tdb->ecode = TDB_ERR_IO;
                        TDB_LOG((tdb, TDB_DEBUG_FATAL,"tdb_write failed at %d "
                                 "len=%d (%s)\n", off, len, strerror(errno)));
                        return TDB_ERRCODE(TDB_ERR_IO, -1);
@@ -111,8 +111,8 @@ static int tdb_write(struct tdb_context *tdb, tdb_off_t off,
                                 "write %d bytes at %d in two attempts\n",
                                 len, off));
                        errno = ENOSPC;
-                       return TDB_ERRCODE(TDB_ERR_IO, -1);
-               }
+               return TDB_ERRCODE(TDB_ERR_IO, -1);
+       }
        }
        return 0;
 }
@@ -230,7 +230,7 @@ void tdb_mmap(struct tdb_context *tdb)
   says to use for mmap expansion */
 static int tdb_expand_file(struct tdb_context *tdb, tdb_off_t size, tdb_off_t addition)
 {
-       char buf[1024];
+       char buf[8192];
 
        if (tdb->read_only || tdb->traverse_read) {
                tdb->ecode = TDB_ERR_RDONLY;
@@ -294,7 +294,7 @@ static int tdb_expand_file(struct tdb_context *tdb, tdb_off_t size, tdb_off_t ad
 int tdb_expand(struct tdb_context *tdb, tdb_off_t size)
 {
        struct list_struct rec;
-       tdb_off_t offset;
+       tdb_off_t offset, new_size;     
 
        if (tdb_lock(tdb, -1, F_WRLCK) == -1) {
                TDB_LOG((tdb, TDB_DEBUG_ERROR, "lock failed in tdb_expand\n"));
@@ -304,9 +304,11 @@ int tdb_expand(struct tdb_context *tdb, tdb_off_t size)
        /* must know about any previous expansions by another process */
        tdb->methods->tdb_oob(tdb, tdb->map_size + 1, 1);
 
-       /* always make room for at least 10 more records, and round
-           the database up to a multiple of the page size */
-       size = TDB_ALIGN(tdb->map_size + size*10, tdb->page_size) - tdb->map_size;
+       /* always make room for at least 100 more records, and at
+           least 25% more space. Round the database up to a multiple
+           of the page size */
+       new_size = MAX(tdb->map_size + size*100, tdb->map_size * 1.25);
+       size = TDB_ALIGN(new_size, tdb->page_size) - tdb->map_size;
 
        if (!(tdb->flags & TDB_INTERNAL))
                tdb_munmap(tdb);
index e3fe888c465f357adb436b7230d8e3070f073a63..f156c0fa7b2e548640d47db23df71c9427ec73ce 100644 (file)
@@ -505,6 +505,9 @@ int tdb_chainunlock_read(struct tdb_context *tdb, TDB_DATA key)
 /* record lock stops delete underneath */
 int tdb_lock_record(struct tdb_context *tdb, tdb_off_t off)
 {
+       if (tdb->global_lock.count) {
+               return 0;
+       }
        return off ? tdb->methods->tdb_brlock(tdb, off, F_RDLCK, F_SETLKW, 0, 1) : 0;
 }
 
@@ -537,6 +540,10 @@ int tdb_unlock_record(struct tdb_context *tdb, tdb_off_t off)
        struct tdb_traverse_lock *i;
        uint32_t count = 0;
 
+       if (tdb->global_lock.count) {
+               return 0;
+       }
+
        if (off == 0)
                return 0;
        for (i = &tdb->travlocks; i; i = i->next)
index 0bd1c91a5eec1333af91d949b17cf202a29540ef..6bd8fda2bf1a4a5212578bfcc60edcf74bd76f93 100644 (file)
@@ -35,7 +35,7 @@ static struct tdb_context *tdbs = NULL;
 static unsigned int default_tdb_hash(TDB_DATA *key)
 {
        uint32_t value; /* Used to compute the hash value.  */
-       uint32_t i;     /* Used to cycle through random values. */
+       uint32_t   i;   /* Used to cycle through random values. */
 
        /* Set the initial value from the key size. */
        for (value = 0x238F13AF * key->dsize, i=0; i < key->dsize; i++)
@@ -90,7 +90,7 @@ static int tdb_new_database(struct tdb_context *tdb, int hash_size)
                size -= written;
                written = write(tdb->fd, newdb+written, size);
                if (written == size) {
-                       ret = 0;
+               ret = 0;
                } else if (written >= 0) {
                        /* a second incomplete write - we give up.
                         * guessing the errno... */
@@ -152,6 +152,7 @@ struct tdb_context *tdb_open_ex(const char *name, int hash_size, int tdb_flags,
        int rev = 0, locked = 0;
        unsigned char *vp;
        uint32_t vertest;
+       unsigned v;
 
        if (!(tdb = (struct tdb_context *)calloc(1, sizeof *tdb))) {
                /* Can't log this */
@@ -215,6 +216,10 @@ struct tdb_context *tdb_open_ex(const char *name, int hash_size, int tdb_flags,
                goto fail;      /* errno set by open(2) */
        }
 
+       /* on exec, don't inherit the fd */
+       v = fcntl(tdb->fd, F_GETFD, 0);
+        fcntl(tdb->fd, F_SETFD, v | FD_CLOEXEC);
+
        /* ensure there is only one process initialising at once */
        if (tdb->methods->tdb_brlock(tdb, GLOBAL_LOCK, F_WRLCK, F_SETLKW, 0, 1) == -1) {
                TDB_LOG((tdb, TDB_DEBUG_ERROR, "tdb_open_ex: failed to get global lock on %s: %s\n",
@@ -242,7 +247,7 @@ struct tdb_context *tdb_open_ex(const char *name, int hash_size, int tdb_flags,
                /* its not a valid database - possibly initialise it */
                if (!(open_flags & O_CREAT) || tdb_new_database(tdb, hash_size) == -1) {
                        if (errno == 0) {
-                               errno = EIO; /* ie bad format or something */
+                       errno = EIO; /* ie bad format or something */
                        }
                        goto fail;
                }
index 0e9d1dbd7412942634d982c92fe3bef57d7bf572..bf3abb71ac9dd674e7329be5595447b74f106137 100644 (file)
@@ -102,8 +102,7 @@ static tdb_off_t tdb_find(struct tdb_context *tdb, TDB_DATA key, uint32_t hash,
 }
 
 /* As tdb_find, but if you succeed, keep the lock */
-tdb_off_t tdb_find_lock_hash(struct tdb_context *tdb, TDB_DATA key, 
-                                                        uint32_t hash, int locktype,
+tdb_off_t tdb_find_lock_hash(struct tdb_context *tdb, TDB_DATA key, uint32_t hash, int locktype,
                           struct list_struct *rec)
 {
        uint32_t rec_ptr;
@@ -237,14 +236,15 @@ int tdb_exists(struct tdb_context *tdb, TDB_DATA key)
 }
 
 /* actually delete an entry in the database given the offset */
-int tdb_do_delete(struct tdb_context *tdb, tdb_off_t rec_ptr, struct list_struct*rec)
+int tdb_do_delete(struct tdb_context *tdb, tdb_off_t rec_ptr, struct list_struct *rec)
 {
        tdb_off_t last_ptr, i;
        struct list_struct lastrec;
 
        if (tdb->read_only || tdb->traverse_read) return -1;
 
-       if (tdb_write_lock_record(tdb, rec_ptr) == -1) {
+       if (tdb->traverse_write != 0 || 
+           tdb_write_lock_record(tdb, rec_ptr) == -1) {
                /* Someone traversing here: mark it as dead */
                rec->magic = TDB_DEAD_MAGIC;
                return tdb_rec_write(tdb, rec_ptr, rec);
@@ -666,6 +666,16 @@ int tdb_get_flags(struct tdb_context *tdb)
        return tdb->flags;
 }
 
+void tdb_add_flags(struct tdb_context *tdb, unsigned flags)
+{
+       tdb->flags |= flags;
+}
+
+void tdb_remove_flags(struct tdb_context *tdb, unsigned flags)
+{
+       tdb->flags &= ~flags;
+}
+
 
 /*
   enable sequence number handling on an open tdb
@@ -674,3 +684,57 @@ void tdb_enable_seqnum(struct tdb_context *tdb)
 {
        tdb->flags |= TDB_SEQNUM;
 }
+
+
+/*
+  wipe the entire database, deleting all records. This can be done
+  very fast by using a global lock. The entire data portion of the
+  file becomes a single entry in the freelist.
+ */
+int tdb_wipe_all(struct tdb_context *tdb)
+{
+       int i;
+       tdb_off_t offset = 0;
+       ssize_t data_len;
+
+       if (tdb_lockall(tdb) != 0) {
+               return -1;
+       }
+
+       /* wipe the hashes */
+       for (i=0;i<tdb->header.hash_size;i++) {
+               if (tdb_ofs_write(tdb, TDB_HASH_TOP(i), &offset) == -1) {
+                       TDB_LOG((tdb, TDB_DEBUG_FATAL,"tdb_wipe_all: failed to write hash %d\n", i));
+                       goto failed;
+               }
+       }
+
+       /* wipe the freelist */
+       if (tdb_ofs_write(tdb, FREELIST_TOP, &offset) == -1) {
+               TDB_LOG((tdb, TDB_DEBUG_FATAL,"tdb_wipe_all: failed to write freelist\n"));
+               goto failed;
+       }
+
+       /* add all the rest of the file to the freelist */
+       data_len = (tdb->map_size - TDB_DATA_START(tdb->header.hash_size)) - sizeof(struct list_struct);
+       if (data_len > 0) {
+               struct list_struct rec;
+               memset(&rec,'\0',sizeof(rec));
+               rec.rec_len = data_len;
+               if (tdb_free(tdb, TDB_DATA_START(tdb->header.hash_size), &rec) == -1) {
+                       TDB_LOG((tdb, TDB_DEBUG_FATAL,"tdb_wipe_all: failed to add free record\n"));
+                       goto failed;
+               }
+       }
+
+       if (tdb_unlockall(tdb) != 0) {
+               TDB_LOG((tdb, TDB_DEBUG_FATAL,"tdb_wipe_all: failed to unlock\n"));
+               goto failed;
+       }
+
+       return 0;
+
+failed:
+       tdb_unlockall(tdb);
+       return -1;
+}
index 58c30c1706cf0bf244bf8f467a6c1e5acba277fc..63a6d04e72d00db22f8c87c6cf3222963f1d1562 100644 (file)
 typedef uint32_t tdb_len_t;
 typedef uint32_t tdb_off_t;
 
+#ifndef offsetof
+#define offsetof(t,f) ((unsigned int)&((t *)0)->f)
+#endif
+
 #define TDB_MAGIC_FOOD "TDB file\n"
 #define TDB_VERSION (0x26011967 + 6)
 #define TDB_MAGIC (0x26011999U)
@@ -54,7 +58,7 @@ typedef uint32_t tdb_off_t;
 #define TDB_BAD_MAGIC(r) ((r)->magic != TDB_MAGIC && !TDB_DEAD(r))
 #define TDB_HASH_TOP(hash) (FREELIST_TOP + (BUCKET(hash)+1)*sizeof(tdb_off_t))
 #define TDB_HASHTABLE_SIZE(tdb) ((tdb->header.hash_size+1)*sizeof(tdb_off_t))
-#define TDB_DATA_START(hash_size) TDB_HASH_TOP(hash_size-1)
+#define TDB_DATA_START(hash_size) (TDB_HASH_TOP(hash_size-1) + sizeof(tdb_off_t))
 #define TDB_RECOVERY_HEAD offsetof(struct tdb_header, recovery_start)
 #define TDB_SEQNUM_OFS    offsetof(struct tdb_header, sequence_number)
 #define TDB_PAD_BYTE 0x42
@@ -144,6 +148,7 @@ struct tdb_context {
        tdb_len_t map_size; /* how much space has been mapped */
        int read_only; /* opened read-only */
        int traverse_read; /* read-only traversal */
+       int traverse_write; /* read-write traversal */
        struct tdb_lock_type global_lock;
        int num_lockrecs;
        struct tdb_lock_type *lockrecs; /* only real locks, all with count>0 */
@@ -173,7 +178,6 @@ struct tdb_context {
 int tdb_munmap(struct tdb_context *tdb);
 void tdb_mmap(struct tdb_context *tdb);
 int tdb_lock(struct tdb_context *tdb, int list, int ltype);
-int tdb_lock_nonblock(struct tdb_context *tdb, int list, int ltype);
 int tdb_unlock(struct tdb_context *tdb, int list, int ltype);
 int tdb_brlock(struct tdb_context *tdb, tdb_off_t offset, int rw_type, int lck_type, int probe, size_t len);
 int tdb_transaction_lock(struct tdb_context *tdb, int ltype);
index 7eaacf7a164fbad3052c8b211ca8f547af3ba3be..2da09face0282558cd23d29dac97240de2285b29 100644 (file)
 
 */
 
-struct tdb_transaction_el {
-       struct tdb_transaction_el *next, *prev;
-       tdb_off_t offset;
-       tdb_len_t length;
-       unsigned char *data;
-};
-
 /*
   hold the context of any current transaction
 */
@@ -105,12 +98,12 @@ struct tdb_transaction {
        /* the original io methods - used to do IOs to the real db */
        const struct tdb_methods *io_methods;
 
-       /* the list of transaction elements. We use a doubly linked
-          list with a last pointer to allow us to keep the list
-          ordered, with first element at the front of the list. It
-          needs to be doubly linked as the read/write traversals need
-          to be backwards, while the commit needs to be forwards */
-       struct tdb_transaction_el *elements, *elements_last;
+       /* the list of transaction blocks. When a block is first
+          written to, it gets created in this list */
+       uint8_t **blocks;
+       uint32_t num_blocks;
+       uint32_t block_size;      /* bytes in each block */
+       uint32_t last_block_size; /* number of valid bytes in the last block */
 
        /* non-zero when an internal transaction error has
           occurred. All write operations will then fail until the
@@ -134,52 +127,48 @@ struct tdb_transaction {
 static int transaction_read(struct tdb_context *tdb, tdb_off_t off, void *buf, 
                            tdb_len_t len, int cv)
 {
-       struct tdb_transaction_el *el;
-
-       /* we need to walk the list backwards to get the most recent data */
-       for (el=tdb->transaction->elements_last;el;el=el->prev) {
-               tdb_len_t partial;
+       uint32_t blk;
 
-               if (off+len <= el->offset) {
-                       continue;
-               }
-               if (off >= el->offset + el->length) {
-                       continue;
+       /* break it down into block sized ops */
+       while (len + (off % tdb->transaction->block_size) > tdb->transaction->block_size) {
+               tdb_len_t len2 = tdb->transaction->block_size - (off % tdb->transaction->block_size);
+               if (transaction_read(tdb, off, buf, len2, cv) != 0) {
+                       return -1;
                }
+               len -= len2;
+               off += len2;
+               buf = (void *)(len2 + (char *)buf);
+       }
 
-               /* an overlapping read - needs to be split into up to
-                  2 reads and a memcpy */
-               if (off < el->offset) {
-                       partial = el->offset - off;
-                       if (transaction_read(tdb, off, buf, partial, cv) != 0) {
-                               goto fail;
-                       }
-                       len -= partial;
-                       off += partial;
-                       buf = (void *)(partial + (char *)buf);
-               }
-               if (off + len <= el->offset + el->length) {
-                       partial = len;
-               } else {
-                       partial = el->offset + el->length - off;
-               }
-               memcpy(buf, el->data + (off - el->offset), partial);
-               if (cv) {
-                       tdb_convert(buf, len);
-               }
-               len -= partial;
-               off += partial;
-               buf = (void *)(partial + (char *)buf);
-               
-               if (len != 0 && transaction_read(tdb, off, buf, len, cv) != 0) {
+       if (len == 0) {
+               return 0;
+       }
+
+       blk = off / tdb->transaction->block_size;
+
+       /* see if we have it in the block list */
+       if (tdb->transaction->num_blocks <= blk ||
+           tdb->transaction->blocks[blk] == NULL) {
+               /* nope, do a real read */
+               if (tdb->transaction->io_methods->tdb_read(tdb, off, buf, len, cv) != 0) {
                        goto fail;
                }
-
                return 0;
        }
 
-       /* its not in the transaction elements - do a real read */
-       return tdb->transaction->io_methods->tdb_read(tdb, off, buf, len, cv);
+       /* it is in the block list. Now check for the last block */
+       if (blk == tdb->transaction->num_blocks-1) {
+               if (len > tdb->transaction->last_block_size) {
+                       goto fail;
+               }
+       }
+       
+       /* now copy it out of this block */
+       memcpy(buf, tdb->transaction->blocks[blk] + (off % tdb->transaction->block_size), len);
+       if (cv) {
+               tdb_convert(buf, len);
+       }
+       return 0;
 
 fail:
        TDB_LOG((tdb, TDB_DEBUG_FATAL, "transaction_read: failed at off=%d len=%d\n", off, len));
@@ -195,12 +184,8 @@ fail:
 static int transaction_write(struct tdb_context *tdb, tdb_off_t off, 
                             const void *buf, tdb_len_t len)
 {
-       struct tdb_transaction_el *el, *best_el=NULL;
+       uint32_t blk;
 
-       if (len == 0) {
-               return 0;
-       }
-       
        /* if the write is to a hash head, then update the transaction
           hash heads */
        if (len == sizeof(tdb_off_t) && off >= FREELIST_TOP &&
@@ -209,106 +194,88 @@ static int transaction_write(struct tdb_context *tdb, tdb_off_t off,
                memcpy(&tdb->transaction->hash_heads[chain], buf, len);
        }
 
-       /* first see if we can replace an existing entry */
-       for (el=tdb->transaction->elements_last;el;el=el->prev) {
-               tdb_len_t partial;
-
-               if (best_el == NULL && off == el->offset+el->length) {
-                       best_el = el;
+       /* break it up into block sized chunks */
+       while (len + (off % tdb->transaction->block_size) > tdb->transaction->block_size) {
+               tdb_len_t len2 = tdb->transaction->block_size - (off % tdb->transaction->block_size);
+               if (transaction_write(tdb, off, buf, len2) != 0) {
+                       return -1;
                }
-
-               if (off+len <= el->offset) {
-                       continue;
-               }
-               if (off >= el->offset + el->length) {
-                       continue;
+               len -= len2;
+               off += len2;
+               if (buf != NULL) {
+                       buf = (const void *)(len2 + (const char *)buf);
                }
+       }
 
-               /* an overlapping write - needs to be split into up to
-                  2 writes and a memcpy */
-               if (off < el->offset) {
-                       partial = el->offset - off;
-                       if (transaction_write(tdb, off, buf, partial) != 0) {
-                               goto fail;
-                       }
-                       len -= partial;
-                       off += partial;
-                       buf = (const void *)(partial + (const char *)buf);
-               }
-               if (off + len <= el->offset + el->length) {
-                       partial = len;
+       if (len == 0) {
+               return 0;
+       }
+
+       blk = off / tdb->transaction->block_size;
+       off = off % tdb->transaction->block_size;
+
+       if (tdb->transaction->num_blocks <= blk) {
+               uint8_t **new_blocks;
+               /* expand the blocks array */
+               if (tdb->transaction->blocks == NULL) {
+                       new_blocks = malloc((blk+1)*sizeof(uint8_t *));
                } else {
-                       partial = el->offset + el->length - off;
+                       new_blocks = realloc(tdb->transaction->blocks, (blk+1)*sizeof(uint8_t *));
                }
-               memcpy(el->data + (off - el->offset), buf, partial);
-               len -= partial;
-               off += partial;
-               buf = (const void *)(partial + (const char *)buf);
-               
-               if (len != 0 && transaction_write(tdb, off, buf, len) != 0) {
+               if (new_blocks == NULL) {
+                       tdb->ecode = TDB_ERR_OOM;
                        goto fail;
                }
-
-               return 0;
+               memset(&new_blocks[tdb->transaction->num_blocks], 0, 
+                      (1+(blk - tdb->transaction->num_blocks))*sizeof(uint8_t *));
+               tdb->transaction->blocks = new_blocks;
+               tdb->transaction->num_blocks = blk+1;
+               tdb->transaction->last_block_size = 0;
        }
 
-       /* see if we can append the new entry to an existing entry */
-       if (best_el && best_el->offset + best_el->length == off && 
-           (off+len < tdb->transaction->old_map_size ||
-            off > tdb->transaction->old_map_size)) {
-               unsigned char *data = best_el->data;
-               el = best_el;
-               el->data = (unsigned char *)realloc(el->data,
-                                                   el->length + len);
-               if (el->data == NULL) {
+       /* allocate and fill a block? */
+       if (tdb->transaction->blocks[blk] == NULL) {
+               tdb->transaction->blocks[blk] = (uint8_t *)calloc(tdb->transaction->block_size, 1);
+               if (tdb->transaction->blocks[blk] == NULL) {
                        tdb->ecode = TDB_ERR_OOM;
                        tdb->transaction->transaction_error = 1;
-                       el->data = data;
-                       return -1;
+                       return -1;                      
                }
-               if (buf) {
-                       memcpy(el->data + el->length, buf, len);
-               } else {
-                       memset(el->data + el->length, TDB_PAD_BYTE, len);
+               if (tdb->transaction->old_map_size > blk * tdb->transaction->block_size) {
+                       tdb_len_t len2 = tdb->transaction->block_size;
+                       if (len2 + (blk * tdb->transaction->block_size) > tdb->transaction->old_map_size) {
+                               len2 = tdb->transaction->old_map_size - (blk * tdb->transaction->block_size);
+                       }
+                       if (tdb->transaction->io_methods->tdb_read(tdb, blk * tdb->transaction->block_size, 
+                                                                  tdb->transaction->blocks[blk], 
+                                                                  len2, 0) != 0) {
+                               SAFE_FREE(tdb->transaction->blocks[blk]);                               
+                               tdb->ecode = TDB_ERR_IO;
+                               goto fail;
+                       }
+                       if (blk == tdb->transaction->num_blocks-1) {
+                               tdb->transaction->last_block_size = len2;
+                       }                       
                }
-               el->length += len;
-               return 0;
        }
-
-       /* add a new entry at the end of the list */
-       el = (struct tdb_transaction_el *)malloc(sizeof(*el));
-       if (el == NULL) {
-               tdb->ecode = TDB_ERR_OOM;
-               tdb->transaction->transaction_error = 1;                
-               return -1;
-       }
-       el->next = NULL;
-       el->prev = tdb->transaction->elements_last;
-       el->offset = off;
-       el->length = len;
-       el->data = (unsigned char *)malloc(len);
-       if (el->data == NULL) {
-               free(el);
-               tdb->ecode = TDB_ERR_OOM;
-               tdb->transaction->transaction_error = 1;                
-               return -1;
-       }
-       if (buf) {
-               memcpy(el->data, buf, len);
+       
+       /* overwrite part of an existing block */
+       if (buf == NULL) {
+               memset(tdb->transaction->blocks[blk] + off, 0, len);
        } else {
-               memset(el->data, TDB_PAD_BYTE, len);
+               memcpy(tdb->transaction->blocks[blk] + off, buf, len);
        }
-       if (el->prev) {
-               el->prev->next = el;
-       } else {
-               tdb->transaction->elements = el;
+       if (blk == tdb->transaction->num_blocks-1) {
+               if (len + off > tdb->transaction->last_block_size) {
+                       tdb->transaction->last_block_size = len + off;
+               }
        }
-       tdb->transaction->elements_last = el;
+
        return 0;
 
 fail:
-       TDB_LOG((tdb, TDB_DEBUG_FATAL, "transaction_write: failed at off=%d len=%d\n", off, len));
-       tdb->ecode = TDB_ERR_IO;
+       TDB_LOG((tdb, TDB_DEBUG_FATAL, "transaction_write: failed at off=%d len=%d\n", 
+                (blk*tdb->transaction->block_size) + off, len));
        tdb->transaction->transaction_error = 1;
        return -1;
 }
@@ -419,10 +386,14 @@ int tdb_transaction_start(struct tdb_context *tdb)
                return -1;
        }
 
+       /* a page at a time seems like a reasonable compromise between compactness and efficiency */
+       tdb->transaction->block_size = tdb->page_size;
+
        /* get the transaction write lock. This is a blocking lock. As
           discussed with Volker, there are a number of ways we could
           make this async, which we will probably do in the future */
        if (tdb_transaction_lock(tdb, F_WRLCK) == -1) {
+               SAFE_FREE(tdb->transaction->blocks);
                SAFE_FREE(tdb->transaction);
                return -1;
        }
@@ -460,21 +431,12 @@ int tdb_transaction_start(struct tdb_context *tdb)
        tdb->transaction->io_methods = tdb->methods;
        tdb->methods = &transaction_methods;
 
-       /* by calling this transaction write here, we ensure that we don't grow the
-          transaction linked list due to hash table updates */
-       if (transaction_write(tdb, FREELIST_TOP, tdb->transaction->hash_heads, 
-                             TDB_HASHTABLE_SIZE(tdb)) != 0) {
-               TDB_LOG((tdb, TDB_DEBUG_FATAL, "tdb_transaction_start: failed to prime hash table\n"));
-               tdb->ecode = TDB_ERR_IO;
-               tdb->methods = tdb->transaction->io_methods;
-               goto fail;
-       }
-
        return 0;
        
 fail:
        tdb_brlock(tdb, FREELIST_TOP, F_UNLCK, F_SETLKW, 0, 0);
        tdb_transaction_unlock(tdb);
+       SAFE_FREE(tdb->transaction->blocks);
        SAFE_FREE(tdb->transaction->hash_heads);
        SAFE_FREE(tdb->transaction);
        return -1;
@@ -486,6 +448,8 @@ fail:
 */
 int tdb_transaction_cancel(struct tdb_context *tdb)
 {      
+       int i;
+
        if (tdb->transaction == NULL) {
                TDB_LOG((tdb, TDB_DEBUG_ERROR, "tdb_transaction_cancel: no transaction\n"));
                return -1;
@@ -499,13 +463,13 @@ int tdb_transaction_cancel(struct tdb_context *tdb)
 
        tdb->map_size = tdb->transaction->old_map_size;
 
-       /* free all the transaction elements */
-       while (tdb->transaction->elements) {
-               struct tdb_transaction_el *el = tdb->transaction->elements;
-               tdb->transaction->elements = el->next;
-               free(el->data);
-               free(el);
+       /* free all the transaction blocks */
+       for (i=0;i<tdb->transaction->num_blocks;i++) {
+               if (tdb->transaction->blocks[i] != NULL) {
+                       free(tdb->transaction->blocks[i]);
+               }
        }
+       SAFE_FREE(tdb->transaction->blocks);
 
        /* remove any global lock created during the transaction */
        if (tdb->global_lock.count != 0) {
@@ -515,7 +479,6 @@ int tdb_transaction_cancel(struct tdb_context *tdb)
 
        /* remove any locks created during the transaction */
        if (tdb->num_locks != 0) {
-               int i;
                for (i=0;i<tdb->num_lockrecs;i++) {
                        tdb_brlock(tdb,FREELIST_TOP+4*tdb->lockrecs[i].list,
                                   F_UNLCK,F_SETLKW, 0, 1);
@@ -567,16 +530,24 @@ static int transaction_sync(struct tdb_context *tdb, tdb_off_t offset, tdb_len_t
 */
 static tdb_len_t tdb_recovery_size(struct tdb_context *tdb)
 {
-       struct tdb_transaction_el *el;
        tdb_len_t recovery_size = 0;
+       int i;
 
        recovery_size = sizeof(uint32_t);
-       for (el=tdb->transaction->elements;el;el=el->next) {
-               if (el->offset >= tdb->transaction->old_map_size) {
+       for (i=0;i<tdb->transaction->num_blocks;i++) {
+               if (i * tdb->transaction->block_size >= tdb->transaction->old_map_size) {
+                       break;
+               }
+               if (tdb->transaction->blocks[i] == NULL) {
                        continue;
                }
-               recovery_size += 2*sizeof(tdb_off_t) + el->length;
-       }
+               recovery_size += 2*sizeof(tdb_off_t);
+               if (i == tdb->transaction->num_blocks-1) {
+                       recovery_size += tdb->transaction->last_block_size;
+               } else {
+                       recovery_size += tdb->transaction->block_size;
+               }
+       }       
 
        return recovery_size;
 }
@@ -669,7 +640,6 @@ static int tdb_recovery_allocate(struct tdb_context *tdb,
 static int transaction_setup_recovery(struct tdb_context *tdb, 
                                      tdb_off_t *magic_offset)
 {
-       struct tdb_transaction_el *el;
        tdb_len_t recovery_size;
        unsigned char *data, *p;
        const struct tdb_methods *methods = tdb->transaction->io_methods;
@@ -677,6 +647,7 @@ static int transaction_setup_recovery(struct tdb_context *tdb,
        tdb_off_t recovery_offset, recovery_max_size;
        tdb_off_t old_map_size = tdb->transaction->old_map_size;
        uint32_t magic, tailer;
+       int i;
 
        /*
          check that the recovery area has enough space
@@ -704,30 +675,43 @@ static int transaction_setup_recovery(struct tdb_context *tdb,
        /* build the recovery data into a single blob to allow us to do a single
           large write, which should be more efficient */
        p = data + sizeof(*rec);
-       for (el=tdb->transaction->elements;el;el=el->next) {
-               if (el->offset >= old_map_size) {
+       for (i=0;i<tdb->transaction->num_blocks;i++) {
+               tdb_off_t offset;
+               tdb_len_t length;
+
+               if (tdb->transaction->blocks[i] == NULL) {
                        continue;
                }
-               if (el->offset + el->length > tdb->transaction->old_map_size) {
+
+               offset = i * tdb->transaction->block_size;
+               length = tdb->transaction->block_size;
+               if (i == tdb->transaction->num_blocks-1) {
+                       length = tdb->transaction->last_block_size;
+               }
+               
+               if (offset >= old_map_size) {
+                       continue;
+               }
+               if (offset + length > tdb->transaction->old_map_size) {
                        TDB_LOG((tdb, TDB_DEBUG_FATAL, "tdb_transaction_setup_recovery: transaction data over new region boundary\n"));
                        free(data);
                        tdb->ecode = TDB_ERR_CORRUPT;
                        return -1;
                }
-               memcpy(p, &el->offset, 4);
-               memcpy(p+4, &el->length, 4);
+               memcpy(p, &offset, 4);
+               memcpy(p+4, &length, 4);
                if (DOCONV()) {
                        tdb_convert(p, 8);
                }
                /* the recovery area contains the old data, not the
                   new data, so we have to call the original tdb_read
                   method to get it */
-               if (methods->tdb_read(tdb, el->offset, p + 8, el->length, 0) != 0) {
+               if (methods->tdb_read(tdb, offset, p + 8, length, 0) != 0) {
                        free(data);
                        tdb->ecode = TDB_ERR_IO;
                        return -1;
                }
-               p += 8 + el->length;
+               p += 8 + length;
        }
 
        /* and the tailer */
@@ -780,6 +764,7 @@ int tdb_transaction_commit(struct tdb_context *tdb)
        const struct tdb_methods *methods;
        tdb_off_t magic_offset = 0;
        uint32_t zero = 0;
+       int i;
 
        if (tdb->transaction == NULL) {
                TDB_LOG((tdb, TDB_DEBUG_ERROR, "tdb_transaction_commit: no transaction\n"));
@@ -799,7 +784,7 @@ int tdb_transaction_commit(struct tdb_context *tdb)
        }               
 
        /* check for a null transaction */
-       if (tdb->transaction->elements == NULL) {
+       if (tdb->transaction->blocks == NULL) {
                tdb_transaction_cancel(tdb);
                return 0;
        }
@@ -858,10 +843,21 @@ int tdb_transaction_commit(struct tdb_context *tdb)
        }
 
        /* perform all the writes */
-       while (tdb->transaction->elements) {
-               struct tdb_transaction_el *el = tdb->transaction->elements;
+       for (i=0;i<tdb->transaction->num_blocks;i++) {
+               tdb_off_t offset;
+               tdb_len_t length;
 
-               if (methods->tdb_write(tdb, el->offset, el->data, el->length) == -1) {
+               if (tdb->transaction->blocks[i] == NULL) {
+                       continue;
+               }
+
+               offset = i * tdb->transaction->block_size;
+               length = tdb->transaction->block_size;
+               if (i == tdb->transaction->num_blocks-1) {
+                       length = tdb->transaction->last_block_size;
+               }
+
+               if (methods->tdb_write(tdb, offset, tdb->transaction->blocks[i], length) == -1) {
                        TDB_LOG((tdb, TDB_DEBUG_FATAL, "tdb_transaction_commit: write failed during commit\n"));
                        
                        /* we've overwritten part of the data and
@@ -876,11 +872,12 @@ int tdb_transaction_commit(struct tdb_context *tdb)
                        TDB_LOG((tdb, TDB_DEBUG_FATAL, "tdb_transaction_commit: write failed\n"));
                        return -1;
                }
-               tdb->transaction->elements = el->next;
-               free(el->data); 
-               free(el);
+               SAFE_FREE(tdb->transaction->blocks[i]);
        } 
 
+       SAFE_FREE(tdb->transaction->blocks);
+       tdb->transaction->num_blocks = 0;
+
        if (!(tdb->flags & TDB_NOSYNC)) {
                /* ensure the new data is on disk */
                if (transaction_sync(tdb, 0, tdb->map_size) == -1) {
index 27b2cfc54a4b92acd0466940a0943daa7e05e4ea..07b0c238587eb85fe3945b61b71dbd9dd0729d58 100644 (file)
@@ -241,7 +241,9 @@ int tdb_traverse(struct tdb_context *tdb,
                return -1;
        }
 
+       tdb->traverse_write++;
        ret = tdb_traverse_internal(tdb, fn, private_data, &tl);
+       tdb->traverse_write--;
 
        tdb_transaction_unlock(tdb);
 
@@ -333,3 +335,4 @@ TDB_DATA tdb_nextkey(struct tdb_context *tdb, TDB_DATA oldkey)
                TDB_LOG((tdb, TDB_DEBUG_FATAL, "tdb_nextkey: WARNING tdb_unlock failed!\n"));
        return key;
 }
+
index de8fc9c2b593b336111a37f0977c997b58379714..1085055bc91e703ffcc3963a525998abe40f6c78 100644 (file)
@@ -2,7 +2,7 @@ AC_PREREQ(2.50)
 AC_DEFUN([SMB_MODULE_DEFAULT], [echo -n ""])
 AC_DEFUN([SMB_LIBRARY_ENABLE], [echo -n ""])
 AC_DEFUN([SMB_ENABLE], [echo -n ""])
-AC_INIT(tdb, 1.1.0)
+AC_INIT(tdb, 1.1.1)
 AC_CONFIG_SRCDIR([common/tdb.c])
 AC_CONFIG_HEADER(include/config.h)
 AC_LIBREPLACE_ALL_CHECKS
index fce6628b846877a93a1d7def0b327c5c6b74dfa7..0008085de540b525bb02fc1ff178d06bc898a02d 100644 (file)
@@ -135,6 +135,8 @@ int tdb_get_seqnum(struct tdb_context *tdb);
 int tdb_hash_size(struct tdb_context *tdb);
 size_t tdb_map_size(struct tdb_context *tdb);
 int tdb_get_flags(struct tdb_context *tdb);
+void tdb_add_flags(struct tdb_context *tdb, unsigned flag);
+void tdb_remove_flags(struct tdb_context *tdb, unsigned flag);
 void tdb_enable_seqnum(struct tdb_context *tdb);
 void tdb_increment_seqnum_nonblock(struct tdb_context *tdb);
 
@@ -153,6 +155,8 @@ void tdb_setalarm_sigptr(struct tdb_context *tdb, volatile sig_atomic_t *sigptr)
 void tdb_dump_all(struct tdb_context *tdb);
 int tdb_printfreelist(struct tdb_context *tdb);
 int tdb_validate_freelist(struct tdb_context *tdb, int *pnum_entries);
+int tdb_wipe_all(struct tdb_context *tdb);
+int tdb_freelist_size(struct tdb_context *tdb);
 
 extern TDB_DATA tdb_null;
 
index 25b2700ae3db688a020310a4cf56db8e678a8b28..0653fc9d3f30e35c1646244dfce6f27e884eda7a 100644 (file)
@@ -897,67 +897,6 @@ int set_blocking(int fd, bool set)
 #undef FLAG_TO_SET
 }
 
-/****************************************************************************
- Transfer some data between two fd's.
-****************************************************************************/
-
-#ifndef TRANSFER_BUF_SIZE
-#define TRANSFER_BUF_SIZE 65536
-#endif
-
-ssize_t transfer_file_internal(int infd, int outfd, size_t n, ssize_t (*read_fn)(int, void *, size_t),
-                                               ssize_t (*write_fn)(int, const void *, size_t))
-{
-       char *buf;
-       size_t total = 0;
-       ssize_t read_ret;
-       ssize_t write_ret;
-       size_t num_to_read_thistime;
-       size_t num_written = 0;
-
-       if ((buf = SMB_MALLOC_ARRAY(char, TRANSFER_BUF_SIZE)) == NULL)
-               return -1;
-
-       while (total < n) {
-               num_to_read_thistime = MIN((n - total), TRANSFER_BUF_SIZE);
-
-               read_ret = (*read_fn)(infd, buf, num_to_read_thistime);
-               if (read_ret == -1) {
-                       DEBUG(0,("transfer_file_internal: read failure. Error = %s\n", strerror(errno) ));
-                       SAFE_FREE(buf);
-                       return -1;
-               }
-               if (read_ret == 0)
-                       break;
-
-               num_written = 0;
-               while (num_written < read_ret) {
-                       write_ret = (*write_fn)(outfd,buf + num_written, read_ret - num_written);
-                       if (write_ret == -1) {
-                               DEBUG(0,("transfer_file_internal: write failure. Error = %s\n", strerror(errno) ));
-                               SAFE_FREE(buf);
-                               return -1;
-                       }
-                       if (write_ret == 0)
-                               return (ssize_t)total;
-                       num_written += (size_t)write_ret;
-               }
-
-               total += (size_t)read_ret;
-       }
-
-       SAFE_FREE(buf);
-       return (ssize_t)total;          
-}
-
-SMB_OFF_T transfer_file(int infd,int outfd,SMB_OFF_T n)
-{
-       return (SMB_OFF_T)transfer_file_internal(infd, outfd, (size_t)n, sys_read, sys_write);
-}
-
 /*******************************************************************
  Sleep for a specified number of milliseconds.
 ********************************************************************/
index 7e21fe11953c43e37114f0454d079ba19282cecd..3e3268104c0458822bef39d546203f628565018b 100644 (file)
 
 #include "includes.h"
 
+char toupper_ascii_fast_table[128] = {
+       0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc, 0xd, 0xe, 0xf,
+       0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f,
+       0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f,
+       0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
+       0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f,
+       0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f,
+       0x60, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f,
+       0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f
+};
+
 /**
  * @file
  * @brief String utilities.
@@ -187,8 +198,8 @@ int StrCaseCmp(const char *s, const char *t)
                         * from here on in */
                        break;
 
-               us = toupper_ascii(*ps);
-               ut = toupper_ascii(*pt);
+               us = toupper_ascii_fast(*ps);
+               ut = toupper_ascii_fast(*pt);
                if (us == ut)
                        continue;
                else if (us < ut)
@@ -246,8 +257,8 @@ int StrnCaseCmp(const char *s, const char *t, size_t len)
                         * hard way from here on in */
                        break;
 
-               us = toupper_ascii(*ps);
-               ut = toupper_ascii(*pt);
+               us = toupper_ascii_fast(*ps);
+               ut = toupper_ascii_fast(*pt);
                if (us == ut)
                        continue;
                else if (us < ut)
@@ -1679,7 +1690,7 @@ void strupper_m(char *s)
           (ie. they match for the first 128 chars) */
 
        while (*s && !(((unsigned char)s[0]) & 0x80)) {
-               *s = toupper_ascii((unsigned char)*s);
+               *s = toupper_ascii_fast((unsigned char)*s);
                s++;
        }
 
diff --git a/source/lib/util_transfer_file.c b/source/lib/util_transfer_file.c
new file mode 100644 (file)
index 0000000..1e3b76f
--- /dev/null
@@ -0,0 +1,110 @@
+/*
+ * Unix SMB/CIFS implementation.
+ * Utility functions to transfer files.
+ *
+ * Copyright (C) Jeremy Allison 2001-2002
+ * Copyright (C) Michael Adam 2008
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+
+#include <includes.h>
+
+/****************************************************************************
+ Transfer some data between two fd's.
+****************************************************************************/
+
+#ifndef TRANSFER_BUF_SIZE
+#define TRANSFER_BUF_SIZE 65536
+#endif
+
+
+ssize_t transfer_file_internal(void *in_file,
+                              void *out_file,
+                              size_t n,
+                              ssize_t (*read_fn)(void *, void *, size_t),
+                              ssize_t (*write_fn)(void *, const void *, size_t))
+{
+       char *buf;
+       size_t total = 0;
+       ssize_t read_ret;
+       ssize_t write_ret;
+       size_t num_to_read_thistime;
+       size_t num_written = 0;
+
+       if ((buf = SMB_MALLOC_ARRAY(char, TRANSFER_BUF_SIZE)) == NULL) {
+               return -1;
+       }
+
+       while (total < n) {
+               num_to_read_thistime = MIN((n - total), TRANSFER_BUF_SIZE);
+
+               read_ret = (*read_fn)(in_file, buf, num_to_read_thistime);
+               if (read_ret == -1) {
+                       DEBUG(0,("transfer_file_internal: read failure. "
+                                "Error = %s\n", strerror(errno) ));
+                       SAFE_FREE(buf);
+                       return -1;
+               }
+               if (read_ret == 0) {
+                       break;
+               }
+
+               num_written = 0;
+
+               while (num_written < read_ret) {
+                       write_ret = (*write_fn)(out_file, buf + num_written,
+                                               read_ret - num_written);
+
+                       if (write_ret == -1) {
+                               DEBUG(0,("transfer_file_internal: "
+                                        "write failure. Error = %s\n",
+                                        strerror(errno) ));
+                               SAFE_FREE(buf);
+                               return -1;
+                       }
+                       if (write_ret == 0) {
+                               return (ssize_t)total;
+                       }
+
+                       num_written += (size_t)write_ret;
+               }
+
+               total += (size_t)read_ret;
+       }
+
+       SAFE_FREE(buf);
+       return (ssize_t)total;
+}
+
+static ssize_t sys_read_fn(void *file, void *buf, size_t len)
+{
+       int *fd = (int *)file;
+
+       return sys_read(*fd, buf, len);
+}
+
+static ssize_t sys_write_fn(void *file, const void *buf, size_t len)
+{
+       int *fd = (int *)file;
+
+       return sys_write(*fd, buf, len);
+}
+
+SMB_OFF_T transfer_file(int infd, int outfd, SMB_OFF_T n)
+{
+       return (SMB_OFF_T)transfer_file_internal(&infd, &outfd, (size_t)n,
+                                                sys_read_fn, sys_write_fn);
+}
index a83c0b4f8eae1ef60a0d78c86846f2c218a1477a..cf842f4d109711bafc55d0093d7cb4ecdbf08c42 100644 (file)
 #ifndef _DNS_H
 #define _DNS_H
 
-#include "config.h"
+#include "lib/replace/replace.h"
+#include "system/network.h"
+
+/* make sure we have included the correct config.h */
+#ifndef NO_CONFIG_H /* for some tests */
+#ifndef CONFIG_H_IS_FROM_SAMBA
+#error "make sure you have removed all config.h files from standalone builds!"
+#error "the included config.h isn't from samba!"
+#endif
+#endif /* NO_CONFIG_H */
 
 #include <stdio.h>
 #include <stdlib.h>
index d0ef6eb0e6b239e06eefd374f39cf8d435cfa7a0..47b4800d80020bda1275bca088e54f922f732952 100644 (file)
@@ -110,7 +110,7 @@ static WERROR libnet_conf_reg_open_path(TALLOC_CTX *mem_ctx,
        }
 
        werr = ntstatus_to_werror(registry_create_admin_token(tmp_ctx, &token));
-       if (W_ERROR_IS_OK(werr)) {
+       if (!W_ERROR_IS_OK(werr)) {
                DEBUG(1, ("Error creating admin token\n"));
                goto done;
        }
@@ -719,8 +719,10 @@ WERROR libnet_conf_set_parameter(const char *service,
        TALLOC_CTX *mem_ctx = talloc_stackframe();
 
        if (!libnet_conf_share_exists(service)) {
-               werr = WERR_NO_SUCH_SERVICE;
-               goto done;
+               werr = libnet_conf_create_share(service);
+               if (!W_ERROR_IS_OK(werr)) {
+                       goto done;
+               }
        }
 
        werr = libnet_conf_reg_open_service_key(mem_ctx, service, REG_KEY_WRITE,
index 454c1f29fb55e8ce9e655f319adbad2b2bade525..9b62286ecb14e730f26d7c3f450339a94875bbda 100644 (file)
@@ -30,14 +30,14 @@ static void libnet_join_set_error_string(TALLOC_CTX *mem_ctx,
                                         const char *format, ...)
 {
        va_list args;
-       char *tmp = NULL;
+
+       if (r->out.error_string) {
+               return;
+       }
 
        va_start(args, format);
-       tmp = talloc_vasprintf(mem_ctx, format, args);
+       r->out.error_string = talloc_vasprintf(mem_ctx, format, args);
        va_end(args);
-
-       TALLOC_FREE(r->out.error_string);
-       r->out.error_string = tmp;
 }
 
 /****************************************************************
@@ -48,17 +48,17 @@ static void libnet_unjoin_set_error_string(TALLOC_CTX *mem_ctx,
                                           const char *format, ...)
 {
        va_list args;
-       char *tmp = NULL;
+
+       if (r->out.error_string) {
+               return;
+       }
 
        va_start(args, format);
-       tmp = talloc_vasprintf(mem_ctx, format, args);
+       r->out.error_string = talloc_vasprintf(mem_ctx, format, args);
        va_end(args);
-
-       TALLOC_FREE(r->out.error_string);
-       r->out.error_string = tmp;
 }
 
-#ifdef HAVE_LDAP
+#ifdef WITH_ADS
 
 /****************************************************************
 ****************************************************************/
@@ -120,7 +120,7 @@ static ADS_STATUS libnet_join_connect_ads(TALLOC_CTX *mem_ctx,
                                    &r->in.ads);
        if (!ADS_ERR_OK(status)) {
                libnet_join_set_error_string(mem_ctx, r,
-                       "failed to connect to AD: %s\n",
+                       "failed to connect to AD: %s",
                        ads_errstr(status));
        }
 
@@ -147,7 +147,7 @@ static ADS_STATUS libnet_unjoin_connect_ads(TALLOC_CTX *mem_ctx,
                                    &r->in.ads);
        if (!ADS_ERR_OK(status)) {
                libnet_unjoin_set_error_string(mem_ctx, r,
-                       "failed to connect to AD: %s\n",
+                       "failed to connect to AD: %s",
                        ads_errstr(status));
        }
 
@@ -202,7 +202,15 @@ static ADS_STATUS libnet_unjoin_remove_machine_acct(TALLOC_CTX *mem_ctx,
                }
        }
 
-       return ads_leave_realm(r->in.ads, r->in.machine_name);
+       status = ads_leave_realm(r->in.ads, r->in.machine_name);
+       if (!ADS_ERR_OK(status)) {
+               libnet_unjoin_set_error_string(mem_ctx, r,
+                       "failed to leave realm: %s",
+                       ads_errstr(status));
+               return status;
+       }
+
+       return ADS_SUCCESS;
 }
 
 /****************************************************************
@@ -418,8 +426,6 @@ static ADS_STATUS libnet_join_set_os_attributes(TALLOC_CTX *mem_ctx,
        return ads_gen_mod(r->in.ads, r->out.dn, mods);
 }
 
-#endif
-
 /****************************************************************
 ****************************************************************/
 
@@ -430,17 +436,111 @@ static bool libnet_join_create_keytab(TALLOC_CTX *mem_ctx,
                return true;
        }
 
-#ifdef WITH_KRB5
        if (!ads_keytab_create_default(r->in.ads)) {
                return false;
        }
-#endif
+
        return true;
 }
 
 /****************************************************************
 ****************************************************************/
 
+static bool libnet_join_derive_salting_principal(TALLOC_CTX *mem_ctx,
+                                                struct libnet_JoinCtx *r)
+{
+       uint32_t domain_func;
+       ADS_STATUS status;
+       const char *salt = NULL;
+       char *std_salt = NULL;
+
+       status = ads_domain_func_level(r->in.ads, &domain_func);
+       if (!ADS_ERR_OK(status)) {
+               libnet_join_set_error_string(mem_ctx, r,
+                       "failed to determine domain functional level: %s",
+                       ads_errstr(status));
+               return false;
+       }
+
+       std_salt = kerberos_standard_des_salt();
+       if (!std_salt) {
+               libnet_join_set_error_string(mem_ctx, r,
+                       "failed to obtain standard DES salt");
+               return false;
+       }
+
+       salt = talloc_strdup(mem_ctx, std_salt);
+       if (!salt) {
+               return false;
+       }
+
+       SAFE_FREE(std_salt);
+
+       if (domain_func == DS_DOMAIN_FUNCTION_2000) {
+               char *upn;
+
+               upn = ads_get_upn(r->in.ads, mem_ctx,
+                                 r->in.machine_name);
+               if (upn) {
+                       salt = talloc_strdup(mem_ctx, upn);
+                       if (!salt) {
+                               return false;
+                       }
+               }
+       }
+
+       return kerberos_secrets_store_des_salt(salt);
+}
+
+/****************************************************************
+****************************************************************/
+
+static ADS_STATUS libnet_join_post_processing_ads(TALLOC_CTX *mem_ctx,
+                                                 struct libnet_JoinCtx *r)
+{
+       ADS_STATUS status;
+
+       status = libnet_join_set_machine_spn(mem_ctx, r);
+       if (!ADS_ERR_OK(status)) {
+               libnet_join_set_error_string(mem_ctx, r,
+                       "failed to set machine spn: %s",
+                       ads_errstr(status));
+               return status;
+       }
+
+       status = libnet_join_set_os_attributes(mem_ctx, r);
+       if (!ADS_ERR_OK(status)) {
+               libnet_join_set_error_string(mem_ctx, r,
+                       "failed to set machine os attributes: %s",
+                       ads_errstr(status));
+               return status;
+       }
+
+       status = libnet_join_set_machine_upn(mem_ctx, r);
+       if (!ADS_ERR_OK(status)) {
+               libnet_join_set_error_string(mem_ctx, r,
+                       "failed to set machine upn: %s",
+                       ads_errstr(status));
+               return status;
+       }
+
+       if (!libnet_join_derive_salting_principal(mem_ctx, r)) {
+               return ADS_ERROR_NT(NT_STATUS_UNSUCCESSFUL);
+       }
+
+       if (!libnet_join_create_keytab(mem_ctx, r)) {
+               libnet_join_set_error_string(mem_ctx, r,
+                       "failed to create kerberos keytab");
+               return ADS_ERROR_NT(NT_STATUS_UNSUCCESSFUL);
+       }
+
+       return ADS_SUCCESS;
+}
+#endif /* WITH_ADS */
+
+/****************************************************************
+****************************************************************/
+
 static bool libnet_join_joindomain_store_secrets(TALLOC_CTX *mem_ctx,
                                                 struct libnet_JoinCtx *r)
 {
@@ -524,6 +624,10 @@ static NTSTATUS libnet_join_joindomain_rpc(TALLOC_CTX *mem_ctx,
                                               NULL,
                                               &r->out.domain_sid);
 
+       if (NT_STATUS_IS_OK(status)) {
+               r->out.domain_is_ad = true;
+       }
+
        if (!NT_STATUS_IS_OK(status)) {
                status = rpccli_lsa_query_info_policy(pipe_hnd, mem_ctx, &lsa_pol,
                                                      5,
@@ -556,7 +660,7 @@ static NTSTATUS libnet_join_joindomain_rpc(TALLOC_CTX *mem_ctx,
                goto done;
        }
 
-       acct_name = talloc_asprintf(mem_ctx, "%s$", global_myname());
+       acct_name = talloc_asprintf(mem_ctx, "%s$", r->in.machine_name);
        strlower_m(acct_name);
        const_acct_name = acct_name;
 
@@ -567,7 +671,8 @@ static NTSTATUS libnet_join_joindomain_rpc(TALLOC_CTX *mem_ctx,
                                                     0xe005000b, &user_pol,
                                                     &user_rid);
                if (NT_STATUS_EQUAL(status, NT_STATUS_USER_EXISTS)) {
-                       if (!(r->in.join_flags & WKSSVC_JOIN_FLAGS_DOMAIN_JOIN_IF_JOINED)) {
+                       if (!(r->in.join_flags &
+                             WKSSVC_JOIN_FLAGS_DOMAIN_JOIN_IF_JOINED)) {
                                goto done;
                        }
                }
@@ -615,14 +720,13 @@ static NTSTATUS libnet_join_joindomain_rpc(TALLOC_CTX *mem_ctx,
        memcpy(&pwbuf[516], md5buffer, sizeof(md5buffer));
 
        acb_info |= ACB_PWNOEXP;
-#if 0
-       if ( dom_type == ND_TYPE_AD ) {
+       if (r->out.domain_is_ad) {
 #if !defined(ENCTYPE_ARCFOUR_HMAC)
                acb_info |= ACB_USE_DES_KEY_ONLY;
 #endif
                ;;
        }
-#endif
+
        ZERO_STRUCT(ctr);
        ZERO_STRUCT(p25);
 
@@ -718,7 +822,7 @@ static NTSTATUS libnet_join_unjoindomain_rpc(TALLOC_CTX *mem_ctx,
                goto done;
        }
 
-       acct_name = talloc_asprintf(mem_ctx, "%s$", global_myname());
+       acct_name = talloc_asprintf(mem_ctx, "%s$", r->in.machine_name);
        strlower_m(acct_name);
        const_acct_name = acct_name;
 
@@ -782,7 +886,6 @@ done:
 static WERROR do_join_modify_vals_config(struct libnet_JoinCtx *r)
 {
        WERROR werr;
-       bool is_ad = false;
 
        if (!(r->in.join_flags & WKSSVC_JOIN_FLAGS_JOIN_TYPE)) {
 
@@ -794,10 +897,6 @@ static WERROR do_join_modify_vals_config(struct libnet_JoinCtx *r)
                return werr;
        }
 
-       if (r->out.dns_domain_name) {
-               is_ad = true;
-       }
-
        werr = libnet_conf_set_global_parameter("security", "domain");
        W_ERROR_NOT_OK_RETURN(werr);
 
@@ -805,12 +904,12 @@ static WERROR do_join_modify_vals_config(struct libnet_JoinCtx *r)
                                                r->out.netbios_domain_name);
        W_ERROR_NOT_OK_RETURN(werr);
 
-       if (is_ad) {
+       if (r->out.domain_is_ad) {
                werr = libnet_conf_set_global_parameter("security", "ads");
                W_ERROR_NOT_OK_RETURN(werr);
 
                werr = libnet_conf_set_global_parameter("realm",
-                                                      r->out.dns_domain_name);
+                                                       r->out.dns_domain_name);
                W_ERROR_NOT_OK_RETURN(werr);
        }
 
@@ -830,7 +929,7 @@ static WERROR do_unjoin_modify_vals_config(struct libnet_UnjoinCtx *r)
                W_ERROR_NOT_OK_RETURN(werr);
        }
 
-       werr = libnet_conf_delete_parameter(GLOBAL_NAME, "realm");
+       libnet_conf_delete_parameter(GLOBAL_NAME, "realm");
 
        return werr;
 }
@@ -964,28 +1063,59 @@ static WERROR libnet_DomainJoin(TALLOC_CTX *mem_ctx,
                                struct libnet_JoinCtx *r)
 {
        NTSTATUS status;
-#ifdef HAVE_LDAP
+#ifdef WITH_ADS
        ADS_STATUS ads_status;
+#endif /* WITH_ADS */
+
+       if (!r->in.dc_name) {
+               struct DS_DOMAIN_CONTROLLER_INFO *info;
+               status = dsgetdcname(mem_ctx,
+                                    NULL,
+                                    r->in.domain_name,
+                                    NULL,
+                                    NULL,
+                                    DS_DIRECTORY_SERVICE_REQUIRED |
+                                    DS_WRITABLE_REQUIRED |
+                                    DS_RETURN_DNS_NAME,
+                                    &info);
+               if (!NT_STATUS_IS_OK(status)) {
+                       libnet_join_set_error_string(mem_ctx, r,
+                               "failed to find DC: %s",
+                               nt_errstr(status));
+                       return WERR_DOMAIN_CONTROLLER_NOT_FOUND;
+               }
+
+               r->in.dc_name = talloc_strdup(mem_ctx,
+                                             info->domain_controller_name);
+               W_ERROR_HAVE_NO_MEMORY(r->in.dc_name);
+       }
 
+#ifdef WITH_ADS
        if (r->in.account_ou) {
+
                ads_status = libnet_join_connect_ads(mem_ctx, r);
                if (!ADS_ERR_OK(ads_status)) {
-                       return WERR_GENERAL_FAILURE;
+                       return WERR_DEFAULT_JOIN_REQUIRED;
                }
+
                ads_status = libnet_join_precreate_machine_acct(mem_ctx, r);
                if (!ADS_ERR_OK(ads_status)) {
                        libnet_join_set_error_string(mem_ctx, r,
-                               "failed to precreate account in ou %s: %s\n",
+                               "failed to precreate account in ou %s: %s",
                                r->in.account_ou,
                                ads_errstr(ads_status));
-                       return WERR_GENERAL_FAILURE;
+                       return WERR_DEFAULT_JOIN_REQUIRED;
                }
 
                r->in.join_flags &= ~WKSSVC_JOIN_FLAGS_ACCOUNT_CREATE;
        }
-#endif
+#endif /* WITH_ADS */
+
        status = libnet_join_joindomain_rpc(mem_ctx, r);
        if (!NT_STATUS_IS_OK(status)) {
+               libnet_join_set_error_string(mem_ctx, r,
+                       "failed to join domain over rpc: %s",
+                       nt_errstr(status));
                if (NT_STATUS_EQUAL(status, NT_STATUS_USER_EXISTS)) {
                        return WERR_SETUP_ALREADY_JOINED;
                }
@@ -996,36 +1126,14 @@ static WERROR libnet_DomainJoin(TALLOC_CTX *mem_ctx,
                return WERR_SETUP_NOT_JOINED;
        }
 
-#ifdef HAVE_LDAP
-       ads_status = libnet_join_set_machine_spn(mem_ctx, r);
-       if (!ADS_ERR_OK(ads_status)) {
-               libnet_join_set_error_string(mem_ctx, r,
-                       "failed to set machine spn: %s\n",
-                       ads_errstr(ads_status));
-               return WERR_GENERAL_FAILURE;
-       }
-
-       ads_status = libnet_join_set_os_attributes(mem_ctx, r);
-       if (!ADS_ERR_OK(ads_status)) {
-               libnet_join_set_error_string(mem_ctx, r,
-                       "failed to set machine os attributes: %s\n",
-                       ads_errstr(ads_status));
-               return WERR_GENERAL_FAILURE;
-       }
-
-       ads_status = libnet_join_set_machine_upn(mem_ctx, r);
-       if (!ADS_ERR_OK(ads_status)) {
-               libnet_join_set_error_string(mem_ctx, r,
-                       "failed to set machine upn: %s\n",
-                       ads_errstr(ads_status));
-               return WERR_GENERAL_FAILURE;
-       }
-#endif
-       if (!libnet_join_create_keytab(mem_ctx, r)) {
-               libnet_join_set_error_string(mem_ctx, r,
-                       "failed to create kerberos keytab\n");
-               return WERR_GENERAL_FAILURE;
+#ifdef WITH_ADS
+       if (r->out.domain_is_ad) {
+               ads_status  = libnet_join_post_processing_ads(mem_ctx, r);
+               if (!ADS_ERR_OK(ads_status)) {
+                       return WERR_GENERAL_FAILURE;
+               }
        }
+#endif /* WITH_ADS */
 
        return WERR_OK;
 }
@@ -1076,7 +1184,7 @@ static WERROR libnet_DomainUnjoin(TALLOC_CTX *mem_ctx,
        status = libnet_join_unjoindomain_rpc(mem_ctx, r);
        if (!NT_STATUS_IS_OK(status)) {
                libnet_unjoin_set_error_string(mem_ctx, r,
-                       "failed to unjoin domain: %s\n",
+                       "failed to unjoin domain: %s",
                        nt_errstr(status));
                if (NT_STATUS_EQUAL(status, NT_STATUS_NO_SUCH_USER)) {
                        return WERR_SETUP_NOT_JOINED;
@@ -1084,18 +1192,19 @@ static WERROR libnet_DomainUnjoin(TALLOC_CTX *mem_ctx,
                return ntstatus_to_werror(status);
        }
 
-#ifdef HAVE_LDAP
+#ifdef WITH_ADS
        if (r->in.unjoin_flags & WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE) {
                ADS_STATUS ads_status;
                libnet_unjoin_connect_ads(mem_ctx, r);
                ads_status = libnet_unjoin_remove_machine_acct(mem_ctx, r);
                if (!ADS_ERR_OK(ads_status)) {
                        libnet_unjoin_set_error_string(mem_ctx, r,
-                               "failed to remove machine account from AD: %s\n",
+                               "failed to remove machine account from AD: %s",
                                ads_errstr(ads_status));
                }
        }
-#endif
+#endif /* WITH_ADS */
+
        libnet_join_unjoindomain_remove_secrets(mem_ctx, r);
 
        return WERR_OK;
index c6a0cd183cfc35cad6069a85bfde2a586361f5f6..c47e8d934c15af1cd42664884da67a2f77c01552 100644 (file)
@@ -36,6 +36,7 @@ struct libnet_JoinCtx {
                const char *upn;
                bool modify_config;
                struct ads_struct *ads;
+               bool debug;
        } in;
 
        struct {
@@ -47,6 +48,7 @@ struct libnet_JoinCtx {
                bool modified_config;
                WERROR result;
                char *error_string;
+               bool domain_is_ad;
        } out;
 };
 
index 1cd085eaec144eae001cb433c8ccf16fde32fff3..9078ce7bbafa73f679a89b2f3bdfccd6991031c1 100644 (file)
@@ -6,24 +6,33 @@
 #include "includes.h"
 #include "librpc/gen_ndr/cli_dfs.h"
 
-NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, enum dfs_ManagerVersion *version)
+NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     enum dfs_ManagerVersion *version)
 {
        struct dfs_GetManagerVersion r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_GetManagerVersion, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_GETMANAGERVERSION, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETDFS,
+                               &ndr_table_netdfs,
+                               NDR_DFS_GETMANAGERVERSION,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_GetManagerVersion, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -36,7 +45,14 @@ NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli, TALLOC_CTX *m
        return NT_STATUS_OK;
 }
 
-NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *path, const char *server, const char *share, const char *comment, uint32_t flags, WERROR *werror)
+NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli,
+                       TALLOC_CTX *mem_ctx,
+                       const char *path,
+                       const char *server,
+                       const char *share,
+                       const char *comment,
+                       uint32_t flags,
+                       WERROR *werror)
 {
        struct dfs_Add r;
        NTSTATUS status;
@@ -48,17 +64,24 @@ NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const
        r.in.comment = comment;
        r.in.flags = flags;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_Add, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADD, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETDFS,
+                               &ndr_table_netdfs,
+                               NDR_DFS_ADD,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_Add, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -74,7 +97,12 @@ NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_entry_path, const char *servername, const char *sharename, WERROR *werror)
+NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli,
+                          TALLOC_CTX *mem_ctx,
+                          const char *dfs_entry_path,
+                          const char *servername,
+                          const char *sharename,
+                          WERROR *werror)
 {
        struct dfs_Remove r;
        NTSTATUS status;
@@ -84,17 +112,24 @@ NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con
        r.in.servername = servername;
        r.in.sharename = sharename;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_Remove, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_REMOVE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETDFS,
+                               &ndr_table_netdfs,
+                               NDR_DFS_REMOVE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_Remove, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -110,7 +145,14 @@ NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_entry_path, const char *servername, const char *sharename, uint32_t level, union dfs_Info *info, WERROR *werror)
+NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli,
+                           TALLOC_CTX *mem_ctx,
+                           const char *dfs_entry_path,
+                           const char *servername,
+                           const char *sharename,
+                           uint32_t level,
+                           union dfs_Info *info,
+                           WERROR *werror)
 {
        struct dfs_SetInfo r;
        NTSTATUS status;
@@ -122,17 +164,24 @@ NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, co
        r.in.level = level;
        r.in.info = info;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_SetInfo, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_SETINFO, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETDFS,
+                               &ndr_table_netdfs,
+                               NDR_DFS_SETINFO,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_SetInfo, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -148,7 +197,14 @@ NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, co
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_entry_path, const char *servername, const char *sharename, uint32_t level, union dfs_Info *info, WERROR *werror)
+NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli,
+                           TALLOC_CTX *mem_ctx,
+                           const char *dfs_entry_path,
+                           const char *servername,
+                           const char *sharename,
+                           uint32_t level,
+                           union dfs_Info *info,
+                           WERROR *werror)
 {
        struct dfs_GetInfo r;
        NTSTATUS status;
@@ -159,17 +215,24 @@ NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, co
        r.in.sharename = sharename;
        r.in.level = level;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_GetInfo, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_GETINFO, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETDFS,
+                               &ndr_table_netdfs,
+                               NDR_DFS_GETINFO,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_GetInfo, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -186,7 +249,13 @@ NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, co
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct *info, uint32_t *total, WERROR *werror)
+NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli,
+                        TALLOC_CTX *mem_ctx,
+                        uint32_t level,
+                        uint32_t bufsize,
+                        struct dfs_EnumStruct *info,
+                        uint32_t *total,
+                        WERROR *werror)
 {
        struct dfs_Enum r;
        NTSTATUS status;
@@ -197,17 +266,24 @@ NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint3
        r.in.info = info;
        r.in.total = total;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_Enum, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ENUM, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETDFS,
+                               &ndr_table_netdfs,
+                               NDR_DFS_ENUM,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_Enum, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -229,24 +305,33 @@ NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint3
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli,
+                          TALLOC_CTX *mem_ctx,
+                          WERROR *werror)
 {
        struct dfs_Rename r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_Rename, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_RENAME, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETDFS,
+                               &ndr_table_netdfs,
+                               NDR_DFS_RENAME,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_Rename, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -262,24 +347,33 @@ NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WER
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli,
+                        TALLOC_CTX *mem_ctx,
+                        WERROR *werror)
 {
        struct dfs_Move r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_Move, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_MOVE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETDFS,
+                               &ndr_table_netdfs,
+                               NDR_DFS_MOVE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_Move, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -295,24 +389,33 @@ NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERRO
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        WERROR *werror)
 {
        struct dfs_ManagerGetConfigInfo r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_ManagerGetConfigInfo, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_MANAGERGETCONFIGINFO, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETDFS,
+                               &ndr_table_netdfs,
+                               NDR_DFS_MANAGERGETCONFIGINFO,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_ManagerGetConfigInfo, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -328,24 +431,33 @@ NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli, TALLOC_CTX
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       WERROR *werror)
 {
        struct dfs_ManagerSendSiteInfo r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_ManagerSendSiteInfo, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_MANAGERSENDSITEINFO, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETDFS,
+                               &ndr_table_netdfs,
+                               NDR_DFS_MANAGERSENDSITEINFO,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_ManagerSendSiteInfo, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -361,7 +473,18 @@ NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli, TALLOC_CTX
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *dns_servername, const char *dfsname, const char *rootshare, const char *comment, const char *dfs_config_dn, uint8_t unknown1, uint32_t flags, struct dfs_UnknownStruct **unknown2, WERROR *werror)
+NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli,
+                             TALLOC_CTX *mem_ctx,
+                             const char *servername,
+                             const char *dns_servername,
+                             const char *dfsname,
+                             const char *rootshare,
+                             const char *comment,
+                             const char *dfs_config_dn,
+                             uint8_t unknown1,
+                             uint32_t flags,
+                             struct dfs_UnknownStruct **unknown2,
+                             WERROR *werror)
 {
        struct dfs_AddFtRoot r;
        NTSTATUS status;
@@ -377,17 +500,24 @@ NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        r.in.flags = flags;
        r.in.unknown2 = unknown2;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_AddFtRoot, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADDFTROOT, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETDFS,
+                               &ndr_table_netdfs,
+                               NDR_DFS_ADDFTROOT,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_AddFtRoot, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -406,7 +536,15 @@ NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *dns_servername, const char *dfsname, const char *rootshare, uint32_t flags, struct dfs_UnknownStruct **unknown, WERROR *werror)
+NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                const char *servername,
+                                const char *dns_servername,
+                                const char *dfsname,
+                                const char *rootshare,
+                                uint32_t flags,
+                                struct dfs_UnknownStruct **unknown,
+                                WERROR *werror)
 {
        struct dfs_RemoveFtRoot r;
        NTSTATUS status;
@@ -419,17 +557,24 @@ NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
        r.in.flags = flags;
        r.in.unknown = unknown;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_RemoveFtRoot, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_REMOVEFTROOT, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETDFS,
+                               &ndr_table_netdfs,
+                               NDR_DFS_REMOVEFTROOT,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_RemoveFtRoot, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -448,7 +593,13 @@ NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare, const char *comment, uint32_t flags, WERROR *werror)
+NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli,
+                              TALLOC_CTX *mem_ctx,
+                              const char *servername,
+                              const char *rootshare,
+                              const char *comment,
+                              uint32_t flags,
+                              WERROR *werror)
 {
        struct dfs_AddStdRoot r;
        NTSTATUS status;
@@ -459,17 +610,24 @@ NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        r.in.comment = comment;
        r.in.flags = flags;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_AddStdRoot, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADDSTDROOT, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETDFS,
+                               &ndr_table_netdfs,
+                               NDR_DFS_ADDSTDROOT,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_AddStdRoot, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -485,7 +643,12 @@ NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare, uint32_t flags, WERROR *werror)
+NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 const char *servername,
+                                 const char *rootshare,
+                                 uint32_t flags,
+                                 WERROR *werror)
 {
        struct dfs_RemoveStdRoot r;
        NTSTATUS status;
@@ -495,17 +658,24 @@ NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        r.in.rootshare = rootshare;
        r.in.flags = flags;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_RemoveStdRoot, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_REMOVESTDROOT, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETDFS,
+                               &ndr_table_netdfs,
+                               NDR_DFS_REMOVESTDROOT,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_RemoveStdRoot, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -521,7 +691,11 @@ NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, uint32_t flags, WERROR *werror)
+NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     const char *servername,
+                                     uint32_t flags,
+                                     WERROR *werror)
 {
        struct dfs_ManagerInitialize r;
        NTSTATUS status;
@@ -530,17 +704,24 @@ NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *m
        r.in.servername = servername;
        r.in.flags = flags;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_ManagerInitialize, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_MANAGERINITIALIZE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETDFS,
+                               &ndr_table_netdfs,
+                               NDR_DFS_MANAGERINITIALIZE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_ManagerInitialize, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -556,7 +737,13 @@ NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *m
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare, const char *comment, const char *store, WERROR *werror)
+NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx,
+                                    const char *servername,
+                                    const char *rootshare,
+                                    const char *comment,
+                                    const char *store,
+                                    WERROR *werror)
 {
        struct dfs_AddStdRootForced r;
        NTSTATUS status;
@@ -567,17 +754,24 @@ NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *me
        r.in.comment = comment;
        r.in.store = store;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_AddStdRootForced, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADDSTDROOTFORCED, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETDFS,
+                               &ndr_table_netdfs,
+                               NDR_DFS_ADDSTDROOTFORCED,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_AddStdRootForced, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -593,24 +787,33 @@ NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *me
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                WERROR *werror)
 {
        struct dfs_GetDcAddress r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_GetDcAddress, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_GETDCADDRESS, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETDFS,
+                               &ndr_table_netdfs,
+                               NDR_DFS_GETDCADDRESS,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_GetDcAddress, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -626,24 +829,33 @@ NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                WERROR *werror)
 {
        struct dfs_SetDcAddress r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_SetDcAddress, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_SETDCADDRESS, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETDFS,
+                               &ndr_table_netdfs,
+                               NDR_DFS_SETDCADDRESS,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_SetDcAddress, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -659,7 +871,11 @@ NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare, WERROR *werror)
+NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                const char *servername,
+                                const char *rootshare,
+                                WERROR *werror)
 {
        struct dfs_FlushFtTable r;
        NTSTATUS status;
@@ -668,17 +884,24 @@ NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
        r.in.servername = servername;
        r.in.rootshare = rootshare;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_FlushFtTable, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_FLUSHFTTABLE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETDFS,
+                               &ndr_table_netdfs,
+                               NDR_DFS_FLUSHFTTABLE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_FlushFtTable, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -694,24 +917,33 @@ NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli,
+                        TALLOC_CTX *mem_ctx,
+                        WERROR *werror)
 {
        struct dfs_Add2 r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_Add2, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADD2, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETDFS,
+                               &ndr_table_netdfs,
+                               NDR_DFS_ADD2,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_Add2, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -727,24 +959,33 @@ NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERRO
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli,
+                           TALLOC_CTX *mem_ctx,
+                           WERROR *werror)
 {
        struct dfs_Remove2 r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_Remove2, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_REMOVE2, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETDFS,
+                               &ndr_table_netdfs,
+                               NDR_DFS_REMOVE2,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_Remove2, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -760,7 +1001,14 @@ NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WE
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_name, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct *info, uint32_t *total, WERROR *werror)
+NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli,
+                          TALLOC_CTX *mem_ctx,
+                          const char *dfs_name,
+                          uint32_t level,
+                          uint32_t bufsize,
+                          struct dfs_EnumStruct *info,
+                          uint32_t *total,
+                          WERROR *werror)
 {
        struct dfs_EnumEx r;
        NTSTATUS status;
@@ -772,17 +1020,24 @@ NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con
        r.in.info = info;
        r.in.total = total;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_EnumEx, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ENUMEX, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETDFS,
+                               &ndr_table_netdfs,
+                               NDR_DFS_ENUMEX,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_EnumEx, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -804,24 +1059,33 @@ NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli,
+                            TALLOC_CTX *mem_ctx,
+                            WERROR *werror)
 {
        struct dfs_SetInfo2 r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_SetInfo2, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_SETINFO2, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETDFS,
+                               &ndr_table_netdfs,
+                               NDR_DFS_SETINFO2,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_SetInfo2, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
index 1b03fbf070bbe7a86cf89b444f1146f55f64b50f..cdd0978bb4d7571437678a0681ebddeebfda1feb 100644 (file)
 #include "librpc/gen_ndr/ndr_dfs.h"
 #ifndef __CLI_NETDFS__
 #define __CLI_NETDFS__
-NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, enum dfs_ManagerVersion *version);
-NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *path, const char *server, const char *share, const char *comment, uint32_t flags, WERROR *werror);
-NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_entry_path, const char *servername, const char *sharename, WERROR *werror);
-NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_entry_path, const char *servername, const char *sharename, uint32_t level, union dfs_Info *info, WERROR *werror);
-NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_entry_path, const char *servername, const char *sharename, uint32_t level, union dfs_Info *info, WERROR *werror);
-NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct *info, uint32_t *total, WERROR *werror);
-NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *dns_servername, const char *dfsname, const char *rootshare, const char *comment, const char *dfs_config_dn, uint8_t unknown1, uint32_t flags, struct dfs_UnknownStruct **unknown2, WERROR *werror);
-NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *dns_servername, const char *dfsname, const char *rootshare, uint32_t flags, struct dfs_UnknownStruct **unknown, WERROR *werror);
-NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare, const char *comment, uint32_t flags, WERROR *werror);
-NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare, uint32_t flags, WERROR *werror);
-NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, uint32_t flags, WERROR *werror);
-NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare, const char *comment, const char *store, WERROR *werror);
-NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare, WERROR *werror);
-NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_name, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct *info, uint32_t *total, WERROR *werror);
-NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
+NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     enum dfs_ManagerVersion *version);
+NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli,
+                       TALLOC_CTX *mem_ctx,
+                       const char *path,
+                       const char *server,
+                       const char *share,
+                       const char *comment,
+                       uint32_t flags,
+                       WERROR *werror);
+NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli,
+                          TALLOC_CTX *mem_ctx,
+                          const char *dfs_entry_path,
+                          const char *servername,
+                          const char *sharename,
+                          WERROR *werror);
+NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli,
+                           TALLOC_CTX *mem_ctx,
+                           const char *dfs_entry_path,
+                           const char *servername,
+                           const char *sharename,
+                           uint32_t level,
+                           union dfs_Info *info,
+                           WERROR *werror);
+NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli,
+                           TALLOC_CTX *mem_ctx,
+                           const char *dfs_entry_path,
+                           const char *servername,
+                           const char *sharename,
+                           uint32_t level,
+                           union dfs_Info *info,
+                           WERROR *werror);
+NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli,
+                        TALLOC_CTX *mem_ctx,
+                        uint32_t level,
+                        uint32_t bufsize,
+                        struct dfs_EnumStruct *info,
+                        uint32_t *total,
+                        WERROR *werror);
+NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli,
+                          TALLOC_CTX *mem_ctx,
+                          WERROR *werror);
+NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli,
+                        TALLOC_CTX *mem_ctx,
+                        WERROR *werror);
+NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        WERROR *werror);
+NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       WERROR *werror);
+NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli,
+                             TALLOC_CTX *mem_ctx,
+                             const char *servername,
+                             const char *dns_servername,
+                             const char *dfsname,
+                             const char *rootshare,
+                             const char *comment,
+                             const char *dfs_config_dn,
+                             uint8_t unknown1,
+                             uint32_t flags,
+                             struct dfs_UnknownStruct **unknown2,
+                             WERROR *werror);
+NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                const char *servername,
+                                const char *dns_servername,
+                                const char *dfsname,
+                                const char *rootshare,
+                                uint32_t flags,
+                                struct dfs_UnknownStruct **unknown,
+                                WERROR *werror);
+NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli,
+                              TALLOC_CTX *mem_ctx,
+                              const char *servername,
+                              const char *rootshare,
+                              const char *comment,
+                              uint32_t flags,
+                              WERROR *werror);
+NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 const char *servername,
+                                 const char *rootshare,
+                                 uint32_t flags,
+                                 WERROR *werror);
+NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     const char *servername,
+                                     uint32_t flags,
+                                     WERROR *werror);
+NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx,
+                                    const char *servername,
+                                    const char *rootshare,
+                                    const char *comment,
+                                    const char *store,
+                                    WERROR *werror);
+NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                WERROR *werror);
+NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                WERROR *werror);
+NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                const char *servername,
+                                const char *rootshare,
+                                WERROR *werror);
+NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli,
+                        TALLOC_CTX *mem_ctx,
+                        WERROR *werror);
+NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli,
+                           TALLOC_CTX *mem_ctx,
+                           WERROR *werror);
+NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli,
+                          TALLOC_CTX *mem_ctx,
+                          const char *dfs_name,
+                          uint32_t level,
+                          uint32_t bufsize,
+                          struct dfs_EnumStruct *info,
+                          uint32_t *total,
+                          WERROR *werror);
+NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli,
+                            TALLOC_CTX *mem_ctx,
+                            WERROR *werror);
 #endif /* __CLI_NETDFS__ */
index 2d6187a937faf907cfb4c2f2a7706dcf97ad08bf..d2ef574821b8042e4ab5f150d876809133bf4656 100644 (file)
@@ -6,7 +6,10 @@
 #include "includes.h"
 #include "librpc/gen_ndr/cli_echo.h"
 
-NTSTATUS rpccli_echo_AddOne(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t in_data, uint32_t *out_data)
+NTSTATUS rpccli_echo_AddOne(struct rpc_pipe_client *cli,
+                           TALLOC_CTX *mem_ctx,
+                           uint32_t in_data,
+                           uint32_t *out_data)
 {
        struct echo_AddOne r;
        NTSTATUS status;
@@ -14,17 +17,24 @@ NTSTATUS rpccli_echo_AddOne(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, ui
        /* In parameters */
        r.in.in_data = in_data;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(echo_AddOne, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, &ndr_table_rpcecho, NDR_ECHO_ADDONE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_RPCECHO,
+                               &ndr_table_rpcecho,
+                               NDR_ECHO_ADDONE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(echo_AddOne, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -37,7 +47,11 @@ NTSTATUS rpccli_echo_AddOne(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, ui
        return NT_STATUS_OK;
 }
 
-NTSTATUS rpccli_echo_EchoData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t len, uint8_t *in_data, uint8_t *out_data)
+NTSTATUS rpccli_echo_EchoData(struct rpc_pipe_client *cli,
+                             TALLOC_CTX *mem_ctx,
+                             uint32_t len,
+                             uint8_t *in_data,
+                             uint8_t *out_data)
 {
        struct echo_EchoData r;
        NTSTATUS status;
@@ -46,17 +60,24 @@ NTSTATUS rpccli_echo_EchoData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        r.in.len = len;
        r.in.in_data = in_data;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(echo_EchoData, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, &ndr_table_rpcecho, NDR_ECHO_ECHODATA, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_RPCECHO,
+                               &ndr_table_rpcecho,
+                               NDR_ECHO_ECHODATA,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(echo_EchoData, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -69,7 +90,10 @@ NTSTATUS rpccli_echo_EchoData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        return NT_STATUS_OK;
 }
 
-NTSTATUS rpccli_echo_SinkData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t len, uint8_t *data)
+NTSTATUS rpccli_echo_SinkData(struct rpc_pipe_client *cli,
+                             TALLOC_CTX *mem_ctx,
+                             uint32_t len,
+                             uint8_t *data)
 {
        struct echo_SinkData r;
        NTSTATUS status;
@@ -78,17 +102,24 @@ NTSTATUS rpccli_echo_SinkData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        r.in.len = len;
        r.in.data = data;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(echo_SinkData, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, &ndr_table_rpcecho, NDR_ECHO_SINKDATA, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_RPCECHO,
+                               &ndr_table_rpcecho,
+                               NDR_ECHO_SINKDATA,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(echo_SinkData, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -100,7 +131,10 @@ NTSTATUS rpccli_echo_SinkData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        return NT_STATUS_OK;
 }
 
-NTSTATUS rpccli_echo_SourceData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t len, uint8_t *data)
+NTSTATUS rpccli_echo_SourceData(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               uint32_t len,
+                               uint8_t *data)
 {
        struct echo_SourceData r;
        NTSTATUS status;
@@ -108,17 +142,24 @@ NTSTATUS rpccli_echo_SourceData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        /* In parameters */
        r.in.len = len;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(echo_SourceData, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, &ndr_table_rpcecho, NDR_ECHO_SOURCEDATA, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_RPCECHO,
+                               &ndr_table_rpcecho,
+                               NDR_ECHO_SOURCEDATA,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(echo_SourceData, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -131,7 +172,10 @@ NTSTATUS rpccli_echo_SourceData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        return NT_STATUS_OK;
 }
 
-NTSTATUS rpccli_echo_TestCall(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *s1, const char **s2)
+NTSTATUS rpccli_echo_TestCall(struct rpc_pipe_client *cli,
+                             TALLOC_CTX *mem_ctx,
+                             const char *s1,
+                             const char **s2)
 {
        struct echo_TestCall r;
        NTSTATUS status;
@@ -139,17 +183,24 @@ NTSTATUS rpccli_echo_TestCall(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        /* In parameters */
        r.in.s1 = s1;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(echo_TestCall, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, &ndr_table_rpcecho, NDR_ECHO_TESTCALL, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_RPCECHO,
+                               &ndr_table_rpcecho,
+                               NDR_ECHO_TESTCALL,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(echo_TestCall, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -162,7 +213,10 @@ NTSTATUS rpccli_echo_TestCall(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        return NT_STATUS_OK;
 }
 
-NTSTATUS rpccli_echo_TestCall2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t level, union echo_Info *info)
+NTSTATUS rpccli_echo_TestCall2(struct rpc_pipe_client *cli,
+                              TALLOC_CTX *mem_ctx,
+                              uint16_t level,
+                              union echo_Info *info)
 {
        struct echo_TestCall2 r;
        NTSTATUS status;
@@ -170,17 +224,24 @@ NTSTATUS rpccli_echo_TestCall2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        /* In parameters */
        r.in.level = level;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(echo_TestCall2, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, &ndr_table_rpcecho, NDR_ECHO_TESTCALL2, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_RPCECHO,
+                               &ndr_table_rpcecho,
+                               NDR_ECHO_TESTCALL2,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(echo_TestCall2, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -193,7 +254,9 @@ NTSTATUS rpccli_echo_TestCall2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        return r.out.result;
 }
 
-NTSTATUS rpccli_echo_TestSleep(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t seconds)
+NTSTATUS rpccli_echo_TestSleep(struct rpc_pipe_client *cli,
+                              TALLOC_CTX *mem_ctx,
+                              uint32_t seconds)
 {
        struct echo_TestSleep r;
        NTSTATUS status;
@@ -201,17 +264,24 @@ NTSTATUS rpccli_echo_TestSleep(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        /* In parameters */
        r.in.seconds = seconds;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(echo_TestSleep, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, &ndr_table_rpcecho, NDR_ECHO_TESTSLEEP, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_RPCECHO,
+                               &ndr_table_rpcecho,
+                               NDR_ECHO_TESTSLEEP,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(echo_TestSleep, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -223,7 +293,11 @@ NTSTATUS rpccli_echo_TestSleep(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        return NT_STATUS_OK;
 }
 
-NTSTATUS rpccli_echo_TestEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, enum echo_Enum1 *foo1, struct echo_Enum2 *foo2, union echo_Enum3 *foo3)
+NTSTATUS rpccli_echo_TestEnum(struct rpc_pipe_client *cli,
+                             TALLOC_CTX *mem_ctx,
+                             enum echo_Enum1 *foo1,
+                             struct echo_Enum2 *foo2,
+                             union echo_Enum3 *foo3)
 {
        struct echo_TestEnum r;
        NTSTATUS status;
@@ -233,17 +307,24 @@ NTSTATUS rpccli_echo_TestEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        r.in.foo2 = foo2;
        r.in.foo3 = foo3;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(echo_TestEnum, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, &ndr_table_rpcecho, NDR_ECHO_TESTENUM, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_RPCECHO,
+                               &ndr_table_rpcecho,
+                               NDR_ECHO_TESTENUM,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(echo_TestEnum, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -258,7 +339,9 @@ NTSTATUS rpccli_echo_TestEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        return NT_STATUS_OK;
 }
 
-NTSTATUS rpccli_echo_TestSurrounding(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct echo_Surrounding *data)
+NTSTATUS rpccli_echo_TestSurrounding(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx,
+                                    struct echo_Surrounding *data)
 {
        struct echo_TestSurrounding r;
        NTSTATUS status;
@@ -266,17 +349,24 @@ NTSTATUS rpccli_echo_TestSurrounding(struct rpc_pipe_client *cli, TALLOC_CTX *me
        /* In parameters */
        r.in.data = data;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(echo_TestSurrounding, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, &ndr_table_rpcecho, NDR_ECHO_TESTSURROUNDING, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_RPCECHO,
+                               &ndr_table_rpcecho,
+                               NDR_ECHO_TESTSURROUNDING,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(echo_TestSurrounding, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -289,7 +379,9 @@ NTSTATUS rpccli_echo_TestSurrounding(struct rpc_pipe_client *cli, TALLOC_CTX *me
        return NT_STATUS_OK;
 }
 
-NTSTATUS rpccli_echo_TestDoublePointer(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t ***data)
+NTSTATUS rpccli_echo_TestDoublePointer(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      uint16_t ***data)
 {
        struct echo_TestDoublePointer r;
        NTSTATUS status;
@@ -297,17 +389,24 @@ NTSTATUS rpccli_echo_TestDoublePointer(struct rpc_pipe_client *cli, TALLOC_CTX *
        /* In parameters */
        r.in.data = data;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(echo_TestDoublePointer, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, &ndr_table_rpcecho, NDR_ECHO_TESTDOUBLEPOINTER, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_RPCECHO,
+                               &ndr_table_rpcecho,
+                               NDR_ECHO_TESTDOUBLEPOINTER,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(echo_TestDoublePointer, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
index d7e7f31704871c418636b52dc6c6ee3459a0d05a..e682004c166ffda1ad213c4d270ca54f9fa1f200 100644 (file)
@@ -1,14 +1,43 @@
 #include "librpc/gen_ndr/ndr_echo.h"
 #ifndef __CLI_RPCECHO__
 #define __CLI_RPCECHO__
-NTSTATUS rpccli_echo_AddOne(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t in_data, uint32_t *out_data);
-NTSTATUS rpccli_echo_EchoData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t len, uint8_t *in_data, uint8_t *out_data);
-NTSTATUS rpccli_echo_SinkData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t len, uint8_t *data);
-NTSTATUS rpccli_echo_SourceData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t len, uint8_t *data);
-NTSTATUS rpccli_echo_TestCall(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *s1, const char **s2);
-NTSTATUS rpccli_echo_TestCall2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t level, union echo_Info *info);
-NTSTATUS rpccli_echo_TestSleep(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t seconds);
-NTSTATUS rpccli_echo_TestEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, enum echo_Enum1 *foo1, struct echo_Enum2 *foo2, union echo_Enum3 *foo3);
-NTSTATUS rpccli_echo_TestSurrounding(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct echo_Surrounding *data);
-NTSTATUS rpccli_echo_TestDoublePointer(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t ***data);
+NTSTATUS rpccli_echo_AddOne(struct rpc_pipe_client *cli,
+                           TALLOC_CTX *mem_ctx,
+                           uint32_t in_data,
+                           uint32_t *out_data);
+NTSTATUS rpccli_echo_EchoData(struct rpc_pipe_client *cli,
+                             TALLOC_CTX *mem_ctx,
+                             uint32_t len,
+                             uint8_t *in_data,
+                             uint8_t *out_data);
+NTSTATUS rpccli_echo_SinkData(struct rpc_pipe_client *cli,
+                             TALLOC_CTX *mem_ctx,
+                             uint32_t len,
+                             uint8_t *data);
+NTSTATUS rpccli_echo_SourceData(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               uint32_t len,
+                               uint8_t *data);
+NTSTATUS rpccli_echo_TestCall(struct rpc_pipe_client *cli,
+                             TALLOC_CTX *mem_ctx,
+                             const char *s1,
+                             const char **s2);
+NTSTATUS rpccli_echo_TestCall2(struct rpc_pipe_client *cli,
+                              TALLOC_CTX *mem_ctx,
+                              uint16_t level,
+                              union echo_Info *info);
+NTSTATUS rpccli_echo_TestSleep(struct rpc_pipe_client *cli,
+                              TALLOC_CTX *mem_ctx,
+                              uint32_t seconds);
+NTSTATUS rpccli_echo_TestEnum(struct rpc_pipe_client *cli,
+                             TALLOC_CTX *mem_ctx,
+                             enum echo_Enum1 *foo1,
+                             struct echo_Enum2 *foo2,
+                             union echo_Enum3 *foo3);
+NTSTATUS rpccli_echo_TestSurrounding(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx,
+                                    struct echo_Surrounding *data);
+NTSTATUS rpccli_echo_TestDoublePointer(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      uint16_t ***data);
 #endif /* __CLI_RPCECHO__ */
index 1ac594ddd70290170de90bc34d69c7200ce8e823..775e349cd2de18d1909e5b2de4ec4ebd22f071a0 100644 (file)
@@ -6,7 +6,11 @@
 #include "includes.h"
 #include "librpc/gen_ndr/cli_epmapper.h"
 
-NTSTATUS rpccli_epm_Insert(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t num_ents, struct epm_entry_t *entries, uint32_t replace)
+NTSTATUS rpccli_epm_Insert(struct rpc_pipe_client *cli,
+                          TALLOC_CTX *mem_ctx,
+                          uint32_t num_ents,
+                          struct epm_entry_t *entries,
+                          uint32_t replace)
 {
        struct epm_Insert r;
        NTSTATUS status;
@@ -16,17 +20,24 @@ NTSTATUS rpccli_epm_Insert(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uin
        r.in.entries = entries;
        r.in.replace = replace;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(epm_Insert, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EPMAPPER, &ndr_table_epmapper, NDR_EPM_INSERT, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EPMAPPER,
+                               &ndr_table_epmapper,
+                               NDR_EPM_INSERT,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(epm_Insert, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -38,7 +49,10 @@ NTSTATUS rpccli_epm_Insert(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uin
        return NT_STATUS_OK;
 }
 
-NTSTATUS rpccli_epm_Delete(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t num_ents, struct epm_entry_t *entries)
+NTSTATUS rpccli_epm_Delete(struct rpc_pipe_client *cli,
+                          TALLOC_CTX *mem_ctx,
+                          uint32_t num_ents,
+                          struct epm_entry_t *entries)
 {
        struct epm_Delete r;
        NTSTATUS status;
@@ -47,17 +61,24 @@ NTSTATUS rpccli_epm_Delete(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uin
        r.in.num_ents = num_ents;
        r.in.entries = entries;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(epm_Delete, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EPMAPPER, &ndr_table_epmapper, NDR_EPM_DELETE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EPMAPPER,
+                               &ndr_table_epmapper,
+                               NDR_EPM_DELETE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(epm_Delete, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -69,7 +90,16 @@ NTSTATUS rpccli_epm_Delete(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uin
        return NT_STATUS_OK;
 }
 
-NTSTATUS rpccli_epm_Lookup(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t inquiry_type, struct GUID *object, struct rpc_if_id_t *interface_id, uint32_t vers_option, struct policy_handle *entry_handle, uint32_t max_ents, uint32_t *num_ents, struct epm_entry_t *entries)
+NTSTATUS rpccli_epm_Lookup(struct rpc_pipe_client *cli,
+                          TALLOC_CTX *mem_ctx,
+                          uint32_t inquiry_type,
+                          struct GUID *object,
+                          struct rpc_if_id_t *interface_id,
+                          uint32_t vers_option,
+                          struct policy_handle *entry_handle,
+                          uint32_t max_ents,
+                          uint32_t *num_ents,
+                          struct epm_entry_t *entries)
 {
        struct epm_Lookup r;
        NTSTATUS status;
@@ -82,17 +112,24 @@ NTSTATUS rpccli_epm_Lookup(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uin
        r.in.entry_handle = entry_handle;
        r.in.max_ents = max_ents;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(epm_Lookup, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EPMAPPER, &ndr_table_epmapper, NDR_EPM_LOOKUP, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EPMAPPER,
+                               &ndr_table_epmapper,
+                               NDR_EPM_LOOKUP,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(epm_Lookup, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -107,7 +144,14 @@ NTSTATUS rpccli_epm_Lookup(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uin
        return NT_STATUS_OK;
 }
 
-NTSTATUS rpccli_epm_Map(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct GUID *object, struct epm_twr_t *map_tower, struct policy_handle *entry_handle, uint32_t max_towers, uint32_t *num_towers, struct epm_twr_p_t *towers)
+NTSTATUS rpccli_epm_Map(struct rpc_pipe_client *cli,
+                       TALLOC_CTX *mem_ctx,
+                       struct GUID *object,
+                       struct epm_twr_t *map_tower,
+                       struct policy_handle *entry_handle,
+                       uint32_t max_towers,
+                       uint32_t *num_towers,
+                       struct epm_twr_p_t *towers)
 {
        struct epm_Map r;
        NTSTATUS status;
@@ -118,17 +162,24 @@ NTSTATUS rpccli_epm_Map(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct
        r.in.entry_handle = entry_handle;
        r.in.max_towers = max_towers;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(epm_Map, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EPMAPPER, &ndr_table_epmapper, NDR_EPM_MAP, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EPMAPPER,
+                               &ndr_table_epmapper,
+                               NDR_EPM_MAP,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(epm_Map, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -143,7 +194,9 @@ NTSTATUS rpccli_epm_Map(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct
        return NT_STATUS_OK;
 }
 
-NTSTATUS rpccli_epm_LookupHandleFree(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *entry_handle)
+NTSTATUS rpccli_epm_LookupHandleFree(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx,
+                                    struct policy_handle *entry_handle)
 {
        struct epm_LookupHandleFree r;
        NTSTATUS status;
@@ -151,17 +204,24 @@ NTSTATUS rpccli_epm_LookupHandleFree(struct rpc_pipe_client *cli, TALLOC_CTX *me
        /* In parameters */
        r.in.entry_handle = entry_handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(epm_LookupHandleFree, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EPMAPPER, &ndr_table_epmapper, NDR_EPM_LOOKUPHANDLEFREE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EPMAPPER,
+                               &ndr_table_epmapper,
+                               NDR_EPM_LOOKUPHANDLEFREE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(epm_LookupHandleFree, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -174,7 +234,9 @@ NTSTATUS rpccli_epm_LookupHandleFree(struct rpc_pipe_client *cli, TALLOC_CTX *me
        return NT_STATUS_OK;
 }
 
-NTSTATUS rpccli_epm_InqObject(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct GUID *epm_object)
+NTSTATUS rpccli_epm_InqObject(struct rpc_pipe_client *cli,
+                             TALLOC_CTX *mem_ctx,
+                             struct GUID *epm_object)
 {
        struct epm_InqObject r;
        NTSTATUS status;
@@ -182,17 +244,24 @@ NTSTATUS rpccli_epm_InqObject(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        /* In parameters */
        r.in.epm_object = epm_object;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(epm_InqObject, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EPMAPPER, &ndr_table_epmapper, NDR_EPM_INQOBJECT, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EPMAPPER,
+                               &ndr_table_epmapper,
+                               NDR_EPM_INQOBJECT,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(epm_InqObject, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -204,7 +273,11 @@ NTSTATUS rpccli_epm_InqObject(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        return NT_STATUS_OK;
 }
 
-NTSTATUS rpccli_epm_MgmtDelete(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t object_speced, struct GUID *object, struct epm_twr_t *tower)
+NTSTATUS rpccli_epm_MgmtDelete(struct rpc_pipe_client *cli,
+                              TALLOC_CTX *mem_ctx,
+                              uint32_t object_speced,
+                              struct GUID *object,
+                              struct epm_twr_t *tower)
 {
        struct epm_MgmtDelete r;
        NTSTATUS status;
@@ -214,17 +287,24 @@ NTSTATUS rpccli_epm_MgmtDelete(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        r.in.object = object;
        r.in.tower = tower;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(epm_MgmtDelete, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EPMAPPER, &ndr_table_epmapper, NDR_EPM_MGMTDELETE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EPMAPPER,
+                               &ndr_table_epmapper,
+                               NDR_EPM_MGMTDELETE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(epm_MgmtDelete, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -236,24 +316,32 @@ NTSTATUS rpccli_epm_MgmtDelete(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        return NT_STATUS_OK;
 }
 
-NTSTATUS rpccli_epm_MapAuth(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_epm_MapAuth(struct rpc_pipe_client *cli,
+                           TALLOC_CTX *mem_ctx)
 {
        struct epm_MapAuth r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(epm_MapAuth, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EPMAPPER, &ndr_table_epmapper, NDR_EPM_MAPAUTH, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EPMAPPER,
+                               &ndr_table_epmapper,
+                               NDR_EPM_MAPAUTH,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(epm_MapAuth, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
index 88e05a4600a07d34dada4bc6d1cd6a2b17ad0384..fe99e6441c76d65aa7523075a1448d0a72f5554d 100644 (file)
@@ -1,12 +1,44 @@
 #include "librpc/gen_ndr/ndr_epmapper.h"
 #ifndef __CLI_EPMAPPER__
 #define __CLI_EPMAPPER__
-NTSTATUS rpccli_epm_Insert(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t num_ents, struct epm_entry_t *entries, uint32_t replace);
-NTSTATUS rpccli_epm_Delete(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t num_ents, struct epm_entry_t *entries);
-NTSTATUS rpccli_epm_Lookup(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t inquiry_type, struct GUID *object, struct rpc_if_id_t *interface_id, uint32_t vers_option, struct policy_handle *entry_handle, uint32_t max_ents, uint32_t *num_ents, struct epm_entry_t *entries);
-NTSTATUS rpccli_epm_Map(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct GUID *object, struct epm_twr_t *map_tower, struct policy_handle *entry_handle, uint32_t max_towers, uint32_t *num_towers, struct epm_twr_p_t *towers);
-NTSTATUS rpccli_epm_LookupHandleFree(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *entry_handle);
-NTSTATUS rpccli_epm_InqObject(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct GUID *epm_object);
-NTSTATUS rpccli_epm_MgmtDelete(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t object_speced, struct GUID *object, struct epm_twr_t *tower);
-NTSTATUS rpccli_epm_MapAuth(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_epm_Insert(struct rpc_pipe_client *cli,
+                          TALLOC_CTX *mem_ctx,
+                          uint32_t num_ents,
+                          struct epm_entry_t *entries,
+                          uint32_t replace);
+NTSTATUS rpccli_epm_Delete(struct rpc_pipe_client *cli,
+                          TALLOC_CTX *mem_ctx,
+                          uint32_t num_ents,
+                          struct epm_entry_t *entries);
+NTSTATUS rpccli_epm_Lookup(struct rpc_pipe_client *cli,
+                          TALLOC_CTX *mem_ctx,
+                          uint32_t inquiry_type,
+                          struct GUID *object,
+                          struct rpc_if_id_t *interface_id,
+                          uint32_t vers_option,
+                          struct policy_handle *entry_handle,
+                          uint32_t max_ents,
+                          uint32_t *num_ents,
+                          struct epm_entry_t *entries);
+NTSTATUS rpccli_epm_Map(struct rpc_pipe_client *cli,
+                       TALLOC_CTX *mem_ctx,
+                       struct GUID *object,
+                       struct epm_twr_t *map_tower,
+                       struct policy_handle *entry_handle,
+                       uint32_t max_towers,
+                       uint32_t *num_towers,
+                       struct epm_twr_p_t *towers);
+NTSTATUS rpccli_epm_LookupHandleFree(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx,
+                                    struct policy_handle *entry_handle);
+NTSTATUS rpccli_epm_InqObject(struct rpc_pipe_client *cli,
+                             TALLOC_CTX *mem_ctx,
+                             struct GUID *epm_object);
+NTSTATUS rpccli_epm_MgmtDelete(struct rpc_pipe_client *cli,
+                              TALLOC_CTX *mem_ctx,
+                              uint32_t object_speced,
+                              struct GUID *object,
+                              struct epm_twr_t *tower);
+NTSTATUS rpccli_epm_MapAuth(struct rpc_pipe_client *cli,
+                           TALLOC_CTX *mem_ctx);
 #endif /* __CLI_EPMAPPER__ */
index fbcd098538d296dc40b436a77be8eac5755a55c6..72cd886cb4ccaf259a61c119765f0da597cc1561 100644 (file)
@@ -6,7 +6,10 @@
 #include "includes.h"
 #include "librpc/gen_ndr/cli_eventlog.h"
 
-NTSTATUS rpccli_eventlog_ClearEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String *unknown)
+NTSTATUS rpccli_eventlog_ClearEventLogW(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       struct policy_handle *handle,
+                                       struct lsa_String *unknown)
 {
        struct eventlog_ClearEventLogW r;
        NTSTATUS status;
@@ -15,17 +18,24 @@ NTSTATUS rpccli_eventlog_ClearEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX
        r.in.handle = handle;
        r.in.unknown = unknown;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_ClearEventLogW, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_CLEAREVENTLOGW, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EVENTLOG,
+                               &ndr_table_eventlog,
+                               NDR_EVENTLOG_CLEAREVENTLOGW,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_ClearEventLogW, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -37,24 +47,32 @@ NTSTATUS rpccli_eventlog_ClearEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX
        return r.out.result;
 }
 
-NTSTATUS rpccli_eventlog_BackupEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_BackupEventLogW(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx)
 {
        struct eventlog_BackupEventLogW r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_BackupEventLogW, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_BACKUPEVENTLOGW, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EVENTLOG,
+                               &ndr_table_eventlog,
+                               NDR_EVENTLOG_BACKUPEVENTLOGW,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_BackupEventLogW, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -66,7 +84,9 @@ NTSTATUS rpccli_eventlog_BackupEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX
        return r.out.result;
 }
 
-NTSTATUS rpccli_eventlog_CloseEventLog(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle)
+NTSTATUS rpccli_eventlog_CloseEventLog(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      struct policy_handle *handle)
 {
        struct eventlog_CloseEventLog r;
        NTSTATUS status;
@@ -74,17 +94,24 @@ NTSTATUS rpccli_eventlog_CloseEventLog(struct rpc_pipe_client *cli, TALLOC_CTX *
        /* In parameters */
        r.in.handle = handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_CloseEventLog, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_CLOSEEVENTLOG, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EVENTLOG,
+                               &ndr_table_eventlog,
+                               NDR_EVENTLOG_CLOSEEVENTLOG,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_CloseEventLog, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -97,24 +124,32 @@ NTSTATUS rpccli_eventlog_CloseEventLog(struct rpc_pipe_client *cli, TALLOC_CTX *
        return r.out.result;
 }
 
-NTSTATUS rpccli_eventlog_DeregisterEventSource(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_DeregisterEventSource(struct rpc_pipe_client *cli,
+                                              TALLOC_CTX *mem_ctx)
 {
        struct eventlog_DeregisterEventSource r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_DeregisterEventSource, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_DEREGISTEREVENTSOURCE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EVENTLOG,
+                               &ndr_table_eventlog,
+                               NDR_EVENTLOG_DEREGISTEREVENTSOURCE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_DeregisterEventSource, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -126,7 +161,10 @@ NTSTATUS rpccli_eventlog_DeregisterEventSource(struct rpc_pipe_client *cli, TALL
        return r.out.result;
 }
 
-NTSTATUS rpccli_eventlog_GetNumRecords(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t *number)
+NTSTATUS rpccli_eventlog_GetNumRecords(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      struct policy_handle *handle,
+                                      uint32_t *number)
 {
        struct eventlog_GetNumRecords r;
        NTSTATUS status;
@@ -134,17 +172,24 @@ NTSTATUS rpccli_eventlog_GetNumRecords(struct rpc_pipe_client *cli, TALLOC_CTX *
        /* In parameters */
        r.in.handle = handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_GetNumRecords, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_GETNUMRECORDS, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EVENTLOG,
+                               &ndr_table_eventlog,
+                               NDR_EVENTLOG_GETNUMRECORDS,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_GetNumRecords, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -157,24 +202,32 @@ NTSTATUS rpccli_eventlog_GetNumRecords(struct rpc_pipe_client *cli, TALLOC_CTX *
        return r.out.result;
 }
 
-NTSTATUS rpccli_eventlog_GetOldestRecord(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_GetOldestRecord(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx)
 {
        struct eventlog_GetOldestRecord r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_GetOldestRecord, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_GETOLDESTRECORD, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EVENTLOG,
+                               &ndr_table_eventlog,
+                               NDR_EVENTLOG_GETOLDESTRECORD,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_GetOldestRecord, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -186,24 +239,32 @@ NTSTATUS rpccli_eventlog_GetOldestRecord(struct rpc_pipe_client *cli, TALLOC_CTX
        return r.out.result;
 }
 
-NTSTATUS rpccli_eventlog_ChangeNotify(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_ChangeNotify(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx)
 {
        struct eventlog_ChangeNotify r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_ChangeNotify, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_CHANGENOTIFY, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EVENTLOG,
+                               &ndr_table_eventlog,
+                               NDR_EVENTLOG_CHANGENOTIFY,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_ChangeNotify, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -215,7 +276,14 @@ NTSTATUS rpccli_eventlog_ChangeNotify(struct rpc_pipe_client *cli, TALLOC_CTX *m
        return r.out.result;
 }
 
-NTSTATUS rpccli_eventlog_OpenEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct eventlog_OpenUnknown0 *unknown0, struct lsa_String logname, struct lsa_String servername, uint32_t unknown2, uint32_t unknown3, struct policy_handle *handle)
+NTSTATUS rpccli_eventlog_OpenEventLogW(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      struct eventlog_OpenUnknown0 *unknown0,
+                                      struct lsa_String logname,
+                                      struct lsa_String servername,
+                                      uint32_t unknown2,
+                                      uint32_t unknown3,
+                                      struct policy_handle *handle)
 {
        struct eventlog_OpenEventLogW r;
        NTSTATUS status;
@@ -227,17 +295,24 @@ NTSTATUS rpccli_eventlog_OpenEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *
        r.in.unknown2 = unknown2;
        r.in.unknown3 = unknown3;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_OpenEventLogW, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_OPENEVENTLOGW, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EVENTLOG,
+                               &ndr_table_eventlog,
+                               NDR_EVENTLOG_OPENEVENTLOGW,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_OpenEventLogW, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -250,24 +325,32 @@ NTSTATUS rpccli_eventlog_OpenEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *
        return r.out.result;
 }
 
-NTSTATUS rpccli_eventlog_RegisterEventSourceW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_RegisterEventSourceW(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx)
 {
        struct eventlog_RegisterEventSourceW r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_RegisterEventSourceW, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_REGISTEREVENTSOURCEW, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EVENTLOG,
+                               &ndr_table_eventlog,
+                               NDR_EVENTLOG_REGISTEREVENTSOURCEW,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_RegisterEventSourceW, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -279,24 +362,32 @@ NTSTATUS rpccli_eventlog_RegisterEventSourceW(struct rpc_pipe_client *cli, TALLO
        return r.out.result;
 }
 
-NTSTATUS rpccli_eventlog_OpenBackupEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_OpenBackupEventLogW(struct rpc_pipe_client *cli,
+                                            TALLOC_CTX *mem_ctx)
 {
        struct eventlog_OpenBackupEventLogW r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_OpenBackupEventLogW, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_OPENBACKUPEVENTLOGW, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EVENTLOG,
+                               &ndr_table_eventlog,
+                               NDR_EVENTLOG_OPENBACKUPEVENTLOGW,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_OpenBackupEventLogW, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -308,7 +399,15 @@ NTSTATUS rpccli_eventlog_OpenBackupEventLogW(struct rpc_pipe_client *cli, TALLOC
        return r.out.result;
 }
 
-NTSTATUS rpccli_eventlog_ReadEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t flags, uint32_t offset, uint32_t number_of_bytes, uint8_t *data, uint32_t *sent_size, uint32_t *real_size)
+NTSTATUS rpccli_eventlog_ReadEventLogW(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      struct policy_handle *handle,
+                                      uint32_t flags,
+                                      uint32_t offset,
+                                      uint32_t number_of_bytes,
+                                      uint8_t *data,
+                                      uint32_t *sent_size,
+                                      uint32_t *real_size)
 {
        struct eventlog_ReadEventLogW r;
        NTSTATUS status;
@@ -319,17 +418,24 @@ NTSTATUS rpccli_eventlog_ReadEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *
        r.in.offset = offset;
        r.in.number_of_bytes = number_of_bytes;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_ReadEventLogW, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_READEVENTLOGW, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EVENTLOG,
+                               &ndr_table_eventlog,
+                               NDR_EVENTLOG_READEVENTLOGW,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_ReadEventLogW, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -344,24 +450,32 @@ NTSTATUS rpccli_eventlog_ReadEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *
        return r.out.result;
 }
 
-NTSTATUS rpccli_eventlog_ReportEventW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_ReportEventW(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx)
 {
        struct eventlog_ReportEventW r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_ReportEventW, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_REPORTEVENTW, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EVENTLOG,
+                               &ndr_table_eventlog,
+                               NDR_EVENTLOG_REPORTEVENTW,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_ReportEventW, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -373,24 +487,32 @@ NTSTATUS rpccli_eventlog_ReportEventW(struct rpc_pipe_client *cli, TALLOC_CTX *m
        return r.out.result;
 }
 
-NTSTATUS rpccli_eventlog_ClearEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_ClearEventLogA(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx)
 {
        struct eventlog_ClearEventLogA r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_ClearEventLogA, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_CLEAREVENTLOGA, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EVENTLOG,
+                               &ndr_table_eventlog,
+                               NDR_EVENTLOG_CLEAREVENTLOGA,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_ClearEventLogA, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -402,24 +524,32 @@ NTSTATUS rpccli_eventlog_ClearEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX
        return r.out.result;
 }
 
-NTSTATUS rpccli_eventlog_BackupEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_BackupEventLogA(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx)
 {
        struct eventlog_BackupEventLogA r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_BackupEventLogA, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_BACKUPEVENTLOGA, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EVENTLOG,
+                               &ndr_table_eventlog,
+                               NDR_EVENTLOG_BACKUPEVENTLOGA,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_BackupEventLogA, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -431,24 +561,32 @@ NTSTATUS rpccli_eventlog_BackupEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX
        return r.out.result;
 }
 
-NTSTATUS rpccli_eventlog_OpenEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_OpenEventLogA(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx)
 {
        struct eventlog_OpenEventLogA r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_OpenEventLogA, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_OPENEVENTLOGA, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EVENTLOG,
+                               &ndr_table_eventlog,
+                               NDR_EVENTLOG_OPENEVENTLOGA,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_OpenEventLogA, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -460,24 +598,32 @@ NTSTATUS rpccli_eventlog_OpenEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *
        return r.out.result;
 }
 
-NTSTATUS rpccli_eventlog_RegisterEventSourceA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_RegisterEventSourceA(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx)
 {
        struct eventlog_RegisterEventSourceA r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_RegisterEventSourceA, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_REGISTEREVENTSOURCEA, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EVENTLOG,
+                               &ndr_table_eventlog,
+                               NDR_EVENTLOG_REGISTEREVENTSOURCEA,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_RegisterEventSourceA, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -489,24 +635,32 @@ NTSTATUS rpccli_eventlog_RegisterEventSourceA(struct rpc_pipe_client *cli, TALLO
        return r.out.result;
 }
 
-NTSTATUS rpccli_eventlog_OpenBackupEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_OpenBackupEventLogA(struct rpc_pipe_client *cli,
+                                            TALLOC_CTX *mem_ctx)
 {
        struct eventlog_OpenBackupEventLogA r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_OpenBackupEventLogA, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_OPENBACKUPEVENTLOGA, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EVENTLOG,
+                               &ndr_table_eventlog,
+                               NDR_EVENTLOG_OPENBACKUPEVENTLOGA,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_OpenBackupEventLogA, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -518,24 +672,32 @@ NTSTATUS rpccli_eventlog_OpenBackupEventLogA(struct rpc_pipe_client *cli, TALLOC
        return r.out.result;
 }
 
-NTSTATUS rpccli_eventlog_ReadEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_ReadEventLogA(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx)
 {
        struct eventlog_ReadEventLogA r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_ReadEventLogA, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_READEVENTLOGA, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EVENTLOG,
+                               &ndr_table_eventlog,
+                               NDR_EVENTLOG_READEVENTLOGA,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_ReadEventLogA, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -547,24 +709,32 @@ NTSTATUS rpccli_eventlog_ReadEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *
        return r.out.result;
 }
 
-NTSTATUS rpccli_eventlog_ReportEventA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_ReportEventA(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx)
 {
        struct eventlog_ReportEventA r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_ReportEventA, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_REPORTEVENTA, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EVENTLOG,
+                               &ndr_table_eventlog,
+                               NDR_EVENTLOG_REPORTEVENTA,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_ReportEventA, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -576,24 +746,32 @@ NTSTATUS rpccli_eventlog_ReportEventA(struct rpc_pipe_client *cli, TALLOC_CTX *m
        return r.out.result;
 }
 
-NTSTATUS rpccli_eventlog_RegisterClusterSvc(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_RegisterClusterSvc(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx)
 {
        struct eventlog_RegisterClusterSvc r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_RegisterClusterSvc, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_REGISTERCLUSTERSVC, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EVENTLOG,
+                               &ndr_table_eventlog,
+                               NDR_EVENTLOG_REGISTERCLUSTERSVC,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_RegisterClusterSvc, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -605,24 +783,32 @@ NTSTATUS rpccli_eventlog_RegisterClusterSvc(struct rpc_pipe_client *cli, TALLOC_
        return r.out.result;
 }
 
-NTSTATUS rpccli_eventlog_DeregisterClusterSvc(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_DeregisterClusterSvc(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx)
 {
        struct eventlog_DeregisterClusterSvc r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_DeregisterClusterSvc, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_DEREGISTERCLUSTERSVC, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EVENTLOG,
+                               &ndr_table_eventlog,
+                               NDR_EVENTLOG_DEREGISTERCLUSTERSVC,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_DeregisterClusterSvc, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -634,24 +820,32 @@ NTSTATUS rpccli_eventlog_DeregisterClusterSvc(struct rpc_pipe_client *cli, TALLO
        return r.out.result;
 }
 
-NTSTATUS rpccli_eventlog_WriteClusterEvents(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_WriteClusterEvents(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx)
 {
        struct eventlog_WriteClusterEvents r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_WriteClusterEvents, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_WRITECLUSTEREVENTS, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EVENTLOG,
+                               &ndr_table_eventlog,
+                               NDR_EVENTLOG_WRITECLUSTEREVENTS,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_WriteClusterEvents, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -663,24 +857,32 @@ NTSTATUS rpccli_eventlog_WriteClusterEvents(struct rpc_pipe_client *cli, TALLOC_
        return r.out.result;
 }
 
-NTSTATUS rpccli_eventlog_GetLogIntormation(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_GetLogIntormation(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx)
 {
        struct eventlog_GetLogIntormation r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_GetLogIntormation, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_GETLOGINTORMATION, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EVENTLOG,
+                               &ndr_table_eventlog,
+                               NDR_EVENTLOG_GETLOGINTORMATION,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_GetLogIntormation, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -692,7 +894,9 @@ NTSTATUS rpccli_eventlog_GetLogIntormation(struct rpc_pipe_client *cli, TALLOC_C
        return r.out.result;
 }
 
-NTSTATUS rpccli_eventlog_FlushEventLog(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle)
+NTSTATUS rpccli_eventlog_FlushEventLog(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      struct policy_handle *handle)
 {
        struct eventlog_FlushEventLog r;
        NTSTATUS status;
@@ -700,17 +904,24 @@ NTSTATUS rpccli_eventlog_FlushEventLog(struct rpc_pipe_client *cli, TALLOC_CTX *
        /* In parameters */
        r.in.handle = handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_FlushEventLog, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_FLUSHEVENTLOG, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_EVENTLOG,
+                               &ndr_table_eventlog,
+                               NDR_EVENTLOG_FLUSHEVENTLOG,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_FlushEventLog, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
index 9024641795618f04134b8db6c0cd91deaabd6302..f75355c390442ad7e78a242729d625d6ce3ac88a 100644 (file)
@@ -1,28 +1,71 @@
 #include "librpc/gen_ndr/ndr_eventlog.h"
 #ifndef __CLI_EVENTLOG__
 #define __CLI_EVENTLOG__
-NTSTATUS rpccli_eventlog_ClearEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String *unknown);
-NTSTATUS rpccli_eventlog_BackupEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_CloseEventLog(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle);
-NTSTATUS rpccli_eventlog_DeregisterEventSource(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_GetNumRecords(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t *number);
-NTSTATUS rpccli_eventlog_GetOldestRecord(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_ChangeNotify(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_OpenEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct eventlog_OpenUnknown0 *unknown0, struct lsa_String logname, struct lsa_String servername, uint32_t unknown2, uint32_t unknown3, struct policy_handle *handle);
-NTSTATUS rpccli_eventlog_RegisterEventSourceW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_OpenBackupEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_ReadEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t flags, uint32_t offset, uint32_t number_of_bytes, uint8_t *data, uint32_t *sent_size, uint32_t *real_size);
-NTSTATUS rpccli_eventlog_ReportEventW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_ClearEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_BackupEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_OpenEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_RegisterEventSourceA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_OpenBackupEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_ReadEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_ReportEventA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_RegisterClusterSvc(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_DeregisterClusterSvc(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_WriteClusterEvents(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_GetLogIntormation(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_FlushEventLog(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle);
+NTSTATUS rpccli_eventlog_ClearEventLogW(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       struct policy_handle *handle,
+                                       struct lsa_String *unknown);
+NTSTATUS rpccli_eventlog_BackupEventLogW(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_CloseEventLog(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      struct policy_handle *handle);
+NTSTATUS rpccli_eventlog_DeregisterEventSource(struct rpc_pipe_client *cli,
+                                              TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_GetNumRecords(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      struct policy_handle *handle,
+                                      uint32_t *number);
+NTSTATUS rpccli_eventlog_GetOldestRecord(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_ChangeNotify(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_OpenEventLogW(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      struct eventlog_OpenUnknown0 *unknown0,
+                                      struct lsa_String logname,
+                                      struct lsa_String servername,
+                                      uint32_t unknown2,
+                                      uint32_t unknown3,
+                                      struct policy_handle *handle);
+NTSTATUS rpccli_eventlog_RegisterEventSourceW(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_OpenBackupEventLogW(struct rpc_pipe_client *cli,
+                                            TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_ReadEventLogW(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      struct policy_handle *handle,
+                                      uint32_t flags,
+                                      uint32_t offset,
+                                      uint32_t number_of_bytes,
+                                      uint8_t *data,
+                                      uint32_t *sent_size,
+                                      uint32_t *real_size);
+NTSTATUS rpccli_eventlog_ReportEventW(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_ClearEventLogA(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_BackupEventLogA(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_OpenEventLogA(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_RegisterEventSourceA(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_OpenBackupEventLogA(struct rpc_pipe_client *cli,
+                                            TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_ReadEventLogA(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_ReportEventA(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_RegisterClusterSvc(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_DeregisterClusterSvc(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_WriteClusterEvents(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_GetLogIntormation(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_FlushEventLog(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      struct policy_handle *handle);
 #endif /* __CLI_EVENTLOG__ */
index a549c94ce55b628edb2a0e7b268fe4cbcad2da99..10f5c308d58670a190a75af33a7bc61dcbd0b2e3 100644 (file)
@@ -6,7 +6,14 @@
 #include "includes.h"
 #include "librpc/gen_ndr/cli_initshutdown.h"
 
-NTSTATUS rpccli_initshutdown_Init(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *hostname, struct initshutdown_String *message, uint32_t timeout, uint8_t force_apps, uint8_t reboot, WERROR *werror)
+NTSTATUS rpccli_initshutdown_Init(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 uint16_t *hostname,
+                                 struct initshutdown_String *message,
+                                 uint32_t timeout,
+                                 uint8_t force_apps,
+                                 uint8_t reboot,
+                                 WERROR *werror)
 {
        struct initshutdown_Init r;
        NTSTATUS status;
@@ -18,17 +25,24 @@ NTSTATUS rpccli_initshutdown_Init(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        r.in.force_apps = force_apps;
        r.in.reboot = reboot;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(initshutdown_Init, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_INITSHUTDOWN, &ndr_table_initshutdown, NDR_INITSHUTDOWN_INIT, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_INITSHUTDOWN,
+                               &ndr_table_initshutdown,
+                               NDR_INITSHUTDOWN_INIT,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(initshutdown_Init, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -44,7 +58,10 @@ NTSTATUS rpccli_initshutdown_Init(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_initshutdown_Abort(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *server, WERROR *werror)
+NTSTATUS rpccli_initshutdown_Abort(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  uint16_t *server,
+                                  WERROR *werror)
 {
        struct initshutdown_Abort r;
        NTSTATUS status;
@@ -52,17 +69,24 @@ NTSTATUS rpccli_initshutdown_Abort(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        /* In parameters */
        r.in.server = server;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(initshutdown_Abort, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_INITSHUTDOWN, &ndr_table_initshutdown, NDR_INITSHUTDOWN_ABORT, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_INITSHUTDOWN,
+                               &ndr_table_initshutdown,
+                               NDR_INITSHUTDOWN_ABORT,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(initshutdown_Abort, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -78,7 +102,15 @@ NTSTATUS rpccli_initshutdown_Abort(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_initshutdown_InitEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *hostname, struct initshutdown_String *message, uint32_t timeout, uint8_t force_apps, uint8_t reboot, uint32_t reason, WERROR *werror)
+NTSTATUS rpccli_initshutdown_InitEx(struct rpc_pipe_client *cli,
+                                   TALLOC_CTX *mem_ctx,
+                                   uint16_t *hostname,
+                                   struct initshutdown_String *message,
+                                   uint32_t timeout,
+                                   uint8_t force_apps,
+                                   uint8_t reboot,
+                                   uint32_t reason,
+                                   WERROR *werror)
 {
        struct initshutdown_InitEx r;
        NTSTATUS status;
@@ -91,17 +123,24 @@ NTSTATUS rpccli_initshutdown_InitEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem
        r.in.reboot = reboot;
        r.in.reason = reason;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(initshutdown_InitEx, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_INITSHUTDOWN, &ndr_table_initshutdown, NDR_INITSHUTDOWN_INITEX, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_INITSHUTDOWN,
+                               &ndr_table_initshutdown,
+                               NDR_INITSHUTDOWN_INITEX,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(initshutdown_InitEx, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
index e2a35b6d50cb20db1c98803b3a6c439252e5885b..624b79f94ce7f651fcf9aa326b91f776fb7e7dcd 100644 (file)
@@ -1,7 +1,25 @@
 #include "librpc/gen_ndr/ndr_initshutdown.h"
 #ifndef __CLI_INITSHUTDOWN__
 #define __CLI_INITSHUTDOWN__
-NTSTATUS rpccli_initshutdown_Init(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *hostname, struct initshutdown_String *message, uint32_t timeout, uint8_t force_apps, uint8_t reboot, WERROR *werror);
-NTSTATUS rpccli_initshutdown_Abort(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *server, WERROR *werror);
-NTSTATUS rpccli_initshutdown_InitEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *hostname, struct initshutdown_String *message, uint32_t timeout, uint8_t force_apps, uint8_t reboot, uint32_t reason, WERROR *werror);
+NTSTATUS rpccli_initshutdown_Init(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 uint16_t *hostname,
+                                 struct initshutdown_String *message,
+                                 uint32_t timeout,
+                                 uint8_t force_apps,
+                                 uint8_t reboot,
+                                 WERROR *werror);
+NTSTATUS rpccli_initshutdown_Abort(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  uint16_t *server,
+                                  WERROR *werror);
+NTSTATUS rpccli_initshutdown_InitEx(struct rpc_pipe_client *cli,
+                                   TALLOC_CTX *mem_ctx,
+                                   uint16_t *hostname,
+                                   struct initshutdown_String *message,
+                                   uint32_t timeout,
+                                   uint8_t force_apps,
+                                   uint8_t reboot,
+                                   uint32_t reason,
+                                   WERROR *werror);
 #endif /* __CLI_INITSHUTDOWN__ */
index 49bb44880aeb263c6e0090da688ac01f4539062e..470ab3e0a5a5a64491ffc9bbe803ee6190a3472f 100644 (file)
@@ -6,7 +6,9 @@
 #include "includes.h"
 #include "librpc/gen_ndr/cli_lsa.h"
 
-NTSTATUS rpccli_lsa_Close(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle)
+NTSTATUS rpccli_lsa_Close(struct rpc_pipe_client *cli,
+                         TALLOC_CTX *mem_ctx,
+                         struct policy_handle *handle)
 {
        struct lsa_Close r;
        NTSTATUS status;
@@ -14,17 +16,24 @@ NTSTATUS rpccli_lsa_Close(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, stru
        /* In parameters */
        r.in.handle = handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_Close, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CLOSE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_CLOSE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_Close, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -37,7 +46,9 @@ NTSTATUS rpccli_lsa_Close(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, stru
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_Delete(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle)
+NTSTATUS rpccli_lsa_Delete(struct rpc_pipe_client *cli,
+                          TALLOC_CTX *mem_ctx,
+                          struct policy_handle *handle)
 {
        struct lsa_Delete r;
        NTSTATUS status;
@@ -45,17 +56,24 @@ NTSTATUS rpccli_lsa_Delete(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, str
        /* In parameters */
        r.in.handle = handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_Delete, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_DELETE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_DELETE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_Delete, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -67,7 +85,12 @@ NTSTATUS rpccli_lsa_Delete(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, str
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_EnumPrivs(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t *resume_handle, uint32_t max_count, struct lsa_PrivArray *privs)
+NTSTATUS rpccli_lsa_EnumPrivs(struct rpc_pipe_client *cli,
+                             TALLOC_CTX *mem_ctx,
+                             struct policy_handle *handle,
+                             uint32_t *resume_handle,
+                             uint32_t max_count,
+                             struct lsa_PrivArray *privs)
 {
        struct lsa_EnumPrivs r;
        NTSTATUS status;
@@ -77,17 +100,24 @@ NTSTATUS rpccli_lsa_EnumPrivs(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        r.in.resume_handle = resume_handle;
        r.in.max_count = max_count;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_EnumPrivs, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_ENUMPRIVS, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_ENUMPRIVS,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_EnumPrivs, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -101,7 +131,11 @@ NTSTATUS rpccli_lsa_EnumPrivs(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_QuerySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t sec_info, struct sec_desc_buf *sdbuf)
+NTSTATUS rpccli_lsa_QuerySecurity(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 struct policy_handle *handle,
+                                 uint32_t sec_info,
+                                 struct sec_desc_buf *sdbuf)
 {
        struct lsa_QuerySecurity r;
        NTSTATUS status;
@@ -110,17 +144,24 @@ NTSTATUS rpccli_lsa_QuerySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        r.in.handle = handle;
        r.in.sec_info = sec_info;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_QuerySecurity, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_QUERYSECURITY, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_QUERYSECURITY,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_QuerySecurity, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -135,24 +176,32 @@ NTSTATUS rpccli_lsa_QuerySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_SetSecObj(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_SetSecObj(struct rpc_pipe_client *cli,
+                             TALLOC_CTX *mem_ctx)
 {
        struct lsa_SetSecObj r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_SetSecObj, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_SETSECOBJ, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_SETSECOBJ,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_SetSecObj, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -164,24 +213,32 @@ NTSTATUS rpccli_lsa_SetSecObj(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_ChangePassword(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_ChangePassword(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx)
 {
        struct lsa_ChangePassword r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_ChangePassword, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CHANGEPASSWORD, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_CHANGEPASSWORD,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_ChangePassword, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -193,7 +250,12 @@ NTSTATUS rpccli_lsa_ChangePassword(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_OpenPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, struct lsa_ObjectAttribute *attr, uint32_t access_mask, struct policy_handle *handle)
+NTSTATUS rpccli_lsa_OpenPolicy(struct rpc_pipe_client *cli,
+                              TALLOC_CTX *mem_ctx,
+                              uint16_t *system_name,
+                              struct lsa_ObjectAttribute *attr,
+                              uint32_t access_mask,
+                              struct policy_handle *handle)
 {
        struct lsa_OpenPolicy r;
        NTSTATUS status;
@@ -203,17 +265,24 @@ NTSTATUS rpccli_lsa_OpenPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        r.in.attr = attr;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_OpenPolicy, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_OPENPOLICY, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_OPENPOLICY,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_OpenPolicy, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -226,7 +295,11 @@ NTSTATUS rpccli_lsa_OpenPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_QueryInfoPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint16_t level, union lsa_PolicyInformation *info)
+NTSTATUS rpccli_lsa_QueryInfoPolicy(struct rpc_pipe_client *cli,
+                                   TALLOC_CTX *mem_ctx,
+                                   struct policy_handle *handle,
+                                   uint16_t level,
+                                   union lsa_PolicyInformation *info)
 {
        struct lsa_QueryInfoPolicy r;
        NTSTATUS status;
@@ -235,17 +308,24 @@ NTSTATUS rpccli_lsa_QueryInfoPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem
        r.in.handle = handle;
        r.in.level = level;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_QueryInfoPolicy, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_QUERYINFOPOLICY, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_QUERYINFOPOLICY,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_QueryInfoPolicy, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -260,24 +340,32 @@ NTSTATUS rpccli_lsa_QueryInfoPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_SetInfoPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_SetInfoPolicy(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx)
 {
        struct lsa_SetInfoPolicy r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_SetInfoPolicy, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_SETINFOPOLICY, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_SETINFOPOLICY,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_SetInfoPolicy, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -289,24 +377,32 @@ NTSTATUS rpccli_lsa_SetInfoPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_ClearAuditLog(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_ClearAuditLog(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx)
 {
        struct lsa_ClearAuditLog r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_ClearAuditLog, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CLEARAUDITLOG, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_CLEARAUDITLOG,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_ClearAuditLog, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -318,7 +414,12 @@ NTSTATUS rpccli_lsa_ClearAuditLog(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_CreateAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *sid, uint32_t access_mask, struct policy_handle *acct_handle)
+NTSTATUS rpccli_lsa_CreateAccount(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 struct policy_handle *handle,
+                                 struct dom_sid2 *sid,
+                                 uint32_t access_mask,
+                                 struct policy_handle *acct_handle)
 {
        struct lsa_CreateAccount r;
        NTSTATUS status;
@@ -328,17 +429,24 @@ NTSTATUS rpccli_lsa_CreateAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        r.in.sid = sid;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CreateAccount, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREATEACCOUNT, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_CREATEACCOUNT,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CreateAccount, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -351,7 +459,12 @@ NTSTATUS rpccli_lsa_CreateAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_EnumAccounts(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t *resume_handle, uint32_t num_entries, struct lsa_SidArray *sids)
+NTSTATUS rpccli_lsa_EnumAccounts(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                struct policy_handle *handle,
+                                uint32_t *resume_handle,
+                                uint32_t num_entries,
+                                struct lsa_SidArray *sids)
 {
        struct lsa_EnumAccounts r;
        NTSTATUS status;
@@ -361,17 +474,24 @@ NTSTATUS rpccli_lsa_EnumAccounts(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
        r.in.resume_handle = resume_handle;
        r.in.num_entries = num_entries;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_EnumAccounts, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_ENUMACCOUNTS, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_ENUMACCOUNTS,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_EnumAccounts, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -385,7 +505,12 @@ NTSTATUS rpccli_lsa_EnumAccounts(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_CreateTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_DomainInfo *info, uint32_t access_mask, struct policy_handle *trustdom_handle)
+NTSTATUS rpccli_lsa_CreateTrustedDomain(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       struct policy_handle *handle,
+                                       struct lsa_DomainInfo *info,
+                                       uint32_t access_mask,
+                                       struct policy_handle *trustdom_handle)
 {
        struct lsa_CreateTrustedDomain r;
        NTSTATUS status;
@@ -395,17 +520,24 @@ NTSTATUS rpccli_lsa_CreateTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX
        r.in.info = info;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CreateTrustedDomain, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREATETRUSTEDDOMAIN, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_CREATETRUSTEDDOMAIN,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CreateTrustedDomain, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -418,7 +550,12 @@ NTSTATUS rpccli_lsa_CreateTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_EnumTrustDom(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t *resume_handle, uint32_t max_size, struct lsa_DomainList *domains)
+NTSTATUS rpccli_lsa_EnumTrustDom(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                struct policy_handle *handle,
+                                uint32_t *resume_handle,
+                                uint32_t max_size,
+                                struct lsa_DomainList *domains)
 {
        struct lsa_EnumTrustDom r;
        NTSTATUS status;
@@ -428,17 +565,24 @@ NTSTATUS rpccli_lsa_EnumTrustDom(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
        r.in.resume_handle = resume_handle;
        r.in.max_size = max_size;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_EnumTrustDom, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_ENUMTRUSTDOM, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_ENUMTRUSTDOM,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_EnumTrustDom, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -452,7 +596,15 @@ NTSTATUS rpccli_lsa_EnumTrustDom(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_LookupNames(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t num_names, struct lsa_String *names, struct lsa_RefDomainList *domains, struct lsa_TransSidArray *sids, uint16_t level, uint32_t *count)
+NTSTATUS rpccli_lsa_LookupNames(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               struct policy_handle *handle,
+                               uint32_t num_names,
+                               struct lsa_String *names,
+                               struct lsa_RefDomainList *domains,
+                               struct lsa_TransSidArray *sids,
+                               uint16_t level,
+                               uint32_t *count)
 {
        struct lsa_LookupNames r;
        NTSTATUS status;
@@ -465,17 +617,24 @@ NTSTATUS rpccli_lsa_LookupNames(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        r.in.level = level;
        r.in.count = count;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LookupNames, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LOOKUPNAMES, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_LOOKUPNAMES,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LookupNames, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -492,7 +651,14 @@ NTSTATUS rpccli_lsa_LookupNames(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_LookupSids(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_SidArray *sids, struct lsa_RefDomainList *domains, struct lsa_TransNameArray *names, uint16_t level, uint32_t *count)
+NTSTATUS rpccli_lsa_LookupSids(struct rpc_pipe_client *cli,
+                              TALLOC_CTX *mem_ctx,
+                              struct policy_handle *handle,
+                              struct lsa_SidArray *sids,
+                              struct lsa_RefDomainList *domains,
+                              struct lsa_TransNameArray *names,
+                              uint16_t level,
+                              uint32_t *count)
 {
        struct lsa_LookupSids r;
        NTSTATUS status;
@@ -504,17 +670,24 @@ NTSTATUS rpccli_lsa_LookupSids(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        r.in.level = level;
        r.in.count = count;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LookupSids, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LOOKUPSIDS, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_LOOKUPSIDS,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LookupSids, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -531,7 +704,12 @@ NTSTATUS rpccli_lsa_LookupSids(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_CreateSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String name, uint32_t access_mask, struct policy_handle *sec_handle)
+NTSTATUS rpccli_lsa_CreateSecret(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                struct policy_handle *handle,
+                                struct lsa_String name,
+                                uint32_t access_mask,
+                                struct policy_handle *sec_handle)
 {
        struct lsa_CreateSecret r;
        NTSTATUS status;
@@ -541,17 +719,24 @@ NTSTATUS rpccli_lsa_CreateSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
        r.in.name = name;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CreateSecret, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREATESECRET, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_CREATESECRET,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CreateSecret, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -564,7 +749,12 @@ NTSTATUS rpccli_lsa_CreateSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_OpenAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *sid, uint32_t access_mask, struct policy_handle *acct_handle)
+NTSTATUS rpccli_lsa_OpenAccount(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               struct policy_handle *handle,
+                               struct dom_sid2 *sid,
+                               uint32_t access_mask,
+                               struct policy_handle *acct_handle)
 {
        struct lsa_OpenAccount r;
        NTSTATUS status;
@@ -574,17 +764,24 @@ NTSTATUS rpccli_lsa_OpenAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        r.in.sid = sid;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_OpenAccount, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_OPENACCOUNT, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_OPENACCOUNT,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_OpenAccount, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -597,7 +794,10 @@ NTSTATUS rpccli_lsa_OpenAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_EnumPrivsAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_PrivilegeSet *privs)
+NTSTATUS rpccli_lsa_EnumPrivsAccount(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx,
+                                    struct policy_handle *handle,
+                                    struct lsa_PrivilegeSet *privs)
 {
        struct lsa_EnumPrivsAccount r;
        NTSTATUS status;
@@ -605,17 +805,24 @@ NTSTATUS rpccli_lsa_EnumPrivsAccount(struct rpc_pipe_client *cli, TALLOC_CTX *me
        /* In parameters */
        r.in.handle = handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_EnumPrivsAccount, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_ENUMPRIVSACCOUNT, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_ENUMPRIVSACCOUNT,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_EnumPrivsAccount, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -630,7 +837,10 @@ NTSTATUS rpccli_lsa_EnumPrivsAccount(struct rpc_pipe_client *cli, TALLOC_CTX *me
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_AddPrivilegesToAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_PrivilegeSet *privs)
+NTSTATUS rpccli_lsa_AddPrivilegesToAccount(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx,
+                                          struct policy_handle *handle,
+                                          struct lsa_PrivilegeSet *privs)
 {
        struct lsa_AddPrivilegesToAccount r;
        NTSTATUS status;
@@ -639,17 +849,24 @@ NTSTATUS rpccli_lsa_AddPrivilegesToAccount(struct rpc_pipe_client *cli, TALLOC_C
        r.in.handle = handle;
        r.in.privs = privs;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_AddPrivilegesToAccount, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_ADDPRIVILEGESTOACCOUNT, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_ADDPRIVILEGESTOACCOUNT,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_AddPrivilegesToAccount, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -661,7 +878,11 @@ NTSTATUS rpccli_lsa_AddPrivilegesToAccount(struct rpc_pipe_client *cli, TALLOC_C
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_RemovePrivilegesFromAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint8_t remove_all, struct lsa_PrivilegeSet *privs)
+NTSTATUS rpccli_lsa_RemovePrivilegesFromAccount(struct rpc_pipe_client *cli,
+                                               TALLOC_CTX *mem_ctx,
+                                               struct policy_handle *handle,
+                                               uint8_t remove_all,
+                                               struct lsa_PrivilegeSet *privs)
 {
        struct lsa_RemovePrivilegesFromAccount r;
        NTSTATUS status;
@@ -671,17 +892,24 @@ NTSTATUS rpccli_lsa_RemovePrivilegesFromAccount(struct rpc_pipe_client *cli, TAL
        r.in.remove_all = remove_all;
        r.in.privs = privs;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_RemovePrivilegesFromAccount, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_REMOVEPRIVILEGESFROMACCOUNT, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_REMOVEPRIVILEGESFROMACCOUNT,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_RemovePrivilegesFromAccount, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -693,24 +921,32 @@ NTSTATUS rpccli_lsa_RemovePrivilegesFromAccount(struct rpc_pipe_client *cli, TAL
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_GetQuotasForAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_GetQuotasForAccount(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx)
 {
        struct lsa_GetQuotasForAccount r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_GetQuotasForAccount, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_GETQUOTASFORACCOUNT, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_GETQUOTASFORACCOUNT,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_GetQuotasForAccount, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -722,24 +958,32 @@ NTSTATUS rpccli_lsa_GetQuotasForAccount(struct rpc_pipe_client *cli, TALLOC_CTX
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_SetQuotasForAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_SetQuotasForAccount(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx)
 {
        struct lsa_SetQuotasForAccount r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_SetQuotasForAccount, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_SETQUOTASFORACCOUNT, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_SETQUOTASFORACCOUNT,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_SetQuotasForAccount, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -751,24 +995,32 @@ NTSTATUS rpccli_lsa_SetQuotasForAccount(struct rpc_pipe_client *cli, TALLOC_CTX
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_GetSystemAccessAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_GetSystemAccessAccount(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx)
 {
        struct lsa_GetSystemAccessAccount r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_GetSystemAccessAccount, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_GETSYSTEMACCESSACCOUNT, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_GETSYSTEMACCESSACCOUNT,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_GetSystemAccessAccount, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -780,24 +1032,32 @@ NTSTATUS rpccli_lsa_GetSystemAccessAccount(struct rpc_pipe_client *cli, TALLOC_C
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_SetSystemAccessAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_SetSystemAccessAccount(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx)
 {
        struct lsa_SetSystemAccessAccount r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_SetSystemAccessAccount, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_SETSYSTEMACCESSACCOUNT, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_SETSYSTEMACCESSACCOUNT,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_SetSystemAccessAccount, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -809,7 +1069,12 @@ NTSTATUS rpccli_lsa_SetSystemAccessAccount(struct rpc_pipe_client *cli, TALLOC_C
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_OpenTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *sid, uint32_t access_mask, struct policy_handle *trustdom_handle)
+NTSTATUS rpccli_lsa_OpenTrustedDomain(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     struct policy_handle *handle,
+                                     struct dom_sid2 *sid,
+                                     uint32_t access_mask,
+                                     struct policy_handle *trustdom_handle)
 {
        struct lsa_OpenTrustedDomain r;
        NTSTATUS status;
@@ -819,17 +1084,24 @@ NTSTATUS rpccli_lsa_OpenTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX *m
        r.in.sid = sid;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_OpenTrustedDomain, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_OPENTRUSTEDDOMAIN, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_OPENTRUSTEDDOMAIN,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_OpenTrustedDomain, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -842,7 +1114,11 @@ NTSTATUS rpccli_lsa_OpenTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX *m
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_QueryTrustedDomainInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *trustdom_handle, enum lsa_TrustDomInfoEnum level, union lsa_TrustedDomainInfo *info)
+NTSTATUS rpccli_lsa_QueryTrustedDomainInfo(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx,
+                                          struct policy_handle *trustdom_handle,
+                                          enum lsa_TrustDomInfoEnum level,
+                                          union lsa_TrustedDomainInfo *info)
 {
        struct lsa_QueryTrustedDomainInfo r;
        NTSTATUS status;
@@ -851,17 +1127,24 @@ NTSTATUS rpccli_lsa_QueryTrustedDomainInfo(struct rpc_pipe_client *cli, TALLOC_C
        r.in.trustdom_handle = trustdom_handle;
        r.in.level = level;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_QueryTrustedDomainInfo, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_QUERYTRUSTEDDOMAININFO, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_QUERYTRUSTEDDOMAININFO,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_QueryTrustedDomainInfo, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -876,24 +1159,32 @@ NTSTATUS rpccli_lsa_QueryTrustedDomainInfo(struct rpc_pipe_client *cli, TALLOC_C
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_SetInformationTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_SetInformationTrustedDomain(struct rpc_pipe_client *cli,
+                                               TALLOC_CTX *mem_ctx)
 {
        struct lsa_SetInformationTrustedDomain r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_SetInformationTrustedDomain, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_SETINFORMATIONTRUSTEDDOMAIN, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_SETINFORMATIONTRUSTEDDOMAIN,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_SetInformationTrustedDomain, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -905,7 +1196,12 @@ NTSTATUS rpccli_lsa_SetInformationTrustedDomain(struct rpc_pipe_client *cli, TAL
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_OpenSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String name, uint32_t access_mask, struct policy_handle *sec_handle)
+NTSTATUS rpccli_lsa_OpenSecret(struct rpc_pipe_client *cli,
+                              TALLOC_CTX *mem_ctx,
+                              struct policy_handle *handle,
+                              struct lsa_String name,
+                              uint32_t access_mask,
+                              struct policy_handle *sec_handle)
 {
        struct lsa_OpenSecret r;
        NTSTATUS status;
@@ -915,17 +1211,24 @@ NTSTATUS rpccli_lsa_OpenSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        r.in.name = name;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_OpenSecret, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_OPENSECRET, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_OPENSECRET,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_OpenSecret, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -938,7 +1241,11 @@ NTSTATUS rpccli_lsa_OpenSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_SetSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *sec_handle, struct lsa_DATA_BUF *new_val, struct lsa_DATA_BUF *old_val)
+NTSTATUS rpccli_lsa_SetSecret(struct rpc_pipe_client *cli,
+                             TALLOC_CTX *mem_ctx,
+                             struct policy_handle *sec_handle,
+                             struct lsa_DATA_BUF *new_val,
+                             struct lsa_DATA_BUF *old_val)
 {
        struct lsa_SetSecret r;
        NTSTATUS status;
@@ -948,17 +1255,24 @@ NTSTATUS rpccli_lsa_SetSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        r.in.new_val = new_val;
        r.in.old_val = old_val;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_SetSecret, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_SETSECRET, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_SETSECRET,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_SetSecret, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -970,7 +1284,13 @@ NTSTATUS rpccli_lsa_SetSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_QuerySecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *sec_handle, struct lsa_DATA_BUF_PTR *new_val, NTTIME *new_mtime, struct lsa_DATA_BUF_PTR *old_val, NTTIME *old_mtime)
+NTSTATUS rpccli_lsa_QuerySecret(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               struct policy_handle *sec_handle,
+                               struct lsa_DATA_BUF_PTR *new_val,
+                               NTTIME *new_mtime,
+                               struct lsa_DATA_BUF_PTR *old_val,
+                               NTTIME *old_mtime)
 {
        struct lsa_QuerySecret r;
        NTSTATUS status;
@@ -982,17 +1302,24 @@ NTSTATUS rpccli_lsa_QuerySecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        r.in.old_val = old_val;
        r.in.old_mtime = old_mtime;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_QuerySecret, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_QUERYSECRET, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_QUERYSECRET,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_QuerySecret, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1016,7 +1343,11 @@ NTSTATUS rpccli_lsa_QuerySecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_LookupPrivValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String *name, struct lsa_LUID *luid)
+NTSTATUS rpccli_lsa_LookupPrivValue(struct rpc_pipe_client *cli,
+                                   TALLOC_CTX *mem_ctx,
+                                   struct policy_handle *handle,
+                                   struct lsa_String *name,
+                                   struct lsa_LUID *luid)
 {
        struct lsa_LookupPrivValue r;
        NTSTATUS status;
@@ -1025,17 +1356,24 @@ NTSTATUS rpccli_lsa_LookupPrivValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem
        r.in.handle = handle;
        r.in.name = name;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LookupPrivValue, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LOOKUPPRIVVALUE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_LOOKUPPRIVVALUE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LookupPrivValue, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1048,7 +1386,11 @@ NTSTATUS rpccli_lsa_LookupPrivValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_LookupPrivName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_LUID *luid, struct lsa_StringLarge *name)
+NTSTATUS rpccli_lsa_LookupPrivName(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  struct policy_handle *handle,
+                                  struct lsa_LUID *luid,
+                                  struct lsa_StringLarge *name)
 {
        struct lsa_LookupPrivName r;
        NTSTATUS status;
@@ -1057,17 +1399,24 @@ NTSTATUS rpccli_lsa_LookupPrivName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        r.in.handle = handle;
        r.in.luid = luid;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LookupPrivName, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LOOKUPPRIVNAME, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_LOOKUPPRIVNAME,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LookupPrivName, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1082,7 +1431,13 @@ NTSTATUS rpccli_lsa_LookupPrivName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_LookupPrivDisplayName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String *name, struct lsa_StringLarge *disp_name, uint16_t *language_id, uint16_t unknown)
+NTSTATUS rpccli_lsa_LookupPrivDisplayName(struct rpc_pipe_client *cli,
+                                         TALLOC_CTX *mem_ctx,
+                                         struct policy_handle *handle,
+                                         struct lsa_String *name,
+                                         struct lsa_StringLarge *disp_name,
+                                         uint16_t *language_id,
+                                         uint16_t unknown)
 {
        struct lsa_LookupPrivDisplayName r;
        NTSTATUS status;
@@ -1093,17 +1448,24 @@ NTSTATUS rpccli_lsa_LookupPrivDisplayName(struct rpc_pipe_client *cli, TALLOC_CT
        r.in.language_id = language_id;
        r.in.unknown = unknown;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LookupPrivDisplayName, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LOOKUPPRIVDISPLAYNAME, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_LOOKUPPRIVDISPLAYNAME,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LookupPrivDisplayName, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1119,24 +1481,32 @@ NTSTATUS rpccli_lsa_LookupPrivDisplayName(struct rpc_pipe_client *cli, TALLOC_CT
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_DeleteObject(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_DeleteObject(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx)
 {
        struct lsa_DeleteObject r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_DeleteObject, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_DELETEOBJECT, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_DELETEOBJECT,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_DeleteObject, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1148,7 +1518,11 @@ NTSTATUS rpccli_lsa_DeleteObject(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_EnumAccountsWithUserRight(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String *name, struct lsa_SidArray *sids)
+NTSTATUS rpccli_lsa_EnumAccountsWithUserRight(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             struct policy_handle *handle,
+                                             struct lsa_String *name,
+                                             struct lsa_SidArray *sids)
 {
        struct lsa_EnumAccountsWithUserRight r;
        NTSTATUS status;
@@ -1157,17 +1531,24 @@ NTSTATUS rpccli_lsa_EnumAccountsWithUserRight(struct rpc_pipe_client *cli, TALLO
        r.in.handle = handle;
        r.in.name = name;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_EnumAccountsWithUserRight, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_ENUMACCOUNTSWITHUSERRIGHT, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_ENUMACCOUNTSWITHUSERRIGHT,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_EnumAccountsWithUserRight, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1180,7 +1561,11 @@ NTSTATUS rpccli_lsa_EnumAccountsWithUserRight(struct rpc_pipe_client *cli, TALLO
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_EnumAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *sid, struct lsa_RightSet *rights)
+NTSTATUS rpccli_lsa_EnumAccountRights(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     struct policy_handle *handle,
+                                     struct dom_sid2 *sid,
+                                     struct lsa_RightSet *rights)
 {
        struct lsa_EnumAccountRights r;
        NTSTATUS status;
@@ -1189,17 +1574,24 @@ NTSTATUS rpccli_lsa_EnumAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX *m
        r.in.handle = handle;
        r.in.sid = sid;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_EnumAccountRights, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_ENUMACCOUNTRIGHTS, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_ENUMACCOUNTRIGHTS,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_EnumAccountRights, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1212,7 +1604,11 @@ NTSTATUS rpccli_lsa_EnumAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX *m
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_AddAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *sid, struct lsa_RightSet *rights)
+NTSTATUS rpccli_lsa_AddAccountRights(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx,
+                                    struct policy_handle *handle,
+                                    struct dom_sid2 *sid,
+                                    struct lsa_RightSet *rights)
 {
        struct lsa_AddAccountRights r;
        NTSTATUS status;
@@ -1222,17 +1618,24 @@ NTSTATUS rpccli_lsa_AddAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX *me
        r.in.sid = sid;
        r.in.rights = rights;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_AddAccountRights, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_ADDACCOUNTRIGHTS, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_ADDACCOUNTRIGHTS,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_AddAccountRights, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1244,7 +1647,12 @@ NTSTATUS rpccli_lsa_AddAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX *me
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_RemoveAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *sid, uint32_t unknown, struct lsa_RightSet *rights)
+NTSTATUS rpccli_lsa_RemoveAccountRights(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       struct policy_handle *handle,
+                                       struct dom_sid2 *sid,
+                                       uint32_t unknown,
+                                       struct lsa_RightSet *rights)
 {
        struct lsa_RemoveAccountRights r;
        NTSTATUS status;
@@ -1255,17 +1663,24 @@ NTSTATUS rpccli_lsa_RemoveAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX
        r.in.unknown = unknown;
        r.in.rights = rights;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_RemoveAccountRights, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_REMOVEACCOUNTRIGHTS, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_REMOVEACCOUNTRIGHTS,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_RemoveAccountRights, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1277,7 +1692,12 @@ NTSTATUS rpccli_lsa_RemoveAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_QueryTrustedDomainInfoBySid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *dom_sid, enum lsa_TrustDomInfoEnum level, union lsa_TrustedDomainInfo *info)
+NTSTATUS rpccli_lsa_QueryTrustedDomainInfoBySid(struct rpc_pipe_client *cli,
+                                               TALLOC_CTX *mem_ctx,
+                                               struct policy_handle *handle,
+                                               struct dom_sid2 *dom_sid,
+                                               enum lsa_TrustDomInfoEnum level,
+                                               union lsa_TrustedDomainInfo *info)
 {
        struct lsa_QueryTrustedDomainInfoBySid r;
        NTSTATUS status;
@@ -1287,17 +1707,24 @@ NTSTATUS rpccli_lsa_QueryTrustedDomainInfoBySid(struct rpc_pipe_client *cli, TAL
        r.in.dom_sid = dom_sid;
        r.in.level = level;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_QueryTrustedDomainInfoBySid, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_QUERYTRUSTEDDOMAININFOBYSID, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_QUERYTRUSTEDDOMAININFOBYSID,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_QueryTrustedDomainInfoBySid, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1312,24 +1739,32 @@ NTSTATUS rpccli_lsa_QueryTrustedDomainInfoBySid(struct rpc_pipe_client *cli, TAL
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_SetTrustedDomainInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_SetTrustedDomainInfo(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx)
 {
        struct lsa_SetTrustedDomainInfo r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_SetTrustedDomainInfo, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_SETTRUSTEDDOMAININFO, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_SETTRUSTEDDOMAININFO,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_SetTrustedDomainInfo, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1341,7 +1776,10 @@ NTSTATUS rpccli_lsa_SetTrustedDomainInfo(struct rpc_pipe_client *cli, TALLOC_CTX
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_DeleteTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *dom_sid)
+NTSTATUS rpccli_lsa_DeleteTrustedDomain(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       struct policy_handle *handle,
+                                       struct dom_sid2 *dom_sid)
 {
        struct lsa_DeleteTrustedDomain r;
        NTSTATUS status;
@@ -1350,17 +1788,24 @@ NTSTATUS rpccli_lsa_DeleteTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX
        r.in.handle = handle;
        r.in.dom_sid = dom_sid;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_DeleteTrustedDomain, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_DELETETRUSTEDDOMAIN, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_DELETETRUSTEDDOMAIN,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_DeleteTrustedDomain, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1372,24 +1817,32 @@ NTSTATUS rpccli_lsa_DeleteTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_StorePrivateData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_StorePrivateData(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx)
 {
        struct lsa_StorePrivateData r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_StorePrivateData, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_STOREPRIVATEDATA, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_STOREPRIVATEDATA,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_StorePrivateData, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1401,24 +1854,32 @@ NTSTATUS rpccli_lsa_StorePrivateData(struct rpc_pipe_client *cli, TALLOC_CTX *me
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_RetrievePrivateData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_RetrievePrivateData(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx)
 {
        struct lsa_RetrievePrivateData r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_RetrievePrivateData, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_RETRIEVEPRIVATEDATA, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_RETRIEVEPRIVATEDATA,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_RetrievePrivateData, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1430,7 +1891,12 @@ NTSTATUS rpccli_lsa_RetrievePrivateData(struct rpc_pipe_client *cli, TALLOC_CTX
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_OpenPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *system_name, struct lsa_ObjectAttribute *attr, uint32_t access_mask, struct policy_handle *handle)
+NTSTATUS rpccli_lsa_OpenPolicy2(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               const char *system_name,
+                               struct lsa_ObjectAttribute *attr,
+                               uint32_t access_mask,
+                               struct policy_handle *handle)
 {
        struct lsa_OpenPolicy2 r;
        NTSTATUS status;
@@ -1440,17 +1906,24 @@ NTSTATUS rpccli_lsa_OpenPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        r.in.attr = attr;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_OpenPolicy2, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_OPENPOLICY2, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_OPENPOLICY2,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_OpenPolicy2, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1463,7 +1936,11 @@ NTSTATUS rpccli_lsa_OpenPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_GetUserName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *system_name, struct lsa_String *account_name, struct lsa_StringPointer *authority_name)
+NTSTATUS rpccli_lsa_GetUserName(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               const char *system_name,
+                               struct lsa_String *account_name,
+                               struct lsa_StringPointer *authority_name)
 {
        struct lsa_GetUserName r;
        NTSTATUS status;
@@ -1473,17 +1950,24 @@ NTSTATUS rpccli_lsa_GetUserName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        r.in.account_name = account_name;
        r.in.authority_name = authority_name;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_GetUserName, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_GETUSERNAME, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_GETUSERNAME,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_GetUserName, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1501,7 +1985,11 @@ NTSTATUS rpccli_lsa_GetUserName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_QueryInfoPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint16_t level, union lsa_PolicyInformation *info)
+NTSTATUS rpccli_lsa_QueryInfoPolicy2(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx,
+                                    struct policy_handle *handle,
+                                    uint16_t level,
+                                    union lsa_PolicyInformation *info)
 {
        struct lsa_QueryInfoPolicy2 r;
        NTSTATUS status;
@@ -1510,17 +1998,24 @@ NTSTATUS rpccli_lsa_QueryInfoPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *me
        r.in.handle = handle;
        r.in.level = level;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_QueryInfoPolicy2, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_QUERYINFOPOLICY2, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_QUERYINFOPOLICY2,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_QueryInfoPolicy2, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1535,24 +2030,32 @@ NTSTATUS rpccli_lsa_QueryInfoPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *me
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_SetInfoPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_SetInfoPolicy2(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx)
 {
        struct lsa_SetInfoPolicy2 r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_SetInfoPolicy2, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_SETINFOPOLICY2, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_SETINFOPOLICY2,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_SetInfoPolicy2, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1564,7 +2067,12 @@ NTSTATUS rpccli_lsa_SetInfoPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_QueryTrustedDomainInfoByName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String trusted_domain, enum lsa_TrustDomInfoEnum level, union lsa_TrustedDomainInfo *info)
+NTSTATUS rpccli_lsa_QueryTrustedDomainInfoByName(struct rpc_pipe_client *cli,
+                                                TALLOC_CTX *mem_ctx,
+                                                struct policy_handle *handle,
+                                                struct lsa_String trusted_domain,
+                                                enum lsa_TrustDomInfoEnum level,
+                                                union lsa_TrustedDomainInfo *info)
 {
        struct lsa_QueryTrustedDomainInfoByName r;
        NTSTATUS status;
@@ -1574,17 +2082,24 @@ NTSTATUS rpccli_lsa_QueryTrustedDomainInfoByName(struct rpc_pipe_client *cli, TA
        r.in.trusted_domain = trusted_domain;
        r.in.level = level;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_QueryTrustedDomainInfoByName, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_QUERYTRUSTEDDOMAININFOBYNAME, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_QUERYTRUSTEDDOMAININFOBYNAME,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_QueryTrustedDomainInfoByName, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1599,7 +2114,12 @@ NTSTATUS rpccli_lsa_QueryTrustedDomainInfoByName(struct rpc_pipe_client *cli, TA
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_SetTrustedDomainInfoByName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String trusted_domain, enum lsa_TrustDomInfoEnum level, union lsa_TrustedDomainInfo *info)
+NTSTATUS rpccli_lsa_SetTrustedDomainInfoByName(struct rpc_pipe_client *cli,
+                                              TALLOC_CTX *mem_ctx,
+                                              struct policy_handle *handle,
+                                              struct lsa_String trusted_domain,
+                                              enum lsa_TrustDomInfoEnum level,
+                                              union lsa_TrustedDomainInfo *info)
 {
        struct lsa_SetTrustedDomainInfoByName r;
        NTSTATUS status;
@@ -1610,17 +2130,24 @@ NTSTATUS rpccli_lsa_SetTrustedDomainInfoByName(struct rpc_pipe_client *cli, TALL
        r.in.level = level;
        r.in.info = info;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_SetTrustedDomainInfoByName, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_SETTRUSTEDDOMAININFOBYNAME, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_SETTRUSTEDDOMAININFOBYNAME,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_SetTrustedDomainInfoByName, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1632,7 +2159,12 @@ NTSTATUS rpccli_lsa_SetTrustedDomainInfoByName(struct rpc_pipe_client *cli, TALL
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_EnumTrustedDomainsEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t *resume_handle, struct lsa_DomainListEx *domains, uint32_t max_size)
+NTSTATUS rpccli_lsa_EnumTrustedDomainsEx(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        struct policy_handle *handle,
+                                        uint32_t *resume_handle,
+                                        struct lsa_DomainListEx *domains,
+                                        uint32_t max_size)
 {
        struct lsa_EnumTrustedDomainsEx r;
        NTSTATUS status;
@@ -1642,17 +2174,24 @@ NTSTATUS rpccli_lsa_EnumTrustedDomainsEx(struct rpc_pipe_client *cli, TALLOC_CTX
        r.in.resume_handle = resume_handle;
        r.in.max_size = max_size;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_EnumTrustedDomainsEx, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_ENUMTRUSTEDDOMAINSEX, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_ENUMTRUSTEDDOMAINSEX,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_EnumTrustedDomainsEx, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1666,24 +2205,32 @@ NTSTATUS rpccli_lsa_EnumTrustedDomainsEx(struct rpc_pipe_client *cli, TALLOC_CTX
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_CreateTrustedDomainEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_CreateTrustedDomainEx(struct rpc_pipe_client *cli,
+                                         TALLOC_CTX *mem_ctx)
 {
        struct lsa_CreateTrustedDomainEx r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CreateTrustedDomainEx, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREATETRUSTEDDOMAINEX, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_CREATETRUSTEDDOMAINEX,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CreateTrustedDomainEx, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1695,7 +2242,9 @@ NTSTATUS rpccli_lsa_CreateTrustedDomainEx(struct rpc_pipe_client *cli, TALLOC_CT
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_CloseTrustedDomainEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle)
+NTSTATUS rpccli_lsa_CloseTrustedDomainEx(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        struct policy_handle *handle)
 {
        struct lsa_CloseTrustedDomainEx r;
        NTSTATUS status;
@@ -1703,17 +2252,24 @@ NTSTATUS rpccli_lsa_CloseTrustedDomainEx(struct rpc_pipe_client *cli, TALLOC_CTX
        /* In parameters */
        r.in.handle = handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CloseTrustedDomainEx, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CLOSETRUSTEDDOMAINEX, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_CLOSETRUSTEDDOMAINEX,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CloseTrustedDomainEx, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1726,7 +2282,11 @@ NTSTATUS rpccli_lsa_CloseTrustedDomainEx(struct rpc_pipe_client *cli, TALLOC_CTX
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_QueryDomainInformationPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint16_t level, union lsa_DomainInformationPolicy *info)
+NTSTATUS rpccli_lsa_QueryDomainInformationPolicy(struct rpc_pipe_client *cli,
+                                                TALLOC_CTX *mem_ctx,
+                                                struct policy_handle *handle,
+                                                uint16_t level,
+                                                union lsa_DomainInformationPolicy *info)
 {
        struct lsa_QueryDomainInformationPolicy r;
        NTSTATUS status;
@@ -1735,17 +2295,24 @@ NTSTATUS rpccli_lsa_QueryDomainInformationPolicy(struct rpc_pipe_client *cli, TA
        r.in.handle = handle;
        r.in.level = level;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_QueryDomainInformationPolicy, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_QUERYDOMAININFORMATIONPOLICY, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_QUERYDOMAININFORMATIONPOLICY,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_QueryDomainInformationPolicy, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1760,7 +2327,11 @@ NTSTATUS rpccli_lsa_QueryDomainInformationPolicy(struct rpc_pipe_client *cli, TA
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_SetDomainInformationPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint16_t level, union lsa_DomainInformationPolicy *info)
+NTSTATUS rpccli_lsa_SetDomainInformationPolicy(struct rpc_pipe_client *cli,
+                                              TALLOC_CTX *mem_ctx,
+                                              struct policy_handle *handle,
+                                              uint16_t level,
+                                              union lsa_DomainInformationPolicy *info)
 {
        struct lsa_SetDomainInformationPolicy r;
        NTSTATUS status;
@@ -1770,17 +2341,24 @@ NTSTATUS rpccli_lsa_SetDomainInformationPolicy(struct rpc_pipe_client *cli, TALL
        r.in.level = level;
        r.in.info = info;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_SetDomainInformationPolicy, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_SETDOMAININFORMATIONPOLICY, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_SETDOMAININFORMATIONPOLICY,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_SetDomainInformationPolicy, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1792,7 +2370,12 @@ NTSTATUS rpccli_lsa_SetDomainInformationPolicy(struct rpc_pipe_client *cli, TALL
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_OpenTrustedDomainByName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String name, uint32_t access_mask, struct policy_handle *trustdom_handle)
+NTSTATUS rpccli_lsa_OpenTrustedDomainByName(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           struct policy_handle *handle,
+                                           struct lsa_String name,
+                                           uint32_t access_mask,
+                                           struct policy_handle *trustdom_handle)
 {
        struct lsa_OpenTrustedDomainByName r;
        NTSTATUS status;
@@ -1802,17 +2385,24 @@ NTSTATUS rpccli_lsa_OpenTrustedDomainByName(struct rpc_pipe_client *cli, TALLOC_
        r.in.name = name;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_OpenTrustedDomainByName, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_OPENTRUSTEDDOMAINBYNAME, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_OPENTRUSTEDDOMAINBYNAME,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_OpenTrustedDomainByName, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1825,24 +2415,32 @@ NTSTATUS rpccli_lsa_OpenTrustedDomainByName(struct rpc_pipe_client *cli, TALLOC_
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_TestCall(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_TestCall(struct rpc_pipe_client *cli,
+                            TALLOC_CTX *mem_ctx)
 {
        struct lsa_TestCall r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_TestCall, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_TESTCALL, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_TESTCALL,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_TestCall, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1854,7 +2452,16 @@ NTSTATUS rpccli_lsa_TestCall(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_LookupSids2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_SidArray *sids, struct lsa_RefDomainList *domains, struct lsa_TransNameArray2 *names, uint16_t level, uint32_t *count, uint32_t unknown1, uint32_t unknown2)
+NTSTATUS rpccli_lsa_LookupSids2(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               struct policy_handle *handle,
+                               struct lsa_SidArray *sids,
+                               struct lsa_RefDomainList *domains,
+                               struct lsa_TransNameArray2 *names,
+                               uint16_t level,
+                               uint32_t *count,
+                               uint32_t unknown1,
+                               uint32_t unknown2)
 {
        struct lsa_LookupSids2 r;
        NTSTATUS status;
@@ -1868,17 +2475,24 @@ NTSTATUS rpccli_lsa_LookupSids2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        r.in.unknown1 = unknown1;
        r.in.unknown2 = unknown2;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LookupSids2, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LOOKUPSIDS2, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_LOOKUPSIDS2,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LookupSids2, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1895,7 +2509,17 @@ NTSTATUS rpccli_lsa_LookupSids2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_LookupNames2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t num_names, struct lsa_String *names, struct lsa_RefDomainList *domains, struct lsa_TransSidArray2 *sids, uint16_t level, uint32_t *count, uint32_t unknown1, uint32_t unknown2)
+NTSTATUS rpccli_lsa_LookupNames2(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                struct policy_handle *handle,
+                                uint32_t num_names,
+                                struct lsa_String *names,
+                                struct lsa_RefDomainList *domains,
+                                struct lsa_TransSidArray2 *sids,
+                                uint16_t level,
+                                uint32_t *count,
+                                uint32_t unknown1,
+                                uint32_t unknown2)
 {
        struct lsa_LookupNames2 r;
        NTSTATUS status;
@@ -1910,17 +2534,24 @@ NTSTATUS rpccli_lsa_LookupNames2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
        r.in.unknown1 = unknown1;
        r.in.unknown2 = unknown2;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LookupNames2, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LOOKUPNAMES2, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_LOOKUPNAMES2,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LookupNames2, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1937,24 +2568,32 @@ NTSTATUS rpccli_lsa_LookupNames2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_CreateTrustedDomainEx2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_CreateTrustedDomainEx2(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx)
 {
        struct lsa_CreateTrustedDomainEx2 r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CreateTrustedDomainEx2, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREATETRUSTEDDOMAINEX2, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_CREATETRUSTEDDOMAINEX2,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CreateTrustedDomainEx2, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1966,24 +2605,32 @@ NTSTATUS rpccli_lsa_CreateTrustedDomainEx2(struct rpc_pipe_client *cli, TALLOC_C
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_CREDRWRITE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_CREDRWRITE(struct rpc_pipe_client *cli,
+                              TALLOC_CTX *mem_ctx)
 {
        struct lsa_CREDRWRITE r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CREDRWRITE, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREDRWRITE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_CREDRWRITE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CREDRWRITE, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1995,24 +2642,32 @@ NTSTATUS rpccli_lsa_CREDRWRITE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_CREDRREAD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_CREDRREAD(struct rpc_pipe_client *cli,
+                             TALLOC_CTX *mem_ctx)
 {
        struct lsa_CREDRREAD r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CREDRREAD, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREDRREAD, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_CREDRREAD,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CREDRREAD, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -2024,24 +2679,32 @@ NTSTATUS rpccli_lsa_CREDRREAD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_CREDRENUMERATE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_CREDRENUMERATE(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx)
 {
        struct lsa_CREDRENUMERATE r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CREDRENUMERATE, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREDRENUMERATE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_CREDRENUMERATE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CREDRENUMERATE, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -2053,24 +2716,32 @@ NTSTATUS rpccli_lsa_CREDRENUMERATE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_CREDRWRITEDOMAINCREDENTIALS(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_CREDRWRITEDOMAINCREDENTIALS(struct rpc_pipe_client *cli,
+                                               TALLOC_CTX *mem_ctx)
 {
        struct lsa_CREDRWRITEDOMAINCREDENTIALS r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CREDRWRITEDOMAINCREDENTIALS, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREDRWRITEDOMAINCREDENTIALS, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_CREDRWRITEDOMAINCREDENTIALS,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CREDRWRITEDOMAINCREDENTIALS, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -2082,24 +2753,32 @@ NTSTATUS rpccli_lsa_CREDRWRITEDOMAINCREDENTIALS(struct rpc_pipe_client *cli, TAL
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_CREDRREADDOMAINCREDENTIALS(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_CREDRREADDOMAINCREDENTIALS(struct rpc_pipe_client *cli,
+                                              TALLOC_CTX *mem_ctx)
 {
        struct lsa_CREDRREADDOMAINCREDENTIALS r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CREDRREADDOMAINCREDENTIALS, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREDRREADDOMAINCREDENTIALS, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_CREDRREADDOMAINCREDENTIALS,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CREDRREADDOMAINCREDENTIALS, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -2111,24 +2790,32 @@ NTSTATUS rpccli_lsa_CREDRREADDOMAINCREDENTIALS(struct rpc_pipe_client *cli, TALL
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_CREDRDELETE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_CREDRDELETE(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx)
 {
        struct lsa_CREDRDELETE r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CREDRDELETE, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREDRDELETE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_CREDRDELETE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CREDRDELETE, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -2140,24 +2827,32 @@ NTSTATUS rpccli_lsa_CREDRDELETE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_CREDRGETTARGETINFO(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_CREDRGETTARGETINFO(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx)
 {
        struct lsa_CREDRGETTARGETINFO r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CREDRGETTARGETINFO, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREDRGETTARGETINFO, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_CREDRGETTARGETINFO,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CREDRGETTARGETINFO, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -2169,24 +2864,32 @@ NTSTATUS rpccli_lsa_CREDRGETTARGETINFO(struct rpc_pipe_client *cli, TALLOC_CTX *
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_CREDRPROFILELOADED(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_CREDRPROFILELOADED(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx)
 {
        struct lsa_CREDRPROFILELOADED r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CREDRPROFILELOADED, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREDRPROFILELOADED, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_CREDRPROFILELOADED,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CREDRPROFILELOADED, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -2198,7 +2901,17 @@ NTSTATUS rpccli_lsa_CREDRPROFILELOADED(struct rpc_pipe_client *cli, TALLOC_CTX *
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_LookupNames3(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t num_names, struct lsa_String *names, struct lsa_RefDomainList *domains, struct lsa_TransSidArray3 *sids, uint16_t level, uint32_t *count, uint32_t unknown1, uint32_t unknown2)
+NTSTATUS rpccli_lsa_LookupNames3(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                struct policy_handle *handle,
+                                uint32_t num_names,
+                                struct lsa_String *names,
+                                struct lsa_RefDomainList *domains,
+                                struct lsa_TransSidArray3 *sids,
+                                uint16_t level,
+                                uint32_t *count,
+                                uint32_t unknown1,
+                                uint32_t unknown2)
 {
        struct lsa_LookupNames3 r;
        NTSTATUS status;
@@ -2213,17 +2926,24 @@ NTSTATUS rpccli_lsa_LookupNames3(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
        r.in.unknown1 = unknown1;
        r.in.unknown2 = unknown2;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LookupNames3, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LOOKUPNAMES3, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_LOOKUPNAMES3,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LookupNames3, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -2240,24 +2960,32 @@ NTSTATUS rpccli_lsa_LookupNames3(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_CREDRGETSESSIONTYPES(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_CREDRGETSESSIONTYPES(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx)
 {
        struct lsa_CREDRGETSESSIONTYPES r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CREDRGETSESSIONTYPES, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREDRGETSESSIONTYPES, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_CREDRGETSESSIONTYPES,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CREDRGETSESSIONTYPES, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -2269,24 +2997,32 @@ NTSTATUS rpccli_lsa_CREDRGETSESSIONTYPES(struct rpc_pipe_client *cli, TALLOC_CTX
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_LSARREGISTERAUDITEVENT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_LSARREGISTERAUDITEVENT(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx)
 {
        struct lsa_LSARREGISTERAUDITEVENT r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LSARREGISTERAUDITEVENT, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LSARREGISTERAUDITEVENT, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_LSARREGISTERAUDITEVENT,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LSARREGISTERAUDITEVENT, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -2298,24 +3034,32 @@ NTSTATUS rpccli_lsa_LSARREGISTERAUDITEVENT(struct rpc_pipe_client *cli, TALLOC_C
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_LSARGENAUDITEVENT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_LSARGENAUDITEVENT(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx)
 {
        struct lsa_LSARGENAUDITEVENT r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LSARGENAUDITEVENT, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LSARGENAUDITEVENT, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_LSARGENAUDITEVENT,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LSARGENAUDITEVENT, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -2327,24 +3071,32 @@ NTSTATUS rpccli_lsa_LSARGENAUDITEVENT(struct rpc_pipe_client *cli, TALLOC_CTX *m
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_LSARUNREGISTERAUDITEVENT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_LSARUNREGISTERAUDITEVENT(struct rpc_pipe_client *cli,
+                                            TALLOC_CTX *mem_ctx)
 {
        struct lsa_LSARUNREGISTERAUDITEVENT r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LSARUNREGISTERAUDITEVENT, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LSARUNREGISTERAUDITEVENT, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_LSARUNREGISTERAUDITEVENT,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LSARUNREGISTERAUDITEVENT, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -2356,24 +3108,32 @@ NTSTATUS rpccli_lsa_LSARUNREGISTERAUDITEVENT(struct rpc_pipe_client *cli, TALLOC
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_LSARQUERYFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_LSARQUERYFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
+                                                   TALLOC_CTX *mem_ctx)
 {
        struct lsa_LSARQUERYFORESTTRUSTINFORMATION r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LSARQUERYFORESTTRUSTINFORMATION, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LSARQUERYFORESTTRUSTINFORMATION, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_LSARQUERYFORESTTRUSTINFORMATION,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LSARQUERYFORESTTRUSTINFORMATION, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -2385,24 +3145,32 @@ NTSTATUS rpccli_lsa_LSARQUERYFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_LSARSETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_LSARSETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
+                                                 TALLOC_CTX *mem_ctx)
 {
        struct lsa_LSARSETFORESTTRUSTINFORMATION r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LSARSETFORESTTRUSTINFORMATION, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LSARSETFORESTTRUSTINFORMATION, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_LSARSETFORESTTRUSTINFORMATION,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LSARSETFORESTTRUSTINFORMATION, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -2414,24 +3182,32 @@ NTSTATUS rpccli_lsa_LSARSETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli, T
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_CREDRRENAME(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_CREDRRENAME(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx)
 {
        struct lsa_CREDRRENAME r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CREDRRENAME, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREDRRENAME, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_CREDRRENAME,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CREDRRENAME, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -2443,7 +3219,15 @@ NTSTATUS rpccli_lsa_CREDRRENAME(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_LookupSids3(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct lsa_SidArray *sids, struct lsa_RefDomainList *domains, struct lsa_TransNameArray2 *names, uint16_t level, uint32_t *count, uint32_t unknown1, uint32_t unknown2)
+NTSTATUS rpccli_lsa_LookupSids3(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               struct lsa_SidArray *sids,
+                               struct lsa_RefDomainList *domains,
+                               struct lsa_TransNameArray2 *names,
+                               uint16_t level,
+                               uint32_t *count,
+                               uint32_t unknown1,
+                               uint32_t unknown2)
 {
        struct lsa_LookupSids3 r;
        NTSTATUS status;
@@ -2456,17 +3240,24 @@ NTSTATUS rpccli_lsa_LookupSids3(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        r.in.unknown1 = unknown1;
        r.in.unknown2 = unknown2;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LookupSids3, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LOOKUPSIDS3, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_LOOKUPSIDS3,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LookupSids3, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -2483,7 +3274,16 @@ NTSTATUS rpccli_lsa_LookupSids3(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_LookupNames4(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t num_names, struct lsa_String *names, struct lsa_RefDomainList *domains, struct lsa_TransSidArray3 *sids, uint16_t level, uint32_t *count, uint32_t unknown1, uint32_t unknown2)
+NTSTATUS rpccli_lsa_LookupNames4(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                uint32_t num_names,
+                                struct lsa_String *names,
+                                struct lsa_RefDomainList *domains,
+                                struct lsa_TransSidArray3 *sids,
+                                uint16_t level,
+                                uint32_t *count,
+                                uint32_t unknown1,
+                                uint32_t unknown2)
 {
        struct lsa_LookupNames4 r;
        NTSTATUS status;
@@ -2497,17 +3297,24 @@ NTSTATUS rpccli_lsa_LookupNames4(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
        r.in.unknown1 = unknown1;
        r.in.unknown2 = unknown2;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LookupNames4, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LOOKUPNAMES4, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_LOOKUPNAMES4,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LookupNames4, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -2524,24 +3331,32 @@ NTSTATUS rpccli_lsa_LookupNames4(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_LSAROPENPOLICYSCE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_LSAROPENPOLICYSCE(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx)
 {
        struct lsa_LSAROPENPOLICYSCE r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LSAROPENPOLICYSCE, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LSAROPENPOLICYSCE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_LSAROPENPOLICYSCE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LSAROPENPOLICYSCE, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -2553,24 +3368,32 @@ NTSTATUS rpccli_lsa_LSAROPENPOLICYSCE(struct rpc_pipe_client *cli, TALLOC_CTX *m
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client *cli,
+                                                      TALLOC_CTX *mem_ctx)
 {
        struct lsa_LSARADTREGISTERSECURITYEVENTSOURCE r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LSARADTREGISTERSECURITYEVENTSOURCE, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LSARADTREGISTERSECURITYEVENTSOURCE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_LSARADTREGISTERSECURITYEVENTSOURCE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LSARADTREGISTERSECURITYEVENTSOURCE, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -2582,24 +3405,32 @@ NTSTATUS rpccli_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client *c
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client *cli,
+                                                        TALLOC_CTX *mem_ctx)
 {
        struct lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LSARADTUNREGISTERSECURITYEVENTSOURCE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_LSARADTUNREGISTERSECURITYEVENTSOURCE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -2611,24 +3442,32 @@ NTSTATUS rpccli_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client
        return r.out.result;
 }
 
-NTSTATUS rpccli_lsa_LSARADTREPORTSECURITYEVENT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_LSARADTREPORTSECURITYEVENT(struct rpc_pipe_client *cli,
+                                              TALLOC_CTX *mem_ctx)
 {
        struct lsa_LSARADTREPORTSECURITYEVENT r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LSARADTREPORTSECURITYEVENT, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LSARADTREPORTSECURITYEVENT, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_LSARPC,
+                               &ndr_table_lsarpc,
+                               NDR_LSA_LSARADTREPORTSECURITYEVENT,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LSARADTREPORTSECURITYEVENT, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
index a44105ea9c617d833353a07c321b44f3acf6c320..ad5e60d5916a5f9fd14d5f4b8e43f109405a070a 100644 (file)
 #include "librpc/gen_ndr/ndr_lsa.h"
 #ifndef __CLI_LSARPC__
 #define __CLI_LSARPC__
-NTSTATUS rpccli_lsa_Close(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle);
-NTSTATUS rpccli_lsa_Delete(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle);
-NTSTATUS rpccli_lsa_EnumPrivs(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t *resume_handle, uint32_t max_count, struct lsa_PrivArray *privs);
-NTSTATUS rpccli_lsa_QuerySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t sec_info, struct sec_desc_buf *sdbuf);
-NTSTATUS rpccli_lsa_SetSecObj(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_ChangePassword(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_OpenPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, struct lsa_ObjectAttribute *attr, uint32_t access_mask, struct policy_handle *handle);
-NTSTATUS rpccli_lsa_QueryInfoPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint16_t level, union lsa_PolicyInformation *info);
-NTSTATUS rpccli_lsa_SetInfoPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_ClearAuditLog(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_CreateAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *sid, uint32_t access_mask, struct policy_handle *acct_handle);
-NTSTATUS rpccli_lsa_EnumAccounts(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t *resume_handle, uint32_t num_entries, struct lsa_SidArray *sids);
-NTSTATUS rpccli_lsa_CreateTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_DomainInfo *info, uint32_t access_mask, struct policy_handle *trustdom_handle);
-NTSTATUS rpccli_lsa_EnumTrustDom(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t *resume_handle, uint32_t max_size, struct lsa_DomainList *domains);
-NTSTATUS rpccli_lsa_LookupNames(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t num_names, struct lsa_String *names, struct lsa_RefDomainList *domains, struct lsa_TransSidArray *sids, uint16_t level, uint32_t *count);
-NTSTATUS rpccli_lsa_LookupSids(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_SidArray *sids, struct lsa_RefDomainList *domains, struct lsa_TransNameArray *names, uint16_t level, uint32_t *count);
-NTSTATUS rpccli_lsa_CreateSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String name, uint32_t access_mask, struct policy_handle *sec_handle);
-NTSTATUS rpccli_lsa_OpenAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *sid, uint32_t access_mask, struct policy_handle *acct_handle);
-NTSTATUS rpccli_lsa_EnumPrivsAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_PrivilegeSet *privs);
-NTSTATUS rpccli_lsa_AddPrivilegesToAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_PrivilegeSet *privs);
-NTSTATUS rpccli_lsa_RemovePrivilegesFromAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint8_t remove_all, struct lsa_PrivilegeSet *privs);
-NTSTATUS rpccli_lsa_GetQuotasForAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_SetQuotasForAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_GetSystemAccessAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_SetSystemAccessAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_OpenTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *sid, uint32_t access_mask, struct policy_handle *trustdom_handle);
-NTSTATUS rpccli_lsa_QueryTrustedDomainInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *trustdom_handle, enum lsa_TrustDomInfoEnum level, union lsa_TrustedDomainInfo *info);
-NTSTATUS rpccli_lsa_SetInformationTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_OpenSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String name, uint32_t access_mask, struct policy_handle *sec_handle);
-NTSTATUS rpccli_lsa_SetSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *sec_handle, struct lsa_DATA_BUF *new_val, struct lsa_DATA_BUF *old_val);
-NTSTATUS rpccli_lsa_QuerySecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *sec_handle, struct lsa_DATA_BUF_PTR *new_val, NTTIME *new_mtime, struct lsa_DATA_BUF_PTR *old_val, NTTIME *old_mtime);
-NTSTATUS rpccli_lsa_LookupPrivValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String *name, struct lsa_LUID *luid);
-NTSTATUS rpccli_lsa_LookupPrivName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_LUID *luid, struct lsa_StringLarge *name);
-NTSTATUS rpccli_lsa_LookupPrivDisplayName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String *name, struct lsa_StringLarge *disp_name, uint16_t *language_id, uint16_t unknown);
-NTSTATUS rpccli_lsa_DeleteObject(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_EnumAccountsWithUserRight(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String *name, struct lsa_SidArray *sids);
-NTSTATUS rpccli_lsa_EnumAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *sid, struct lsa_RightSet *rights);
-NTSTATUS rpccli_lsa_AddAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *sid, struct lsa_RightSet *rights);
-NTSTATUS rpccli_lsa_RemoveAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *sid, uint32_t unknown, struct lsa_RightSet *rights);
-NTSTATUS rpccli_lsa_QueryTrustedDomainInfoBySid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *dom_sid, enum lsa_TrustDomInfoEnum level, union lsa_TrustedDomainInfo *info);
-NTSTATUS rpccli_lsa_SetTrustedDomainInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_DeleteTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *dom_sid);
-NTSTATUS rpccli_lsa_StorePrivateData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_RetrievePrivateData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_OpenPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *system_name, struct lsa_ObjectAttribute *attr, uint32_t access_mask, struct policy_handle *handle);
-NTSTATUS rpccli_lsa_GetUserName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *system_name, struct lsa_String *account_name, struct lsa_StringPointer *authority_name);
-NTSTATUS rpccli_lsa_QueryInfoPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint16_t level, union lsa_PolicyInformation *info);
-NTSTATUS rpccli_lsa_SetInfoPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_QueryTrustedDomainInfoByName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String trusted_domain, enum lsa_TrustDomInfoEnum level, union lsa_TrustedDomainInfo *info);
-NTSTATUS rpccli_lsa_SetTrustedDomainInfoByName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String trusted_domain, enum lsa_TrustDomInfoEnum level, union lsa_TrustedDomainInfo *info);
-NTSTATUS rpccli_lsa_EnumTrustedDomainsEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t *resume_handle, struct lsa_DomainListEx *domains, uint32_t max_size);
-NTSTATUS rpccli_lsa_CreateTrustedDomainEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_CloseTrustedDomainEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle);
-NTSTATUS rpccli_lsa_QueryDomainInformationPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint16_t level, union lsa_DomainInformationPolicy *info);
-NTSTATUS rpccli_lsa_SetDomainInformationPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint16_t level, union lsa_DomainInformationPolicy *info);
-NTSTATUS rpccli_lsa_OpenTrustedDomainByName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String name, uint32_t access_mask, struct policy_handle *trustdom_handle);
-NTSTATUS rpccli_lsa_TestCall(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_LookupSids2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_SidArray *sids, struct lsa_RefDomainList *domains, struct lsa_TransNameArray2 *names, uint16_t level, uint32_t *count, uint32_t unknown1, uint32_t unknown2);
-NTSTATUS rpccli_lsa_LookupNames2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t num_names, struct lsa_String *names, struct lsa_RefDomainList *domains, struct lsa_TransSidArray2 *sids, uint16_t level, uint32_t *count, uint32_t unknown1, uint32_t unknown2);
-NTSTATUS rpccli_lsa_CreateTrustedDomainEx2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_CREDRWRITE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_CREDRREAD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_CREDRENUMERATE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_CREDRWRITEDOMAINCREDENTIALS(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_CREDRREADDOMAINCREDENTIALS(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_CREDRDELETE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_CREDRGETTARGETINFO(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_CREDRPROFILELOADED(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_LookupNames3(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t num_names, struct lsa_String *names, struct lsa_RefDomainList *domains, struct lsa_TransSidArray3 *sids, uint16_t level, uint32_t *count, uint32_t unknown1, uint32_t unknown2);
-NTSTATUS rpccli_lsa_CREDRGETSESSIONTYPES(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_LSARREGISTERAUDITEVENT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_LSARGENAUDITEVENT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_LSARUNREGISTERAUDITEVENT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_LSARQUERYFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_LSARSETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_CREDRRENAME(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_LookupSids3(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct lsa_SidArray *sids, struct lsa_RefDomainList *domains, struct lsa_TransNameArray2 *names, uint16_t level, uint32_t *count, uint32_t unknown1, uint32_t unknown2);
-NTSTATUS rpccli_lsa_LookupNames4(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t num_names, struct lsa_String *names, struct lsa_RefDomainList *domains, struct lsa_TransSidArray3 *sids, uint16_t level, uint32_t *count, uint32_t unknown1, uint32_t unknown2);
-NTSTATUS rpccli_lsa_LSAROPENPOLICYSCE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_LSARADTREPORTSECURITYEVENT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_Close(struct rpc_pipe_client *cli,
+                         TALLOC_CTX *mem_ctx,
+                         struct policy_handle *handle);
+NTSTATUS rpccli_lsa_Delete(struct rpc_pipe_client *cli,
+                          TALLOC_CTX *mem_ctx,
+                          struct policy_handle *handle);
+NTSTATUS rpccli_lsa_EnumPrivs(struct rpc_pipe_client *cli,
+                             TALLOC_CTX *mem_ctx,
+                             struct policy_handle *handle,
+                             uint32_t *resume_handle,
+                             uint32_t max_count,
+                             struct lsa_PrivArray *privs);
+NTSTATUS rpccli_lsa_QuerySecurity(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 struct policy_handle *handle,
+                                 uint32_t sec_info,
+                                 struct sec_desc_buf *sdbuf);
+NTSTATUS rpccli_lsa_SetSecObj(struct rpc_pipe_client *cli,
+                             TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_ChangePassword(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_OpenPolicy(struct rpc_pipe_client *cli,
+                              TALLOC_CTX *mem_ctx,
+                              uint16_t *system_name,
+                              struct lsa_ObjectAttribute *attr,
+                              uint32_t access_mask,
+                              struct policy_handle *handle);
+NTSTATUS rpccli_lsa_QueryInfoPolicy(struct rpc_pipe_client *cli,
+                                   TALLOC_CTX *mem_ctx,
+                                   struct policy_handle *handle,
+                                   uint16_t level,
+                                   union lsa_PolicyInformation *info);
+NTSTATUS rpccli_lsa_SetInfoPolicy(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_ClearAuditLog(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_CreateAccount(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 struct policy_handle *handle,
+                                 struct dom_sid2 *sid,
+                                 uint32_t access_mask,
+                                 struct policy_handle *acct_handle);
+NTSTATUS rpccli_lsa_EnumAccounts(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                struct policy_handle *handle,
+                                uint32_t *resume_handle,
+                                uint32_t num_entries,
+                                struct lsa_SidArray *sids);
+NTSTATUS rpccli_lsa_CreateTrustedDomain(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       struct policy_handle *handle,
+                                       struct lsa_DomainInfo *info,
+                                       uint32_t access_mask,
+                                       struct policy_handle *trustdom_handle);
+NTSTATUS rpccli_lsa_EnumTrustDom(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                struct policy_handle *handle,
+                                uint32_t *resume_handle,
+                                uint32_t max_size,
+                                struct lsa_DomainList *domains);
+NTSTATUS rpccli_lsa_LookupNames(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               struct policy_handle *handle,
+                               uint32_t num_names,
+                               struct lsa_String *names,
+                               struct lsa_RefDomainList *domains,
+                               struct lsa_TransSidArray *sids,
+                               uint16_t level,
+                               uint32_t *count);
+NTSTATUS rpccli_lsa_LookupSids(struct rpc_pipe_client *cli,
+                              TALLOC_CTX *mem_ctx,
+                              struct policy_handle *handle,
+                              struct lsa_SidArray *sids,
+                              struct lsa_RefDomainList *domains,
+                              struct lsa_TransNameArray *names,
+                              uint16_t level,
+                              uint32_t *count);
+NTSTATUS rpccli_lsa_CreateSecret(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                struct policy_handle *handle,
+                                struct lsa_String name,
+                                uint32_t access_mask,
+                                struct policy_handle *sec_handle);
+NTSTATUS rpccli_lsa_OpenAccount(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               struct policy_handle *handle,
+                               struct dom_sid2 *sid,
+                               uint32_t access_mask,
+                               struct policy_handle *acct_handle);
+NTSTATUS rpccli_lsa_EnumPrivsAccount(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx,
+                                    struct policy_handle *handle,
+                                    struct lsa_PrivilegeSet *privs);
+NTSTATUS rpccli_lsa_AddPrivilegesToAccount(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx,
+                                          struct policy_handle *handle,
+                                          struct lsa_PrivilegeSet *privs);
+NTSTATUS rpccli_lsa_RemovePrivilegesFromAccount(struct rpc_pipe_client *cli,
+                                               TALLOC_CTX *mem_ctx,
+                                               struct policy_handle *handle,
+                                               uint8_t remove_all,
+                                               struct lsa_PrivilegeSet *privs);
+NTSTATUS rpccli_lsa_GetQuotasForAccount(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_SetQuotasForAccount(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_GetSystemAccessAccount(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_SetSystemAccessAccount(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_OpenTrustedDomain(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     struct policy_handle *handle,
+                                     struct dom_sid2 *sid,
+                                     uint32_t access_mask,
+                                     struct policy_handle *trustdom_handle);
+NTSTATUS rpccli_lsa_QueryTrustedDomainInfo(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx,
+                                          struct policy_handle *trustdom_handle,
+                                          enum lsa_TrustDomInfoEnum level,
+                                          union lsa_TrustedDomainInfo *info);
+NTSTATUS rpccli_lsa_SetInformationTrustedDomain(struct rpc_pipe_client *cli,
+                                               TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_OpenSecret(struct rpc_pipe_client *cli,
+                              TALLOC_CTX *mem_ctx,
+                              struct policy_handle *handle,
+                              struct lsa_String name,
+                              uint32_t access_mask,
+                              struct policy_handle *sec_handle);
+NTSTATUS rpccli_lsa_SetSecret(struct rpc_pipe_client *cli,
+                             TALLOC_CTX *mem_ctx,
+                             struct policy_handle *sec_handle,
+                             struct lsa_DATA_BUF *new_val,
+                             struct lsa_DATA_BUF *old_val);
+NTSTATUS rpccli_lsa_QuerySecret(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               struct policy_handle *sec_handle,
+                               struct lsa_DATA_BUF_PTR *new_val,
+                               NTTIME *new_mtime,
+                               struct lsa_DATA_BUF_PTR *old_val,
+                               NTTIME *old_mtime);
+NTSTATUS rpccli_lsa_LookupPrivValue(struct rpc_pipe_client *cli,
+                                   TALLOC_CTX *mem_ctx,
+                                   struct policy_handle *handle,
+                                   struct lsa_String *name,
+                                   struct lsa_LUID *luid);
+NTSTATUS rpccli_lsa_LookupPrivName(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  struct policy_handle *handle,
+                                  struct lsa_LUID *luid,
+                                  struct lsa_StringLarge *name);
+NTSTATUS rpccli_lsa_LookupPrivDisplayName(struct rpc_pipe_client *cli,
+                                         TALLOC_CTX *mem_ctx,
+                                         struct policy_handle *handle,
+                                         struct lsa_String *name,
+                                         struct lsa_StringLarge *disp_name,
+                                         uint16_t *language_id,
+                                         uint16_t unknown);
+NTSTATUS rpccli_lsa_DeleteObject(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_EnumAccountsWithUserRight(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             struct policy_handle *handle,
+                                             struct lsa_String *name,
+                                             struct lsa_SidArray *sids);
+NTSTATUS rpccli_lsa_EnumAccountRights(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     struct policy_handle *handle,
+                                     struct dom_sid2 *sid,
+                                     struct lsa_RightSet *rights);
+NTSTATUS rpccli_lsa_AddAccountRights(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx,
+                                    struct policy_handle *handle,
+                                    struct dom_sid2 *sid,
+                                    struct lsa_RightSet *rights);
+NTSTATUS rpccli_lsa_RemoveAccountRights(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       struct policy_handle *handle,
+                                       struct dom_sid2 *sid,
+                                       uint32_t unknown,
+                                       struct lsa_RightSet *rights);
+NTSTATUS rpccli_lsa_QueryTrustedDomainInfoBySid(struct rpc_pipe_client *cli,
+                                               TALLOC_CTX *mem_ctx,
+                                               struct policy_handle *handle,
+                                               struct dom_sid2 *dom_sid,
+                                               enum lsa_TrustDomInfoEnum level,
+                                               union lsa_TrustedDomainInfo *info);
+NTSTATUS rpccli_lsa_SetTrustedDomainInfo(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_DeleteTrustedDomain(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       struct policy_handle *handle,
+                                       struct dom_sid2 *dom_sid);
+NTSTATUS rpccli_lsa_StorePrivateData(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_RetrievePrivateData(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_OpenPolicy2(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               const char *system_name,
+                               struct lsa_ObjectAttribute *attr,
+                               uint32_t access_mask,
+                               struct policy_handle *handle);
+NTSTATUS rpccli_lsa_GetUserName(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               const char *system_name,
+                               struct lsa_String *account_name,
+                               struct lsa_StringPointer *authority_name);
+NTSTATUS rpccli_lsa_QueryInfoPolicy2(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx,
+                                    struct policy_handle *handle,
+                                    uint16_t level,
+                                    union lsa_PolicyInformation *info);
+NTSTATUS rpccli_lsa_SetInfoPolicy2(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_QueryTrustedDomainInfoByName(struct rpc_pipe_client *cli,
+                                                TALLOC_CTX *mem_ctx,
+                                                struct policy_handle *handle,
+                                                struct lsa_String trusted_domain,
+                                                enum lsa_TrustDomInfoEnum level,
+                                                union lsa_TrustedDomainInfo *info);
+NTSTATUS rpccli_lsa_SetTrustedDomainInfoByName(struct rpc_pipe_client *cli,
+                                              TALLOC_CTX *mem_ctx,
+                                              struct policy_handle *handle,
+                                              struct lsa_String trusted_domain,
+                                              enum lsa_TrustDomInfoEnum level,
+                                              union lsa_TrustedDomainInfo *info);
+NTSTATUS rpccli_lsa_EnumTrustedDomainsEx(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        struct policy_handle *handle,
+                                        uint32_t *resume_handle,
+                                        struct lsa_DomainListEx *domains,
+                                        uint32_t max_size);
+NTSTATUS rpccli_lsa_CreateTrustedDomainEx(struct rpc_pipe_client *cli,
+                                         TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_CloseTrustedDomainEx(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        struct policy_handle *handle);
+NTSTATUS rpccli_lsa_QueryDomainInformationPolicy(struct rpc_pipe_client *cli,
+                                                TALLOC_CTX *mem_ctx,
+                                                struct policy_handle *handle,
+                                                uint16_t level,
+                                                union lsa_DomainInformationPolicy *info);
+NTSTATUS rpccli_lsa_SetDomainInformationPolicy(struct rpc_pipe_client *cli,
+                                              TALLOC_CTX *mem_ctx,
+                                              struct policy_handle *handle,
+                                              uint16_t level,
+                                              union lsa_DomainInformationPolicy *info);
+NTSTATUS rpccli_lsa_OpenTrustedDomainByName(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           struct policy_handle *handle,
+                                           struct lsa_String name,
+                                           uint32_t access_mask,
+                                           struct policy_handle *trustdom_handle);
+NTSTATUS rpccli_lsa_TestCall(struct rpc_pipe_client *cli,
+                            TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_LookupSids2(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               struct policy_handle *handle,
+                               struct lsa_SidArray *sids,
+                               struct lsa_RefDomainList *domains,
+                               struct lsa_TransNameArray2 *names,
+                               uint16_t level,
+                               uint32_t *count,
+                               uint32_t unknown1,
+                               uint32_t unknown2);
+NTSTATUS rpccli_lsa_LookupNames2(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                struct policy_handle *handle,
+                                uint32_t num_names,
+                                struct lsa_String *names,
+                                struct lsa_RefDomainList *domains,
+                                struct lsa_TransSidArray2 *sids,
+                                uint16_t level,
+                                uint32_t *count,
+                                uint32_t unknown1,
+                                uint32_t unknown2);
+NTSTATUS rpccli_lsa_CreateTrustedDomainEx2(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_CREDRWRITE(struct rpc_pipe_client *cli,
+                              TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_CREDRREAD(struct rpc_pipe_client *cli,
+                             TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_CREDRENUMERATE(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_CREDRWRITEDOMAINCREDENTIALS(struct rpc_pipe_client *cli,
+                                               TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_CREDRREADDOMAINCREDENTIALS(struct rpc_pipe_client *cli,
+                                              TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_CREDRDELETE(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_CREDRGETTARGETINFO(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_CREDRPROFILELOADED(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_LookupNames3(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                struct policy_handle *handle,
+                                uint32_t num_names,
+                                struct lsa_String *names,
+                                struct lsa_RefDomainList *domains,
+                                struct lsa_TransSidArray3 *sids,
+                                uint16_t level,
+                                uint32_t *count,
+                                uint32_t unknown1,
+                                uint32_t unknown2);
+NTSTATUS rpccli_lsa_CREDRGETSESSIONTYPES(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_LSARREGISTERAUDITEVENT(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_LSARGENAUDITEVENT(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_LSARUNREGISTERAUDITEVENT(struct rpc_pipe_client *cli,
+                                            TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_LSARQUERYFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
+                                                   TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_LSARSETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
+                                                 TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_CREDRRENAME(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_LookupSids3(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               struct lsa_SidArray *sids,
+                               struct lsa_RefDomainList *domains,
+                               struct lsa_TransNameArray2 *names,
+                               uint16_t level,
+                               uint32_t *count,
+                               uint32_t unknown1,
+                               uint32_t unknown2);
+NTSTATUS rpccli_lsa_LookupNames4(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                uint32_t num_names,
+                                struct lsa_String *names,
+                                struct lsa_RefDomainList *domains,
+                                struct lsa_TransSidArray3 *sids,
+                                uint16_t level,
+                                uint32_t *count,
+                                uint32_t unknown1,
+                                uint32_t unknown2);
+NTSTATUS rpccli_lsa_LSAROPENPOLICYSCE(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client *cli,
+                                                      TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client *cli,
+                                                        TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_LSARADTREPORTSECURITYEVENT(struct rpc_pipe_client *cli,
+                                              TALLOC_CTX *mem_ctx);
 #endif /* __CLI_LSARPC__ */
index addf9f80d1ac7ac4b7a5523e9b2a9e5206b621b4..efabf2e08fc8fcf28a43d71698a257a52d2f20ac 100644 (file)
@@ -6,7 +6,13 @@
 #include "includes.h"
 #include "librpc/gen_ndr/cli_netlogon.h"
 
-NTSTATUS rpccli_netr_LogonUasLogon(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account_name, const char *workstation, struct netr_UasInfo *info, WERROR *werror)
+NTSTATUS rpccli_netr_LogonUasLogon(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  const char *server_name,
+                                  const char *account_name,
+                                  const char *workstation,
+                                  struct netr_UasInfo *info,
+                                  WERROR *werror)
 {
        struct netr_LogonUasLogon r;
        NTSTATUS status;
@@ -16,17 +22,24 @@ NTSTATUS rpccli_netr_LogonUasLogon(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        r.in.account_name = account_name;
        r.in.workstation = workstation;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_LogonUasLogon, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_LOGONUASLOGON, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_LOGONUASLOGON,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_LogonUasLogon, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -45,7 +58,13 @@ NTSTATUS rpccli_netr_LogonUasLogon(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_netr_LogonUasLogoff(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account_name, const char *workstation, struct netr_UasLogoffInfo *info, WERROR *werror)
+NTSTATUS rpccli_netr_LogonUasLogoff(struct rpc_pipe_client *cli,
+                                   TALLOC_CTX *mem_ctx,
+                                   const char *server_name,
+                                   const char *account_name,
+                                   const char *workstation,
+                                   struct netr_UasLogoffInfo *info,
+                                   WERROR *werror)
 {
        struct netr_LogonUasLogoff r;
        NTSTATUS status;
@@ -55,17 +74,24 @@ NTSTATUS rpccli_netr_LogonUasLogoff(struct rpc_pipe_client *cli, TALLOC_CTX *mem
        r.in.account_name = account_name;
        r.in.workstation = workstation;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_LogonUasLogoff, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_LOGONUASLOGOFF, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_LOGONUASLOGOFF,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_LogonUasLogoff, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -82,7 +108,17 @@ NTSTATUS rpccli_netr_LogonUasLogoff(struct rpc_pipe_client *cli, TALLOC_CTX *mem
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_netr_LogonSamLogon(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *computer_name, struct netr_Authenticator *credential, struct netr_Authenticator *return_authenticator, uint16_t logon_level, union netr_LogonLevel logon, uint16_t validation_level, union netr_Validation *validation, uint8_t *authoritative)
+NTSTATUS rpccli_netr_LogonSamLogon(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  const char *server_name,
+                                  const char *computer_name,
+                                  struct netr_Authenticator *credential,
+                                  struct netr_Authenticator *return_authenticator,
+                                  uint16_t logon_level,
+                                  union netr_LogonLevel logon,
+                                  uint16_t validation_level,
+                                  union netr_Validation *validation,
+                                  uint8_t *authoritative)
 {
        struct netr_LogonSamLogon r;
        NTSTATUS status;
@@ -96,17 +132,24 @@ NTSTATUS rpccli_netr_LogonSamLogon(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        r.in.logon = logon;
        r.in.validation_level = validation_level;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_LogonSamLogon, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_LOGONSAMLOGON, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_LOGONSAMLOGON,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_LogonSamLogon, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -123,7 +166,14 @@ NTSTATUS rpccli_netr_LogonSamLogon(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        return r.out.result;
 }
 
-NTSTATUS rpccli_netr_LogonSamLogoff(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *computer_name, struct netr_Authenticator *credential, struct netr_Authenticator *return_authenticator, uint16_t logon_level, union netr_LogonLevel logon)
+NTSTATUS rpccli_netr_LogonSamLogoff(struct rpc_pipe_client *cli,
+                                   TALLOC_CTX *mem_ctx,
+                                   const char *server_name,
+                                   const char *computer_name,
+                                   struct netr_Authenticator *credential,
+                                   struct netr_Authenticator *return_authenticator,
+                                   uint16_t logon_level,
+                                   union netr_LogonLevel logon)
 {
        struct netr_LogonSamLogoff r;
        NTSTATUS status;
@@ -136,17 +186,24 @@ NTSTATUS rpccli_netr_LogonSamLogoff(struct rpc_pipe_client *cli, TALLOC_CTX *mem
        r.in.logon_level = logon_level;
        r.in.logon = logon;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_LogonSamLogoff, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_LOGONSAMLOGOFF, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_LOGONSAMLOGOFF,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_LogonSamLogoff, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -161,7 +218,11 @@ NTSTATUS rpccli_netr_LogonSamLogoff(struct rpc_pipe_client *cli, TALLOC_CTX *mem
        return r.out.result;
 }
 
-NTSTATUS rpccli_netr_ServerReqChallenge(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *computer_name, struct netr_Credential *credentials)
+NTSTATUS rpccli_netr_ServerReqChallenge(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       const char *server_name,
+                                       const char *computer_name,
+                                       struct netr_Credential *credentials)
 {
        struct netr_ServerReqChallenge r;
        NTSTATUS status;
@@ -171,17 +232,24 @@ NTSTATUS rpccli_netr_ServerReqChallenge(struct rpc_pipe_client *cli, TALLOC_CTX
        r.in.computer_name = computer_name;
        r.in.credentials = credentials;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_ServerReqChallenge, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_SERVERREQCHALLENGE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_SERVERREQCHALLENGE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_ServerReqChallenge, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -194,7 +262,13 @@ NTSTATUS rpccli_netr_ServerReqChallenge(struct rpc_pipe_client *cli, TALLOC_CTX
        return r.out.result;
 }
 
-NTSTATUS rpccli_netr_ServerAuthenticate(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account_name, enum netr_SchannelType secure_channel_type, const char *computer_name, struct netr_Credential *credentials)
+NTSTATUS rpccli_netr_ServerAuthenticate(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       const char *server_name,
+                                       const char *account_name,
+                                       enum netr_SchannelType secure_channel_type,
+                                       const char *computer_name,
+                                       struct netr_Credential *credentials)
 {
        struct netr_ServerAuthenticate r;
        NTSTATUS status;
@@ -206,17 +280,24 @@ NTSTATUS rpccli_netr_ServerAuthenticate(struct rpc_pipe_client *cli, TALLOC_CTX
        r.in.computer_name = computer_name;
        r.in.credentials = credentials;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_ServerAuthenticate, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_SERVERAUTHENTICATE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_SERVERAUTHENTICATE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_ServerAuthenticate, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -229,7 +310,15 @@ NTSTATUS rpccli_netr_ServerAuthenticate(struct rpc_pipe_client *cli, TALLOC_CTX
        return r.out.result;
 }
 
-NTSTATUS rpccli_netr_ServerPasswordSet(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account_name, enum netr_SchannelType secure_channel_type, const char *computer_name, struct netr_Authenticator credential, struct samr_Password new_password, struct netr_Authenticator *return_authenticator)
+NTSTATUS rpccli_netr_ServerPasswordSet(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      const char *server_name,
+                                      const char *account_name,
+                                      enum netr_SchannelType secure_channel_type,
+                                      const char *computer_name,
+                                      struct netr_Authenticator credential,
+                                      struct samr_Password new_password,
+                                      struct netr_Authenticator *return_authenticator)
 {
        struct netr_ServerPasswordSet r;
        NTSTATUS status;
@@ -242,17 +331,24 @@ NTSTATUS rpccli_netr_ServerPasswordSet(struct rpc_pipe_client *cli, TALLOC_CTX *
        r.in.credential = credential;
        r.in.new_password = new_password;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_ServerPasswordSet, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_SERVERPASSWORDSET, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_SERVERPASSWORDSET,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_ServerPasswordSet, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -265,7 +361,16 @@ NTSTATUS rpccli_netr_ServerPasswordSet(struct rpc_pipe_client *cli, TALLOC_CTX *
        return r.out.result;
 }
 
-NTSTATUS rpccli_netr_DatabaseDeltas(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *computername, struct netr_Authenticator credential, struct netr_Authenticator *return_authenticator, enum netr_SamDatabaseID database_id, uint64_t *sequence_num, uint32_t preferredmaximumlength, struct netr_DELTA_ENUM_ARRAY *delta_enum_array)
+NTSTATUS rpccli_netr_DatabaseDeltas(struct rpc_pipe_client *cli,
+                                   TALLOC_CTX *mem_ctx,
+                                   const char *logon_server,
+                                   const char *computername,
+                                   struct netr_Authenticator credential,
+                                   struct netr_Authenticator *return_authenticator,
+                                   enum netr_SamDatabaseID database_id,
+                                   uint64_t *sequence_num,
+                                   uint32_t preferredmaximumlength,
+                                   struct netr_DELTA_ENUM_ARRAY *delta_enum_array)
 {
        struct netr_DatabaseDeltas r;
        NTSTATUS status;
@@ -279,17 +384,24 @@ NTSTATUS rpccli_netr_DatabaseDeltas(struct rpc_pipe_client *cli, TALLOC_CTX *mem
        r.in.sequence_num = sequence_num;
        r.in.preferredmaximumlength = preferredmaximumlength;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_DatabaseDeltas, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DATABASEDELTAS, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_DATABASEDELTAS,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_DatabaseDeltas, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -306,7 +418,16 @@ NTSTATUS rpccli_netr_DatabaseDeltas(struct rpc_pipe_client *cli, TALLOC_CTX *mem
        return r.out.result;
 }
 
-NTSTATUS rpccli_netr_DatabaseSync(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *computername, struct netr_Authenticator credential, struct netr_Authenticator *return_authenticator, enum netr_SamDatabaseID database_id, uint32_t *sync_context, uint32_t preferredmaximumlength, struct netr_DELTA_ENUM_ARRAY *delta_enum_array)
+NTSTATUS rpccli_netr_DatabaseSync(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 const char *logon_server,
+                                 const char *computername,
+                                 struct netr_Authenticator credential,
+                                 struct netr_Authenticator *return_authenticator,
+                                 enum netr_SamDatabaseID database_id,
+                                 uint32_t *sync_context,
+                                 uint32_t preferredmaximumlength,
+                                 struct netr_DELTA_ENUM_ARRAY *delta_enum_array)
 {
        struct netr_DatabaseSync r;
        NTSTATUS status;
@@ -320,17 +441,24 @@ NTSTATUS rpccli_netr_DatabaseSync(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        r.in.sync_context = sync_context;
        r.in.preferredmaximumlength = preferredmaximumlength;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_DatabaseSync, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DATABASESYNC, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_DATABASESYNC,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_DatabaseSync, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -347,7 +475,20 @@ NTSTATUS rpccli_netr_DatabaseSync(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        return r.out.result;
 }
 
-NTSTATUS rpccli_netr_AccountDeltas(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *computername, struct netr_Authenticator credential, struct netr_Authenticator *return_authenticator, struct netr_UAS_INFO_0 uas, uint32_t count, uint32_t level, uint32_t buffersize, struct netr_AccountBuffer *buffer, uint32_t *count_returned, uint32_t *total_entries, struct netr_UAS_INFO_0 *recordid)
+NTSTATUS rpccli_netr_AccountDeltas(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  const char *logon_server,
+                                  const char *computername,
+                                  struct netr_Authenticator credential,
+                                  struct netr_Authenticator *return_authenticator,
+                                  struct netr_UAS_INFO_0 uas,
+                                  uint32_t count,
+                                  uint32_t level,
+                                  uint32_t buffersize,
+                                  struct netr_AccountBuffer *buffer,
+                                  uint32_t *count_returned,
+                                  uint32_t *total_entries,
+                                  struct netr_UAS_INFO_0 *recordid)
 {
        struct netr_AccountDeltas r;
        NTSTATUS status;
@@ -362,17 +503,24 @@ NTSTATUS rpccli_netr_AccountDeltas(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        r.in.level = level;
        r.in.buffersize = buffersize;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_AccountDeltas, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_ACCOUNTDELTAS, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_ACCOUNTDELTAS,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_AccountDeltas, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -389,7 +537,20 @@ NTSTATUS rpccli_netr_AccountDeltas(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        return r.out.result;
 }
 
-NTSTATUS rpccli_netr_AccountSync(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *computername, struct netr_Authenticator credential, struct netr_Authenticator *return_authenticator, uint32_t reference, uint32_t level, uint32_t buffersize, struct netr_AccountBuffer *buffer, uint32_t *count_returned, uint32_t *total_entries, uint32_t *next_reference, struct netr_UAS_INFO_0 *recordid)
+NTSTATUS rpccli_netr_AccountSync(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                const char *logon_server,
+                                const char *computername,
+                                struct netr_Authenticator credential,
+                                struct netr_Authenticator *return_authenticator,
+                                uint32_t reference,
+                                uint32_t level,
+                                uint32_t buffersize,
+                                struct netr_AccountBuffer *buffer,
+                                uint32_t *count_returned,
+                                uint32_t *total_entries,
+                                uint32_t *next_reference,
+                                struct netr_UAS_INFO_0 *recordid)
 {
        struct netr_AccountSync r;
        NTSTATUS status;
@@ -404,17 +565,24 @@ NTSTATUS rpccli_netr_AccountSync(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
        r.in.buffersize = buffersize;
        r.in.recordid = recordid;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_AccountSync, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_ACCOUNTSYNC, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_ACCOUNTSYNC,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_AccountSync, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -432,7 +600,11 @@ NTSTATUS rpccli_netr_AccountSync(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
        return r.out.result;
 }
 
-NTSTATUS rpccli_netr_GetDcName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *domainname, const char **dcname)
+NTSTATUS rpccli_netr_GetDcName(struct rpc_pipe_client *cli,
+                              TALLOC_CTX *mem_ctx,
+                              const char *logon_server,
+                              const char *domainname,
+                              const char **dcname)
 {
        struct netr_GetDcName r;
        NTSTATUS status;
@@ -441,17 +613,24 @@ NTSTATUS rpccli_netr_GetDcName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        r.in.logon_server = logon_server;
        r.in.domainname = domainname;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_GetDcName, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_GETDCNAME, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_GETDCNAME,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_GetDcName, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -464,7 +643,13 @@ NTSTATUS rpccli_netr_GetDcName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        return r.out.result;
 }
 
-NTSTATUS rpccli_netr_LogonControl(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, enum netr_LogonControlCode function_code, uint32_t level, union netr_CONTROL_QUERY_INFORMATION *info, WERROR *werror)
+NTSTATUS rpccli_netr_LogonControl(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 const char *logon_server,
+                                 enum netr_LogonControlCode function_code,
+                                 uint32_t level,
+                                 union netr_CONTROL_QUERY_INFORMATION *info,
+                                 WERROR *werror)
 {
        struct netr_LogonControl r;
        NTSTATUS status;
@@ -474,17 +659,24 @@ NTSTATUS rpccli_netr_LogonControl(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        r.in.function_code = function_code;
        r.in.level = level;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_LogonControl, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_LOGONCONTROL, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_LOGONCONTROL,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_LogonControl, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -501,7 +693,12 @@ NTSTATUS rpccli_netr_LogonControl(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_netr_GetAnyDCName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *domainname, const char **dcname, WERROR *werror)
+NTSTATUS rpccli_netr_GetAnyDCName(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 const char *logon_server,
+                                 const char *domainname,
+                                 const char **dcname,
+                                 WERROR *werror)
 {
        struct netr_GetAnyDCName r;
        NTSTATUS status;
@@ -510,17 +707,24 @@ NTSTATUS rpccli_netr_GetAnyDCName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        r.in.logon_server = logon_server;
        r.in.domainname = domainname;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_GetAnyDCName, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_GETANYDCNAME, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_GETANYDCNAME,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_GetAnyDCName, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -537,7 +741,14 @@ NTSTATUS rpccli_netr_GetAnyDCName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_netr_LogonControl2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, uint32_t function_code, uint32_t level, union netr_CONTROL_DATA_INFORMATION data, union netr_CONTROL_QUERY_INFORMATION *query, WERROR *werror)
+NTSTATUS rpccli_netr_LogonControl2(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  const char *logon_server,
+                                  uint32_t function_code,
+                                  uint32_t level,
+                                  union netr_CONTROL_DATA_INFORMATION data,
+                                  union netr_CONTROL_QUERY_INFORMATION *query,
+                                  WERROR *werror)
 {
        struct netr_LogonControl2 r;
        NTSTATUS status;
@@ -548,17 +759,24 @@ NTSTATUS rpccli_netr_LogonControl2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        r.in.level = level;
        r.in.data = data;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_LogonControl2, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_LOGONCONTROL2, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_LOGONCONTROL2,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_LogonControl2, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -575,7 +793,14 @@ NTSTATUS rpccli_netr_LogonControl2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_netr_ServerAuthenticate2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account_name, enum netr_SchannelType secure_channel_type, const char *computer_name, struct netr_Credential *credentials, uint32_t *negotiate_flags)
+NTSTATUS rpccli_netr_ServerAuthenticate2(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        const char *server_name,
+                                        const char *account_name,
+                                        enum netr_SchannelType secure_channel_type,
+                                        const char *computer_name,
+                                        struct netr_Credential *credentials,
+                                        uint32_t *negotiate_flags)
 {
        struct netr_ServerAuthenticate2 r;
        NTSTATUS status;
@@ -588,17 +813,24 @@ NTSTATUS rpccli_netr_ServerAuthenticate2(struct rpc_pipe_client *cli, TALLOC_CTX
        r.in.credentials = credentials;
        r.in.negotiate_flags = negotiate_flags;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_ServerAuthenticate2, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_SERVERAUTHENTICATE2, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_SERVERAUTHENTICATE2,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_ServerAuthenticate2, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -612,7 +844,17 @@ NTSTATUS rpccli_netr_ServerAuthenticate2(struct rpc_pipe_client *cli, TALLOC_CTX
        return r.out.result;
 }
 
-NTSTATUS rpccli_netr_DatabaseSync2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *computername, struct netr_Authenticator credential, struct netr_Authenticator *return_authenticator, enum netr_SamDatabaseID database_id, uint16_t restart_state, uint32_t *sync_context, uint32_t preferredmaximumlength, struct netr_DELTA_ENUM_ARRAY *delta_enum_array)
+NTSTATUS rpccli_netr_DatabaseSync2(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  const char *logon_server,
+                                  const char *computername,
+                                  struct netr_Authenticator credential,
+                                  struct netr_Authenticator *return_authenticator,
+                                  enum netr_SamDatabaseID database_id,
+                                  uint16_t restart_state,
+                                  uint32_t *sync_context,
+                                  uint32_t preferredmaximumlength,
+                                  struct netr_DELTA_ENUM_ARRAY *delta_enum_array)
 {
        struct netr_DatabaseSync2 r;
        NTSTATUS status;
@@ -627,17 +869,24 @@ NTSTATUS rpccli_netr_DatabaseSync2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        r.in.sync_context = sync_context;
        r.in.preferredmaximumlength = preferredmaximumlength;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_DatabaseSync2, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DATABASESYNC2, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_DATABASESYNC2,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_DatabaseSync2, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -654,7 +903,15 @@ NTSTATUS rpccli_netr_DatabaseSync2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        return r.out.result;
 }
 
-NTSTATUS rpccli_netr_DatabaseRedo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *computername, struct netr_Authenticator credential, struct netr_Authenticator *return_authenticator, uint8_t *change_log_entry, uint32_t change_log_entry_size, struct netr_DELTA_ENUM_ARRAY *delta_enum_array)
+NTSTATUS rpccli_netr_DatabaseRedo(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 const char *logon_server,
+                                 const char *computername,
+                                 struct netr_Authenticator credential,
+                                 struct netr_Authenticator *return_authenticator,
+                                 uint8_t *change_log_entry,
+                                 uint32_t change_log_entry_size,
+                                 struct netr_DELTA_ENUM_ARRAY *delta_enum_array)
 {
        struct netr_DatabaseRedo r;
        NTSTATUS status;
@@ -667,17 +924,24 @@ NTSTATUS rpccli_netr_DatabaseRedo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        r.in.change_log_entry = change_log_entry;
        r.in.change_log_entry_size = change_log_entry_size;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_DatabaseRedo, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DATABASEREDO, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_DATABASEREDO,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_DatabaseRedo, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -693,7 +957,14 @@ NTSTATUS rpccli_netr_DatabaseRedo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        return r.out.result;
 }
 
-NTSTATUS rpccli_netr_LogonControl2Ex(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, uint32_t function_code, uint32_t level, union netr_CONTROL_DATA_INFORMATION data, union netr_CONTROL_QUERY_INFORMATION *query, WERROR *werror)
+NTSTATUS rpccli_netr_LogonControl2Ex(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx,
+                                    const char *logon_server,
+                                    uint32_t function_code,
+                                    uint32_t level,
+                                    union netr_CONTROL_DATA_INFORMATION data,
+                                    union netr_CONTROL_QUERY_INFORMATION *query,
+                                    WERROR *werror)
 {
        struct netr_LogonControl2Ex r;
        NTSTATUS status;
@@ -704,17 +975,24 @@ NTSTATUS rpccli_netr_LogonControl2Ex(struct rpc_pipe_client *cli, TALLOC_CTX *me
        r.in.level = level;
        r.in.data = data;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_LogonControl2Ex, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_LOGONCONTROL2EX, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_LOGONCONTROL2EX,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_LogonControl2Ex, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -731,24 +1009,33 @@ NTSTATUS rpccli_netr_LogonControl2Ex(struct rpc_pipe_client *cli, TALLOC_CTX *me
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_netr_NETRENUMERATETRUSTEDDOMAINS(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_NETRENUMERATETRUSTEDDOMAINS(struct rpc_pipe_client *cli,
+                                                TALLOC_CTX *mem_ctx,
+                                                WERROR *werror)
 {
        struct netr_NETRENUMERATETRUSTEDDOMAINS r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_NETRENUMERATETRUSTEDDOMAINS, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRENUMERATETRUSTEDDOMAINS, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_NETRENUMERATETRUSTEDDOMAINS,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_NETRENUMERATETRUSTEDDOMAINS, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -764,7 +1051,15 @@ NTSTATUS rpccli_netr_NETRENUMERATETRUSTEDDOMAINS(struct rpc_pipe_client *cli, TA
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_netr_DsRGetDCName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *domain_name, struct GUID *domain_guid, struct GUID *site_guid, uint32_t flags, struct netr_DsRGetDCNameInfo *info, WERROR *werror)
+NTSTATUS rpccli_netr_DsRGetDCName(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 const char *server_unc,
+                                 const char *domain_name,
+                                 struct GUID *domain_guid,
+                                 struct GUID *site_guid,
+                                 uint32_t flags,
+                                 struct netr_DsRGetDCNameInfo *info,
+                                 WERROR *werror)
 {
        struct netr_DsRGetDCName r;
        NTSTATUS status;
@@ -776,17 +1071,24 @@ NTSTATUS rpccli_netr_DsRGetDCName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        r.in.site_guid = site_guid;
        r.in.flags = flags;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_DsRGetDCName, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DSRGETDCNAME, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_DSRGETDCNAME,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_DsRGetDCName, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -805,24 +1107,33 @@ NTSTATUS rpccli_netr_DsRGetDCName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_netr_NETRLOGONDUMMYROUTINE1(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_NETRLOGONDUMMYROUTINE1(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           WERROR *werror)
 {
        struct netr_NETRLOGONDUMMYROUTINE1 r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_NETRLOGONDUMMYROUTINE1, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRLOGONDUMMYROUTINE1, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_NETRLOGONDUMMYROUTINE1,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_NETRLOGONDUMMYROUTINE1, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -838,24 +1149,33 @@ NTSTATUS rpccli_netr_NETRLOGONDUMMYROUTINE1(struct rpc_pipe_client *cli, TALLOC_
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_netr_NETRLOGONSETSERVICEBITS(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_NETRLOGONSETSERVICEBITS(struct rpc_pipe_client *cli,
+                                            TALLOC_CTX *mem_ctx,
+                                            WERROR *werror)
 {
        struct netr_NETRLOGONSETSERVICEBITS r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_NETRLOGONSETSERVICEBITS, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRLOGONSETSERVICEBITS, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_NETRLOGONSETSERVICEBITS,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_NETRLOGONSETSERVICEBITS, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -871,24 +1191,33 @@ NTSTATUS rpccli_netr_NETRLOGONSETSERVICEBITS(struct rpc_pipe_client *cli, TALLOC
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_netr_NETRLOGONGETTRUSTRID(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_NETRLOGONGETTRUSTRID(struct rpc_pipe_client *cli,
+                                         TALLOC_CTX *mem_ctx,
+                                         WERROR *werror)
 {
        struct netr_NETRLOGONGETTRUSTRID r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_NETRLOGONGETTRUSTRID, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRLOGONGETTRUSTRID, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_NETRLOGONGETTRUSTRID,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_NETRLOGONGETTRUSTRID, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -904,24 +1233,33 @@ NTSTATUS rpccli_netr_NETRLOGONGETTRUSTRID(struct rpc_pipe_client *cli, TALLOC_CT
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_netr_NETRLOGONCOMPUTESERVERDIGEST(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_NETRLOGONCOMPUTESERVERDIGEST(struct rpc_pipe_client *cli,
+                                                 TALLOC_CTX *mem_ctx,
+                                                 WERROR *werror)
 {
        struct netr_NETRLOGONCOMPUTESERVERDIGEST r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_NETRLOGONCOMPUTESERVERDIGEST, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRLOGONCOMPUTESERVERDIGEST, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_NETRLOGONCOMPUTESERVERDIGEST,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_NETRLOGONCOMPUTESERVERDIGEST, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -937,24 +1275,33 @@ NTSTATUS rpccli_netr_NETRLOGONCOMPUTESERVERDIGEST(struct rpc_pipe_client *cli, T
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_netr_NETRLOGONCOMPUTECLIENTDIGEST(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_NETRLOGONCOMPUTECLIENTDIGEST(struct rpc_pipe_client *cli,
+                                                 TALLOC_CTX *mem_ctx,
+                                                 WERROR *werror)
 {
        struct netr_NETRLOGONCOMPUTECLIENTDIGEST r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_NETRLOGONCOMPUTECLIENTDIGEST, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRLOGONCOMPUTECLIENTDIGEST, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_NETRLOGONCOMPUTECLIENTDIGEST,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_NETRLOGONCOMPUTECLIENTDIGEST, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -970,7 +1317,15 @@ NTSTATUS rpccli_netr_NETRLOGONCOMPUTECLIENTDIGEST(struct rpc_pipe_client *cli, T
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_netr_ServerAuthenticate3(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account_name, enum netr_SchannelType secure_channel_type, const char *computer_name, struct netr_Credential *credentials, uint32_t *negotiate_flags, uint32_t *rid)
+NTSTATUS rpccli_netr_ServerAuthenticate3(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        const char *server_name,
+                                        const char *account_name,
+                                        enum netr_SchannelType secure_channel_type,
+                                        const char *computer_name,
+                                        struct netr_Credential *credentials,
+                                        uint32_t *negotiate_flags,
+                                        uint32_t *rid)
 {
        struct netr_ServerAuthenticate3 r;
        NTSTATUS status;
@@ -983,17 +1338,24 @@ NTSTATUS rpccli_netr_ServerAuthenticate3(struct rpc_pipe_client *cli, TALLOC_CTX
        r.in.credentials = credentials;
        r.in.negotiate_flags = negotiate_flags;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_ServerAuthenticate3, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_SERVERAUTHENTICATE3, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_SERVERAUTHENTICATE3,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_ServerAuthenticate3, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1008,7 +1370,15 @@ NTSTATUS rpccli_netr_ServerAuthenticate3(struct rpc_pipe_client *cli, TALLOC_CTX
        return r.out.result;
 }
 
-NTSTATUS rpccli_netr_DsRGetDCNameEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *domain_name, struct GUID *domain_guid, const char *site_name, uint32_t flags, struct netr_DsRGetDCNameInfo *info, WERROR *werror)
+NTSTATUS rpccli_netr_DsRGetDCNameEx(struct rpc_pipe_client *cli,
+                                   TALLOC_CTX *mem_ctx,
+                                   const char *server_unc,
+                                   const char *domain_name,
+                                   struct GUID *domain_guid,
+                                   const char *site_name,
+                                   uint32_t flags,
+                                   struct netr_DsRGetDCNameInfo *info,
+                                   WERROR *werror)
 {
        struct netr_DsRGetDCNameEx r;
        NTSTATUS status;
@@ -1020,17 +1390,24 @@ NTSTATUS rpccli_netr_DsRGetDCNameEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem
        r.in.site_name = site_name;
        r.in.flags = flags;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_DsRGetDCNameEx, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DSRGETDCNAMEEX, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_DSRGETDCNAMEEX,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_DsRGetDCNameEx, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1049,7 +1426,11 @@ NTSTATUS rpccli_netr_DsRGetDCNameEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_netr_DsRGetSiteName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *computer_name, const char **site, WERROR *werror)
+NTSTATUS rpccli_netr_DsRGetSiteName(struct rpc_pipe_client *cli,
+                                   TALLOC_CTX *mem_ctx,
+                                   const char *computer_name,
+                                   const char **site,
+                                   WERROR *werror)
 {
        struct netr_DsRGetSiteName r;
        NTSTATUS status;
@@ -1057,17 +1438,24 @@ NTSTATUS rpccli_netr_DsRGetSiteName(struct rpc_pipe_client *cli, TALLOC_CTX *mem
        /* In parameters */
        r.in.computer_name = computer_name;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_DsRGetSiteName, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DSRGETSITENAME, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_DSRGETSITENAME,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_DsRGetSiteName, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1084,7 +1472,15 @@ NTSTATUS rpccli_netr_DsRGetSiteName(struct rpc_pipe_client *cli, TALLOC_CTX *mem
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_netr_LogonGetDomainInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *computer_name, struct netr_Authenticator *credential, struct netr_Authenticator *return_authenticator, uint32_t level, union netr_DomainQuery query, union netr_DomainInfo *info)
+NTSTATUS rpccli_netr_LogonGetDomainInfo(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       const char *server_name,
+                                       const char *computer_name,
+                                       struct netr_Authenticator *credential,
+                                       struct netr_Authenticator *return_authenticator,
+                                       uint32_t level,
+                                       union netr_DomainQuery query,
+                                       union netr_DomainInfo *info)
 {
        struct netr_LogonGetDomainInfo r;
        NTSTATUS status;
@@ -1097,17 +1493,24 @@ NTSTATUS rpccli_netr_LogonGetDomainInfo(struct rpc_pipe_client *cli, TALLOC_CTX
        r.in.level = level;
        r.in.query = query;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_LogonGetDomainInfo, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_LOGONGETDOMAININFO, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_LOGONGETDOMAININFO,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_LogonGetDomainInfo, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1121,7 +1524,15 @@ NTSTATUS rpccli_netr_LogonGetDomainInfo(struct rpc_pipe_client *cli, TALLOC_CTX
        return r.out.result;
 }
 
-NTSTATUS rpccli_netr_ServerPasswordSet2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account_name, enum netr_SchannelType secure_channel_type, const char *computer_name, struct netr_Authenticator credential, struct netr_CryptPassword new_password, struct netr_Authenticator *return_authenticator)
+NTSTATUS rpccli_netr_ServerPasswordSet2(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       const char *server_name,
+                                       const char *account_name,
+                                       enum netr_SchannelType secure_channel_type,
+                                       const char *computer_name,
+                                       struct netr_Authenticator credential,
+                                       struct netr_CryptPassword new_password,
+                                       struct netr_Authenticator *return_authenticator)
 {
        struct netr_ServerPasswordSet2 r;
        NTSTATUS status;
@@ -1134,17 +1545,24 @@ NTSTATUS rpccli_netr_ServerPasswordSet2(struct rpc_pipe_client *cli, TALLOC_CTX
        r.in.credential = credential;
        r.in.new_password = new_password;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_ServerPasswordSet2, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_SERVERPASSWORDSET2, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_SERVERPASSWORDSET2,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_ServerPasswordSet2, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1157,24 +1575,33 @@ NTSTATUS rpccli_netr_ServerPasswordSet2(struct rpc_pipe_client *cli, TALLOC_CTX
        return r.out.result;
 }
 
-NTSTATUS rpccli_netr_NETRSERVERPASSWORDGET(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_NETRSERVERPASSWORDGET(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx,
+                                          WERROR *werror)
 {
        struct netr_NETRSERVERPASSWORDGET r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_NETRSERVERPASSWORDGET, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRSERVERPASSWORDGET, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_NETRSERVERPASSWORDGET,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_NETRSERVERPASSWORDGET, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1190,24 +1617,33 @@ NTSTATUS rpccli_netr_NETRSERVERPASSWORDGET(struct rpc_pipe_client *cli, TALLOC_C
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_netr_NETRLOGONSENDTOSAM(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_NETRLOGONSENDTOSAM(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       WERROR *werror)
 {
        struct netr_NETRLOGONSENDTOSAM r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_NETRLOGONSENDTOSAM, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRLOGONSENDTOSAM, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_NETRLOGONSENDTOSAM,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_NETRLOGONSENDTOSAM, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1223,24 +1659,33 @@ NTSTATUS rpccli_netr_NETRLOGONSENDTOSAM(struct rpc_pipe_client *cli, TALLOC_CTX
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_netr_DSRADDRESSTOSITENAMESW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_DSRADDRESSTOSITENAMESW(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           WERROR *werror)
 {
        struct netr_DSRADDRESSTOSITENAMESW r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_DSRADDRESSTOSITENAMESW, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DSRADDRESSTOSITENAMESW, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_DSRADDRESSTOSITENAMESW,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_DSRADDRESSTOSITENAMESW, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1256,7 +1701,17 @@ NTSTATUS rpccli_netr_DSRADDRESSTOSITENAMESW(struct rpc_pipe_client *cli, TALLOC_
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_netr_DsRGetDCNameEx2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *client_account, uint32_t mask, const char *domain_name, struct GUID *domain_guid, const char *site_name, uint32_t flags, struct netr_DsRGetDCNameInfo *info, WERROR *werror)
+NTSTATUS rpccli_netr_DsRGetDCNameEx2(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx,
+                                    const char *server_unc,
+                                    const char *client_account,
+                                    uint32_t mask,
+                                    const char *domain_name,
+                                    struct GUID *domain_guid,
+                                    const char *site_name,
+                                    uint32_t flags,
+                                    struct netr_DsRGetDCNameInfo *info,
+                                    WERROR *werror)
 {
        struct netr_DsRGetDCNameEx2 r;
        NTSTATUS status;
@@ -1270,17 +1725,24 @@ NTSTATUS rpccli_netr_DsRGetDCNameEx2(struct rpc_pipe_client *cli, TALLOC_CTX *me
        r.in.site_name = site_name;
        r.in.flags = flags;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_DsRGetDCNameEx2, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DSRGETDCNAMEEX2, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_DSRGETDCNAMEEX2,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_DsRGetDCNameEx2, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1299,24 +1761,33 @@ NTSTATUS rpccli_netr_DsRGetDCNameEx2(struct rpc_pipe_client *cli, TALLOC_CTX *me
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(struct rpc_pipe_client *cli,
+                                                        TALLOC_CTX *mem_ctx,
+                                                        WERROR *werror)
 {
        struct netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRLOGONGETTIMESERVICEPARENTDOMAIN, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_NETRLOGONGETTIMESERVICEPARENTDOMAIN,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1332,24 +1803,33 @@ NTSTATUS rpccli_netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(struct rpc_pipe_client
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_netr_NETRENUMERATETRUSTEDDOMAINSEX(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_NETRENUMERATETRUSTEDDOMAINSEX(struct rpc_pipe_client *cli,
+                                                  TALLOC_CTX *mem_ctx,
+                                                  WERROR *werror)
 {
        struct netr_NETRENUMERATETRUSTEDDOMAINSEX r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_NETRENUMERATETRUSTEDDOMAINSEX, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRENUMERATETRUSTEDDOMAINSEX, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_NETRENUMERATETRUSTEDDOMAINSEX,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_NETRENUMERATETRUSTEDDOMAINSEX, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1365,24 +1845,33 @@ NTSTATUS rpccli_netr_NETRENUMERATETRUSTEDDOMAINSEX(struct rpc_pipe_client *cli,
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_netr_DSRADDRESSTOSITENAMESEXW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_DSRADDRESSTOSITENAMESEXW(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             WERROR *werror)
 {
        struct netr_DSRADDRESSTOSITENAMESEXW r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_DSRADDRESSTOSITENAMESEXW, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DSRADDRESSTOSITENAMESEXW, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_DSRADDRESSTOSITENAMESEXW,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_DSRADDRESSTOSITENAMESEXW, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1398,24 +1887,33 @@ NTSTATUS rpccli_netr_DSRADDRESSTOSITENAMESEXW(struct rpc_pipe_client *cli, TALLO
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_netr_DSRGETDCSITECOVERAGEW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_DSRGETDCSITECOVERAGEW(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx,
+                                          WERROR *werror)
 {
        struct netr_DSRGETDCSITECOVERAGEW r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_DSRGETDCSITECOVERAGEW, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DSRGETDCSITECOVERAGEW, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_DSRGETDCSITECOVERAGEW,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_DSRGETDCSITECOVERAGEW, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1431,7 +1929,16 @@ NTSTATUS rpccli_netr_DSRGETDCSITECOVERAGEW(struct rpc_pipe_client *cli, TALLOC_C
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_netr_LogonSamLogonEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *computer_name, uint16_t logon_level, union netr_LogonLevel logon, uint16_t validation_level, union netr_Validation *validation, uint8_t *authoritative, uint32_t *flags)
+NTSTATUS rpccli_netr_LogonSamLogonEx(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx,
+                                    const char *server_name,
+                                    const char *computer_name,
+                                    uint16_t logon_level,
+                                    union netr_LogonLevel logon,
+                                    uint16_t validation_level,
+                                    union netr_Validation *validation,
+                                    uint8_t *authoritative,
+                                    uint32_t *flags)
 {
        struct netr_LogonSamLogonEx r;
        NTSTATUS status;
@@ -1444,17 +1951,24 @@ NTSTATUS rpccli_netr_LogonSamLogonEx(struct rpc_pipe_client *cli, TALLOC_CTX *me
        r.in.validation_level = validation_level;
        r.in.flags = flags;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_LogonSamLogonEx, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_LOGONSAMLOGONEX, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_LOGONSAMLOGONEX,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_LogonSamLogonEx, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1469,7 +1983,13 @@ NTSTATUS rpccli_netr_LogonSamLogonEx(struct rpc_pipe_client *cli, TALLOC_CTX *me
        return r.out.result;
 }
 
-NTSTATUS rpccli_netr_DsrEnumerateDomainTrusts(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, uint32_t trust_flags, uint32_t *count, struct netr_DomainTrust **trusts, WERROR *werror)
+NTSTATUS rpccli_netr_DsrEnumerateDomainTrusts(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             const char *server_name,
+                                             uint32_t trust_flags,
+                                             uint32_t *count,
+                                             struct netr_DomainTrust **trusts,
+                                             WERROR *werror)
 {
        struct netr_DsrEnumerateDomainTrusts r;
        NTSTATUS status;
@@ -1478,17 +1998,24 @@ NTSTATUS rpccli_netr_DsrEnumerateDomainTrusts(struct rpc_pipe_client *cli, TALLO
        r.in.server_name = server_name;
        r.in.trust_flags = trust_flags;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_DsrEnumerateDomainTrusts, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DSRENUMERATEDOMAINTRUSTS, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_DSRENUMERATEDOMAINTRUSTS,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_DsrEnumerateDomainTrusts, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1506,24 +2033,33 @@ NTSTATUS rpccli_netr_DsrEnumerateDomainTrusts(struct rpc_pipe_client *cli, TALLO
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_netr_DSRDEREGISTERDNSHOSTRECORDS(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_DSRDEREGISTERDNSHOSTRECORDS(struct rpc_pipe_client *cli,
+                                                TALLOC_CTX *mem_ctx,
+                                                WERROR *werror)
 {
        struct netr_DSRDEREGISTERDNSHOSTRECORDS r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_DSRDEREGISTERDNSHOSTRECORDS, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DSRDEREGISTERDNSHOSTRECORDS, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_DSRDEREGISTERDNSHOSTRECORDS,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_DSRDEREGISTERDNSHOSTRECORDS, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1539,24 +2075,33 @@ NTSTATUS rpccli_netr_DSRDEREGISTERDNSHOSTRECORDS(struct rpc_pipe_client *cli, TA
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_netr_NETRSERVERTRUSTPASSWORDSGET(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_NETRSERVERTRUSTPASSWORDSGET(struct rpc_pipe_client *cli,
+                                                TALLOC_CTX *mem_ctx,
+                                                WERROR *werror)
 {
        struct netr_NETRSERVERTRUSTPASSWORDSGET r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_NETRSERVERTRUSTPASSWORDSGET, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRSERVERTRUSTPASSWORDSGET, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_NETRSERVERTRUSTPASSWORDSGET,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_NETRSERVERTRUSTPASSWORDSGET, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1572,24 +2117,33 @@ NTSTATUS rpccli_netr_NETRSERVERTRUSTPASSWORDSGET(struct rpc_pipe_client *cli, TA
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_netr_DSRGETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_DSRGETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
+                                                 TALLOC_CTX *mem_ctx,
+                                                 WERROR *werror)
 {
        struct netr_DSRGETFORESTTRUSTINFORMATION r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_DSRGETFORESTTRUSTINFORMATION, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DSRGETFORESTTRUSTINFORMATION, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_DSRGETFORESTTRUSTINFORMATION,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_DSRGETFORESTTRUSTINFORMATION, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1605,24 +2159,33 @@ NTSTATUS rpccli_netr_DSRGETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli, T
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_netr_NETRGETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_NETRGETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
+                                                  TALLOC_CTX *mem_ctx,
+                                                  WERROR *werror)
 {
        struct netr_NETRGETFORESTTRUSTINFORMATION r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_NETRGETFORESTTRUSTINFORMATION, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRGETFORESTTRUSTINFORMATION, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_NETRGETFORESTTRUSTINFORMATION,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_NETRGETFORESTTRUSTINFORMATION, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1638,7 +2201,18 @@ NTSTATUS rpccli_netr_NETRGETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_netr_LogonSamLogonWithFlags(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *computer_name, struct netr_Authenticator *credential, struct netr_Authenticator *return_authenticator, uint16_t logon_level, union netr_LogonLevel logon, uint16_t validation_level, union netr_Validation *validation, uint8_t *authoritative, uint32_t *flags)
+NTSTATUS rpccli_netr_LogonSamLogonWithFlags(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           const char *server_name,
+                                           const char *computer_name,
+                                           struct netr_Authenticator *credential,
+                                           struct netr_Authenticator *return_authenticator,
+                                           uint16_t logon_level,
+                                           union netr_LogonLevel logon,
+                                           uint16_t validation_level,
+                                           union netr_Validation *validation,
+                                           uint8_t *authoritative,
+                                           uint32_t *flags)
 {
        struct netr_LogonSamLogonWithFlags r;
        NTSTATUS status;
@@ -1653,17 +2227,24 @@ NTSTATUS rpccli_netr_LogonSamLogonWithFlags(struct rpc_pipe_client *cli, TALLOC_
        r.in.validation_level = validation_level;
        r.in.flags = flags;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_LogonSamLogonWithFlags, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_LOGONSAMLOGONWITHFLAGS, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_LOGONSAMLOGONWITHFLAGS,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_LogonSamLogonWithFlags, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1681,24 +2262,33 @@ NTSTATUS rpccli_netr_LogonSamLogonWithFlags(struct rpc_pipe_client *cli, TALLOC_
        return r.out.result;
 }
 
-NTSTATUS rpccli_netr_NETRSERVERGETTRUSTINFO(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_NETRSERVERGETTRUSTINFO(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           WERROR *werror)
 {
        struct netr_NETRSERVERGETTRUSTINFO r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_NETRSERVERGETTRUSTINFO, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRSERVERGETTRUSTINFO, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_NETLOGON,
+                               &ndr_table_netlogon,
+                               NDR_NETR_NETRSERVERGETTRUSTINFO,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_NETRSERVERGETTRUSTINFO, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
index 4273fedf137dbea08f45bb40ff290726cabf12d6..9409077d09fb0e9ea8784d28381d388935ba88ec 100644 (file)
 #include "librpc/gen_ndr/ndr_netlogon.h"
 #ifndef __CLI_NETLOGON__
 #define __CLI_NETLOGON__
-NTSTATUS rpccli_netr_LogonUasLogon(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account_name, const char *workstation, struct netr_UasInfo *info, WERROR *werror);
-NTSTATUS rpccli_netr_LogonUasLogoff(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account_name, const char *workstation, struct netr_UasLogoffInfo *info, WERROR *werror);
-NTSTATUS rpccli_netr_LogonSamLogon(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *computer_name, struct netr_Authenticator *credential, struct netr_Authenticator *return_authenticator, uint16_t logon_level, union netr_LogonLevel logon, uint16_t validation_level, union netr_Validation *validation, uint8_t *authoritative);
-NTSTATUS rpccli_netr_LogonSamLogoff(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *computer_name, struct netr_Authenticator *credential, struct netr_Authenticator *return_authenticator, uint16_t logon_level, union netr_LogonLevel logon);
-NTSTATUS rpccli_netr_ServerReqChallenge(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *computer_name, struct netr_Credential *credentials);
-NTSTATUS rpccli_netr_ServerAuthenticate(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account_name, enum netr_SchannelType secure_channel_type, const char *computer_name, struct netr_Credential *credentials);
-NTSTATUS rpccli_netr_ServerPasswordSet(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account_name, enum netr_SchannelType secure_channel_type, const char *computer_name, struct netr_Authenticator credential, struct samr_Password new_password, struct netr_Authenticator *return_authenticator);
-NTSTATUS rpccli_netr_DatabaseDeltas(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *computername, struct netr_Authenticator credential, struct netr_Authenticator *return_authenticator, enum netr_SamDatabaseID database_id, uint64_t *sequence_num, uint32_t preferredmaximumlength, struct netr_DELTA_ENUM_ARRAY *delta_enum_array);
-NTSTATUS rpccli_netr_DatabaseSync(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *computername, struct netr_Authenticator credential, struct netr_Authenticator *return_authenticator, enum netr_SamDatabaseID database_id, uint32_t *sync_context, uint32_t preferredmaximumlength, struct netr_DELTA_ENUM_ARRAY *delta_enum_array);
-NTSTATUS rpccli_netr_AccountDeltas(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *computername, struct netr_Authenticator credential, struct netr_Authenticator *return_authenticator, struct netr_UAS_INFO_0 uas, uint32_t count, uint32_t level, uint32_t buffersize, struct netr_AccountBuffer *buffer, uint32_t *count_returned, uint32_t *total_entries, struct netr_UAS_INFO_0 *recordid);
-NTSTATUS rpccli_netr_AccountSync(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *computername, struct netr_Authenticator credential, struct netr_Authenticator *return_authenticator, uint32_t reference, uint32_t level, uint32_t buffersize, struct netr_AccountBuffer *buffer, uint32_t *count_returned, uint32_t *total_entries, uint32_t *next_reference, struct netr_UAS_INFO_0 *recordid);
-NTSTATUS rpccli_netr_GetDcName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *domainname, const char **dcname);
-NTSTATUS rpccli_netr_LogonControl(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, enum netr_LogonControlCode function_code, uint32_t level, union netr_CONTROL_QUERY_INFORMATION *info, WERROR *werror);
-NTSTATUS rpccli_netr_GetAnyDCName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *domainname, const char **dcname, WERROR *werror);
-NTSTATUS rpccli_netr_LogonControl2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, uint32_t function_code, uint32_t level, union netr_CONTROL_DATA_INFORMATION data, union netr_CONTROL_QUERY_INFORMATION *query, WERROR *werror);
-NTSTATUS rpccli_netr_ServerAuthenticate2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account_name, enum netr_SchannelType secure_channel_type, const char *computer_name, struct netr_Credential *credentials, uint32_t *negotiate_flags);
-NTSTATUS rpccli_netr_DatabaseSync2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *computername, struct netr_Authenticator credential, struct netr_Authenticator *return_authenticator, enum netr_SamDatabaseID database_id, uint16_t restart_state, uint32_t *sync_context, uint32_t preferredmaximumlength, struct netr_DELTA_ENUM_ARRAY *delta_enum_array);
-NTSTATUS rpccli_netr_DatabaseRedo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *computername, struct netr_Authenticator credential, struct netr_Authenticator *return_authenticator, uint8_t *change_log_entry, uint32_t change_log_entry_size, struct netr_DELTA_ENUM_ARRAY *delta_enum_array);
-NTSTATUS rpccli_netr_LogonControl2Ex(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, uint32_t function_code, uint32_t level, union netr_CONTROL_DATA_INFORMATION data, union netr_CONTROL_QUERY_INFORMATION *query, WERROR *werror);
-NTSTATUS rpccli_netr_NETRENUMERATETRUSTEDDOMAINS(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_DsRGetDCName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *domain_name, struct GUID *domain_guid, struct GUID *site_guid, uint32_t flags, struct netr_DsRGetDCNameInfo *info, WERROR *werror);
-NTSTATUS rpccli_netr_NETRLOGONDUMMYROUTINE1(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_NETRLOGONSETSERVICEBITS(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_NETRLOGONGETTRUSTRID(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_NETRLOGONCOMPUTESERVERDIGEST(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_NETRLOGONCOMPUTECLIENTDIGEST(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_ServerAuthenticate3(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account_name, enum netr_SchannelType secure_channel_type, const char *computer_name, struct netr_Credential *credentials, uint32_t *negotiate_flags, uint32_t *rid);
-NTSTATUS rpccli_netr_DsRGetDCNameEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *domain_name, struct GUID *domain_guid, const char *site_name, uint32_t flags, struct netr_DsRGetDCNameInfo *info, WERROR *werror);
-NTSTATUS rpccli_netr_DsRGetSiteName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *computer_name, const char **site, WERROR *werror);
-NTSTATUS rpccli_netr_LogonGetDomainInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *computer_name, struct netr_Authenticator *credential, struct netr_Authenticator *return_authenticator, uint32_t level, union netr_DomainQuery query, union netr_DomainInfo *info);
-NTSTATUS rpccli_netr_ServerPasswordSet2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account_name, enum netr_SchannelType secure_channel_type, const char *computer_name, struct netr_Authenticator credential, struct netr_CryptPassword new_password, struct netr_Authenticator *return_authenticator);
-NTSTATUS rpccli_netr_NETRSERVERPASSWORDGET(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_NETRLOGONSENDTOSAM(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_DSRADDRESSTOSITENAMESW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_DsRGetDCNameEx2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *client_account, uint32_t mask, const char *domain_name, struct GUID *domain_guid, const char *site_name, uint32_t flags, struct netr_DsRGetDCNameInfo *info, WERROR *werror);
-NTSTATUS rpccli_netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_NETRENUMERATETRUSTEDDOMAINSEX(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_DSRADDRESSTOSITENAMESEXW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_DSRGETDCSITECOVERAGEW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_LogonSamLogonEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *computer_name, uint16_t logon_level, union netr_LogonLevel logon, uint16_t validation_level, union netr_Validation *validation, uint8_t *authoritative, uint32_t *flags);
-NTSTATUS rpccli_netr_DsrEnumerateDomainTrusts(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, uint32_t trust_flags, uint32_t *count, struct netr_DomainTrust **trusts, WERROR *werror);
-NTSTATUS rpccli_netr_DSRDEREGISTERDNSHOSTRECORDS(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_NETRSERVERTRUSTPASSWORDSGET(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_DSRGETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_NETRGETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_LogonSamLogonWithFlags(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *computer_name, struct netr_Authenticator *credential, struct netr_Authenticator *return_authenticator, uint16_t logon_level, union netr_LogonLevel logon, uint16_t validation_level, union netr_Validation *validation, uint8_t *authoritative, uint32_t *flags);
-NTSTATUS rpccli_netr_NETRSERVERGETTRUSTINFO(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
+NTSTATUS rpccli_netr_LogonUasLogon(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  const char *server_name,
+                                  const char *account_name,
+                                  const char *workstation,
+                                  struct netr_UasInfo *info,
+                                  WERROR *werror);
+NTSTATUS rpccli_netr_LogonUasLogoff(struct rpc_pipe_client *cli,
+                                   TALLOC_CTX *mem_ctx,
+                                   const char *server_name,
+                                   const char *account_name,
+                                   const char *workstation,
+                                   struct netr_UasLogoffInfo *info,
+                                   WERROR *werror);
+NTSTATUS rpccli_netr_LogonSamLogon(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  const char *server_name,
+                                  const char *computer_name,
+                                  struct netr_Authenticator *credential,
+                                  struct netr_Authenticator *return_authenticator,
+                                  uint16_t logon_level,
+                                  union netr_LogonLevel logon,
+                                  uint16_t validation_level,
+                                  union netr_Validation *validation,
+                                  uint8_t *authoritative);
+NTSTATUS rpccli_netr_LogonSamLogoff(struct rpc_pipe_client *cli,
+                                   TALLOC_CTX *mem_ctx,
+                                   const char *server_name,
+                                   const char *computer_name,
+                                   struct netr_Authenticator *credential,
+                                   struct netr_Authenticator *return_authenticator,
+                                   uint16_t logon_level,
+                                   union netr_LogonLevel logon);
+NTSTATUS rpccli_netr_ServerReqChallenge(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       const char *server_name,
+                                       const char *computer_name,
+                                       struct netr_Credential *credentials);
+NTSTATUS rpccli_netr_ServerAuthenticate(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       const char *server_name,
+                                       const char *account_name,
+                                       enum netr_SchannelType secure_channel_type,
+                                       const char *computer_name,
+                                       struct netr_Credential *credentials);
+NTSTATUS rpccli_netr_ServerPasswordSet(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      const char *server_name,
+                                      const char *account_name,
+                                      enum netr_SchannelType secure_channel_type,
+                                      const char *computer_name,
+                                      struct netr_Authenticator credential,
+                                      struct samr_Password new_password,
+                                      struct netr_Authenticator *return_authenticator);
+NTSTATUS rpccli_netr_DatabaseDeltas(struct rpc_pipe_client *cli,
+                                   TALLOC_CTX *mem_ctx,
+                                   const char *logon_server,
+                                   const char *computername,
+                                   struct netr_Authenticator credential,
+                                   struct netr_Authenticator *return_authenticator,
+                                   enum netr_SamDatabaseID database_id,
+                                   uint64_t *sequence_num,
+                                   uint32_t preferredmaximumlength,
+                                   struct netr_DELTA_ENUM_ARRAY *delta_enum_array);
+NTSTATUS rpccli_netr_DatabaseSync(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 const char *logon_server,
+                                 const char *computername,
+                                 struct netr_Authenticator credential,
+                                 struct netr_Authenticator *return_authenticator,
+                                 enum netr_SamDatabaseID database_id,
+                                 uint32_t *sync_context,
+                                 uint32_t preferredmaximumlength,
+                                 struct netr_DELTA_ENUM_ARRAY *delta_enum_array);
+NTSTATUS rpccli_netr_AccountDeltas(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  const char *logon_server,
+                                  const char *computername,
+                                  struct netr_Authenticator credential,
+                                  struct netr_Authenticator *return_authenticator,
+                                  struct netr_UAS_INFO_0 uas,
+                                  uint32_t count,
+                                  uint32_t level,
+                                  uint32_t buffersize,
+                                  struct netr_AccountBuffer *buffer,
+                                  uint32_t *count_returned,
+                                  uint32_t *total_entries,
+                                  struct netr_UAS_INFO_0 *recordid);
+NTSTATUS rpccli_netr_AccountSync(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                const char *logon_server,
+                                const char *computername,
+                                struct netr_Authenticator credential,
+                                struct netr_Authenticator *return_authenticator,
+                                uint32_t reference,
+                                uint32_t level,
+                                uint32_t buffersize,
+                                struct netr_AccountBuffer *buffer,
+                                uint32_t *count_returned,
+                                uint32_t *total_entries,
+                                uint32_t *next_reference,
+                                struct netr_UAS_INFO_0 *recordid);
+NTSTATUS rpccli_netr_GetDcName(struct rpc_pipe_client *cli,
+                              TALLOC_CTX *mem_ctx,
+                              const char *logon_server,
+                              const char *domainname,
+                              const char **dcname);
+NTSTATUS rpccli_netr_LogonControl(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 const char *logon_server,
+                                 enum netr_LogonControlCode function_code,
+                                 uint32_t level,
+                                 union netr_CONTROL_QUERY_INFORMATION *info,
+                                 WERROR *werror);
+NTSTATUS rpccli_netr_GetAnyDCName(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 const char *logon_server,
+                                 const char *domainname,
+                                 const char **dcname,
+                                 WERROR *werror);
+NTSTATUS rpccli_netr_LogonControl2(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  const char *logon_server,
+                                  uint32_t function_code,
+                                  uint32_t level,
+                                  union netr_CONTROL_DATA_INFORMATION data,
+                                  union netr_CONTROL_QUERY_INFORMATION *query,
+                                  WERROR *werror);
+NTSTATUS rpccli_netr_ServerAuthenticate2(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        const char *server_name,
+                                        const char *account_name,
+                                        enum netr_SchannelType secure_channel_type,
+                                        const char *computer_name,
+                                        struct netr_Credential *credentials,
+                                        uint32_t *negotiate_flags);
+NTSTATUS rpccli_netr_DatabaseSync2(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  const char *logon_server,
+                                  const char *computername,
+                                  struct netr_Authenticator credential,
+                                  struct netr_Authenticator *return_authenticator,
+                                  enum netr_SamDatabaseID database_id,
+                                  uint16_t restart_state,
+                                  uint32_t *sync_context,
+                                  uint32_t preferredmaximumlength,
+                                  struct netr_DELTA_ENUM_ARRAY *delta_enum_array);
+NTSTATUS rpccli_netr_DatabaseRedo(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 const char *logon_server,
+                                 const char *computername,
+                                 struct netr_Authenticator credential,
+                                 struct netr_Authenticator *return_authenticator,
+                                 uint8_t *change_log_entry,
+                                 uint32_t change_log_entry_size,
+                                 struct netr_DELTA_ENUM_ARRAY *delta_enum_array);
+NTSTATUS rpccli_netr_LogonControl2Ex(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx,
+                                    const char *logon_server,
+                                    uint32_t function_code,
+                                    uint32_t level,
+                                    union netr_CONTROL_DATA_INFORMATION data,
+                                    union netr_CONTROL_QUERY_INFORMATION *query,
+                                    WERROR *werror);
+NTSTATUS rpccli_netr_NETRENUMERATETRUSTEDDOMAINS(struct rpc_pipe_client *cli,
+                                                TALLOC_CTX *mem_ctx,
+                                                WERROR *werror);
+NTSTATUS rpccli_netr_DsRGetDCName(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 const char *server_unc,
+                                 const char *domain_name,
+                                 struct GUID *domain_guid,
+                                 struct GUID *site_guid,
+                                 uint32_t flags,
+                                 struct netr_DsRGetDCNameInfo *info,
+                                 WERROR *werror);
+NTSTATUS rpccli_netr_NETRLOGONDUMMYROUTINE1(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           WERROR *werror);
+NTSTATUS rpccli_netr_NETRLOGONSETSERVICEBITS(struct rpc_pipe_client *cli,
+                                            TALLOC_CTX *mem_ctx,
+                                            WERROR *werror);
+NTSTATUS rpccli_netr_NETRLOGONGETTRUSTRID(struct rpc_pipe_client *cli,
+                                         TALLOC_CTX *mem_ctx,
+                                         WERROR *werror);
+NTSTATUS rpccli_netr_NETRLOGONCOMPUTESERVERDIGEST(struct rpc_pipe_client *cli,
+                                                 TALLOC_CTX *mem_ctx,
+                                                 WERROR *werror);
+NTSTATUS rpccli_netr_NETRLOGONCOMPUTECLIENTDIGEST(struct rpc_pipe_client *cli,
+                                                 TALLOC_CTX *mem_ctx,
+                                                 WERROR *werror);
+NTSTATUS rpccli_netr_ServerAuthenticate3(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        const char *server_name,
+                                        const char *account_name,
+                                        enum netr_SchannelType secure_channel_type,
+                                        const char *computer_name,
+                                        struct netr_Credential *credentials,
+                                        uint32_t *negotiate_flags,
+                                        uint32_t *rid);
+NTSTATUS rpccli_netr_DsRGetDCNameEx(struct rpc_pipe_client *cli,
+                                   TALLOC_CTX *mem_ctx,
+                                   const char *server_unc,
+                                   const char *domain_name,
+                                   struct GUID *domain_guid,
+                                   const char *site_name,
+                                   uint32_t flags,
+                                   struct netr_DsRGetDCNameInfo *info,
+                                   WERROR *werror);
+NTSTATUS rpccli_netr_DsRGetSiteName(struct rpc_pipe_client *cli,
+                                   TALLOC_CTX *mem_ctx,
+                                   const char *computer_name,
+                                   const char **site,
+                                   WERROR *werror);
+NTSTATUS rpccli_netr_LogonGetDomainInfo(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       const char *server_name,
+                                       const char *computer_name,
+                                       struct netr_Authenticator *credential,
+                                       struct netr_Authenticator *return_authenticator,
+                                       uint32_t level,
+                                       union netr_DomainQuery query,
+                                       union netr_DomainInfo *info);
+NTSTATUS rpccli_netr_ServerPasswordSet2(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       const char *server_name,
+                                       const char *account_name,
+                                       enum netr_SchannelType secure_channel_type,
+                                       const char *computer_name,
+                                       struct netr_Authenticator credential,
+                                       struct netr_CryptPassword new_password,
+                                       struct netr_Authenticator *return_authenticator);
+NTSTATUS rpccli_netr_NETRSERVERPASSWORDGET(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx,
+                                          WERROR *werror);
+NTSTATUS rpccli_netr_NETRLOGONSENDTOSAM(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       WERROR *werror);
+NTSTATUS rpccli_netr_DSRADDRESSTOSITENAMESW(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           WERROR *werror);
+NTSTATUS rpccli_netr_DsRGetDCNameEx2(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx,
+                                    const char *server_unc,
+                                    const char *client_account,
+                                    uint32_t mask,
+                                    const char *domain_name,
+                                    struct GUID *domain_guid,
+                                    const char *site_name,
+                                    uint32_t flags,
+                                    struct netr_DsRGetDCNameInfo *info,
+                                    WERROR *werror);
+NTSTATUS rpccli_netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(struct rpc_pipe_client *cli,
+                                                        TALLOC_CTX *mem_ctx,
+                                                        WERROR *werror);
+NTSTATUS rpccli_netr_NETRENUMERATETRUSTEDDOMAINSEX(struct rpc_pipe_client *cli,
+                                                  TALLOC_CTX *mem_ctx,
+                                                  WERROR *werror);
+NTSTATUS rpccli_netr_DSRADDRESSTOSITENAMESEXW(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             WERROR *werror);
+NTSTATUS rpccli_netr_DSRGETDCSITECOVERAGEW(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx,
+                                          WERROR *werror);
+NTSTATUS rpccli_netr_LogonSamLogonEx(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx,
+                                    const char *server_name,
+                                    const char *computer_name,
+                                    uint16_t logon_level,
+                                    union netr_LogonLevel logon,
+                                    uint16_t validation_level,
+                                    union netr_Validation *validation,
+                                    uint8_t *authoritative,
+                                    uint32_t *flags);
+NTSTATUS rpccli_netr_DsrEnumerateDomainTrusts(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             const char *server_name,
+                                             uint32_t trust_flags,
+                                             uint32_t *count,
+                                             struct netr_DomainTrust **trusts,
+                                             WERROR *werror);
+NTSTATUS rpccli_netr_DSRDEREGISTERDNSHOSTRECORDS(struct rpc_pipe_client *cli,
+                                                TALLOC_CTX *mem_ctx,
+                                                WERROR *werror);
+NTSTATUS rpccli_netr_NETRSERVERTRUSTPASSWORDSGET(struct rpc_pipe_client *cli,
+                                                TALLOC_CTX *mem_ctx,
+                                                WERROR *werror);
+NTSTATUS rpccli_netr_DSRGETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
+                                                 TALLOC_CTX *mem_ctx,
+                                                 WERROR *werror);
+NTSTATUS rpccli_netr_NETRGETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
+                                                  TALLOC_CTX *mem_ctx,
+                                                  WERROR *werror);
+NTSTATUS rpccli_netr_LogonSamLogonWithFlags(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           const char *server_name,
+                                           const char *computer_name,
+                                           struct netr_Authenticator *credential,
+                                           struct netr_Authenticator *return_authenticator,
+                                           uint16_t logon_level,
+                                           union netr_LogonLevel logon,
+                                           uint16_t validation_level,
+                                           union netr_Validation *validation,
+                                           uint8_t *authoritative,
+                                           uint32_t *flags);
+NTSTATUS rpccli_netr_NETRSERVERGETTRUSTINFO(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           WERROR *werror);
 #endif /* __CLI_NETLOGON__ */
index 9353390e968c5be1349f88e9cfefb3ed6c23144f..2b1d050a145e340b81ae467b38ec3560307a4106 100644 (file)
@@ -6,7 +6,15 @@
 #include "includes.h"
 #include "librpc/gen_ndr/cli_srvsvc.h"
 
-NTSTATUS rpccli_srvsvc_NetCharDevEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t *level, union srvsvc_NetCharDevCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetCharDevEnum(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     const char *server_unc,
+                                     uint32_t *level,
+                                     union srvsvc_NetCharDevCtr *ctr,
+                                     uint32_t max_buffer,
+                                     uint32_t *totalentries,
+                                     uint32_t *resume_handle,
+                                     WERROR *werror)
 {
        struct srvsvc_NetCharDevEnum r;
        NTSTATUS status;
@@ -18,17 +26,24 @@ NTSTATUS rpccli_srvsvc_NetCharDevEnum(struct rpc_pipe_client *cli, TALLOC_CTX *m
        r.in.max_buffer = max_buffer;
        r.in.resume_handle = resume_handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevEnum, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETCHARDEVENUM, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETCHARDEVENUM,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevEnum, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -50,7 +65,13 @@ NTSTATUS rpccli_srvsvc_NetCharDevEnum(struct rpc_pipe_client *cli, TALLOC_CTX *m
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetCharDevGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *device_name, uint32_t level, union srvsvc_NetCharDevInfo *info, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetCharDevGetInfo(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        const char *server_unc,
+                                        const char *device_name,
+                                        uint32_t level,
+                                        union srvsvc_NetCharDevInfo *info,
+                                        WERROR *werror)
 {
        struct srvsvc_NetCharDevGetInfo r;
        NTSTATUS status;
@@ -60,17 +81,24 @@ NTSTATUS rpccli_srvsvc_NetCharDevGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX
        r.in.device_name = device_name;
        r.in.level = level;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevGetInfo, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETCHARDEVGETINFO, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETCHARDEVGETINFO,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevGetInfo, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -87,7 +115,12 @@ NTSTATUS rpccli_srvsvc_NetCharDevGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetCharDevControl(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *device_name, uint32_t opcode, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetCharDevControl(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        const char *server_unc,
+                                        const char *device_name,
+                                        uint32_t opcode,
+                                        WERROR *werror)
 {
        struct srvsvc_NetCharDevControl r;
        NTSTATUS status;
@@ -97,17 +130,24 @@ NTSTATUS rpccli_srvsvc_NetCharDevControl(struct rpc_pipe_client *cli, TALLOC_CTX
        r.in.device_name = device_name;
        r.in.opcode = opcode;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevControl, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETCHARDEVCONTROL, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETCHARDEVCONTROL,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevControl, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -123,7 +163,16 @@ NTSTATUS rpccli_srvsvc_NetCharDevControl(struct rpc_pipe_client *cli, TALLOC_CTX
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetCharDevQEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *user, uint32_t *level, union srvsvc_NetCharDevQCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetCharDevQEnum(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      const char *server_unc,
+                                      const char *user,
+                                      uint32_t *level,
+                                      union srvsvc_NetCharDevQCtr *ctr,
+                                      uint32_t max_buffer,
+                                      uint32_t *totalentries,
+                                      uint32_t *resume_handle,
+                                      WERROR *werror)
 {
        struct srvsvc_NetCharDevQEnum r;
        NTSTATUS status;
@@ -136,17 +185,24 @@ NTSTATUS rpccli_srvsvc_NetCharDevQEnum(struct rpc_pipe_client *cli, TALLOC_CTX *
        r.in.max_buffer = max_buffer;
        r.in.resume_handle = resume_handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQEnum, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETCHARDEVQENUM, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETCHARDEVQENUM,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQEnum, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -168,7 +224,14 @@ NTSTATUS rpccli_srvsvc_NetCharDevQEnum(struct rpc_pipe_client *cli, TALLOC_CTX *
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetCharDevQGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *queue_name, const char *user, uint32_t level, union srvsvc_NetCharDevQInfo *info, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetCharDevQGetInfo(struct rpc_pipe_client *cli,
+                                         TALLOC_CTX *mem_ctx,
+                                         const char *server_unc,
+                                         const char *queue_name,
+                                         const char *user,
+                                         uint32_t level,
+                                         union srvsvc_NetCharDevQInfo *info,
+                                         WERROR *werror)
 {
        struct srvsvc_NetCharDevQGetInfo r;
        NTSTATUS status;
@@ -179,17 +242,24 @@ NTSTATUS rpccli_srvsvc_NetCharDevQGetInfo(struct rpc_pipe_client *cli, TALLOC_CT
        r.in.user = user;
        r.in.level = level;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQGetInfo, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETCHARDEVQGETINFO, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETCHARDEVQGETINFO,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQGetInfo, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -206,7 +276,14 @@ NTSTATUS rpccli_srvsvc_NetCharDevQGetInfo(struct rpc_pipe_client *cli, TALLOC_CT
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetCharDevQSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *queue_name, uint32_t level, union srvsvc_NetCharDevQInfo info, uint32_t *parm_error, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetCharDevQSetInfo(struct rpc_pipe_client *cli,
+                                         TALLOC_CTX *mem_ctx,
+                                         const char *server_unc,
+                                         const char *queue_name,
+                                         uint32_t level,
+                                         union srvsvc_NetCharDevQInfo info,
+                                         uint32_t *parm_error,
+                                         WERROR *werror)
 {
        struct srvsvc_NetCharDevQSetInfo r;
        NTSTATUS status;
@@ -218,17 +295,24 @@ NTSTATUS rpccli_srvsvc_NetCharDevQSetInfo(struct rpc_pipe_client *cli, TALLOC_CT
        r.in.info = info;
        r.in.parm_error = parm_error;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQSetInfo, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETCHARDEVQSETINFO, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETCHARDEVQSETINFO,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQSetInfo, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -247,7 +331,11 @@ NTSTATUS rpccli_srvsvc_NetCharDevQSetInfo(struct rpc_pipe_client *cli, TALLOC_CT
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetCharDevQPurge(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *queue_name, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetCharDevQPurge(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       const char *server_unc,
+                                       const char *queue_name,
+                                       WERROR *werror)
 {
        struct srvsvc_NetCharDevQPurge r;
        NTSTATUS status;
@@ -256,17 +344,24 @@ NTSTATUS rpccli_srvsvc_NetCharDevQPurge(struct rpc_pipe_client *cli, TALLOC_CTX
        r.in.server_unc = server_unc;
        r.in.queue_name = queue_name;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQPurge, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETCHARDEVQPURGE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETCHARDEVQPURGE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQPurge, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -282,7 +377,12 @@ NTSTATUS rpccli_srvsvc_NetCharDevQPurge(struct rpc_pipe_client *cli, TALLOC_CTX
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetCharDevQPurgeSelf(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *queue_name, const char *computer_name, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetCharDevQPurgeSelf(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           const char *server_unc,
+                                           const char *queue_name,
+                                           const char *computer_name,
+                                           WERROR *werror)
 {
        struct srvsvc_NetCharDevQPurgeSelf r;
        NTSTATUS status;
@@ -292,17 +392,24 @@ NTSTATUS rpccli_srvsvc_NetCharDevQPurgeSelf(struct rpc_pipe_client *cli, TALLOC_
        r.in.queue_name = queue_name;
        r.in.computer_name = computer_name;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQPurgeSelf, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETCHARDEVQPURGESELF, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETCHARDEVQPURGESELF,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQPurgeSelf, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -318,7 +425,16 @@ NTSTATUS rpccli_srvsvc_NetCharDevQPurgeSelf(struct rpc_pipe_client *cli, TALLOC_
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetConnEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *path, uint32_t *level, union srvsvc_NetConnCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetConnEnum(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  const char *server_unc,
+                                  const char *path,
+                                  uint32_t *level,
+                                  union srvsvc_NetConnCtr *ctr,
+                                  uint32_t max_buffer,
+                                  uint32_t *totalentries,
+                                  uint32_t *resume_handle,
+                                  WERROR *werror)
 {
        struct srvsvc_NetConnEnum r;
        NTSTATUS status;
@@ -331,17 +447,24 @@ NTSTATUS rpccli_srvsvc_NetConnEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        r.in.max_buffer = max_buffer;
        r.in.resume_handle = resume_handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetConnEnum, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETCONNENUM, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETCONNENUM,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetConnEnum, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -363,7 +486,17 @@ NTSTATUS rpccli_srvsvc_NetConnEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetFileEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *path, const char *user, uint32_t *level, union srvsvc_NetFileCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetFileEnum(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  const char *server_unc,
+                                  const char *path,
+                                  const char *user,
+                                  uint32_t *level,
+                                  union srvsvc_NetFileCtr *ctr,
+                                  uint32_t max_buffer,
+                                  uint32_t *totalentries,
+                                  uint32_t *resume_handle,
+                                  WERROR *werror)
 {
        struct srvsvc_NetFileEnum r;
        NTSTATUS status;
@@ -377,17 +510,24 @@ NTSTATUS rpccli_srvsvc_NetFileEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        r.in.max_buffer = max_buffer;
        r.in.resume_handle = resume_handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetFileEnum, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETFILEENUM, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETFILEENUM,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetFileEnum, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -409,7 +549,13 @@ NTSTATUS rpccli_srvsvc_NetFileEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetFileGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t fid, uint32_t level, union srvsvc_NetFileInfo *info, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetFileGetInfo(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     const char *server_unc,
+                                     uint32_t fid,
+                                     uint32_t level,
+                                     union srvsvc_NetFileInfo *info,
+                                     WERROR *werror)
 {
        struct srvsvc_NetFileGetInfo r;
        NTSTATUS status;
@@ -419,17 +565,24 @@ NTSTATUS rpccli_srvsvc_NetFileGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *m
        r.in.fid = fid;
        r.in.level = level;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetFileGetInfo, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETFILEGETINFO, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETFILEGETINFO,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetFileGetInfo, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -446,7 +599,11 @@ NTSTATUS rpccli_srvsvc_NetFileGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *m
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetFileClose(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t fid, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetFileClose(struct rpc_pipe_client *cli,
+                                   TALLOC_CTX *mem_ctx,
+                                   const char *server_unc,
+                                   uint32_t fid,
+                                   WERROR *werror)
 {
        struct srvsvc_NetFileClose r;
        NTSTATUS status;
@@ -455,17 +612,24 @@ NTSTATUS rpccli_srvsvc_NetFileClose(struct rpc_pipe_client *cli, TALLOC_CTX *mem
        r.in.server_unc = server_unc;
        r.in.fid = fid;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetFileClose, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETFILECLOSE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETFILECLOSE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetFileClose, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -481,7 +645,17 @@ NTSTATUS rpccli_srvsvc_NetFileClose(struct rpc_pipe_client *cli, TALLOC_CTX *mem
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetSessEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *client, const char *user, uint32_t *level, union srvsvc_NetSessCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetSessEnum(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  const char *server_unc,
+                                  const char *client,
+                                  const char *user,
+                                  uint32_t *level,
+                                  union srvsvc_NetSessCtr *ctr,
+                                  uint32_t max_buffer,
+                                  uint32_t *totalentries,
+                                  uint32_t *resume_handle,
+                                  WERROR *werror)
 {
        struct srvsvc_NetSessEnum r;
        NTSTATUS status;
@@ -495,17 +669,24 @@ NTSTATUS rpccli_srvsvc_NetSessEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        r.in.max_buffer = max_buffer;
        r.in.resume_handle = resume_handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetSessEnum, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSESSENUM, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETSESSENUM,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetSessEnum, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -527,7 +708,12 @@ NTSTATUS rpccli_srvsvc_NetSessEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetSessDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *client, const char *user, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetSessDel(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 const char *server_unc,
+                                 const char *client,
+                                 const char *user,
+                                 WERROR *werror)
 {
        struct srvsvc_NetSessDel r;
        NTSTATUS status;
@@ -537,17 +723,24 @@ NTSTATUS rpccli_srvsvc_NetSessDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        r.in.client = client;
        r.in.user = user;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetSessDel, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSESSDEL, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETSESSDEL,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetSessDel, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -563,7 +756,13 @@ NTSTATUS rpccli_srvsvc_NetSessDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetShareAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t level, union srvsvc_NetShareInfo info, uint32_t *parm_error, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetShareAdd(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  const char *server_unc,
+                                  uint32_t level,
+                                  union srvsvc_NetShareInfo info,
+                                  uint32_t *parm_error,
+                                  WERROR *werror)
 {
        struct srvsvc_NetShareAdd r;
        NTSTATUS status;
@@ -574,17 +773,24 @@ NTSTATUS rpccli_srvsvc_NetShareAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        r.in.info = info;
        r.in.parm_error = parm_error;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetShareAdd, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSHAREADD, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETSHAREADD,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetShareAdd, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -603,7 +809,15 @@ NTSTATUS rpccli_srvsvc_NetShareAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetShareEnumAll(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t *level, union srvsvc_NetShareCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetShareEnumAll(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      const char *server_unc,
+                                      uint32_t *level,
+                                      union srvsvc_NetShareCtr *ctr,
+                                      uint32_t max_buffer,
+                                      uint32_t *totalentries,
+                                      uint32_t *resume_handle,
+                                      WERROR *werror)
 {
        struct srvsvc_NetShareEnumAll r;
        NTSTATUS status;
@@ -615,17 +829,24 @@ NTSTATUS rpccli_srvsvc_NetShareEnumAll(struct rpc_pipe_client *cli, TALLOC_CTX *
        r.in.max_buffer = max_buffer;
        r.in.resume_handle = resume_handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetShareEnumAll, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSHAREENUMALL, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETSHAREENUMALL,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetShareEnumAll, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -647,7 +868,13 @@ NTSTATUS rpccli_srvsvc_NetShareEnumAll(struct rpc_pipe_client *cli, TALLOC_CTX *
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetShareGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share_name, uint32_t level, union srvsvc_NetShareInfo *info, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetShareGetInfo(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      const char *server_unc,
+                                      const char *share_name,
+                                      uint32_t level,
+                                      union srvsvc_NetShareInfo *info,
+                                      WERROR *werror)
 {
        struct srvsvc_NetShareGetInfo r;
        NTSTATUS status;
@@ -657,17 +884,24 @@ NTSTATUS rpccli_srvsvc_NetShareGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *
        r.in.share_name = share_name;
        r.in.level = level;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetShareGetInfo, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSHAREGETINFO, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETSHAREGETINFO,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetShareGetInfo, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -684,7 +918,14 @@ NTSTATUS rpccli_srvsvc_NetShareGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetShareSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share_name, uint32_t level, union srvsvc_NetShareInfo info, uint32_t *parm_error, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetShareSetInfo(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      const char *server_unc,
+                                      const char *share_name,
+                                      uint32_t level,
+                                      union srvsvc_NetShareInfo info,
+                                      uint32_t *parm_error,
+                                      WERROR *werror)
 {
        struct srvsvc_NetShareSetInfo r;
        NTSTATUS status;
@@ -696,17 +937,24 @@ NTSTATUS rpccli_srvsvc_NetShareSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *
        r.in.info = info;
        r.in.parm_error = parm_error;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetShareSetInfo, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSHARESETINFO, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETSHARESETINFO,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetShareSetInfo, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -725,7 +973,12 @@ NTSTATUS rpccli_srvsvc_NetShareSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetShareDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share_name, uint32_t reserved, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetShareDel(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  const char *server_unc,
+                                  const char *share_name,
+                                  uint32_t reserved,
+                                  WERROR *werror)
 {
        struct srvsvc_NetShareDel r;
        NTSTATUS status;
@@ -735,17 +988,24 @@ NTSTATUS rpccli_srvsvc_NetShareDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        r.in.share_name = share_name;
        r.in.reserved = reserved;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetShareDel, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSHAREDEL, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETSHAREDEL,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDel, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -761,7 +1021,12 @@ NTSTATUS rpccli_srvsvc_NetShareDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetShareDelSticky(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share_name, uint32_t reserved, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetShareDelSticky(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        const char *server_unc,
+                                        const char *share_name,
+                                        uint32_t reserved,
+                                        WERROR *werror)
 {
        struct srvsvc_NetShareDelSticky r;
        NTSTATUS status;
@@ -771,17 +1036,24 @@ NTSTATUS rpccli_srvsvc_NetShareDelSticky(struct rpc_pipe_client *cli, TALLOC_CTX
        r.in.share_name = share_name;
        r.in.reserved = reserved;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetShareDelSticky, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSHAREDELSTICKY, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETSHAREDELSTICKY,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDelSticky, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -797,7 +1069,12 @@ NTSTATUS rpccli_srvsvc_NetShareDelSticky(struct rpc_pipe_client *cli, TALLOC_CTX
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetShareCheck(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *device_name, enum srvsvc_ShareType *type, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetShareCheck(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx,
+                                    const char *server_unc,
+                                    const char *device_name,
+                                    enum srvsvc_ShareType *type,
+                                    WERROR *werror)
 {
        struct srvsvc_NetShareCheck r;
        NTSTATUS status;
@@ -806,17 +1083,24 @@ NTSTATUS rpccli_srvsvc_NetShareCheck(struct rpc_pipe_client *cli, TALLOC_CTX *me
        r.in.server_unc = server_unc;
        r.in.device_name = device_name;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetShareCheck, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSHARECHECK, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETSHARECHECK,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetShareCheck, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -833,7 +1117,12 @@ NTSTATUS rpccli_srvsvc_NetShareCheck(struct rpc_pipe_client *cli, TALLOC_CTX *me
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetSrvGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t level, union srvsvc_NetSrvInfo *info, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetSrvGetInfo(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx,
+                                    const char *server_unc,
+                                    uint32_t level,
+                                    union srvsvc_NetSrvInfo *info,
+                                    WERROR *werror)
 {
        struct srvsvc_NetSrvGetInfo r;
        NTSTATUS status;
@@ -842,17 +1131,24 @@ NTSTATUS rpccli_srvsvc_NetSrvGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *me
        r.in.server_unc = server_unc;
        r.in.level = level;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetSrvGetInfo, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSRVGETINFO, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETSRVGETINFO,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetSrvGetInfo, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -869,7 +1165,13 @@ NTSTATUS rpccli_srvsvc_NetSrvGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *me
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetSrvSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t level, union srvsvc_NetSrvInfo info, uint32_t *parm_error, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetSrvSetInfo(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx,
+                                    const char *server_unc,
+                                    uint32_t level,
+                                    union srvsvc_NetSrvInfo info,
+                                    uint32_t *parm_error,
+                                    WERROR *werror)
 {
        struct srvsvc_NetSrvSetInfo r;
        NTSTATUS status;
@@ -880,17 +1182,24 @@ NTSTATUS rpccli_srvsvc_NetSrvSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *me
        r.in.info = info;
        r.in.parm_error = parm_error;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetSrvSetInfo, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSRVSETINFO, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETSRVSETINFO,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetSrvSetInfo, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -909,7 +1218,15 @@ NTSTATUS rpccli_srvsvc_NetSrvSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *me
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetDiskEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t level, struct srvsvc_NetDiskInfo *info, uint32_t maxlen, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetDiskEnum(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  const char *server_unc,
+                                  uint32_t level,
+                                  struct srvsvc_NetDiskInfo *info,
+                                  uint32_t maxlen,
+                                  uint32_t *totalentries,
+                                  uint32_t *resume_handle,
+                                  WERROR *werror)
 {
        struct srvsvc_NetDiskEnum r;
        NTSTATUS status;
@@ -921,17 +1238,24 @@ NTSTATUS rpccli_srvsvc_NetDiskEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        r.in.maxlen = maxlen;
        r.in.resume_handle = resume_handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetDiskEnum, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETDISKENUM, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETDISKENUM,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetDiskEnum, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -952,7 +1276,14 @@ NTSTATUS rpccli_srvsvc_NetDiskEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetServerStatisticsGet(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *service, uint32_t level, uint32_t options, struct srvsvc_Statistics *stats, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetServerStatisticsGet(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             const char *server_unc,
+                                             const char *service,
+                                             uint32_t level,
+                                             uint32_t options,
+                                             struct srvsvc_Statistics *stats,
+                                             WERROR *werror)
 {
        struct srvsvc_NetServerStatisticsGet r;
        NTSTATUS status;
@@ -963,17 +1294,24 @@ NTSTATUS rpccli_srvsvc_NetServerStatisticsGet(struct rpc_pipe_client *cli, TALLO
        r.in.level = level;
        r.in.options = options;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetServerStatisticsGet, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSERVERSTATISTICSGET, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETSERVERSTATISTICSGET,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetServerStatisticsGet, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -990,7 +1328,12 @@ NTSTATUS rpccli_srvsvc_NetServerStatisticsGet(struct rpc_pipe_client *cli, TALLO
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetTransportAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t level, union srvsvc_NetTransportInfo info, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetTransportAdd(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      const char *server_unc,
+                                      uint32_t level,
+                                      union srvsvc_NetTransportInfo info,
+                                      WERROR *werror)
 {
        struct srvsvc_NetTransportAdd r;
        NTSTATUS status;
@@ -1000,17 +1343,24 @@ NTSTATUS rpccli_srvsvc_NetTransportAdd(struct rpc_pipe_client *cli, TALLOC_CTX *
        r.in.level = level;
        r.in.info = info;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetTransportAdd, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETTRANSPORTADD, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETTRANSPORTADD,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetTransportAdd, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1026,7 +1376,15 @@ NTSTATUS rpccli_srvsvc_NetTransportAdd(struct rpc_pipe_client *cli, TALLOC_CTX *
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetTransportEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t *level, union srvsvc_NetTransportCtr *transports, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetTransportEnum(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       const char *server_unc,
+                                       uint32_t *level,
+                                       union srvsvc_NetTransportCtr *transports,
+                                       uint32_t max_buffer,
+                                       uint32_t *totalentries,
+                                       uint32_t *resume_handle,
+                                       WERROR *werror)
 {
        struct srvsvc_NetTransportEnum r;
        NTSTATUS status;
@@ -1038,17 +1396,24 @@ NTSTATUS rpccli_srvsvc_NetTransportEnum(struct rpc_pipe_client *cli, TALLOC_CTX
        r.in.max_buffer = max_buffer;
        r.in.resume_handle = resume_handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetTransportEnum, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETTRANSPORTENUM, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETTRANSPORTENUM,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetTransportEnum, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1070,7 +1435,12 @@ NTSTATUS rpccli_srvsvc_NetTransportEnum(struct rpc_pipe_client *cli, TALLOC_CTX
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetTransportDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t unknown, struct srvsvc_NetTransportInfo0 transport, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetTransportDel(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      const char *server_unc,
+                                      uint32_t unknown,
+                                      struct srvsvc_NetTransportInfo0 transport,
+                                      WERROR *werror)
 {
        struct srvsvc_NetTransportDel r;
        NTSTATUS status;
@@ -1080,17 +1450,24 @@ NTSTATUS rpccli_srvsvc_NetTransportDel(struct rpc_pipe_client *cli, TALLOC_CTX *
        r.in.unknown = unknown;
        r.in.transport = transport;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetTransportDel, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETTRANSPORTDEL, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETTRANSPORTDEL,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetTransportDel, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1106,7 +1483,11 @@ NTSTATUS rpccli_srvsvc_NetTransportDel(struct rpc_pipe_client *cli, TALLOC_CTX *
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetRemoteTOD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, struct srvsvc_NetRemoteTODInfo *info, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetRemoteTOD(struct rpc_pipe_client *cli,
+                                   TALLOC_CTX *mem_ctx,
+                                   const char *server_unc,
+                                   struct srvsvc_NetRemoteTODInfo *info,
+                                   WERROR *werror)
 {
        struct srvsvc_NetRemoteTOD r;
        NTSTATUS status;
@@ -1114,17 +1495,24 @@ NTSTATUS rpccli_srvsvc_NetRemoteTOD(struct rpc_pipe_client *cli, TALLOC_CTX *mem
        /* In parameters */
        r.in.server_unc = server_unc;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetRemoteTOD, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETREMOTETOD, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETREMOTETOD,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetRemoteTOD, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1143,7 +1531,13 @@ NTSTATUS rpccli_srvsvc_NetRemoteTOD(struct rpc_pipe_client *cli, TALLOC_CTX *mem
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetSetServiceBits(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *transport, uint32_t servicebits, uint32_t updateimmediately, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetSetServiceBits(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        const char *server_unc,
+                                        const char *transport,
+                                        uint32_t servicebits,
+                                        uint32_t updateimmediately,
+                                        WERROR *werror)
 {
        struct srvsvc_NetSetServiceBits r;
        NTSTATUS status;
@@ -1154,17 +1548,24 @@ NTSTATUS rpccli_srvsvc_NetSetServiceBits(struct rpc_pipe_client *cli, TALLOC_CTX
        r.in.servicebits = servicebits;
        r.in.updateimmediately = updateimmediately;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetSetServiceBits, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSETSERVICEBITS, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETSETSERVICEBITS,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetSetServiceBits, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1180,7 +1581,13 @@ NTSTATUS rpccli_srvsvc_NetSetServiceBits(struct rpc_pipe_client *cli, TALLOC_CTX
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetPathType(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *path, uint32_t pathflags, uint32_t *pathtype, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetPathType(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  const char *server_unc,
+                                  const char *path,
+                                  uint32_t pathflags,
+                                  uint32_t *pathtype,
+                                  WERROR *werror)
 {
        struct srvsvc_NetPathType r;
        NTSTATUS status;
@@ -1190,17 +1597,24 @@ NTSTATUS rpccli_srvsvc_NetPathType(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        r.in.path = path;
        r.in.pathflags = pathflags;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetPathType, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETPATHTYPE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETPATHTYPE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetPathType, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1217,7 +1631,16 @@ NTSTATUS rpccli_srvsvc_NetPathType(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetPathCanonicalize(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *path, uint8_t *can_path, uint32_t maxbuf, const char *prefix, uint32_t *pathtype, uint32_t pathflags, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetPathCanonicalize(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx,
+                                          const char *server_unc,
+                                          const char *path,
+                                          uint8_t *can_path,
+                                          uint32_t maxbuf,
+                                          const char *prefix,
+                                          uint32_t *pathtype,
+                                          uint32_t pathflags,
+                                          WERROR *werror)
 {
        struct srvsvc_NetPathCanonicalize r;
        NTSTATUS status;
@@ -1230,17 +1653,24 @@ NTSTATUS rpccli_srvsvc_NetPathCanonicalize(struct rpc_pipe_client *cli, TALLOC_C
        r.in.pathtype = pathtype;
        r.in.pathflags = pathflags;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetPathCanonicalize, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETPATHCANONICALIZE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETPATHCANONICALIZE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetPathCanonicalize, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1258,7 +1688,14 @@ NTSTATUS rpccli_srvsvc_NetPathCanonicalize(struct rpc_pipe_client *cli, TALLOC_C
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetPathCompare(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *path1, const char *path2, uint32_t pathtype, uint32_t pathflags, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetPathCompare(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     const char *server_unc,
+                                     const char *path1,
+                                     const char *path2,
+                                     uint32_t pathtype,
+                                     uint32_t pathflags,
+                                     WERROR *werror)
 {
        struct srvsvc_NetPathCompare r;
        NTSTATUS status;
@@ -1270,17 +1707,24 @@ NTSTATUS rpccli_srvsvc_NetPathCompare(struct rpc_pipe_client *cli, TALLOC_CTX *m
        r.in.pathtype = pathtype;
        r.in.pathflags = pathflags;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetPathCompare, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETPATHCOMPARE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETPATHCOMPARE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetPathCompare, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1296,7 +1740,13 @@ NTSTATUS rpccli_srvsvc_NetPathCompare(struct rpc_pipe_client *cli, TALLOC_CTX *m
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetNameValidate(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *name, uint32_t name_type, uint32_t flags, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetNameValidate(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      const char *server_unc,
+                                      const char *name,
+                                      uint32_t name_type,
+                                      uint32_t flags,
+                                      WERROR *werror)
 {
        struct srvsvc_NetNameValidate r;
        NTSTATUS status;
@@ -1307,17 +1757,24 @@ NTSTATUS rpccli_srvsvc_NetNameValidate(struct rpc_pipe_client *cli, TALLOC_CTX *
        r.in.name_type = name_type;
        r.in.flags = flags;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetNameValidate, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETNAMEVALIDATE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETNAMEVALIDATE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetNameValidate, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1333,24 +1790,33 @@ NTSTATUS rpccli_srvsvc_NetNameValidate(struct rpc_pipe_client *cli, TALLOC_CTX *
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NETRPRNAMECANONICALIZE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NETRPRNAMECANONICALIZE(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             WERROR *werror)
 {
        struct srvsvc_NETRPRNAMECANONICALIZE r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NETRPRNAMECANONICALIZE, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETRPRNAMECANONICALIZE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETRPRNAMECANONICALIZE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NETRPRNAMECANONICALIZE, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1366,7 +1832,14 @@ NTSTATUS rpccli_srvsvc_NETRPRNAMECANONICALIZE(struct rpc_pipe_client *cli, TALLO
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetPRNameCompare(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *name1, const char *name2, uint32_t name_type, uint32_t flags, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetPRNameCompare(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       const char *server_unc,
+                                       const char *name1,
+                                       const char *name2,
+                                       uint32_t name_type,
+                                       uint32_t flags,
+                                       WERROR *werror)
 {
        struct srvsvc_NetPRNameCompare r;
        NTSTATUS status;
@@ -1378,17 +1851,24 @@ NTSTATUS rpccli_srvsvc_NetPRNameCompare(struct rpc_pipe_client *cli, TALLOC_CTX
        r.in.name_type = name_type;
        r.in.flags = flags;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetPRNameCompare, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETPRNAMECOMPARE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETPRNAMECOMPARE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetPRNameCompare, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1404,7 +1884,15 @@ NTSTATUS rpccli_srvsvc_NetPRNameCompare(struct rpc_pipe_client *cli, TALLOC_CTX
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetShareEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t *level, union srvsvc_NetShareCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetShareEnum(struct rpc_pipe_client *cli,
+                                   TALLOC_CTX *mem_ctx,
+                                   const char *server_unc,
+                                   uint32_t *level,
+                                   union srvsvc_NetShareCtr *ctr,
+                                   uint32_t max_buffer,
+                                   uint32_t *totalentries,
+                                   uint32_t *resume_handle,
+                                   WERROR *werror)
 {
        struct srvsvc_NetShareEnum r;
        NTSTATUS status;
@@ -1416,17 +1904,24 @@ NTSTATUS rpccli_srvsvc_NetShareEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem
        r.in.max_buffer = max_buffer;
        r.in.resume_handle = resume_handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetShareEnum, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSHAREENUM, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETSHAREENUM,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetShareEnum, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1448,7 +1943,13 @@ NTSTATUS rpccli_srvsvc_NetShareEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetShareDelStart(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share, uint32_t reserved, struct policy_handle *hnd, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetShareDelStart(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       const char *server_unc,
+                                       const char *share,
+                                       uint32_t reserved,
+                                       struct policy_handle *hnd,
+                                       WERROR *werror)
 {
        struct srvsvc_NetShareDelStart r;
        NTSTATUS status;
@@ -1458,17 +1959,24 @@ NTSTATUS rpccli_srvsvc_NetShareDelStart(struct rpc_pipe_client *cli, TALLOC_CTX
        r.in.share = share;
        r.in.reserved = reserved;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetShareDelStart, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSHAREDELSTART, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETSHAREDELSTART,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDelStart, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1487,7 +1995,10 @@ NTSTATUS rpccli_srvsvc_NetShareDelStart(struct rpc_pipe_client *cli, TALLOC_CTX
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetShareDelCommit(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *hnd, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetShareDelCommit(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        struct policy_handle *hnd,
+                                        WERROR *werror)
 {
        struct srvsvc_NetShareDelCommit r;
        NTSTATUS status;
@@ -1495,17 +2006,24 @@ NTSTATUS rpccli_srvsvc_NetShareDelCommit(struct rpc_pipe_client *cli, TALLOC_CTX
        /* In parameters */
        r.in.hnd = hnd;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetShareDelCommit, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSHAREDELCOMMIT, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETSHAREDELCOMMIT,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDelCommit, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1524,7 +2042,14 @@ NTSTATUS rpccli_srvsvc_NetShareDelCommit(struct rpc_pipe_client *cli, TALLOC_CTX
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetGetFileSecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share, const char *file, uint32_t securityinformation, struct sec_desc_buf *sd_buf, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetGetFileSecurity(struct rpc_pipe_client *cli,
+                                         TALLOC_CTX *mem_ctx,
+                                         const char *server_unc,
+                                         const char *share,
+                                         const char *file,
+                                         uint32_t securityinformation,
+                                         struct sec_desc_buf *sd_buf,
+                                         WERROR *werror)
 {
        struct srvsvc_NetGetFileSecurity r;
        NTSTATUS status;
@@ -1535,17 +2060,24 @@ NTSTATUS rpccli_srvsvc_NetGetFileSecurity(struct rpc_pipe_client *cli, TALLOC_CT
        r.in.file = file;
        r.in.securityinformation = securityinformation;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetGetFileSecurity, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETGETFILESECURITY, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETGETFILESECURITY,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetGetFileSecurity, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1564,7 +2096,14 @@ NTSTATUS rpccli_srvsvc_NetGetFileSecurity(struct rpc_pipe_client *cli, TALLOC_CT
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetSetFileSecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share, const char *file, uint32_t securityinformation, struct sec_desc_buf sd_buf, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetSetFileSecurity(struct rpc_pipe_client *cli,
+                                         TALLOC_CTX *mem_ctx,
+                                         const char *server_unc,
+                                         const char *share,
+                                         const char *file,
+                                         uint32_t securityinformation,
+                                         struct sec_desc_buf sd_buf,
+                                         WERROR *werror)
 {
        struct srvsvc_NetSetFileSecurity r;
        NTSTATUS status;
@@ -1576,17 +2115,24 @@ NTSTATUS rpccli_srvsvc_NetSetFileSecurity(struct rpc_pipe_client *cli, TALLOC_CT
        r.in.securityinformation = securityinformation;
        r.in.sd_buf = sd_buf;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetSetFileSecurity, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSETFILESECURITY, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETSETFILESECURITY,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetSetFileSecurity, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1602,7 +2148,12 @@ NTSTATUS rpccli_srvsvc_NetSetFileSecurity(struct rpc_pipe_client *cli, TALLOC_CT
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetServerTransportAddEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t level, union srvsvc_NetTransportInfo info, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetServerTransportAddEx(struct rpc_pipe_client *cli,
+                                              TALLOC_CTX *mem_ctx,
+                                              const char *server_unc,
+                                              uint32_t level,
+                                              union srvsvc_NetTransportInfo info,
+                                              WERROR *werror)
 {
        struct srvsvc_NetServerTransportAddEx r;
        NTSTATUS status;
@@ -1612,17 +2163,24 @@ NTSTATUS rpccli_srvsvc_NetServerTransportAddEx(struct rpc_pipe_client *cli, TALL
        r.in.level = level;
        r.in.info = info;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetServerTransportAddEx, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSERVERTRANSPORTADDEX, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETSERVERTRANSPORTADDEX,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetServerTransportAddEx, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1638,7 +2196,15 @@ NTSTATUS rpccli_srvsvc_NetServerTransportAddEx(struct rpc_pipe_client *cli, TALL
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetServerSetServiceBitsEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *emulated_server_unc, const char *transport, uint32_t servicebitsofinterest, uint32_t servicebits, uint32_t updateimmediately, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetServerSetServiceBitsEx(struct rpc_pipe_client *cli,
+                                                TALLOC_CTX *mem_ctx,
+                                                const char *server_unc,
+                                                const char *emulated_server_unc,
+                                                const char *transport,
+                                                uint32_t servicebitsofinterest,
+                                                uint32_t servicebits,
+                                                uint32_t updateimmediately,
+                                                WERROR *werror)
 {
        struct srvsvc_NetServerSetServiceBitsEx r;
        NTSTATUS status;
@@ -1651,17 +2217,24 @@ NTSTATUS rpccli_srvsvc_NetServerSetServiceBitsEx(struct rpc_pipe_client *cli, TA
        r.in.servicebits = servicebits;
        r.in.updateimmediately = updateimmediately;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetServerSetServiceBitsEx, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSERVERSETSERVICEBITSEX, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETSERVERSETSERVICEBITSEX,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetServerSetServiceBitsEx, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1677,24 +2250,33 @@ NTSTATUS rpccli_srvsvc_NetServerSetServiceBitsEx(struct rpc_pipe_client *cli, TA
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NETRDFSGETVERSION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NETRDFSGETVERSION(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        WERROR *werror)
 {
        struct srvsvc_NETRDFSGETVERSION r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSGETVERSION, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETRDFSGETVERSION, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETRDFSGETVERSION,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSGETVERSION, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1710,24 +2292,33 @@ NTSTATUS rpccli_srvsvc_NETRDFSGETVERSION(struct rpc_pipe_client *cli, TALLOC_CTX
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NETRDFSCREATELOCALPARTITION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NETRDFSCREATELOCALPARTITION(struct rpc_pipe_client *cli,
+                                                  TALLOC_CTX *mem_ctx,
+                                                  WERROR *werror)
 {
        struct srvsvc_NETRDFSCREATELOCALPARTITION r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSCREATELOCALPARTITION, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETRDFSCREATELOCALPARTITION, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETRDFSCREATELOCALPARTITION,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSCREATELOCALPARTITION, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1743,24 +2334,33 @@ NTSTATUS rpccli_srvsvc_NETRDFSCREATELOCALPARTITION(struct rpc_pipe_client *cli,
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NETRDFSDELETELOCALPARTITION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NETRDFSDELETELOCALPARTITION(struct rpc_pipe_client *cli,
+                                                  TALLOC_CTX *mem_ctx,
+                                                  WERROR *werror)
 {
        struct srvsvc_NETRDFSDELETELOCALPARTITION r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSDELETELOCALPARTITION, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETRDFSDELETELOCALPARTITION, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETRDFSDELETELOCALPARTITION,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSDELETELOCALPARTITION, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1776,24 +2376,33 @@ NTSTATUS rpccli_srvsvc_NETRDFSDELETELOCALPARTITION(struct rpc_pipe_client *cli,
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NETRDFSSETLOCALVOLUMESTATE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NETRDFSSETLOCALVOLUMESTATE(struct rpc_pipe_client *cli,
+                                                 TALLOC_CTX *mem_ctx,
+                                                 WERROR *werror)
 {
        struct srvsvc_NETRDFSSETLOCALVOLUMESTATE r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSSETLOCALVOLUMESTATE, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETRDFSSETLOCALVOLUMESTATE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETRDFSSETLOCALVOLUMESTATE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSSETLOCALVOLUMESTATE, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1809,24 +2418,33 @@ NTSTATUS rpccli_srvsvc_NETRDFSSETLOCALVOLUMESTATE(struct rpc_pipe_client *cli, T
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NETRDFSSETSERVERINFO(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NETRDFSSETSERVERINFO(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           WERROR *werror)
 {
        struct srvsvc_NETRDFSSETSERVERINFO r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSSETSERVERINFO, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETRDFSSETSERVERINFO, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETRDFSSETSERVERINFO,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSSETSERVERINFO, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1842,24 +2460,33 @@ NTSTATUS rpccli_srvsvc_NETRDFSSETSERVERINFO(struct rpc_pipe_client *cli, TALLOC_
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NETRDFSCREATEEXITPOINT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NETRDFSCREATEEXITPOINT(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             WERROR *werror)
 {
        struct srvsvc_NETRDFSCREATEEXITPOINT r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSCREATEEXITPOINT, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETRDFSCREATEEXITPOINT, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETRDFSCREATEEXITPOINT,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSCREATEEXITPOINT, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1875,24 +2502,33 @@ NTSTATUS rpccli_srvsvc_NETRDFSCREATEEXITPOINT(struct rpc_pipe_client *cli, TALLO
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NETRDFSDELETEEXITPOINT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NETRDFSDELETEEXITPOINT(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             WERROR *werror)
 {
        struct srvsvc_NETRDFSDELETEEXITPOINT r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSDELETEEXITPOINT, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETRDFSDELETEEXITPOINT, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETRDFSDELETEEXITPOINT,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSDELETEEXITPOINT, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1908,24 +2544,33 @@ NTSTATUS rpccli_srvsvc_NETRDFSDELETEEXITPOINT(struct rpc_pipe_client *cli, TALLO
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NETRDFSMODIFYPREFIX(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NETRDFSMODIFYPREFIX(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx,
+                                          WERROR *werror)
 {
        struct srvsvc_NETRDFSMODIFYPREFIX r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSMODIFYPREFIX, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETRDFSMODIFYPREFIX, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETRDFSMODIFYPREFIX,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSMODIFYPREFIX, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1941,24 +2586,33 @@ NTSTATUS rpccli_srvsvc_NETRDFSMODIFYPREFIX(struct rpc_pipe_client *cli, TALLOC_C
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NETRDFSFIXLOCALVOLUME(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NETRDFSFIXLOCALVOLUME(struct rpc_pipe_client *cli,
+                                            TALLOC_CTX *mem_ctx,
+                                            WERROR *werror)
 {
        struct srvsvc_NETRDFSFIXLOCALVOLUME r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSFIXLOCALVOLUME, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETRDFSFIXLOCALVOLUME, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETRDFSFIXLOCALVOLUME,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSFIXLOCALVOLUME, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1974,24 +2628,33 @@ NTSTATUS rpccli_srvsvc_NETRDFSFIXLOCALVOLUME(struct rpc_pipe_client *cli, TALLOC
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NETRDFSMANAGERREPORTSITEINFO(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NETRDFSMANAGERREPORTSITEINFO(struct rpc_pipe_client *cli,
+                                                   TALLOC_CTX *mem_ctx,
+                                                   WERROR *werror)
 {
        struct srvsvc_NETRDFSMANAGERREPORTSITEINFO r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSMANAGERREPORTSITEINFO, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETRDFSMANAGERREPORTSITEINFO, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETRDFSMANAGERREPORTSITEINFO,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSMANAGERREPORTSITEINFO, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -2007,24 +2670,33 @@ NTSTATUS rpccli_srvsvc_NETRDFSMANAGERREPORTSITEINFO(struct rpc_pipe_client *cli,
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NETRSERVERTRANSPORTDELEX(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NETRSERVERTRANSPORTDELEX(struct rpc_pipe_client *cli,
+                                               TALLOC_CTX *mem_ctx,
+                                               WERROR *werror)
 {
        struct srvsvc_NETRSERVERTRANSPORTDELEX r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NETRSERVERTRANSPORTDELEX, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETRSERVERTRANSPORTDELEX, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SRVSVC,
+                               &ndr_table_srvsvc,
+                               NDR_SRVSVC_NETRSERVERTRANSPORTDELEX,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NETRSERVERTRANSPORTDELEX, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
index 7f9385b9857a7378c4ae478cd5acf215e2e9585b..eb19db37bd8d3d44b4d761fef56af284a7ec121f 100644 (file)
 #include "librpc/gen_ndr/ndr_srvsvc.h"
 #ifndef __CLI_SRVSVC__
 #define __CLI_SRVSVC__
-NTSTATUS rpccli_srvsvc_NetCharDevEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t *level, union srvsvc_NetCharDevCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetCharDevGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *device_name, uint32_t level, union srvsvc_NetCharDevInfo *info, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetCharDevControl(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *device_name, uint32_t opcode, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetCharDevQEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *user, uint32_t *level, union srvsvc_NetCharDevQCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetCharDevQGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *queue_name, const char *user, uint32_t level, union srvsvc_NetCharDevQInfo *info, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetCharDevQSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *queue_name, uint32_t level, union srvsvc_NetCharDevQInfo info, uint32_t *parm_error, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetCharDevQPurge(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *queue_name, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetCharDevQPurgeSelf(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *queue_name, const char *computer_name, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetConnEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *path, uint32_t *level, union srvsvc_NetConnCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetFileEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *path, const char *user, uint32_t *level, union srvsvc_NetFileCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetFileGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t fid, uint32_t level, union srvsvc_NetFileInfo *info, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetFileClose(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t fid, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetSessEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *client, const char *user, uint32_t *level, union srvsvc_NetSessCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetSessDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *client, const char *user, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetShareAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t level, union srvsvc_NetShareInfo info, uint32_t *parm_error, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetShareEnumAll(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t *level, union srvsvc_NetShareCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetShareGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share_name, uint32_t level, union srvsvc_NetShareInfo *info, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetShareSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share_name, uint32_t level, union srvsvc_NetShareInfo info, uint32_t *parm_error, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetShareDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share_name, uint32_t reserved, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetShareDelSticky(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share_name, uint32_t reserved, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetShareCheck(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *device_name, enum srvsvc_ShareType *type, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetSrvGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t level, union srvsvc_NetSrvInfo *info, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetSrvSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t level, union srvsvc_NetSrvInfo info, uint32_t *parm_error, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetDiskEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t level, struct srvsvc_NetDiskInfo *info, uint32_t maxlen, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetServerStatisticsGet(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *service, uint32_t level, uint32_t options, struct srvsvc_Statistics *stats, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetTransportAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t level, union srvsvc_NetTransportInfo info, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetTransportEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t *level, union srvsvc_NetTransportCtr *transports, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetTransportDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t unknown, struct srvsvc_NetTransportInfo0 transport, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetRemoteTOD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, struct srvsvc_NetRemoteTODInfo *info, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetSetServiceBits(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *transport, uint32_t servicebits, uint32_t updateimmediately, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetPathType(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *path, uint32_t pathflags, uint32_t *pathtype, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetPathCanonicalize(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *path, uint8_t *can_path, uint32_t maxbuf, const char *prefix, uint32_t *pathtype, uint32_t pathflags, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetPathCompare(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *path1, const char *path2, uint32_t pathtype, uint32_t pathflags, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetNameValidate(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *name, uint32_t name_type, uint32_t flags, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NETRPRNAMECANONICALIZE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetPRNameCompare(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *name1, const char *name2, uint32_t name_type, uint32_t flags, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetShareEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t *level, union srvsvc_NetShareCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetShareDelStart(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share, uint32_t reserved, struct policy_handle *hnd, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetShareDelCommit(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *hnd, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetGetFileSecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share, const char *file, uint32_t securityinformation, struct sec_desc_buf *sd_buf, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetSetFileSecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share, const char *file, uint32_t securityinformation, struct sec_desc_buf sd_buf, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetServerTransportAddEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t level, union srvsvc_NetTransportInfo info, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetServerSetServiceBitsEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *emulated_server_unc, const char *transport, uint32_t servicebitsofinterest, uint32_t servicebits, uint32_t updateimmediately, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NETRDFSGETVERSION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NETRDFSCREATELOCALPARTITION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NETRDFSDELETELOCALPARTITION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NETRDFSSETLOCALVOLUMESTATE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NETRDFSSETSERVERINFO(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NETRDFSCREATEEXITPOINT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NETRDFSDELETEEXITPOINT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NETRDFSMODIFYPREFIX(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NETRDFSFIXLOCALVOLUME(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NETRDFSMANAGERREPORTSITEINFO(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NETRSERVERTRANSPORTDELEX(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetCharDevEnum(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     const char *server_unc,
+                                     uint32_t *level,
+                                     union srvsvc_NetCharDevCtr *ctr,
+                                     uint32_t max_buffer,
+                                     uint32_t *totalentries,
+                                     uint32_t *resume_handle,
+                                     WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetCharDevGetInfo(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        const char *server_unc,
+                                        const char *device_name,
+                                        uint32_t level,
+                                        union srvsvc_NetCharDevInfo *info,
+                                        WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetCharDevControl(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        const char *server_unc,
+                                        const char *device_name,
+                                        uint32_t opcode,
+                                        WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetCharDevQEnum(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      const char *server_unc,
+                                      const char *user,
+                                      uint32_t *level,
+                                      union srvsvc_NetCharDevQCtr *ctr,
+                                      uint32_t max_buffer,
+                                      uint32_t *totalentries,
+                                      uint32_t *resume_handle,
+                                      WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetCharDevQGetInfo(struct rpc_pipe_client *cli,
+                                         TALLOC_CTX *mem_ctx,
+                                         const char *server_unc,
+                                         const char *queue_name,
+                                         const char *user,
+                                         uint32_t level,
+                                         union srvsvc_NetCharDevQInfo *info,
+                                         WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetCharDevQSetInfo(struct rpc_pipe_client *cli,
+                                         TALLOC_CTX *mem_ctx,
+                                         const char *server_unc,
+                                         const char *queue_name,
+                                         uint32_t level,
+                                         union srvsvc_NetCharDevQInfo info,
+                                         uint32_t *parm_error,
+                                         WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetCharDevQPurge(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       const char *server_unc,
+                                       const char *queue_name,
+                                       WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetCharDevQPurgeSelf(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           const char *server_unc,
+                                           const char *queue_name,
+                                           const char *computer_name,
+                                           WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetConnEnum(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  const char *server_unc,
+                                  const char *path,
+                                  uint32_t *level,
+                                  union srvsvc_NetConnCtr *ctr,
+                                  uint32_t max_buffer,
+                                  uint32_t *totalentries,
+                                  uint32_t *resume_handle,
+                                  WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetFileEnum(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  const char *server_unc,
+                                  const char *path,
+                                  const char *user,
+                                  uint32_t *level,
+                                  union srvsvc_NetFileCtr *ctr,
+                                  uint32_t max_buffer,
+                                  uint32_t *totalentries,
+                                  uint32_t *resume_handle,
+                                  WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetFileGetInfo(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     const char *server_unc,
+                                     uint32_t fid,
+                                     uint32_t level,
+                                     union srvsvc_NetFileInfo *info,
+                                     WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetFileClose(struct rpc_pipe_client *cli,
+                                   TALLOC_CTX *mem_ctx,
+                                   const char *server_unc,
+                                   uint32_t fid,
+                                   WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetSessEnum(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  const char *server_unc,
+                                  const char *client,
+                                  const char *user,
+                                  uint32_t *level,
+                                  union srvsvc_NetSessCtr *ctr,
+                                  uint32_t max_buffer,
+                                  uint32_t *totalentries,
+                                  uint32_t *resume_handle,
+                                  WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetSessDel(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 const char *server_unc,
+                                 const char *client,
+                                 const char *user,
+                                 WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetShareAdd(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  const char *server_unc,
+                                  uint32_t level,
+                                  union srvsvc_NetShareInfo info,
+                                  uint32_t *parm_error,
+                                  WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetShareEnumAll(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      const char *server_unc,
+                                      uint32_t *level,
+                                      union srvsvc_NetShareCtr *ctr,
+                                      uint32_t max_buffer,
+                                      uint32_t *totalentries,
+                                      uint32_t *resume_handle,
+                                      WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetShareGetInfo(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      const char *server_unc,
+                                      const char *share_name,
+                                      uint32_t level,
+                                      union srvsvc_NetShareInfo *info,
+                                      WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetShareSetInfo(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      const char *server_unc,
+                                      const char *share_name,
+                                      uint32_t level,
+                                      union srvsvc_NetShareInfo info,
+                                      uint32_t *parm_error,
+                                      WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetShareDel(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  const char *server_unc,
+                                  const char *share_name,
+                                  uint32_t reserved,
+                                  WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetShareDelSticky(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        const char *server_unc,
+                                        const char *share_name,
+                                        uint32_t reserved,
+                                        WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetShareCheck(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx,
+                                    const char *server_unc,
+                                    const char *device_name,
+                                    enum srvsvc_ShareType *type,
+                                    WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetSrvGetInfo(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx,
+                                    const char *server_unc,
+                                    uint32_t level,
+                                    union srvsvc_NetSrvInfo *info,
+                                    WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetSrvSetInfo(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx,
+                                    const char *server_unc,
+                                    uint32_t level,
+                                    union srvsvc_NetSrvInfo info,
+                                    uint32_t *parm_error,
+                                    WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetDiskEnum(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  const char *server_unc,
+                                  uint32_t level,
+                                  struct srvsvc_NetDiskInfo *info,
+                                  uint32_t maxlen,
+                                  uint32_t *totalentries,
+                                  uint32_t *resume_handle,
+                                  WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetServerStatisticsGet(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             const char *server_unc,
+                                             const char *service,
+                                             uint32_t level,
+                                             uint32_t options,
+                                             struct srvsvc_Statistics *stats,
+                                             WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetTransportAdd(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      const char *server_unc,
+                                      uint32_t level,
+                                      union srvsvc_NetTransportInfo info,
+                                      WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetTransportEnum(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       const char *server_unc,
+                                       uint32_t *level,
+                                       union srvsvc_NetTransportCtr *transports,
+                                       uint32_t max_buffer,
+                                       uint32_t *totalentries,
+                                       uint32_t *resume_handle,
+                                       WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetTransportDel(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      const char *server_unc,
+                                      uint32_t unknown,
+                                      struct srvsvc_NetTransportInfo0 transport,
+                                      WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetRemoteTOD(struct rpc_pipe_client *cli,
+                                   TALLOC_CTX *mem_ctx,
+                                   const char *server_unc,
+                                   struct srvsvc_NetRemoteTODInfo *info,
+                                   WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetSetServiceBits(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        const char *server_unc,
+                                        const char *transport,
+                                        uint32_t servicebits,
+                                        uint32_t updateimmediately,
+                                        WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetPathType(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  const char *server_unc,
+                                  const char *path,
+                                  uint32_t pathflags,
+                                  uint32_t *pathtype,
+                                  WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetPathCanonicalize(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx,
+                                          const char *server_unc,
+                                          const char *path,
+                                          uint8_t *can_path,
+                                          uint32_t maxbuf,
+                                          const char *prefix,
+                                          uint32_t *pathtype,
+                                          uint32_t pathflags,
+                                          WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetPathCompare(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     const char *server_unc,
+                                     const char *path1,
+                                     const char *path2,
+                                     uint32_t pathtype,
+                                     uint32_t pathflags,
+                                     WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetNameValidate(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      const char *server_unc,
+                                      const char *name,
+                                      uint32_t name_type,
+                                      uint32_t flags,
+                                      WERROR *werror);
+NTSTATUS rpccli_srvsvc_NETRPRNAMECANONICALIZE(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetPRNameCompare(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       const char *server_unc,
+                                       const char *name1,
+                                       const char *name2,
+                                       uint32_t name_type,
+                                       uint32_t flags,
+                                       WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetShareEnum(struct rpc_pipe_client *cli,
+                                   TALLOC_CTX *mem_ctx,
+                                   const char *server_unc,
+                                   uint32_t *level,
+                                   union srvsvc_NetShareCtr *ctr,
+                                   uint32_t max_buffer,
+                                   uint32_t *totalentries,
+                                   uint32_t *resume_handle,
+                                   WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetShareDelStart(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       const char *server_unc,
+                                       const char *share,
+                                       uint32_t reserved,
+                                       struct policy_handle *hnd,
+                                       WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetShareDelCommit(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        struct policy_handle *hnd,
+                                        WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetGetFileSecurity(struct rpc_pipe_client *cli,
+                                         TALLOC_CTX *mem_ctx,
+                                         const char *server_unc,
+                                         const char *share,
+                                         const char *file,
+                                         uint32_t securityinformation,
+                                         struct sec_desc_buf *sd_buf,
+                                         WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetSetFileSecurity(struct rpc_pipe_client *cli,
+                                         TALLOC_CTX *mem_ctx,
+                                         const char *server_unc,
+                                         const char *share,
+                                         const char *file,
+                                         uint32_t securityinformation,
+                                         struct sec_desc_buf sd_buf,
+                                         WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetServerTransportAddEx(struct rpc_pipe_client *cli,
+                                              TALLOC_CTX *mem_ctx,
+                                              const char *server_unc,
+                                              uint32_t level,
+                                              union srvsvc_NetTransportInfo info,
+                                              WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetServerSetServiceBitsEx(struct rpc_pipe_client *cli,
+                                                TALLOC_CTX *mem_ctx,
+                                                const char *server_unc,
+                                                const char *emulated_server_unc,
+                                                const char *transport,
+                                                uint32_t servicebitsofinterest,
+                                                uint32_t servicebits,
+                                                uint32_t updateimmediately,
+                                                WERROR *werror);
+NTSTATUS rpccli_srvsvc_NETRDFSGETVERSION(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        WERROR *werror);
+NTSTATUS rpccli_srvsvc_NETRDFSCREATELOCALPARTITION(struct rpc_pipe_client *cli,
+                                                  TALLOC_CTX *mem_ctx,
+                                                  WERROR *werror);
+NTSTATUS rpccli_srvsvc_NETRDFSDELETELOCALPARTITION(struct rpc_pipe_client *cli,
+                                                  TALLOC_CTX *mem_ctx,
+                                                  WERROR *werror);
+NTSTATUS rpccli_srvsvc_NETRDFSSETLOCALVOLUMESTATE(struct rpc_pipe_client *cli,
+                                                 TALLOC_CTX *mem_ctx,
+                                                 WERROR *werror);
+NTSTATUS rpccli_srvsvc_NETRDFSSETSERVERINFO(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           WERROR *werror);
+NTSTATUS rpccli_srvsvc_NETRDFSCREATEEXITPOINT(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             WERROR *werror);
+NTSTATUS rpccli_srvsvc_NETRDFSDELETEEXITPOINT(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             WERROR *werror);
+NTSTATUS rpccli_srvsvc_NETRDFSMODIFYPREFIX(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx,
+                                          WERROR *werror);
+NTSTATUS rpccli_srvsvc_NETRDFSFIXLOCALVOLUME(struct rpc_pipe_client *cli,
+                                            TALLOC_CTX *mem_ctx,
+                                            WERROR *werror);
+NTSTATUS rpccli_srvsvc_NETRDFSMANAGERREPORTSITEINFO(struct rpc_pipe_client *cli,
+                                                   TALLOC_CTX *mem_ctx,
+                                                   WERROR *werror);
+NTSTATUS rpccli_srvsvc_NETRSERVERTRANSPORTDELEX(struct rpc_pipe_client *cli,
+                                               TALLOC_CTX *mem_ctx,
+                                               WERROR *werror);
 #endif /* __CLI_SRVSVC__ */
index 3266e0c3c5228e6734ca6f50d42e6487d7dff633..2a5d6badc60b97cd30cdd84197e91621cecceba9 100644 (file)
@@ -6,7 +6,10 @@
 #include "includes.h"
 #include "librpc/gen_ndr/cli_svcctl.h"
 
-NTSTATUS rpccli_svcctl_CloseServiceHandle(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_svcctl_CloseServiceHandle(struct rpc_pipe_client *cli,
+                                         TALLOC_CTX *mem_ctx,
+                                         struct policy_handle *handle,
+                                         WERROR *werror)
 {
        struct svcctl_CloseServiceHandle r;
        NTSTATUS status;
@@ -14,17 +17,24 @@ NTSTATUS rpccli_svcctl_CloseServiceHandle(struct rpc_pipe_client *cli, TALLOC_CT
        /* In parameters */
        r.in.handle = handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_CloseServiceHandle, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_CLOSESERVICEHANDLE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_CLOSESERVICEHANDLE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_CloseServiceHandle, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -41,7 +51,12 @@ NTSTATUS rpccli_svcctl_CloseServiceHandle(struct rpc_pipe_client *cli, TALLOC_CT
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_ControlService(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t control, struct SERVICE_STATUS *service_status, WERROR *werror)
+NTSTATUS rpccli_svcctl_ControlService(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     struct policy_handle *handle,
+                                     uint32_t control,
+                                     struct SERVICE_STATUS *service_status,
+                                     WERROR *werror)
 {
        struct svcctl_ControlService r;
        NTSTATUS status;
@@ -50,17 +65,24 @@ NTSTATUS rpccli_svcctl_ControlService(struct rpc_pipe_client *cli, TALLOC_CTX *m
        r.in.handle = handle;
        r.in.control = control;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_ControlService, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_CONTROLSERVICE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_CONTROLSERVICE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_ControlService, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -77,7 +99,10 @@ NTSTATUS rpccli_svcctl_ControlService(struct rpc_pipe_client *cli, TALLOC_CTX *m
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_DeleteService(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_svcctl_DeleteService(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx,
+                                    struct policy_handle *handle,
+                                    WERROR *werror)
 {
        struct svcctl_DeleteService r;
        NTSTATUS status;
@@ -85,17 +110,24 @@ NTSTATUS rpccli_svcctl_DeleteService(struct rpc_pipe_client *cli, TALLOC_CTX *me
        /* In parameters */
        r.in.handle = handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_DeleteService, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_DELETESERVICE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_DELETESERVICE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_DeleteService, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -111,7 +143,11 @@ NTSTATUS rpccli_svcctl_DeleteService(struct rpc_pipe_client *cli, TALLOC_CTX *me
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_LockServiceDatabase(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct policy_handle *lock, WERROR *werror)
+NTSTATUS rpccli_svcctl_LockServiceDatabase(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx,
+                                          struct policy_handle *handle,
+                                          struct policy_handle *lock,
+                                          WERROR *werror)
 {
        struct svcctl_LockServiceDatabase r;
        NTSTATUS status;
@@ -119,17 +155,24 @@ NTSTATUS rpccli_svcctl_LockServiceDatabase(struct rpc_pipe_client *cli, TALLOC_C
        /* In parameters */
        r.in.handle = handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_LockServiceDatabase, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_LOCKSERVICEDATABASE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_LOCKSERVICEDATABASE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_LockServiceDatabase, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -146,24 +189,33 @@ NTSTATUS rpccli_svcctl_LockServiceDatabase(struct rpc_pipe_client *cli, TALLOC_C
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_QueryServiceObjectSecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_svcctl_QueryServiceObjectSecurity(struct rpc_pipe_client *cli,
+                                                 TALLOC_CTX *mem_ctx,
+                                                 WERROR *werror)
 {
        struct svcctl_QueryServiceObjectSecurity r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_QueryServiceObjectSecurity, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_QUERYSERVICEOBJECTSECURITY, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_QUERYSERVICEOBJECTSECURITY,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceObjectSecurity, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -179,24 +231,33 @@ NTSTATUS rpccli_svcctl_QueryServiceObjectSecurity(struct rpc_pipe_client *cli, T
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_SetServiceObjectSecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_svcctl_SetServiceObjectSecurity(struct rpc_pipe_client *cli,
+                                               TALLOC_CTX *mem_ctx,
+                                               WERROR *werror)
 {
        struct svcctl_SetServiceObjectSecurity r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_SetServiceObjectSecurity, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_SETSERVICEOBJECTSECURITY, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_SETSERVICEOBJECTSECURITY,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_SetServiceObjectSecurity, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -212,7 +273,11 @@ NTSTATUS rpccli_svcctl_SetServiceObjectSecurity(struct rpc_pipe_client *cli, TAL
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_QueryServiceStatus(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct SERVICE_STATUS *service_status, WERROR *werror)
+NTSTATUS rpccli_svcctl_QueryServiceStatus(struct rpc_pipe_client *cli,
+                                         TALLOC_CTX *mem_ctx,
+                                         struct policy_handle *handle,
+                                         struct SERVICE_STATUS *service_status,
+                                         WERROR *werror)
 {
        struct svcctl_QueryServiceStatus r;
        NTSTATUS status;
@@ -220,17 +285,24 @@ NTSTATUS rpccli_svcctl_QueryServiceStatus(struct rpc_pipe_client *cli, TALLOC_CT
        /* In parameters */
        r.in.handle = handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_QueryServiceStatus, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_QUERYSERVICESTATUS, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_QUERYSERVICESTATUS,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceStatus, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -247,24 +319,33 @@ NTSTATUS rpccli_svcctl_QueryServiceStatus(struct rpc_pipe_client *cli, TALLOC_CT
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_SetServiceStatus(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_svcctl_SetServiceStatus(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       WERROR *werror)
 {
        struct svcctl_SetServiceStatus r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_SetServiceStatus, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_SETSERVICESTATUS, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_SETSERVICESTATUS,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_SetServiceStatus, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -280,7 +361,10 @@ NTSTATUS rpccli_svcctl_SetServiceStatus(struct rpc_pipe_client *cli, TALLOC_CTX
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_UnlockServiceDatabase(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *lock, WERROR *werror)
+NTSTATUS rpccli_svcctl_UnlockServiceDatabase(struct rpc_pipe_client *cli,
+                                            TALLOC_CTX *mem_ctx,
+                                            struct policy_handle *lock,
+                                            WERROR *werror)
 {
        struct svcctl_UnlockServiceDatabase r;
        NTSTATUS status;
@@ -288,17 +372,24 @@ NTSTATUS rpccli_svcctl_UnlockServiceDatabase(struct rpc_pipe_client *cli, TALLOC
        /* In parameters */
        r.in.lock = lock;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_UnlockServiceDatabase, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_UNLOCKSERVICEDATABASE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_UNLOCKSERVICEDATABASE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_UnlockServiceDatabase, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -315,24 +406,33 @@ NTSTATUS rpccli_svcctl_UnlockServiceDatabase(struct rpc_pipe_client *cli, TALLOC
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_NotifyBootConfigStatus(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_svcctl_NotifyBootConfigStatus(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             WERROR *werror)
 {
        struct svcctl_NotifyBootConfigStatus r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_NotifyBootConfigStatus, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_NOTIFYBOOTCONFIGSTATUS, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_NOTIFYBOOTCONFIGSTATUS,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_NotifyBootConfigStatus, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -348,7 +448,13 @@ NTSTATUS rpccli_svcctl_NotifyBootConfigStatus(struct rpc_pipe_client *cli, TALLO
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_SCSetServiceBitsW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t bits, uint32_t bitson, uint32_t immediate, WERROR *werror)
+NTSTATUS rpccli_svcctl_SCSetServiceBitsW(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        struct policy_handle *handle,
+                                        uint32_t bits,
+                                        uint32_t bitson,
+                                        uint32_t immediate,
+                                        WERROR *werror)
 {
        struct svcctl_SCSetServiceBitsW r;
        NTSTATUS status;
@@ -359,17 +465,24 @@ NTSTATUS rpccli_svcctl_SCSetServiceBitsW(struct rpc_pipe_client *cli, TALLOC_CTX
        r.in.bitson = bitson;
        r.in.immediate = immediate;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_SCSetServiceBitsW, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_SCSETSERVICEBITSW, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_SCSETSERVICEBITSW,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_SCSetServiceBitsW, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -385,7 +498,20 @@ NTSTATUS rpccli_svcctl_SCSetServiceBitsW(struct rpc_pipe_client *cli, TALLOC_CTX
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_ChangeServiceConfigW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t type, uint32_t start, uint32_t error, const char *binary_path, const char *load_order_group, uint32_t *tag_id, const char *dependencies, const char *service_start_name, const char *password, const char *display_name, WERROR *werror)
+NTSTATUS rpccli_svcctl_ChangeServiceConfigW(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           struct policy_handle *handle,
+                                           uint32_t type,
+                                           uint32_t start,
+                                           uint32_t error,
+                                           const char *binary_path,
+                                           const char *load_order_group,
+                                           uint32_t *tag_id,
+                                           const char *dependencies,
+                                           const char *service_start_name,
+                                           const char *password,
+                                           const char *display_name,
+                                           WERROR *werror)
 {
        struct svcctl_ChangeServiceConfigW r;
        NTSTATUS status;
@@ -402,17 +528,24 @@ NTSTATUS rpccli_svcctl_ChangeServiceConfigW(struct rpc_pipe_client *cli, TALLOC_
        r.in.password = password;
        r.in.display_name = display_name;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_ChangeServiceConfigW, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_CHANGESERVICECONFIGW, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_CHANGESERVICECONFIGW,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_ChangeServiceConfigW, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -429,7 +562,25 @@ NTSTATUS rpccli_svcctl_ChangeServiceConfigW(struct rpc_pipe_client *cli, TALLOC_
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_CreateServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *scmanager_handle, const char *ServiceName, const char *DisplayName, uint32_t desired_access, uint32_t type, uint32_t start_type, uint32_t error_control, const char *binary_path, const char *LoadOrderGroupKey, uint32_t *TagId, uint8_t *dependencies, uint32_t dependencies_size, const char *service_start_name, uint8_t *password, uint32_t password_size, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_svcctl_CreateServiceW(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     struct policy_handle *scmanager_handle,
+                                     const char *ServiceName,
+                                     const char *DisplayName,
+                                     uint32_t desired_access,
+                                     uint32_t type,
+                                     uint32_t start_type,
+                                     uint32_t error_control,
+                                     const char *binary_path,
+                                     const char *LoadOrderGroupKey,
+                                     uint32_t *TagId,
+                                     uint8_t *dependencies,
+                                     uint32_t dependencies_size,
+                                     const char *service_start_name,
+                                     uint8_t *password,
+                                     uint32_t password_size,
+                                     struct policy_handle *handle,
+                                     WERROR *werror)
 {
        struct svcctl_CreateServiceW r;
        NTSTATUS status;
@@ -451,17 +602,24 @@ NTSTATUS rpccli_svcctl_CreateServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *m
        r.in.password = password;
        r.in.password_size = password_size;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_CreateServiceW, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_CREATESERVICEW, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_CREATESERVICEW,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_CreateServiceW, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -481,7 +639,15 @@ NTSTATUS rpccli_svcctl_CreateServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *m
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_EnumDependentServicesW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *service, uint32_t state, struct ENUM_SERVICE_STATUS *service_status, uint32_t buf_size, uint32_t *bytes_needed, uint32_t *services_returned, WERROR *werror)
+NTSTATUS rpccli_svcctl_EnumDependentServicesW(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             struct policy_handle *service,
+                                             uint32_t state,
+                                             struct ENUM_SERVICE_STATUS *service_status,
+                                             uint32_t buf_size,
+                                             uint32_t *bytes_needed,
+                                             uint32_t *services_returned,
+                                             WERROR *werror)
 {
        struct svcctl_EnumDependentServicesW r;
        NTSTATUS status;
@@ -491,17 +657,24 @@ NTSTATUS rpccli_svcctl_EnumDependentServicesW(struct rpc_pipe_client *cli, TALLO
        r.in.state = state;
        r.in.buf_size = buf_size;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_EnumDependentServicesW, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_ENUMDEPENDENTSERVICESW, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_ENUMDEPENDENTSERVICESW,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_EnumDependentServicesW, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -522,7 +695,17 @@ NTSTATUS rpccli_svcctl_EnumDependentServicesW(struct rpc_pipe_client *cli, TALLO
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_EnumServicesStatusW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t type, uint32_t state, uint32_t buf_size, uint8_t *service, uint32_t *bytes_needed, uint32_t *services_returned, uint32_t *resume_handle, WERROR *werror)
+NTSTATUS rpccli_svcctl_EnumServicesStatusW(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx,
+                                          struct policy_handle *handle,
+                                          uint32_t type,
+                                          uint32_t state,
+                                          uint32_t buf_size,
+                                          uint8_t *service,
+                                          uint32_t *bytes_needed,
+                                          uint32_t *services_returned,
+                                          uint32_t *resume_handle,
+                                          WERROR *werror)
 {
        struct svcctl_EnumServicesStatusW r;
        NTSTATUS status;
@@ -534,17 +717,24 @@ NTSTATUS rpccli_svcctl_EnumServicesStatusW(struct rpc_pipe_client *cli, TALLOC_C
        r.in.buf_size = buf_size;
        r.in.resume_handle = resume_handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_EnumServicesStatusW, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_ENUMSERVICESSTATUSW, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_ENUMSERVICESSTATUSW,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_EnumServicesStatusW, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -566,7 +756,13 @@ NTSTATUS rpccli_svcctl_EnumServicesStatusW(struct rpc_pipe_client *cli, TALLOC_C
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_OpenSCManagerW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *MachineName, const char *DatabaseName, uint32_t access_mask, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_svcctl_OpenSCManagerW(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     const char *MachineName,
+                                     const char *DatabaseName,
+                                     uint32_t access_mask,
+                                     struct policy_handle *handle,
+                                     WERROR *werror)
 {
        struct svcctl_OpenSCManagerW r;
        NTSTATUS status;
@@ -576,17 +772,24 @@ NTSTATUS rpccli_svcctl_OpenSCManagerW(struct rpc_pipe_client *cli, TALLOC_CTX *m
        r.in.DatabaseName = DatabaseName;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_OpenSCManagerW, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_OPENSCMANAGERW, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_OPENSCMANAGERW,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_OpenSCManagerW, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -603,7 +806,13 @@ NTSTATUS rpccli_svcctl_OpenSCManagerW(struct rpc_pipe_client *cli, TALLOC_CTX *m
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_OpenServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *scmanager_handle, const char *ServiceName, uint32_t access_mask, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_svcctl_OpenServiceW(struct rpc_pipe_client *cli,
+                                   TALLOC_CTX *mem_ctx,
+                                   struct policy_handle *scmanager_handle,
+                                   const char *ServiceName,
+                                   uint32_t access_mask,
+                                   struct policy_handle *handle,
+                                   WERROR *werror)
 {
        struct svcctl_OpenServiceW r;
        NTSTATUS status;
@@ -613,17 +822,24 @@ NTSTATUS rpccli_svcctl_OpenServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *mem
        r.in.ServiceName = ServiceName;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_OpenServiceW, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_OPENSERVICEW, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_OPENSERVICEW,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_OpenServiceW, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -640,7 +856,13 @@ NTSTATUS rpccli_svcctl_OpenServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *mem
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_QueryServiceConfigW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint8_t *query, uint32_t buf_size, uint32_t *bytes_needed, WERROR *werror)
+NTSTATUS rpccli_svcctl_QueryServiceConfigW(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx,
+                                          struct policy_handle *handle,
+                                          uint8_t *query,
+                                          uint32_t buf_size,
+                                          uint32_t *bytes_needed,
+                                          WERROR *werror)
 {
        struct svcctl_QueryServiceConfigW r;
        NTSTATUS status;
@@ -649,17 +871,24 @@ NTSTATUS rpccli_svcctl_QueryServiceConfigW(struct rpc_pipe_client *cli, TALLOC_C
        r.in.handle = handle;
        r.in.buf_size = buf_size;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_QueryServiceConfigW, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_QUERYSERVICECONFIGW, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_QUERYSERVICECONFIGW,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceConfigW, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -677,7 +906,13 @@ NTSTATUS rpccli_svcctl_QueryServiceConfigW(struct rpc_pipe_client *cli, TALLOC_C
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_QueryServiceLockStatusW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t buf_size, struct SERVICE_LOCK_STATUS *lock_status, uint32_t *required_buf_size, WERROR *werror)
+NTSTATUS rpccli_svcctl_QueryServiceLockStatusW(struct rpc_pipe_client *cli,
+                                              TALLOC_CTX *mem_ctx,
+                                              struct policy_handle *handle,
+                                              uint32_t buf_size,
+                                              struct SERVICE_LOCK_STATUS *lock_status,
+                                              uint32_t *required_buf_size,
+                                              WERROR *werror)
 {
        struct svcctl_QueryServiceLockStatusW r;
        NTSTATUS status;
@@ -686,17 +921,24 @@ NTSTATUS rpccli_svcctl_QueryServiceLockStatusW(struct rpc_pipe_client *cli, TALL
        r.in.handle = handle;
        r.in.buf_size = buf_size;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_QueryServiceLockStatusW, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_QUERYSERVICELOCKSTATUSW, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_QUERYSERVICELOCKSTATUSW,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceLockStatusW, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -714,7 +956,12 @@ NTSTATUS rpccli_svcctl_QueryServiceLockStatusW(struct rpc_pipe_client *cli, TALL
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_StartServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t NumArgs, const char *Arguments, WERROR *werror)
+NTSTATUS rpccli_svcctl_StartServiceW(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx,
+                                    struct policy_handle *handle,
+                                    uint32_t NumArgs,
+                                    const char *Arguments,
+                                    WERROR *werror)
 {
        struct svcctl_StartServiceW r;
        NTSTATUS status;
@@ -724,17 +971,24 @@ NTSTATUS rpccli_svcctl_StartServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *me
        r.in.NumArgs = NumArgs;
        r.in.Arguments = Arguments;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_StartServiceW, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_STARTSERVICEW, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_STARTSERVICEW,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_StartServiceW, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -750,7 +1004,13 @@ NTSTATUS rpccli_svcctl_StartServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *me
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_GetServiceDisplayNameW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, const char *service_name, const char **display_name, uint32_t *display_name_length, WERROR *werror)
+NTSTATUS rpccli_svcctl_GetServiceDisplayNameW(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             struct policy_handle *handle,
+                                             const char *service_name,
+                                             const char **display_name,
+                                             uint32_t *display_name_length,
+                                             WERROR *werror)
 {
        struct svcctl_GetServiceDisplayNameW r;
        NTSTATUS status;
@@ -760,17 +1020,24 @@ NTSTATUS rpccli_svcctl_GetServiceDisplayNameW(struct rpc_pipe_client *cli, TALLO
        r.in.service_name = service_name;
        r.in.display_name_length = display_name_length;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_GetServiceDisplayNameW, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_GETSERVICEDISPLAYNAMEW, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_GETSERVICEDISPLAYNAMEW,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_GetServiceDisplayNameW, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -790,7 +1057,13 @@ NTSTATUS rpccli_svcctl_GetServiceDisplayNameW(struct rpc_pipe_client *cli, TALLO
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_GetServiceKeyNameW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, const char *service_name, const char **key_name, uint32_t *display_name_length, WERROR *werror)
+NTSTATUS rpccli_svcctl_GetServiceKeyNameW(struct rpc_pipe_client *cli,
+                                         TALLOC_CTX *mem_ctx,
+                                         struct policy_handle *handle,
+                                         const char *service_name,
+                                         const char **key_name,
+                                         uint32_t *display_name_length,
+                                         WERROR *werror)
 {
        struct svcctl_GetServiceKeyNameW r;
        NTSTATUS status;
@@ -800,17 +1073,24 @@ NTSTATUS rpccli_svcctl_GetServiceKeyNameW(struct rpc_pipe_client *cli, TALLOC_CT
        r.in.service_name = service_name;
        r.in.display_name_length = display_name_length;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_GetServiceKeyNameW, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_GETSERVICEKEYNAMEW, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_GETSERVICEKEYNAMEW,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_GetServiceKeyNameW, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -830,7 +1110,13 @@ NTSTATUS rpccli_svcctl_GetServiceKeyNameW(struct rpc_pipe_client *cli, TALLOC_CT
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_SCSetServiceBitsA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t bits, uint32_t bitson, uint32_t immediate, WERROR *werror)
+NTSTATUS rpccli_svcctl_SCSetServiceBitsA(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        struct policy_handle *handle,
+                                        uint32_t bits,
+                                        uint32_t bitson,
+                                        uint32_t immediate,
+                                        WERROR *werror)
 {
        struct svcctl_SCSetServiceBitsA r;
        NTSTATUS status;
@@ -841,17 +1127,24 @@ NTSTATUS rpccli_svcctl_SCSetServiceBitsA(struct rpc_pipe_client *cli, TALLOC_CTX
        r.in.bitson = bitson;
        r.in.immediate = immediate;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_SCSetServiceBitsA, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_SCSETSERVICEBITSA, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_SCSETSERVICEBITSA,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_SCSetServiceBitsA, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -867,7 +1160,20 @@ NTSTATUS rpccli_svcctl_SCSetServiceBitsA(struct rpc_pipe_client *cli, TALLOC_CTX
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_ChangeServiceConfigA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t type, uint32_t start, uint32_t error, const char *binary_path, const char *load_order_group, uint32_t *tag_id, const char *dependencies, const char *service_start_name, const char *password, const char *display_name, WERROR *werror)
+NTSTATUS rpccli_svcctl_ChangeServiceConfigA(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           struct policy_handle *handle,
+                                           uint32_t type,
+                                           uint32_t start,
+                                           uint32_t error,
+                                           const char *binary_path,
+                                           const char *load_order_group,
+                                           uint32_t *tag_id,
+                                           const char *dependencies,
+                                           const char *service_start_name,
+                                           const char *password,
+                                           const char *display_name,
+                                           WERROR *werror)
 {
        struct svcctl_ChangeServiceConfigA r;
        NTSTATUS status;
@@ -884,17 +1190,24 @@ NTSTATUS rpccli_svcctl_ChangeServiceConfigA(struct rpc_pipe_client *cli, TALLOC_
        r.in.password = password;
        r.in.display_name = display_name;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_ChangeServiceConfigA, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_CHANGESERVICECONFIGA, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_CHANGESERVICECONFIGA,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_ChangeServiceConfigA, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -911,7 +1224,22 @@ NTSTATUS rpccli_svcctl_ChangeServiceConfigA(struct rpc_pipe_client *cli, TALLOC_
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_CreateServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, const char *ServiceName, const char *DisplayName, uint32_t desired_access, uint32_t type, uint32_t start_type, uint32_t error_control, const char *binary_path, const char *LoadOrderGroupKey, uint32_t *TagId, const char *dependencies, const char *service_start_name, const char *password, WERROR *werror)
+NTSTATUS rpccli_svcctl_CreateServiceA(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     struct policy_handle *handle,
+                                     const char *ServiceName,
+                                     const char *DisplayName,
+                                     uint32_t desired_access,
+                                     uint32_t type,
+                                     uint32_t start_type,
+                                     uint32_t error_control,
+                                     const char *binary_path,
+                                     const char *LoadOrderGroupKey,
+                                     uint32_t *TagId,
+                                     const char *dependencies,
+                                     const char *service_start_name,
+                                     const char *password,
+                                     WERROR *werror)
 {
        struct svcctl_CreateServiceA r;
        NTSTATUS status;
@@ -930,17 +1258,24 @@ NTSTATUS rpccli_svcctl_CreateServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *m
        r.in.service_start_name = service_start_name;
        r.in.password = password;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_CreateServiceA, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_CREATESERVICEA, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_CREATESERVICEA,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_CreateServiceA, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -959,7 +1294,15 @@ NTSTATUS rpccli_svcctl_CreateServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *m
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_EnumDependentServicesA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *service, uint32_t state, struct ENUM_SERVICE_STATUS *service_status, uint32_t buf_size, uint32_t *bytes_needed, uint32_t *services_returned, WERROR *werror)
+NTSTATUS rpccli_svcctl_EnumDependentServicesA(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             struct policy_handle *service,
+                                             uint32_t state,
+                                             struct ENUM_SERVICE_STATUS *service_status,
+                                             uint32_t buf_size,
+                                             uint32_t *bytes_needed,
+                                             uint32_t *services_returned,
+                                             WERROR *werror)
 {
        struct svcctl_EnumDependentServicesA r;
        NTSTATUS status;
@@ -969,17 +1312,24 @@ NTSTATUS rpccli_svcctl_EnumDependentServicesA(struct rpc_pipe_client *cli, TALLO
        r.in.state = state;
        r.in.buf_size = buf_size;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_EnumDependentServicesA, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_ENUMDEPENDENTSERVICESA, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_ENUMDEPENDENTSERVICESA,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_EnumDependentServicesA, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1000,7 +1350,17 @@ NTSTATUS rpccli_svcctl_EnumDependentServicesA(struct rpc_pipe_client *cli, TALLO
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_EnumServicesStatusA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t type, uint32_t state, uint32_t buf_size, uint8_t *service, uint32_t *bytes_needed, uint32_t *services_returned, uint32_t *resume_handle, WERROR *werror)
+NTSTATUS rpccli_svcctl_EnumServicesStatusA(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx,
+                                          struct policy_handle *handle,
+                                          uint32_t type,
+                                          uint32_t state,
+                                          uint32_t buf_size,
+                                          uint8_t *service,
+                                          uint32_t *bytes_needed,
+                                          uint32_t *services_returned,
+                                          uint32_t *resume_handle,
+                                          WERROR *werror)
 {
        struct svcctl_EnumServicesStatusA r;
        NTSTATUS status;
@@ -1012,17 +1372,24 @@ NTSTATUS rpccli_svcctl_EnumServicesStatusA(struct rpc_pipe_client *cli, TALLOC_C
        r.in.buf_size = buf_size;
        r.in.resume_handle = resume_handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_EnumServicesStatusA, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_ENUMSERVICESSTATUSA, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_ENUMSERVICESSTATUSA,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_EnumServicesStatusA, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1044,7 +1411,13 @@ NTSTATUS rpccli_svcctl_EnumServicesStatusA(struct rpc_pipe_client *cli, TALLOC_C
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_OpenSCManagerA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *MachineName, const char *DatabaseName, uint32_t access_mask, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_svcctl_OpenSCManagerA(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     const char *MachineName,
+                                     const char *DatabaseName,
+                                     uint32_t access_mask,
+                                     struct policy_handle *handle,
+                                     WERROR *werror)
 {
        struct svcctl_OpenSCManagerA r;
        NTSTATUS status;
@@ -1054,17 +1427,24 @@ NTSTATUS rpccli_svcctl_OpenSCManagerA(struct rpc_pipe_client *cli, TALLOC_CTX *m
        r.in.DatabaseName = DatabaseName;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_OpenSCManagerA, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_OPENSCMANAGERA, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_OPENSCMANAGERA,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_OpenSCManagerA, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1081,7 +1461,12 @@ NTSTATUS rpccli_svcctl_OpenSCManagerA(struct rpc_pipe_client *cli, TALLOC_CTX *m
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_OpenServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *scmanager_handle, const char *ServiceName, uint32_t access_mask, WERROR *werror)
+NTSTATUS rpccli_svcctl_OpenServiceA(struct rpc_pipe_client *cli,
+                                   TALLOC_CTX *mem_ctx,
+                                   struct policy_handle *scmanager_handle,
+                                   const char *ServiceName,
+                                   uint32_t access_mask,
+                                   WERROR *werror)
 {
        struct svcctl_OpenServiceA r;
        NTSTATUS status;
@@ -1091,17 +1476,24 @@ NTSTATUS rpccli_svcctl_OpenServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *mem
        r.in.ServiceName = ServiceName;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_OpenServiceA, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_OPENSERVICEA, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_OPENSERVICEA,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_OpenServiceA, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1117,7 +1509,13 @@ NTSTATUS rpccli_svcctl_OpenServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *mem
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_QueryServiceConfigA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint8_t *query, uint32_t buf_size, uint32_t *bytes_needed, WERROR *werror)
+NTSTATUS rpccli_svcctl_QueryServiceConfigA(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx,
+                                          struct policy_handle *handle,
+                                          uint8_t *query,
+                                          uint32_t buf_size,
+                                          uint32_t *bytes_needed,
+                                          WERROR *werror)
 {
        struct svcctl_QueryServiceConfigA r;
        NTSTATUS status;
@@ -1126,17 +1524,24 @@ NTSTATUS rpccli_svcctl_QueryServiceConfigA(struct rpc_pipe_client *cli, TALLOC_C
        r.in.handle = handle;
        r.in.buf_size = buf_size;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_QueryServiceConfigA, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_QUERYSERVICECONFIGA, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_QUERYSERVICECONFIGA,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceConfigA, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1154,7 +1559,13 @@ NTSTATUS rpccli_svcctl_QueryServiceConfigA(struct rpc_pipe_client *cli, TALLOC_C
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_QueryServiceLockStatusA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t buf_size, struct SERVICE_LOCK_STATUS *lock_status, uint32_t *required_buf_size, WERROR *werror)
+NTSTATUS rpccli_svcctl_QueryServiceLockStatusA(struct rpc_pipe_client *cli,
+                                              TALLOC_CTX *mem_ctx,
+                                              struct policy_handle *handle,
+                                              uint32_t buf_size,
+                                              struct SERVICE_LOCK_STATUS *lock_status,
+                                              uint32_t *required_buf_size,
+                                              WERROR *werror)
 {
        struct svcctl_QueryServiceLockStatusA r;
        NTSTATUS status;
@@ -1163,17 +1574,24 @@ NTSTATUS rpccli_svcctl_QueryServiceLockStatusA(struct rpc_pipe_client *cli, TALL
        r.in.handle = handle;
        r.in.buf_size = buf_size;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_QueryServiceLockStatusA, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_QUERYSERVICELOCKSTATUSA, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_QUERYSERVICELOCKSTATUSA,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceLockStatusA, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1191,7 +1609,12 @@ NTSTATUS rpccli_svcctl_QueryServiceLockStatusA(struct rpc_pipe_client *cli, TALL
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_StartServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t NumArgs, const char *Arguments, WERROR *werror)
+NTSTATUS rpccli_svcctl_StartServiceA(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx,
+                                    struct policy_handle *handle,
+                                    uint32_t NumArgs,
+                                    const char *Arguments,
+                                    WERROR *werror)
 {
        struct svcctl_StartServiceA r;
        NTSTATUS status;
@@ -1201,17 +1624,24 @@ NTSTATUS rpccli_svcctl_StartServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *me
        r.in.NumArgs = NumArgs;
        r.in.Arguments = Arguments;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_StartServiceA, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_STARTSERVICEA, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_STARTSERVICEA,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_StartServiceA, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1227,7 +1657,13 @@ NTSTATUS rpccli_svcctl_StartServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *me
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_GetServiceDisplayNameA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, const char *service_name, const char **display_name, uint32_t *display_name_length, WERROR *werror)
+NTSTATUS rpccli_svcctl_GetServiceDisplayNameA(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             struct policy_handle *handle,
+                                             const char *service_name,
+                                             const char **display_name,
+                                             uint32_t *display_name_length,
+                                             WERROR *werror)
 {
        struct svcctl_GetServiceDisplayNameA r;
        NTSTATUS status;
@@ -1237,17 +1673,24 @@ NTSTATUS rpccli_svcctl_GetServiceDisplayNameA(struct rpc_pipe_client *cli, TALLO
        r.in.service_name = service_name;
        r.in.display_name_length = display_name_length;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_GetServiceDisplayNameA, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_GETSERVICEDISPLAYNAMEA, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_GETSERVICEDISPLAYNAMEA,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_GetServiceDisplayNameA, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1267,7 +1710,13 @@ NTSTATUS rpccli_svcctl_GetServiceDisplayNameA(struct rpc_pipe_client *cli, TALLO
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_GetServiceKeyNameA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, const char *service_name, const char **key_name, uint32_t *display_name_length, WERROR *werror)
+NTSTATUS rpccli_svcctl_GetServiceKeyNameA(struct rpc_pipe_client *cli,
+                                         TALLOC_CTX *mem_ctx,
+                                         struct policy_handle *handle,
+                                         const char *service_name,
+                                         const char **key_name,
+                                         uint32_t *display_name_length,
+                                         WERROR *werror)
 {
        struct svcctl_GetServiceKeyNameA r;
        NTSTATUS status;
@@ -1277,17 +1726,24 @@ NTSTATUS rpccli_svcctl_GetServiceKeyNameA(struct rpc_pipe_client *cli, TALLOC_CT
        r.in.service_name = service_name;
        r.in.display_name_length = display_name_length;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_GetServiceKeyNameA, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_GETSERVICEKEYNAMEA, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_GETSERVICEKEYNAMEA,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_GetServiceKeyNameA, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1307,24 +1763,33 @@ NTSTATUS rpccli_svcctl_GetServiceKeyNameA(struct rpc_pipe_client *cli, TALLOC_CT
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_GetCurrentGroupeStateW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_svcctl_GetCurrentGroupeStateW(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             WERROR *werror)
 {
        struct svcctl_GetCurrentGroupeStateW r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_GetCurrentGroupeStateW, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_GETCURRENTGROUPESTATEW, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_GETCURRENTGROUPESTATEW,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_GetCurrentGroupeStateW, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1340,24 +1805,33 @@ NTSTATUS rpccli_svcctl_GetCurrentGroupeStateW(struct rpc_pipe_client *cli, TALLO
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_EnumServiceGroupW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_svcctl_EnumServiceGroupW(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        WERROR *werror)
 {
        struct svcctl_EnumServiceGroupW r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_EnumServiceGroupW, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_ENUMSERVICEGROUPW, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_ENUMSERVICEGROUPW,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_EnumServiceGroupW, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1373,7 +1847,12 @@ NTSTATUS rpccli_svcctl_EnumServiceGroupW(struct rpc_pipe_client *cli, TALLOC_CTX
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_ChangeServiceConfig2A(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t info_level, uint8_t *info, WERROR *werror)
+NTSTATUS rpccli_svcctl_ChangeServiceConfig2A(struct rpc_pipe_client *cli,
+                                            TALLOC_CTX *mem_ctx,
+                                            struct policy_handle *handle,
+                                            uint32_t info_level,
+                                            uint8_t *info,
+                                            WERROR *werror)
 {
        struct svcctl_ChangeServiceConfig2A r;
        NTSTATUS status;
@@ -1383,17 +1862,24 @@ NTSTATUS rpccli_svcctl_ChangeServiceConfig2A(struct rpc_pipe_client *cli, TALLOC
        r.in.info_level = info_level;
        r.in.info = info;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_ChangeServiceConfig2A, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_CHANGESERVICECONFIG2A, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_CHANGESERVICECONFIG2A,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_ChangeServiceConfig2A, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1409,7 +1895,12 @@ NTSTATUS rpccli_svcctl_ChangeServiceConfig2A(struct rpc_pipe_client *cli, TALLOC
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_ChangeServiceConfig2W(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t info_level, uint8_t *info, WERROR *werror)
+NTSTATUS rpccli_svcctl_ChangeServiceConfig2W(struct rpc_pipe_client *cli,
+                                            TALLOC_CTX *mem_ctx,
+                                            struct policy_handle *handle,
+                                            uint32_t info_level,
+                                            uint8_t *info,
+                                            WERROR *werror)
 {
        struct svcctl_ChangeServiceConfig2W r;
        NTSTATUS status;
@@ -1419,17 +1910,24 @@ NTSTATUS rpccli_svcctl_ChangeServiceConfig2W(struct rpc_pipe_client *cli, TALLOC
        r.in.info_level = info_level;
        r.in.info = info;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_ChangeServiceConfig2W, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_CHANGESERVICECONFIG2W, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_CHANGESERVICECONFIG2W,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_ChangeServiceConfig2W, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1445,7 +1943,14 @@ NTSTATUS rpccli_svcctl_ChangeServiceConfig2W(struct rpc_pipe_client *cli, TALLOC
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_QueryServiceConfig2A(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t info_level, uint8_t *buffer, uint32_t buf_size, uint32_t *bytes_needed, WERROR *werror)
+NTSTATUS rpccli_svcctl_QueryServiceConfig2A(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           struct policy_handle *handle,
+                                           uint32_t info_level,
+                                           uint8_t *buffer,
+                                           uint32_t buf_size,
+                                           uint32_t *bytes_needed,
+                                           WERROR *werror)
 {
        struct svcctl_QueryServiceConfig2A r;
        NTSTATUS status;
@@ -1455,17 +1960,24 @@ NTSTATUS rpccli_svcctl_QueryServiceConfig2A(struct rpc_pipe_client *cli, TALLOC_
        r.in.info_level = info_level;
        r.in.buf_size = buf_size;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_QueryServiceConfig2A, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_QUERYSERVICECONFIG2A, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_QUERYSERVICECONFIG2A,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceConfig2A, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1483,7 +1995,14 @@ NTSTATUS rpccli_svcctl_QueryServiceConfig2A(struct rpc_pipe_client *cli, TALLOC_
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_QueryServiceConfig2W(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t info_level, uint8_t *buffer, uint32_t buf_size, uint32_t *bytes_needed, WERROR *werror)
+NTSTATUS rpccli_svcctl_QueryServiceConfig2W(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           struct policy_handle *handle,
+                                           uint32_t info_level,
+                                           uint8_t *buffer,
+                                           uint32_t buf_size,
+                                           uint32_t *bytes_needed,
+                                           WERROR *werror)
 {
        struct svcctl_QueryServiceConfig2W r;
        NTSTATUS status;
@@ -1493,17 +2012,24 @@ NTSTATUS rpccli_svcctl_QueryServiceConfig2W(struct rpc_pipe_client *cli, TALLOC_
        r.in.info_level = info_level;
        r.in.buf_size = buf_size;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_QueryServiceConfig2W, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_QUERYSERVICECONFIG2W, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_QUERYSERVICECONFIG2W,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceConfig2W, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1521,7 +2047,14 @@ NTSTATUS rpccli_svcctl_QueryServiceConfig2W(struct rpc_pipe_client *cli, TALLOC_
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_QueryServiceStatusEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t info_level, uint8_t *buffer, uint32_t buf_size, uint32_t *bytes_needed, WERROR *werror)
+NTSTATUS rpccli_svcctl_QueryServiceStatusEx(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           struct policy_handle *handle,
+                                           uint32_t info_level,
+                                           uint8_t *buffer,
+                                           uint32_t buf_size,
+                                           uint32_t *bytes_needed,
+                                           WERROR *werror)
 {
        struct svcctl_QueryServiceStatusEx r;
        NTSTATUS status;
@@ -1531,17 +2064,24 @@ NTSTATUS rpccli_svcctl_QueryServiceStatusEx(struct rpc_pipe_client *cli, TALLOC_
        r.in.info_level = info_level;
        r.in.buf_size = buf_size;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_QueryServiceStatusEx, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_QUERYSERVICESTATUSEX, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_QUERYSERVICESTATUSEX,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceStatusEx, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1559,7 +2099,19 @@ NTSTATUS rpccli_svcctl_QueryServiceStatusEx(struct rpc_pipe_client *cli, TALLOC_
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_EnumServicesStatusExA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *scmanager, uint32_t info_level, uint32_t type, uint32_t state, uint8_t *services, uint32_t buf_size, uint32_t *bytes_needed, uint32_t *service_returned, uint32_t *resume_handle, const char **group_name, WERROR *werror)
+NTSTATUS rpccli_EnumServicesStatusExA(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     struct policy_handle *scmanager,
+                                     uint32_t info_level,
+                                     uint32_t type,
+                                     uint32_t state,
+                                     uint8_t *services,
+                                     uint32_t buf_size,
+                                     uint32_t *bytes_needed,
+                                     uint32_t *service_returned,
+                                     uint32_t *resume_handle,
+                                     const char **group_name,
+                                     WERROR *werror)
 {
        struct EnumServicesStatusExA r;
        NTSTATUS status;
@@ -1572,17 +2124,24 @@ NTSTATUS rpccli_EnumServicesStatusExA(struct rpc_pipe_client *cli, TALLOC_CTX *m
        r.in.buf_size = buf_size;
        r.in.resume_handle = resume_handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(EnumServicesStatusExA, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_ENUMSERVICESSTATUSEXA, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_ENUMSERVICESSTATUSEXA,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(EnumServicesStatusExA, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1605,7 +2164,19 @@ NTSTATUS rpccli_EnumServicesStatusExA(struct rpc_pipe_client *cli, TALLOC_CTX *m
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_EnumServicesStatusExW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *scmanager, uint32_t info_level, uint32_t type, uint32_t state, uint8_t *services, uint32_t buf_size, uint32_t *bytes_needed, uint32_t *service_returned, uint32_t *resume_handle, const char **group_name, WERROR *werror)
+NTSTATUS rpccli_EnumServicesStatusExW(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     struct policy_handle *scmanager,
+                                     uint32_t info_level,
+                                     uint32_t type,
+                                     uint32_t state,
+                                     uint8_t *services,
+                                     uint32_t buf_size,
+                                     uint32_t *bytes_needed,
+                                     uint32_t *service_returned,
+                                     uint32_t *resume_handle,
+                                     const char **group_name,
+                                     WERROR *werror)
 {
        struct EnumServicesStatusExW r;
        NTSTATUS status;
@@ -1618,17 +2189,24 @@ NTSTATUS rpccli_EnumServicesStatusExW(struct rpc_pipe_client *cli, TALLOC_CTX *m
        r.in.buf_size = buf_size;
        r.in.resume_handle = resume_handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(EnumServicesStatusExW, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_ENUMSERVICESSTATUSEXW, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_ENUMSERVICESSTATUSEXW,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(EnumServicesStatusExW, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1651,24 +2229,33 @@ NTSTATUS rpccli_EnumServicesStatusExW(struct rpc_pipe_client *cli, TALLOC_CTX *m
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_svcctl_SCSendTSMessage(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_svcctl_SCSendTSMessage(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      WERROR *werror)
 {
        struct svcctl_SCSendTSMessage r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_SCSendTSMessage, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_SCSENDTSMESSAGE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_SVCCTL,
+                               &ndr_table_svcctl,
+                               NDR_SVCCTL_SCSENDTSMESSAGE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_SCSendTSMessage, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
index 77e9e8d6da68ad89af9707adfc45c65ac0b99dcf..e9eeb2d9e2b6170e087d9bbf19e49b8fd90e96b6 100644 (file)
 #include "librpc/gen_ndr/ndr_svcctl.h"
 #ifndef __CLI_SVCCTL__
 #define __CLI_SVCCTL__
-NTSTATUS rpccli_svcctl_CloseServiceHandle(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_svcctl_ControlService(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t control, struct SERVICE_STATUS *service_status, WERROR *werror);
-NTSTATUS rpccli_svcctl_DeleteService(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_svcctl_LockServiceDatabase(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct policy_handle *lock, WERROR *werror);
-NTSTATUS rpccli_svcctl_QueryServiceObjectSecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_svcctl_SetServiceObjectSecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_svcctl_QueryServiceStatus(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct SERVICE_STATUS *service_status, WERROR *werror);
-NTSTATUS rpccli_svcctl_SetServiceStatus(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_svcctl_UnlockServiceDatabase(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *lock, WERROR *werror);
-NTSTATUS rpccli_svcctl_NotifyBootConfigStatus(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_svcctl_SCSetServiceBitsW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t bits, uint32_t bitson, uint32_t immediate, WERROR *werror);
-NTSTATUS rpccli_svcctl_ChangeServiceConfigW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t type, uint32_t start, uint32_t error, const char *binary_path, const char *load_order_group, uint32_t *tag_id, const char *dependencies, const char *service_start_name, const char *password, const char *display_name, WERROR *werror);
-NTSTATUS rpccli_svcctl_CreateServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *scmanager_handle, const char *ServiceName, const char *DisplayName, uint32_t desired_access, uint32_t type, uint32_t start_type, uint32_t error_control, const char *binary_path, const char *LoadOrderGroupKey, uint32_t *TagId, uint8_t *dependencies, uint32_t dependencies_size, const char *service_start_name, uint8_t *password, uint32_t password_size, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_svcctl_EnumDependentServicesW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *service, uint32_t state, struct ENUM_SERVICE_STATUS *service_status, uint32_t buf_size, uint32_t *bytes_needed, uint32_t *services_returned, WERROR *werror);
-NTSTATUS rpccli_svcctl_EnumServicesStatusW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t type, uint32_t state, uint32_t buf_size, uint8_t *service, uint32_t *bytes_needed, uint32_t *services_returned, uint32_t *resume_handle, WERROR *werror);
-NTSTATUS rpccli_svcctl_OpenSCManagerW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *MachineName, const char *DatabaseName, uint32_t access_mask, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_svcctl_OpenServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *scmanager_handle, const char *ServiceName, uint32_t access_mask, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_svcctl_QueryServiceConfigW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint8_t *query, uint32_t buf_size, uint32_t *bytes_needed, WERROR *werror);
-NTSTATUS rpccli_svcctl_QueryServiceLockStatusW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t buf_size, struct SERVICE_LOCK_STATUS *lock_status, uint32_t *required_buf_size, WERROR *werror);
-NTSTATUS rpccli_svcctl_StartServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t NumArgs, const char *Arguments, WERROR *werror);
-NTSTATUS rpccli_svcctl_GetServiceDisplayNameW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, const char *service_name, const char **display_name, uint32_t *display_name_length, WERROR *werror);
-NTSTATUS rpccli_svcctl_GetServiceKeyNameW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, const char *service_name, const char **key_name, uint32_t *display_name_length, WERROR *werror);
-NTSTATUS rpccli_svcctl_SCSetServiceBitsA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t bits, uint32_t bitson, uint32_t immediate, WERROR *werror);
-NTSTATUS rpccli_svcctl_ChangeServiceConfigA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t type, uint32_t start, uint32_t error, const char *binary_path, const char *load_order_group, uint32_t *tag_id, const char *dependencies, const char *service_start_name, const char *password, const char *display_name, WERROR *werror);
-NTSTATUS rpccli_svcctl_CreateServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, const char *ServiceName, const char *DisplayName, uint32_t desired_access, uint32_t type, uint32_t start_type, uint32_t error_control, const char *binary_path, const char *LoadOrderGroupKey, uint32_t *TagId, const char *dependencies, const char *service_start_name, const char *password, WERROR *werror);
-NTSTATUS rpccli_svcctl_EnumDependentServicesA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *service, uint32_t state, struct ENUM_SERVICE_STATUS *service_status, uint32_t buf_size, uint32_t *bytes_needed, uint32_t *services_returned, WERROR *werror);
-NTSTATUS rpccli_svcctl_EnumServicesStatusA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t type, uint32_t state, uint32_t buf_size, uint8_t *service, uint32_t *bytes_needed, uint32_t *services_returned, uint32_t *resume_handle, WERROR *werror);
-NTSTATUS rpccli_svcctl_OpenSCManagerA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *MachineName, const char *DatabaseName, uint32_t access_mask, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_svcctl_OpenServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *scmanager_handle, const char *ServiceName, uint32_t access_mask, WERROR *werror);
-NTSTATUS rpccli_svcctl_QueryServiceConfigA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint8_t *query, uint32_t buf_size, uint32_t *bytes_needed, WERROR *werror);
-NTSTATUS rpccli_svcctl_QueryServiceLockStatusA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t buf_size, struct SERVICE_LOCK_STATUS *lock_status, uint32_t *required_buf_size, WERROR *werror);
-NTSTATUS rpccli_svcctl_StartServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t NumArgs, const char *Arguments, WERROR *werror);
-NTSTATUS rpccli_svcctl_GetServiceDisplayNameA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, const char *service_name, const char **display_name, uint32_t *display_name_length, WERROR *werror);
-NTSTATUS rpccli_svcctl_GetServiceKeyNameA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, const char *service_name, const char **key_name, uint32_t *display_name_length, WERROR *werror);
-NTSTATUS rpccli_svcctl_GetCurrentGroupeStateW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_svcctl_EnumServiceGroupW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_svcctl_ChangeServiceConfig2A(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t info_level, uint8_t *info, WERROR *werror);
-NTSTATUS rpccli_svcctl_ChangeServiceConfig2W(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t info_level, uint8_t *info, WERROR *werror);
-NTSTATUS rpccli_svcctl_QueryServiceConfig2A(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t info_level, uint8_t *buffer, uint32_t buf_size, uint32_t *bytes_needed, WERROR *werror);
-NTSTATUS rpccli_svcctl_QueryServiceConfig2W(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t info_level, uint8_t *buffer, uint32_t buf_size, uint32_t *bytes_needed, WERROR *werror);
-NTSTATUS rpccli_svcctl_QueryServiceStatusEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t info_level, uint8_t *buffer, uint32_t buf_size, uint32_t *bytes_needed, WERROR *werror);
-NTSTATUS rpccli_EnumServicesStatusExA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *scmanager, uint32_t info_level, uint32_t type, uint32_t state, uint8_t *services, uint32_t buf_size, uint32_t *bytes_needed, uint32_t *service_returned, uint32_t *resume_handle, const char **group_name, WERROR *werror);
-NTSTATUS rpccli_EnumServicesStatusExW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *scmanager, uint32_t info_level, uint32_t type, uint32_t state, uint8_t *services, uint32_t buf_size, uint32_t *bytes_needed, uint32_t *service_returned, uint32_t *resume_handle, const char **group_name, WERROR *werror);
-NTSTATUS rpccli_svcctl_SCSendTSMessage(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
+NTSTATUS rpccli_svcctl_CloseServiceHandle(struct rpc_pipe_client *cli,
+                                         TALLOC_CTX *mem_ctx,
+                                         struct policy_handle *handle,
+                                         WERROR *werror);
+NTSTATUS rpccli_svcctl_ControlService(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     struct policy_handle *handle,
+                                     uint32_t control,
+                                     struct SERVICE_STATUS *service_status,
+                                     WERROR *werror);
+NTSTATUS rpccli_svcctl_DeleteService(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx,
+                                    struct policy_handle *handle,
+                                    WERROR *werror);
+NTSTATUS rpccli_svcctl_LockServiceDatabase(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx,
+                                          struct policy_handle *handle,
+                                          struct policy_handle *lock,
+                                          WERROR *werror);
+NTSTATUS rpccli_svcctl_QueryServiceObjectSecurity(struct rpc_pipe_client *cli,
+                                                 TALLOC_CTX *mem_ctx,
+                                                 WERROR *werror);
+NTSTATUS rpccli_svcctl_SetServiceObjectSecurity(struct rpc_pipe_client *cli,
+                                               TALLOC_CTX *mem_ctx,
+                                               WERROR *werror);
+NTSTATUS rpccli_svcctl_QueryServiceStatus(struct rpc_pipe_client *cli,
+                                         TALLOC_CTX *mem_ctx,
+                                         struct policy_handle *handle,
+                                         struct SERVICE_STATUS *service_status,
+                                         WERROR *werror);
+NTSTATUS rpccli_svcctl_SetServiceStatus(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       WERROR *werror);
+NTSTATUS rpccli_svcctl_UnlockServiceDatabase(struct rpc_pipe_client *cli,
+                                            TALLOC_CTX *mem_ctx,
+                                            struct policy_handle *lock,
+                                            WERROR *werror);
+NTSTATUS rpccli_svcctl_NotifyBootConfigStatus(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             WERROR *werror);
+NTSTATUS rpccli_svcctl_SCSetServiceBitsW(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        struct policy_handle *handle,
+                                        uint32_t bits,
+                                        uint32_t bitson,
+                                        uint32_t immediate,
+                                        WERROR *werror);
+NTSTATUS rpccli_svcctl_ChangeServiceConfigW(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           struct policy_handle *handle,
+                                           uint32_t type,
+                                           uint32_t start,
+                                           uint32_t error,
+                                           const char *binary_path,
+                                           const char *load_order_group,
+                                           uint32_t *tag_id,
+                                           const char *dependencies,
+                                           const char *service_start_name,
+                                           const char *password,
+                                           const char *display_name,
+                                           WERROR *werror);
+NTSTATUS rpccli_svcctl_CreateServiceW(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     struct policy_handle *scmanager_handle,
+                                     const char *ServiceName,
+                                     const char *DisplayName,
+                                     uint32_t desired_access,
+                                     uint32_t type,
+                                     uint32_t start_type,
+                                     uint32_t error_control,
+                                     const char *binary_path,
+                                     const char *LoadOrderGroupKey,
+                                     uint32_t *TagId,
+                                     uint8_t *dependencies,
+                                     uint32_t dependencies_size,
+                                     const char *service_start_name,
+                                     uint8_t *password,
+                                     uint32_t password_size,
+                                     struct policy_handle *handle,
+                                     WERROR *werror);
+NTSTATUS rpccli_svcctl_EnumDependentServicesW(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             struct policy_handle *service,
+                                             uint32_t state,
+                                             struct ENUM_SERVICE_STATUS *service_status,
+                                             uint32_t buf_size,
+                                             uint32_t *bytes_needed,
+                                             uint32_t *services_returned,
+                                             WERROR *werror);
+NTSTATUS rpccli_svcctl_EnumServicesStatusW(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx,
+                                          struct policy_handle *handle,
+                                          uint32_t type,
+                                          uint32_t state,
+                                          uint32_t buf_size,
+                                          uint8_t *service,
+                                          uint32_t *bytes_needed,
+                                          uint32_t *services_returned,
+                                          uint32_t *resume_handle,
+                                          WERROR *werror);
+NTSTATUS rpccli_svcctl_OpenSCManagerW(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     const char *MachineName,
+                                     const char *DatabaseName,
+                                     uint32_t access_mask,
+                                     struct policy_handle *handle,
+                                     WERROR *werror);
+NTSTATUS rpccli_svcctl_OpenServiceW(struct rpc_pipe_client *cli,
+                                   TALLOC_CTX *mem_ctx,
+                                   struct policy_handle *scmanager_handle,
+                                   const char *ServiceName,
+                                   uint32_t access_mask,
+                                   struct policy_handle *handle,
+                                   WERROR *werror);
+NTSTATUS rpccli_svcctl_QueryServiceConfigW(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx,
+                                          struct policy_handle *handle,
+                                          uint8_t *query,
+                                          uint32_t buf_size,
+                                          uint32_t *bytes_needed,
+                                          WERROR *werror);
+NTSTATUS rpccli_svcctl_QueryServiceLockStatusW(struct rpc_pipe_client *cli,
+                                              TALLOC_CTX *mem_ctx,
+                                              struct policy_handle *handle,
+                                              uint32_t buf_size,
+                                              struct SERVICE_LOCK_STATUS *lock_status,
+                                              uint32_t *required_buf_size,
+                                              WERROR *werror);
+NTSTATUS rpccli_svcctl_StartServiceW(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx,
+                                    struct policy_handle *handle,
+                                    uint32_t NumArgs,
+                                    const char *Arguments,
+                                    WERROR *werror);
+NTSTATUS rpccli_svcctl_GetServiceDisplayNameW(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             struct policy_handle *handle,
+                                             const char *service_name,
+                                             const char **display_name,
+                                             uint32_t *display_name_length,
+                                             WERROR *werror);
+NTSTATUS rpccli_svcctl_GetServiceKeyNameW(struct rpc_pipe_client *cli,
+                                         TALLOC_CTX *mem_ctx,
+                                         struct policy_handle *handle,
+                                         const char *service_name,
+                                         const char **key_name,
+                                         uint32_t *display_name_length,
+                                         WERROR *werror);
+NTSTATUS rpccli_svcctl_SCSetServiceBitsA(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        struct policy_handle *handle,
+                                        uint32_t bits,
+                                        uint32_t bitson,
+                                        uint32_t immediate,
+                                        WERROR *werror);
+NTSTATUS rpccli_svcctl_ChangeServiceConfigA(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           struct policy_handle *handle,
+                                           uint32_t type,
+                                           uint32_t start,
+                                           uint32_t error,
+                                           const char *binary_path,
+                                           const char *load_order_group,
+                                           uint32_t *tag_id,
+                                           const char *dependencies,
+                                           const char *service_start_name,
+                                           const char *password,
+                                           const char *display_name,
+                                           WERROR *werror);
+NTSTATUS rpccli_svcctl_CreateServiceA(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     struct policy_handle *handle,
+                                     const char *ServiceName,
+                                     const char *DisplayName,
+                                     uint32_t desired_access,
+                                     uint32_t type,
+                                     uint32_t start_type,
+                                     uint32_t error_control,
+                                     const char *binary_path,
+                                     const char *LoadOrderGroupKey,
+                                     uint32_t *TagId,
+                                     const char *dependencies,
+                                     const char *service_start_name,
+                                     const char *password,
+                                     WERROR *werror);
+NTSTATUS rpccli_svcctl_EnumDependentServicesA(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             struct policy_handle *service,
+                                             uint32_t state,
+                                             struct ENUM_SERVICE_STATUS *service_status,
+                                             uint32_t buf_size,
+                                             uint32_t *bytes_needed,
+                                             uint32_t *services_returned,
+                                             WERROR *werror);
+NTSTATUS rpccli_svcctl_EnumServicesStatusA(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx,
+                                          struct policy_handle *handle,
+                                          uint32_t type,
+                                          uint32_t state,
+                                          uint32_t buf_size,
+                                          uint8_t *service,
+                                          uint32_t *bytes_needed,
+                                          uint32_t *services_returned,
+                                          uint32_t *resume_handle,
+                                          WERROR *werror);
+NTSTATUS rpccli_svcctl_OpenSCManagerA(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     const char *MachineName,
+                                     const char *DatabaseName,
+                                     uint32_t access_mask,
+                                     struct policy_handle *handle,
+                                     WERROR *werror);
+NTSTATUS rpccli_svcctl_OpenServiceA(struct rpc_pipe_client *cli,
+                                   TALLOC_CTX *mem_ctx,
+                                   struct policy_handle *scmanager_handle,
+                                   const char *ServiceName,
+                                   uint32_t access_mask,
+                                   WERROR *werror);
+NTSTATUS rpccli_svcctl_QueryServiceConfigA(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx,
+                                          struct policy_handle *handle,
+                                          uint8_t *query,
+                                          uint32_t buf_size,
+                                          uint32_t *bytes_needed,
+                                          WERROR *werror);
+NTSTATUS rpccli_svcctl_QueryServiceLockStatusA(struct rpc_pipe_client *cli,
+                                              TALLOC_CTX *mem_ctx,
+                                              struct policy_handle *handle,
+                                              uint32_t buf_size,
+                                              struct SERVICE_LOCK_STATUS *lock_status,
+                                              uint32_t *required_buf_size,
+                                              WERROR *werror);
+NTSTATUS rpccli_svcctl_StartServiceA(struct rpc_pipe_client *cli,
+                                    TALLOC_CTX *mem_ctx,
+                                    struct policy_handle *handle,
+                                    uint32_t NumArgs,
+                                    const char *Arguments,
+                                    WERROR *werror);
+NTSTATUS rpccli_svcctl_GetServiceDisplayNameA(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             struct policy_handle *handle,
+                                             const char *service_name,
+                                             const char **display_name,
+                                             uint32_t *display_name_length,
+                                             WERROR *werror);
+NTSTATUS rpccli_svcctl_GetServiceKeyNameA(struct rpc_pipe_client *cli,
+                                         TALLOC_CTX *mem_ctx,
+                                         struct policy_handle *handle,
+                                         const char *service_name,
+                                         const char **key_name,
+                                         uint32_t *display_name_length,
+                                         WERROR *werror);
+NTSTATUS rpccli_svcctl_GetCurrentGroupeStateW(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             WERROR *werror);
+NTSTATUS rpccli_svcctl_EnumServiceGroupW(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        WERROR *werror);
+NTSTATUS rpccli_svcctl_ChangeServiceConfig2A(struct rpc_pipe_client *cli,
+                                            TALLOC_CTX *mem_ctx,
+                                            struct policy_handle *handle,
+                                            uint32_t info_level,
+                                            uint8_t *info,
+                                            WERROR *werror);
+NTSTATUS rpccli_svcctl_ChangeServiceConfig2W(struct rpc_pipe_client *cli,
+                                            TALLOC_CTX *mem_ctx,
+                                            struct policy_handle *handle,
+                                            uint32_t info_level,
+                                            uint8_t *info,
+                                            WERROR *werror);
+NTSTATUS rpccli_svcctl_QueryServiceConfig2A(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           struct policy_handle *handle,
+                                           uint32_t info_level,
+                                           uint8_t *buffer,
+                                           uint32_t buf_size,
+                                           uint32_t *bytes_needed,
+                                           WERROR *werror);
+NTSTATUS rpccli_svcctl_QueryServiceConfig2W(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           struct policy_handle *handle,
+                                           uint32_t info_level,
+                                           uint8_t *buffer,
+                                           uint32_t buf_size,
+                                           uint32_t *bytes_needed,
+                                           WERROR *werror);
+NTSTATUS rpccli_svcctl_QueryServiceStatusEx(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           struct policy_handle *handle,
+                                           uint32_t info_level,
+                                           uint8_t *buffer,
+                                           uint32_t buf_size,
+                                           uint32_t *bytes_needed,
+                                           WERROR *werror);
+NTSTATUS rpccli_EnumServicesStatusExA(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     struct policy_handle *scmanager,
+                                     uint32_t info_level,
+                                     uint32_t type,
+                                     uint32_t state,
+                                     uint8_t *services,
+                                     uint32_t buf_size,
+                                     uint32_t *bytes_needed,
+                                     uint32_t *service_returned,
+                                     uint32_t *resume_handle,
+                                     const char **group_name,
+                                     WERROR *werror);
+NTSTATUS rpccli_EnumServicesStatusExW(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     struct policy_handle *scmanager,
+                                     uint32_t info_level,
+                                     uint32_t type,
+                                     uint32_t state,
+                                     uint8_t *services,
+                                     uint32_t buf_size,
+                                     uint32_t *bytes_needed,
+                                     uint32_t *service_returned,
+                                     uint32_t *resume_handle,
+                                     const char **group_name,
+                                     WERROR *werror);
+NTSTATUS rpccli_svcctl_SCSendTSMessage(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      WERROR *werror);
 #endif /* __CLI_SVCCTL__ */
index c8b9a01f3def848fc180f689260b2331f2686bff..c8a6c926ef2480cfb732ed7b1f81705e452fbef2 100644 (file)
@@ -6,7 +6,10 @@
 #include "includes.h"
 #include "librpc/gen_ndr/cli_unixinfo.h"
 
-NTSTATUS rpccli_unixinfo_SidToUid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct dom_sid sid, uint64_t *uid)
+NTSTATUS rpccli_unixinfo_SidToUid(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 struct dom_sid sid,
+                                 uint64_t *uid)
 {
        struct unixinfo_SidToUid r;
        NTSTATUS status;
@@ -14,17 +17,24 @@ NTSTATUS rpccli_unixinfo_SidToUid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        /* In parameters */
        r.in.sid = sid;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(unixinfo_SidToUid, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_UNIXINFO, &ndr_table_unixinfo, NDR_UNIXINFO_SIDTOUID, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_UNIXINFO,
+                               &ndr_table_unixinfo,
+                               NDR_UNIXINFO_SIDTOUID,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(unixinfo_SidToUid, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -37,7 +47,10 @@ NTSTATUS rpccli_unixinfo_SidToUid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        return r.out.result;
 }
 
-NTSTATUS rpccli_unixinfo_UidToSid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint64_t uid, struct dom_sid *sid)
+NTSTATUS rpccli_unixinfo_UidToSid(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 uint64_t uid,
+                                 struct dom_sid *sid)
 {
        struct unixinfo_UidToSid r;
        NTSTATUS status;
@@ -45,17 +58,24 @@ NTSTATUS rpccli_unixinfo_UidToSid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        /* In parameters */
        r.in.uid = uid;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(unixinfo_UidToSid, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_UNIXINFO, &ndr_table_unixinfo, NDR_UNIXINFO_UIDTOSID, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_UNIXINFO,
+                               &ndr_table_unixinfo,
+                               NDR_UNIXINFO_UIDTOSID,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(unixinfo_UidToSid, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -68,7 +88,10 @@ NTSTATUS rpccli_unixinfo_UidToSid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        return r.out.result;
 }
 
-NTSTATUS rpccli_unixinfo_SidToGid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct dom_sid sid, uint64_t *gid)
+NTSTATUS rpccli_unixinfo_SidToGid(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 struct dom_sid sid,
+                                 uint64_t *gid)
 {
        struct unixinfo_SidToGid r;
        NTSTATUS status;
@@ -76,17 +99,24 @@ NTSTATUS rpccli_unixinfo_SidToGid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        /* In parameters */
        r.in.sid = sid;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(unixinfo_SidToGid, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_UNIXINFO, &ndr_table_unixinfo, NDR_UNIXINFO_SIDTOGID, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_UNIXINFO,
+                               &ndr_table_unixinfo,
+                               NDR_UNIXINFO_SIDTOGID,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(unixinfo_SidToGid, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -99,7 +129,10 @@ NTSTATUS rpccli_unixinfo_SidToGid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        return r.out.result;
 }
 
-NTSTATUS rpccli_unixinfo_GidToSid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint64_t gid, struct dom_sid *sid)
+NTSTATUS rpccli_unixinfo_GidToSid(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 uint64_t gid,
+                                 struct dom_sid *sid)
 {
        struct unixinfo_GidToSid r;
        NTSTATUS status;
@@ -107,17 +140,24 @@ NTSTATUS rpccli_unixinfo_GidToSid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        /* In parameters */
        r.in.gid = gid;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(unixinfo_GidToSid, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_UNIXINFO, &ndr_table_unixinfo, NDR_UNIXINFO_GIDTOSID, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_UNIXINFO,
+                               &ndr_table_unixinfo,
+                               NDR_UNIXINFO_GIDTOSID,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(unixinfo_GidToSid, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -130,7 +170,11 @@ NTSTATUS rpccli_unixinfo_GidToSid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        return r.out.result;
 }
 
-NTSTATUS rpccli_unixinfo_GetPWUid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t *count, uint64_t *uids, struct unixinfo_GetPWUidInfo *infos)
+NTSTATUS rpccli_unixinfo_GetPWUid(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 uint32_t *count,
+                                 uint64_t *uids,
+                                 struct unixinfo_GetPWUidInfo *infos)
 {
        struct unixinfo_GetPWUid r;
        NTSTATUS status;
@@ -139,17 +183,24 @@ NTSTATUS rpccli_unixinfo_GetPWUid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        r.in.count = count;
        r.in.uids = uids;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(unixinfo_GetPWUid, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_UNIXINFO, &ndr_table_unixinfo, NDR_UNIXINFO_GETPWUID, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_UNIXINFO,
+                               &ndr_table_unixinfo,
+                               NDR_UNIXINFO_GETPWUID,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(unixinfo_GetPWUid, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
index f0f2b54626b78b3fae7c64c8963779a0ebbeb75e..fa084cc75db12462aba6b55eee20199687c6478f 100644 (file)
@@ -1,9 +1,25 @@
 #include "librpc/gen_ndr/ndr_unixinfo.h"
 #ifndef __CLI_UNIXINFO__
 #define __CLI_UNIXINFO__
-NTSTATUS rpccli_unixinfo_SidToUid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct dom_sid sid, uint64_t *uid);
-NTSTATUS rpccli_unixinfo_UidToSid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint64_t uid, struct dom_sid *sid);
-NTSTATUS rpccli_unixinfo_SidToGid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct dom_sid sid, uint64_t *gid);
-NTSTATUS rpccli_unixinfo_GidToSid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint64_t gid, struct dom_sid *sid);
-NTSTATUS rpccli_unixinfo_GetPWUid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t *count, uint64_t *uids, struct unixinfo_GetPWUidInfo *infos);
+NTSTATUS rpccli_unixinfo_SidToUid(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 struct dom_sid sid,
+                                 uint64_t *uid);
+NTSTATUS rpccli_unixinfo_UidToSid(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 uint64_t uid,
+                                 struct dom_sid *sid);
+NTSTATUS rpccli_unixinfo_SidToGid(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 struct dom_sid sid,
+                                 uint64_t *gid);
+NTSTATUS rpccli_unixinfo_GidToSid(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 uint64_t gid,
+                                 struct dom_sid *sid);
+NTSTATUS rpccli_unixinfo_GetPWUid(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 uint32_t *count,
+                                 uint64_t *uids,
+                                 struct unixinfo_GetPWUidInfo *infos);
 #endif /* __CLI_UNIXINFO__ */
index 934dfc17b60330d249a300c7d9e3d25b4bcb59b9..1c691e3d32a42acc95ac7a379f03ffaecb40116c 100644 (file)
@@ -6,7 +6,12 @@
 #include "includes.h"
 #include "librpc/gen_ndr/cli_winreg.h"
 
-NTSTATUS rpccli_winreg_OpenHKCR(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_winreg_OpenHKCR(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               uint16_t *system_name,
+                               uint32_t access_mask,
+                               struct policy_handle *handle,
+                               WERROR *werror)
 {
        struct winreg_OpenHKCR r;
        NTSTATUS status;
@@ -15,17 +20,24 @@ NTSTATUS rpccli_winreg_OpenHKCR(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        r.in.system_name = system_name;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_OpenHKCR, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_OPENHKCR, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_OPENHKCR,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_OpenHKCR, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -42,7 +54,12 @@ NTSTATUS rpccli_winreg_OpenHKCR(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_OpenHKCU(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_winreg_OpenHKCU(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               uint16_t *system_name,
+                               uint32_t access_mask,
+                               struct policy_handle *handle,
+                               WERROR *werror)
 {
        struct winreg_OpenHKCU r;
        NTSTATUS status;
@@ -51,17 +68,24 @@ NTSTATUS rpccli_winreg_OpenHKCU(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        r.in.system_name = system_name;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_OpenHKCU, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_OPENHKCU, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_OPENHKCU,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_OpenHKCU, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -78,7 +102,12 @@ NTSTATUS rpccli_winreg_OpenHKCU(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_OpenHKLM(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_winreg_OpenHKLM(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               uint16_t *system_name,
+                               uint32_t access_mask,
+                               struct policy_handle *handle,
+                               WERROR *werror)
 {
        struct winreg_OpenHKLM r;
        NTSTATUS status;
@@ -87,17 +116,24 @@ NTSTATUS rpccli_winreg_OpenHKLM(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        r.in.system_name = system_name;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_OpenHKLM, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_OPENHKLM, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_OPENHKLM,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_OpenHKLM, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -114,7 +150,12 @@ NTSTATUS rpccli_winreg_OpenHKLM(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_OpenHKPD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_winreg_OpenHKPD(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               uint16_t *system_name,
+                               uint32_t access_mask,
+                               struct policy_handle *handle,
+                               WERROR *werror)
 {
        struct winreg_OpenHKPD r;
        NTSTATUS status;
@@ -123,17 +164,24 @@ NTSTATUS rpccli_winreg_OpenHKPD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        r.in.system_name = system_name;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_OpenHKPD, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_OPENHKPD, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_OPENHKPD,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_OpenHKPD, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -150,7 +198,12 @@ NTSTATUS rpccli_winreg_OpenHKPD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_OpenHKU(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_winreg_OpenHKU(struct rpc_pipe_client *cli,
+                              TALLOC_CTX *mem_ctx,
+                              uint16_t *system_name,
+                              uint32_t access_mask,
+                              struct policy_handle *handle,
+                              WERROR *werror)
 {
        struct winreg_OpenHKU r;
        NTSTATUS status;
@@ -159,17 +212,24 @@ NTSTATUS rpccli_winreg_OpenHKU(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        r.in.system_name = system_name;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_OpenHKU, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_OPENHKU, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_OPENHKU,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_OpenHKU, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -186,7 +246,10 @@ NTSTATUS rpccli_winreg_OpenHKU(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_CloseKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_winreg_CloseKey(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               struct policy_handle *handle,
+                               WERROR *werror)
 {
        struct winreg_CloseKey r;
        NTSTATUS status;
@@ -194,17 +257,24 @@ NTSTATUS rpccli_winreg_CloseKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        /* In parameters */
        r.in.handle = handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_CloseKey, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_CLOSEKEY, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_CLOSEKEY,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_CloseKey, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -221,7 +291,17 @@ NTSTATUS rpccli_winreg_CloseKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_CreateKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String name, struct winreg_String keyclass, uint32_t options, uint32_t access_mask, struct winreg_SecBuf *secdesc, struct policy_handle *new_handle, enum winreg_CreateAction *action_taken, WERROR *werror)
+NTSTATUS rpccli_winreg_CreateKey(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                struct policy_handle *handle,
+                                struct winreg_String name,
+                                struct winreg_String keyclass,
+                                uint32_t options,
+                                uint32_t access_mask,
+                                struct winreg_SecBuf *secdesc,
+                                struct policy_handle *new_handle,
+                                enum winreg_CreateAction *action_taken,
+                                WERROR *werror)
 {
        struct winreg_CreateKey r;
        NTSTATUS status;
@@ -235,17 +315,24 @@ NTSTATUS rpccli_winreg_CreateKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
        r.in.secdesc = secdesc;
        r.in.action_taken = action_taken;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_CreateKey, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_CREATEKEY, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_CREATEKEY,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_CreateKey, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -265,7 +352,11 @@ NTSTATUS rpccli_winreg_CreateKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_DeleteKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String key, WERROR *werror)
+NTSTATUS rpccli_winreg_DeleteKey(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                struct policy_handle *handle,
+                                struct winreg_String key,
+                                WERROR *werror)
 {
        struct winreg_DeleteKey r;
        NTSTATUS status;
@@ -274,17 +365,24 @@ NTSTATUS rpccli_winreg_DeleteKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
        r.in.handle = handle;
        r.in.key = key;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_DeleteKey, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_DELETEKEY, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_DELETEKEY,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_DeleteKey, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -300,7 +398,11 @@ NTSTATUS rpccli_winreg_DeleteKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_DeleteValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String value, WERROR *werror)
+NTSTATUS rpccli_winreg_DeleteValue(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  struct policy_handle *handle,
+                                  struct winreg_String value,
+                                  WERROR *werror)
 {
        struct winreg_DeleteValue r;
        NTSTATUS status;
@@ -309,17 +411,24 @@ NTSTATUS rpccli_winreg_DeleteValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        r.in.handle = handle;
        r.in.value = value;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_DeleteValue, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_DELETEVALUE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_DELETEVALUE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_DeleteValue, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -335,7 +444,14 @@ NTSTATUS rpccli_winreg_DeleteValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_EnumKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t enum_index, struct winreg_StringBuf *name, struct winreg_StringBuf *keyclass, NTTIME *last_changed_time, WERROR *werror)
+NTSTATUS rpccli_winreg_EnumKey(struct rpc_pipe_client *cli,
+                              TALLOC_CTX *mem_ctx,
+                              struct policy_handle *handle,
+                              uint32_t enum_index,
+                              struct winreg_StringBuf *name,
+                              struct winreg_StringBuf *keyclass,
+                              NTTIME *last_changed_time,
+                              WERROR *werror)
 {
        struct winreg_EnumKey r;
        NTSTATUS status;
@@ -347,17 +463,24 @@ NTSTATUS rpccli_winreg_EnumKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        r.in.keyclass = keyclass;
        r.in.last_changed_time = last_changed_time;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_EnumKey, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_ENUMKEY, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_ENUMKEY,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_EnumKey, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -380,7 +503,16 @@ NTSTATUS rpccli_winreg_EnumKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_EnumValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t enum_index, struct winreg_ValNameBuf *name, enum winreg_Type *type, uint8_t *value, uint32_t *size, uint32_t *length, WERROR *werror)
+NTSTATUS rpccli_winreg_EnumValue(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                struct policy_handle *handle,
+                                uint32_t enum_index,
+                                struct winreg_ValNameBuf *name,
+                                enum winreg_Type *type,
+                                uint8_t *value,
+                                uint32_t *size,
+                                uint32_t *length,
+                                WERROR *werror)
 {
        struct winreg_EnumValue r;
        NTSTATUS status;
@@ -394,17 +526,24 @@ NTSTATUS rpccli_winreg_EnumValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
        r.in.size = size;
        r.in.length = length;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_EnumValue, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_ENUMVALUE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_ENUMVALUE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_EnumValue, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -433,7 +572,10 @@ NTSTATUS rpccli_winreg_EnumValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_FlushKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_winreg_FlushKey(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               struct policy_handle *handle,
+                               WERROR *werror)
 {
        struct winreg_FlushKey r;
        NTSTATUS status;
@@ -441,17 +583,24 @@ NTSTATUS rpccli_winreg_FlushKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        /* In parameters */
        r.in.handle = handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_FlushKey, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_FLUSHKEY, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_FLUSHKEY,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_FlushKey, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -467,7 +616,12 @@ NTSTATUS rpccli_winreg_FlushKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_GetKeySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t sec_info, struct KeySecurityData *sd, WERROR *werror)
+NTSTATUS rpccli_winreg_GetKeySecurity(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     struct policy_handle *handle,
+                                     uint32_t sec_info,
+                                     struct KeySecurityData *sd,
+                                     WERROR *werror)
 {
        struct winreg_GetKeySecurity r;
        NTSTATUS status;
@@ -477,17 +631,24 @@ NTSTATUS rpccli_winreg_GetKeySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *m
        r.in.sec_info = sec_info;
        r.in.sd = sd;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_GetKeySecurity, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_GETKEYSECURITY, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_GETKEYSECURITY,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_GetKeySecurity, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -504,7 +665,12 @@ NTSTATUS rpccli_winreg_GetKeySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *m
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_LoadKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String *keyname, struct winreg_String *filename, WERROR *werror)
+NTSTATUS rpccli_winreg_LoadKey(struct rpc_pipe_client *cli,
+                              TALLOC_CTX *mem_ctx,
+                              struct policy_handle *handle,
+                              struct winreg_String *keyname,
+                              struct winreg_String *filename,
+                              WERROR *werror)
 {
        struct winreg_LoadKey r;
        NTSTATUS status;
@@ -514,17 +680,24 @@ NTSTATUS rpccli_winreg_LoadKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        r.in.keyname = keyname;
        r.in.filename = filename;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_LoadKey, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_LOADKEY, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_LOADKEY,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_LoadKey, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -540,7 +713,16 @@ NTSTATUS rpccli_winreg_LoadKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_NotifyChangeKeyValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint8_t watch_subtree, uint32_t notify_filter, uint32_t unknown, struct winreg_String string1, struct winreg_String string2, uint32_t unknown2, WERROR *werror)
+NTSTATUS rpccli_winreg_NotifyChangeKeyValue(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           struct policy_handle *handle,
+                                           uint8_t watch_subtree,
+                                           uint32_t notify_filter,
+                                           uint32_t unknown,
+                                           struct winreg_String string1,
+                                           struct winreg_String string2,
+                                           uint32_t unknown2,
+                                           WERROR *werror)
 {
        struct winreg_NotifyChangeKeyValue r;
        NTSTATUS status;
@@ -554,17 +736,24 @@ NTSTATUS rpccli_winreg_NotifyChangeKeyValue(struct rpc_pipe_client *cli, TALLOC_
        r.in.string2 = string2;
        r.in.unknown2 = unknown2;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_NotifyChangeKeyValue, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_NOTIFYCHANGEKEYVALUE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_NOTIFYCHANGEKEYVALUE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_NotifyChangeKeyValue, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -580,7 +769,14 @@ NTSTATUS rpccli_winreg_NotifyChangeKeyValue(struct rpc_pipe_client *cli, TALLOC_
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_OpenKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *parent_handle, struct winreg_String keyname, uint32_t unknown, uint32_t access_mask, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_winreg_OpenKey(struct rpc_pipe_client *cli,
+                              TALLOC_CTX *mem_ctx,
+                              struct policy_handle *parent_handle,
+                              struct winreg_String keyname,
+                              uint32_t unknown,
+                              uint32_t access_mask,
+                              struct policy_handle *handle,
+                              WERROR *werror)
 {
        struct winreg_OpenKey r;
        NTSTATUS status;
@@ -591,17 +787,24 @@ NTSTATUS rpccli_winreg_OpenKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        r.in.unknown = unknown;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_OpenKey, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_OPENKEY, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_OPENKEY,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_OpenKey, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -618,7 +821,19 @@ NTSTATUS rpccli_winreg_OpenKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_QueryInfoKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String *classname, uint32_t *num_subkeys, uint32_t *max_subkeylen, uint32_t *max_classlen, uint32_t *num_values, uint32_t *max_valnamelen, uint32_t *max_valbufsize, uint32_t *secdescsize, NTTIME *last_changed_time, WERROR *werror)
+NTSTATUS rpccli_winreg_QueryInfoKey(struct rpc_pipe_client *cli,
+                                   TALLOC_CTX *mem_ctx,
+                                   struct policy_handle *handle,
+                                   struct winreg_String *classname,
+                                   uint32_t *num_subkeys,
+                                   uint32_t *max_subkeylen,
+                                   uint32_t *max_classlen,
+                                   uint32_t *num_values,
+                                   uint32_t *max_valnamelen,
+                                   uint32_t *max_valbufsize,
+                                   uint32_t *secdescsize,
+                                   NTTIME *last_changed_time,
+                                   WERROR *werror)
 {
        struct winreg_QueryInfoKey r;
        NTSTATUS status;
@@ -627,17 +842,24 @@ NTSTATUS rpccli_winreg_QueryInfoKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem
        r.in.handle = handle;
        r.in.classname = classname;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_QueryInfoKey, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_QUERYINFOKEY, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_QUERYINFOKEY,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_QueryInfoKey, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -662,7 +884,15 @@ NTSTATUS rpccli_winreg_QueryInfoKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_QueryValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String value_name, enum winreg_Type *type, uint8_t *data, uint32_t *data_size, uint32_t *value_length, WERROR *werror)
+NTSTATUS rpccli_winreg_QueryValue(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 struct policy_handle *handle,
+                                 struct winreg_String value_name,
+                                 enum winreg_Type *type,
+                                 uint8_t *data,
+                                 uint32_t *data_size,
+                                 uint32_t *value_length,
+                                 WERROR *werror)
 {
        struct winreg_QueryValue r;
        NTSTATUS status;
@@ -675,17 +905,24 @@ NTSTATUS rpccli_winreg_QueryValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        r.in.data_size = data_size;
        r.in.value_length = value_length;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_QueryValue, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_QUERYVALUE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_QUERYVALUE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_QueryValue, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -713,24 +950,33 @@ NTSTATUS rpccli_winreg_QueryValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_ReplaceKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_winreg_ReplaceKey(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 WERROR *werror)
 {
        struct winreg_ReplaceKey r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_ReplaceKey, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_REPLACEKEY, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_REPLACEKEY,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_ReplaceKey, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -746,7 +992,12 @@ NTSTATUS rpccli_winreg_ReplaceKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_RestoreKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String *filename, uint32_t flags, WERROR *werror)
+NTSTATUS rpccli_winreg_RestoreKey(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 struct policy_handle *handle,
+                                 struct winreg_String *filename,
+                                 uint32_t flags,
+                                 WERROR *werror)
 {
        struct winreg_RestoreKey r;
        NTSTATUS status;
@@ -756,17 +1007,24 @@ NTSTATUS rpccli_winreg_RestoreKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        r.in.filename = filename;
        r.in.flags = flags;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_RestoreKey, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_RESTOREKEY, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_RESTOREKEY,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_RestoreKey, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -782,7 +1040,12 @@ NTSTATUS rpccli_winreg_RestoreKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_SaveKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String *filename, struct KeySecurityAttribute *sec_attrib, WERROR *werror)
+NTSTATUS rpccli_winreg_SaveKey(struct rpc_pipe_client *cli,
+                              TALLOC_CTX *mem_ctx,
+                              struct policy_handle *handle,
+                              struct winreg_String *filename,
+                              struct KeySecurityAttribute *sec_attrib,
+                              WERROR *werror)
 {
        struct winreg_SaveKey r;
        NTSTATUS status;
@@ -792,17 +1055,24 @@ NTSTATUS rpccli_winreg_SaveKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        r.in.filename = filename;
        r.in.sec_attrib = sec_attrib;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_SaveKey, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_SAVEKEY, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_SAVEKEY,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_SaveKey, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -818,7 +1088,12 @@ NTSTATUS rpccli_winreg_SaveKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_SetKeySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t access_mask, struct KeySecurityData *sd, WERROR *werror)
+NTSTATUS rpccli_winreg_SetKeySecurity(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     struct policy_handle *handle,
+                                     uint32_t access_mask,
+                                     struct KeySecurityData *sd,
+                                     WERROR *werror)
 {
        struct winreg_SetKeySecurity r;
        NTSTATUS status;
@@ -828,17 +1103,24 @@ NTSTATUS rpccli_winreg_SetKeySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *m
        r.in.access_mask = access_mask;
        r.in.sd = sd;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_SetKeySecurity, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_SETKEYSECURITY, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_SETKEYSECURITY,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_SetKeySecurity, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -854,7 +1136,14 @@ NTSTATUS rpccli_winreg_SetKeySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *m
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_SetValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String name, enum winreg_Type type, uint8_t *data, uint32_t size, WERROR *werror)
+NTSTATUS rpccli_winreg_SetValue(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               struct policy_handle *handle,
+                               struct winreg_String name,
+                               enum winreg_Type type,
+                               uint8_t *data,
+                               uint32_t size,
+                               WERROR *werror)
 {
        struct winreg_SetValue r;
        NTSTATUS status;
@@ -866,17 +1155,24 @@ NTSTATUS rpccli_winreg_SetValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        r.in.data = data;
        r.in.size = size;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_SetValue, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_SETVALUE, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_SETVALUE,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_SetValue, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -892,24 +1188,33 @@ NTSTATUS rpccli_winreg_SetValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_UnLoadKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_winreg_UnLoadKey(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                WERROR *werror)
 {
        struct winreg_UnLoadKey r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_UnLoadKey, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_UNLOADKEY, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_UNLOADKEY,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_UnLoadKey, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -925,7 +1230,14 @@ NTSTATUS rpccli_winreg_UnLoadKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_InitiateSystemShutdown(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *hostname, struct initshutdown_String *message, uint32_t timeout, uint8_t force_apps, uint8_t reboot, WERROR *werror)
+NTSTATUS rpccli_winreg_InitiateSystemShutdown(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             uint16_t *hostname,
+                                             struct initshutdown_String *message,
+                                             uint32_t timeout,
+                                             uint8_t force_apps,
+                                             uint8_t reboot,
+                                             WERROR *werror)
 {
        struct winreg_InitiateSystemShutdown r;
        NTSTATUS status;
@@ -937,17 +1249,24 @@ NTSTATUS rpccli_winreg_InitiateSystemShutdown(struct rpc_pipe_client *cli, TALLO
        r.in.force_apps = force_apps;
        r.in.reboot = reboot;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_InitiateSystemShutdown, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_INITIATESYSTEMSHUTDOWN, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_INITIATESYSTEMSHUTDOWN,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_InitiateSystemShutdown, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -963,7 +1282,10 @@ NTSTATUS rpccli_winreg_InitiateSystemShutdown(struct rpc_pipe_client *cli, TALLO
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_AbortSystemShutdown(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *server, WERROR *werror)
+NTSTATUS rpccli_winreg_AbortSystemShutdown(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx,
+                                          uint16_t *server,
+                                          WERROR *werror)
 {
        struct winreg_AbortSystemShutdown r;
        NTSTATUS status;
@@ -971,17 +1293,24 @@ NTSTATUS rpccli_winreg_AbortSystemShutdown(struct rpc_pipe_client *cli, TALLOC_C
        /* In parameters */
        r.in.server = server;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_AbortSystemShutdown, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_ABORTSYSTEMSHUTDOWN, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_ABORTSYSTEMSHUTDOWN,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_AbortSystemShutdown, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -997,7 +1326,11 @@ NTSTATUS rpccli_winreg_AbortSystemShutdown(struct rpc_pipe_client *cli, TALLOC_C
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_GetVersion(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t *version, WERROR *werror)
+NTSTATUS rpccli_winreg_GetVersion(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 struct policy_handle *handle,
+                                 uint32_t *version,
+                                 WERROR *werror)
 {
        struct winreg_GetVersion r;
        NTSTATUS status;
@@ -1005,17 +1338,24 @@ NTSTATUS rpccli_winreg_GetVersion(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        /* In parameters */
        r.in.handle = handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_GetVersion, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_GETVERSION, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_GETVERSION,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_GetVersion, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1032,7 +1372,12 @@ NTSTATUS rpccli_winreg_GetVersion(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_OpenHKCC(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_winreg_OpenHKCC(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               uint16_t *system_name,
+                               uint32_t access_mask,
+                               struct policy_handle *handle,
+                               WERROR *werror)
 {
        struct winreg_OpenHKCC r;
        NTSTATUS status;
@@ -1041,17 +1386,24 @@ NTSTATUS rpccli_winreg_OpenHKCC(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        r.in.system_name = system_name;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_OpenHKCC, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_OPENHKCC, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_OPENHKCC,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_OpenHKCC, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1068,7 +1420,12 @@ NTSTATUS rpccli_winreg_OpenHKCC(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_OpenHKDD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_winreg_OpenHKDD(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               uint16_t *system_name,
+                               uint32_t access_mask,
+                               struct policy_handle *handle,
+                               WERROR *werror)
 {
        struct winreg_OpenHKDD r;
        NTSTATUS status;
@@ -1077,17 +1434,24 @@ NTSTATUS rpccli_winreg_OpenHKDD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        r.in.system_name = system_name;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_OpenHKDD, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_OPENHKDD, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_OPENHKDD,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_OpenHKDD, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1104,7 +1468,14 @@ NTSTATUS rpccli_winreg_OpenHKDD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_QueryMultipleValues(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *key_handle, struct QueryMultipleValue *values, uint32_t num_values, uint8_t *buffer, uint32_t *buffer_size, WERROR *werror)
+NTSTATUS rpccli_winreg_QueryMultipleValues(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx,
+                                          struct policy_handle *key_handle,
+                                          struct QueryMultipleValue *values,
+                                          uint32_t num_values,
+                                          uint8_t *buffer,
+                                          uint32_t *buffer_size,
+                                          WERROR *werror)
 {
        struct winreg_QueryMultipleValues r;
        NTSTATUS status;
@@ -1116,17 +1487,24 @@ NTSTATUS rpccli_winreg_QueryMultipleValues(struct rpc_pipe_client *cli, TALLOC_C
        r.in.buffer = buffer;
        r.in.buffer_size = buffer_size;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_QueryMultipleValues, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_QUERYMULTIPLEVALUES, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_QUERYMULTIPLEVALUES,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_QueryMultipleValues, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1147,7 +1525,15 @@ NTSTATUS rpccli_winreg_QueryMultipleValues(struct rpc_pipe_client *cli, TALLOC_C
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_InitiateSystemShutdownEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *hostname, struct initshutdown_String *message, uint32_t timeout, uint8_t force_apps, uint8_t reboot, uint32_t reason, WERROR *werror)
+NTSTATUS rpccli_winreg_InitiateSystemShutdownEx(struct rpc_pipe_client *cli,
+                                               TALLOC_CTX *mem_ctx,
+                                               uint16_t *hostname,
+                                               struct initshutdown_String *message,
+                                               uint32_t timeout,
+                                               uint8_t force_apps,
+                                               uint8_t reboot,
+                                               uint32_t reason,
+                                               WERROR *werror)
 {
        struct winreg_InitiateSystemShutdownEx r;
        NTSTATUS status;
@@ -1160,17 +1546,24 @@ NTSTATUS rpccli_winreg_InitiateSystemShutdownEx(struct rpc_pipe_client *cli, TAL
        r.in.reboot = reboot;
        r.in.reason = reason;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_InitiateSystemShutdownEx, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_INITIATESYSTEMSHUTDOWNEX, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_INITIATESYSTEMSHUTDOWNEX,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_InitiateSystemShutdownEx, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1186,24 +1579,33 @@ NTSTATUS rpccli_winreg_InitiateSystemShutdownEx(struct rpc_pipe_client *cli, TAL
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_SaveKeyEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_winreg_SaveKeyEx(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                WERROR *werror)
 {
        struct winreg_SaveKeyEx r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_SaveKeyEx, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_SAVEKEYEX, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_SAVEKEYEX,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_SaveKeyEx, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1219,7 +1621,12 @@ NTSTATUS rpccli_winreg_SaveKeyEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_OpenHKPT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_winreg_OpenHKPT(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               uint16_t *system_name,
+                               uint32_t access_mask,
+                               struct policy_handle *handle,
+                               WERROR *werror)
 {
        struct winreg_OpenHKPT r;
        NTSTATUS status;
@@ -1228,17 +1635,24 @@ NTSTATUS rpccli_winreg_OpenHKPT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        r.in.system_name = system_name;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_OpenHKPT, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_OPENHKPT, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_OPENHKPT,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_OpenHKPT, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1255,7 +1669,12 @@ NTSTATUS rpccli_winreg_OpenHKPT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_OpenHKPN(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_winreg_OpenHKPN(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               uint16_t *system_name,
+                               uint32_t access_mask,
+                               struct policy_handle *handle,
+                               WERROR *werror)
 {
        struct winreg_OpenHKPN r;
        NTSTATUS status;
@@ -1264,17 +1683,24 @@ NTSTATUS rpccli_winreg_OpenHKPN(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        r.in.system_name = system_name;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_OpenHKPN, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_OPENHKPN, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_OPENHKPN,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_OpenHKPN, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1291,24 +1717,33 @@ NTSTATUS rpccli_winreg_OpenHKPN(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_QueryMultipleValues2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_winreg_QueryMultipleValues2(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           WERROR *werror)
 {
        struct winreg_QueryMultipleValues2 r;
        NTSTATUS status;
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_QueryMultipleValues2, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_QUERYMULTIPLEVALUES2, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WINREG,
+                               &ndr_table_winreg,
+                               NDR_WINREG_QUERYMULTIPLEVALUES2,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_QueryMultipleValues2, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
index 48934e1286f75ff7be02d322177a486037872512..9ba46884d504cf9894fcf029787fbead9d250a63 100644 (file)
 #include "librpc/gen_ndr/ndr_winreg.h"
 #ifndef __CLI_WINREG__
 #define __CLI_WINREG__
-NTSTATUS rpccli_winreg_OpenHKCR(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_winreg_OpenHKCU(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_winreg_OpenHKLM(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_winreg_OpenHKPD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_winreg_OpenHKU(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_winreg_CloseKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_winreg_CreateKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String name, struct winreg_String keyclass, uint32_t options, uint32_t access_mask, struct winreg_SecBuf *secdesc, struct policy_handle *new_handle, enum winreg_CreateAction *action_taken, WERROR *werror);
-NTSTATUS rpccli_winreg_DeleteKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String key, WERROR *werror);
-NTSTATUS rpccli_winreg_DeleteValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String value, WERROR *werror);
-NTSTATUS rpccli_winreg_EnumKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t enum_index, struct winreg_StringBuf *name, struct winreg_StringBuf *keyclass, NTTIME *last_changed_time, WERROR *werror);
-NTSTATUS rpccli_winreg_EnumValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t enum_index, struct winreg_ValNameBuf *name, enum winreg_Type *type, uint8_t *value, uint32_t *size, uint32_t *length, WERROR *werror);
-NTSTATUS rpccli_winreg_FlushKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_winreg_GetKeySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t sec_info, struct KeySecurityData *sd, WERROR *werror);
-NTSTATUS rpccli_winreg_LoadKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String *keyname, struct winreg_String *filename, WERROR *werror);
-NTSTATUS rpccli_winreg_NotifyChangeKeyValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint8_t watch_subtree, uint32_t notify_filter, uint32_t unknown, struct winreg_String string1, struct winreg_String string2, uint32_t unknown2, WERROR *werror);
-NTSTATUS rpccli_winreg_OpenKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *parent_handle, struct winreg_String keyname, uint32_t unknown, uint32_t access_mask, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_winreg_QueryInfoKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String *classname, uint32_t *num_subkeys, uint32_t *max_subkeylen, uint32_t *max_classlen, uint32_t *num_values, uint32_t *max_valnamelen, uint32_t *max_valbufsize, uint32_t *secdescsize, NTTIME *last_changed_time, WERROR *werror);
-NTSTATUS rpccli_winreg_QueryValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String value_name, enum winreg_Type *type, uint8_t *data, uint32_t *data_size, uint32_t *value_length, WERROR *werror);
-NTSTATUS rpccli_winreg_ReplaceKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_winreg_RestoreKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String *filename, uint32_t flags, WERROR *werror);
-NTSTATUS rpccli_winreg_SaveKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String *filename, struct KeySecurityAttribute *sec_attrib, WERROR *werror);
-NTSTATUS rpccli_winreg_SetKeySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t access_mask, struct KeySecurityData *sd, WERROR *werror);
-NTSTATUS rpccli_winreg_SetValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String name, enum winreg_Type type, uint8_t *data, uint32_t size, WERROR *werror);
-NTSTATUS rpccli_winreg_UnLoadKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_winreg_InitiateSystemShutdown(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *hostname, struct initshutdown_String *message, uint32_t timeout, uint8_t force_apps, uint8_t reboot, WERROR *werror);
-NTSTATUS rpccli_winreg_AbortSystemShutdown(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *server, WERROR *werror);
-NTSTATUS rpccli_winreg_GetVersion(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t *version, WERROR *werror);
-NTSTATUS rpccli_winreg_OpenHKCC(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_winreg_OpenHKDD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_winreg_QueryMultipleValues(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *key_handle, struct QueryMultipleValue *values, uint32_t num_values, uint8_t *buffer, uint32_t *buffer_size, WERROR *werror);
-NTSTATUS rpccli_winreg_InitiateSystemShutdownEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *hostname, struct initshutdown_String *message, uint32_t timeout, uint8_t force_apps, uint8_t reboot, uint32_t reason, WERROR *werror);
-NTSTATUS rpccli_winreg_SaveKeyEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_winreg_OpenHKPT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_winreg_OpenHKPN(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_winreg_QueryMultipleValues2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
+NTSTATUS rpccli_winreg_OpenHKCR(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               uint16_t *system_name,
+                               uint32_t access_mask,
+                               struct policy_handle *handle,
+                               WERROR *werror);
+NTSTATUS rpccli_winreg_OpenHKCU(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               uint16_t *system_name,
+                               uint32_t access_mask,
+                               struct policy_handle *handle,
+                               WERROR *werror);
+NTSTATUS rpccli_winreg_OpenHKLM(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               uint16_t *system_name,
+                               uint32_t access_mask,
+                               struct policy_handle *handle,
+                               WERROR *werror);
+NTSTATUS rpccli_winreg_OpenHKPD(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               uint16_t *system_name,
+                               uint32_t access_mask,
+                               struct policy_handle *handle,
+                               WERROR *werror);
+NTSTATUS rpccli_winreg_OpenHKU(struct rpc_pipe_client *cli,
+                              TALLOC_CTX *mem_ctx,
+                              uint16_t *system_name,
+                              uint32_t access_mask,
+                              struct policy_handle *handle,
+                              WERROR *werror);
+NTSTATUS rpccli_winreg_CloseKey(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               struct policy_handle *handle,
+                               WERROR *werror);
+NTSTATUS rpccli_winreg_CreateKey(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                struct policy_handle *handle,
+                                struct winreg_String name,
+                                struct winreg_String keyclass,
+                                uint32_t options,
+                                uint32_t access_mask,
+                                struct winreg_SecBuf *secdesc,
+                                struct policy_handle *new_handle,
+                                enum winreg_CreateAction *action_taken,
+                                WERROR *werror);
+NTSTATUS rpccli_winreg_DeleteKey(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                struct policy_handle *handle,
+                                struct winreg_String key,
+                                WERROR *werror);
+NTSTATUS rpccli_winreg_DeleteValue(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  struct policy_handle *handle,
+                                  struct winreg_String value,
+                                  WERROR *werror);
+NTSTATUS rpccli_winreg_EnumKey(struct rpc_pipe_client *cli,
+                              TALLOC_CTX *mem_ctx,
+                              struct policy_handle *handle,
+                              uint32_t enum_index,
+                              struct winreg_StringBuf *name,
+                              struct winreg_StringBuf *keyclass,
+                              NTTIME *last_changed_time,
+                              WERROR *werror);
+NTSTATUS rpccli_winreg_EnumValue(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                struct policy_handle *handle,
+                                uint32_t enum_index,
+                                struct winreg_ValNameBuf *name,
+                                enum winreg_Type *type,
+                                uint8_t *value,
+                                uint32_t *size,
+                                uint32_t *length,
+                                WERROR *werror);
+NTSTATUS rpccli_winreg_FlushKey(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               struct policy_handle *handle,
+                               WERROR *werror);
+NTSTATUS rpccli_winreg_GetKeySecurity(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     struct policy_handle *handle,
+                                     uint32_t sec_info,
+                                     struct KeySecurityData *sd,
+                                     WERROR *werror);
+NTSTATUS rpccli_winreg_LoadKey(struct rpc_pipe_client *cli,
+                              TALLOC_CTX *mem_ctx,
+                              struct policy_handle *handle,
+                              struct winreg_String *keyname,
+                              struct winreg_String *filename,
+                              WERROR *werror);
+NTSTATUS rpccli_winreg_NotifyChangeKeyValue(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           struct policy_handle *handle,
+                                           uint8_t watch_subtree,
+                                           uint32_t notify_filter,
+                                           uint32_t unknown,
+                                           struct winreg_String string1,
+                                           struct winreg_String string2,
+                                           uint32_t unknown2,
+                                           WERROR *werror);
+NTSTATUS rpccli_winreg_OpenKey(struct rpc_pipe_client *cli,
+                              TALLOC_CTX *mem_ctx,
+                              struct policy_handle *parent_handle,
+                              struct winreg_String keyname,
+                              uint32_t unknown,
+                              uint32_t access_mask,
+                              struct policy_handle *handle,
+                              WERROR *werror);
+NTSTATUS rpccli_winreg_QueryInfoKey(struct rpc_pipe_client *cli,
+                                   TALLOC_CTX *mem_ctx,
+                                   struct policy_handle *handle,
+                                   struct winreg_String *classname,
+                                   uint32_t *num_subkeys,
+                                   uint32_t *max_subkeylen,
+                                   uint32_t *max_classlen,
+                                   uint32_t *num_values,
+                                   uint32_t *max_valnamelen,
+                                   uint32_t *max_valbufsize,
+                                   uint32_t *secdescsize,
+                                   NTTIME *last_changed_time,
+                                   WERROR *werror);
+NTSTATUS rpccli_winreg_QueryValue(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 struct policy_handle *handle,
+                                 struct winreg_String value_name,
+                                 enum winreg_Type *type,
+                                 uint8_t *data,
+                                 uint32_t *data_size,
+                                 uint32_t *value_length,
+                                 WERROR *werror);
+NTSTATUS rpccli_winreg_ReplaceKey(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 WERROR *werror);
+NTSTATUS rpccli_winreg_RestoreKey(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 struct policy_handle *handle,
+                                 struct winreg_String *filename,
+                                 uint32_t flags,
+                                 WERROR *werror);
+NTSTATUS rpccli_winreg_SaveKey(struct rpc_pipe_client *cli,
+                              TALLOC_CTX *mem_ctx,
+                              struct policy_handle *handle,
+                              struct winreg_String *filename,
+                              struct KeySecurityAttribute *sec_attrib,
+                              WERROR *werror);
+NTSTATUS rpccli_winreg_SetKeySecurity(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     struct policy_handle *handle,
+                                     uint32_t access_mask,
+                                     struct KeySecurityData *sd,
+                                     WERROR *werror);
+NTSTATUS rpccli_winreg_SetValue(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               struct policy_handle *handle,
+                               struct winreg_String name,
+                               enum winreg_Type type,
+                               uint8_t *data,
+                               uint32_t size,
+                               WERROR *werror);
+NTSTATUS rpccli_winreg_UnLoadKey(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                WERROR *werror);
+NTSTATUS rpccli_winreg_InitiateSystemShutdown(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             uint16_t *hostname,
+                                             struct initshutdown_String *message,
+                                             uint32_t timeout,
+                                             uint8_t force_apps,
+                                             uint8_t reboot,
+                                             WERROR *werror);
+NTSTATUS rpccli_winreg_AbortSystemShutdown(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx,
+                                          uint16_t *server,
+                                          WERROR *werror);
+NTSTATUS rpccli_winreg_GetVersion(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 struct policy_handle *handle,
+                                 uint32_t *version,
+                                 WERROR *werror);
+NTSTATUS rpccli_winreg_OpenHKCC(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               uint16_t *system_name,
+                               uint32_t access_mask,
+                               struct policy_handle *handle,
+                               WERROR *werror);
+NTSTATUS rpccli_winreg_OpenHKDD(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               uint16_t *system_name,
+                               uint32_t access_mask,
+                               struct policy_handle *handle,
+                               WERROR *werror);
+NTSTATUS rpccli_winreg_QueryMultipleValues(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx,
+                                          struct policy_handle *key_handle,
+                                          struct QueryMultipleValue *values,
+                                          uint32_t num_values,
+                                          uint8_t *buffer,
+                                          uint32_t *buffer_size,
+                                          WERROR *werror);
+NTSTATUS rpccli_winreg_InitiateSystemShutdownEx(struct rpc_pipe_client *cli,
+                                               TALLOC_CTX *mem_ctx,
+                                               uint16_t *hostname,
+                                               struct initshutdown_String *message,
+                                               uint32_t timeout,
+                                               uint8_t force_apps,
+                                               uint8_t reboot,
+                                               uint32_t reason,
+                                               WERROR *werror);
+NTSTATUS rpccli_winreg_SaveKeyEx(struct rpc_pipe_client *cli,
+                                TALLOC_CTX *mem_ctx,
+                                WERROR *werror);
+NTSTATUS rpccli_winreg_OpenHKPT(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               uint16_t *system_name,
+                               uint32_t access_mask,
+                               struct policy_handle *handle,
+                               WERROR *werror);
+NTSTATUS rpccli_winreg_OpenHKPN(struct rpc_pipe_client *cli,
+                               TALLOC_CTX *mem_ctx,
+                               uint16_t *system_name,
+                               uint32_t access_mask,
+                               struct policy_handle *handle,
+                               WERROR *werror);
+NTSTATUS rpccli_winreg_QueryMultipleValues2(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           WERROR *werror);
 #endif /* __CLI_WINREG__ */
index f0a35c701c318f78f97615dff8966114b24a1b67..581a49814686a9e2a988f353c11f447146747769 100644 (file)
@@ -6,7 +6,12 @@
 #include "includes.h"
 #include "librpc/gen_ndr/cli_wkssvc.h"
 
-NTSTATUS rpccli_wkssvc_NetWkstaGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, uint32_t level, union wkssvc_NetWkstaInfo *info, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetWkstaGetInfo(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      const char *server_name,
+                                      uint32_t level,
+                                      union wkssvc_NetWkstaInfo *info,
+                                      WERROR *werror)
 {
        struct wkssvc_NetWkstaGetInfo r;
        NTSTATUS status;
@@ -15,17 +20,24 @@ NTSTATUS rpccli_wkssvc_NetWkstaGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *
        r.in.server_name = server_name;
        r.in.level = level;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaGetInfo, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETWKSTAGETINFO, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETWKSTAGETINFO,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaGetInfo, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -42,7 +54,13 @@ NTSTATUS rpccli_wkssvc_NetWkstaGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_wkssvc_NetWkstaSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, uint32_t level, union wkssvc_NetWkstaInfo *info, uint32_t *parm_error, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetWkstaSetInfo(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      const char *server_name,
+                                      uint32_t level,
+                                      union wkssvc_NetWkstaInfo *info,
+                                      uint32_t *parm_error,
+                                      WERROR *werror)
 {
        struct wkssvc_NetWkstaSetInfo r;
        NTSTATUS status;
@@ -53,17 +71,24 @@ NTSTATUS rpccli_wkssvc_NetWkstaSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *
        r.in.info = info;
        r.in.parm_error = parm_error;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaSetInfo, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETWKSTASETINFO, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETWKSTASETINFO,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaSetInfo, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -80,7 +105,14 @@ NTSTATUS rpccli_wkssvc_NetWkstaSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_wkssvc_NetWkstaEnumUsers(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, struct wkssvc_NetWkstaEnumUsersInfo *info, uint32_t prefmaxlen, uint32_t *entries_read, uint32_t *resume_handle, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetWkstaEnumUsers(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        const char *server_name,
+                                        struct wkssvc_NetWkstaEnumUsersInfo *info,
+                                        uint32_t prefmaxlen,
+                                        uint32_t *entries_read,
+                                        uint32_t *resume_handle,
+                                        WERROR *werror)
 {
        struct wkssvc_NetWkstaEnumUsers r;
        NTSTATUS status;
@@ -91,17 +123,24 @@ NTSTATUS rpccli_wkssvc_NetWkstaEnumUsers(struct rpc_pipe_client *cli, TALLOC_CTX
        r.in.prefmaxlen = prefmaxlen;
        r.in.resume_handle = resume_handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaEnumUsers, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETWKSTAENUMUSERS, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETWKSTAENUMUSERS,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaEnumUsers, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -122,7 +161,12 @@ NTSTATUS rpccli_wkssvc_NetWkstaEnumUsers(struct rpc_pipe_client *cli, TALLOC_CTX
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_wkssvc_NetrWkstaUserGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *unknown, uint32_t level, union wkssvc_NetrWkstaUserInfo *info, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrWkstaUserGetInfo(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           const char *unknown,
+                                           uint32_t level,
+                                           union wkssvc_NetrWkstaUserInfo *info,
+                                           WERROR *werror)
 {
        struct wkssvc_NetrWkstaUserGetInfo r;
        NTSTATUS status;
@@ -131,17 +175,24 @@ NTSTATUS rpccli_wkssvc_NetrWkstaUserGetInfo(struct rpc_pipe_client *cli, TALLOC_
        r.in.unknown = unknown;
        r.in.level = level;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrWkstaUserGetInfo, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRWKSTAUSERGETINFO, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETRWKSTAUSERGETINFO,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrWkstaUserGetInfo, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -158,7 +209,13 @@ NTSTATUS rpccli_wkssvc_NetrWkstaUserGetInfo(struct rpc_pipe_client *cli, TALLOC_
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_wkssvc_NetrWkstaUserSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *unknown, uint32_t level, union wkssvc_NetrWkstaUserInfo *info, uint32_t *parm_err, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrWkstaUserSetInfo(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           const char *unknown,
+                                           uint32_t level,
+                                           union wkssvc_NetrWkstaUserInfo *info,
+                                           uint32_t *parm_err,
+                                           WERROR *werror)
 {
        struct wkssvc_NetrWkstaUserSetInfo r;
        NTSTATUS status;
@@ -169,17 +226,24 @@ NTSTATUS rpccli_wkssvc_NetrWkstaUserSetInfo(struct rpc_pipe_client *cli, TALLOC_
        r.in.info = info;
        r.in.parm_err = parm_err;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrWkstaUserSetInfo, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRWKSTAUSERSETINFO, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETRWKSTAUSERSETINFO,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrWkstaUserSetInfo, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -198,7 +262,14 @@ NTSTATUS rpccli_wkssvc_NetrWkstaUserSetInfo(struct rpc_pipe_client *cli, TALLOC_
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_wkssvc_NetWkstaTransportEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, struct wkssvc_NetWkstaTransportInfo *info, uint32_t max_buffer, uint32_t *total_entries, uint32_t *resume_handle, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetWkstaTransportEnum(struct rpc_pipe_client *cli,
+                                            TALLOC_CTX *mem_ctx,
+                                            const char *server_name,
+                                            struct wkssvc_NetWkstaTransportInfo *info,
+                                            uint32_t max_buffer,
+                                            uint32_t *total_entries,
+                                            uint32_t *resume_handle,
+                                            WERROR *werror)
 {
        struct wkssvc_NetWkstaTransportEnum r;
        NTSTATUS status;
@@ -209,17 +280,24 @@ NTSTATUS rpccli_wkssvc_NetWkstaTransportEnum(struct rpc_pipe_client *cli, TALLOC
        r.in.max_buffer = max_buffer;
        r.in.resume_handle = resume_handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaTransportEnum, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETWKSTATRANSPORTENUM, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETWKSTATRANSPORTENUM,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaTransportEnum, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -240,7 +318,13 @@ NTSTATUS rpccli_wkssvc_NetWkstaTransportEnum(struct rpc_pipe_client *cli, TALLOC
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_wkssvc_NetrWkstaTransportAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, uint32_t level, struct wkssvc_NetWkstaTransportInfo0 *info0, uint32_t *parm_err, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrWkstaTransportAdd(struct rpc_pipe_client *cli,
+                                            TALLOC_CTX *mem_ctx,
+                                            const char *server_name,
+                                            uint32_t level,
+                                            struct wkssvc_NetWkstaTransportInfo0 *info0,
+                                            uint32_t *parm_err,
+                                            WERROR *werror)
 {
        struct wkssvc_NetrWkstaTransportAdd r;
        NTSTATUS status;
@@ -251,17 +335,24 @@ NTSTATUS rpccli_wkssvc_NetrWkstaTransportAdd(struct rpc_pipe_client *cli, TALLOC
        r.in.info0 = info0;
        r.in.parm_err = parm_err;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrWkstaTransportAdd, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRWKSTATRANSPORTADD, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETRWKSTATRANSPORTADD,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrWkstaTransportAdd, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -280,7 +371,12 @@ NTSTATUS rpccli_wkssvc_NetrWkstaTransportAdd(struct rpc_pipe_client *cli, TALLOC
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_wkssvc_NetrWkstaTransportDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *transport_name, uint32_t unknown3, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrWkstaTransportDel(struct rpc_pipe_client *cli,
+                                            TALLOC_CTX *mem_ctx,
+                                            const char *server_name,
+                                            const char *transport_name,
+                                            uint32_t unknown3,
+                                            WERROR *werror)
 {
        struct wkssvc_NetrWkstaTransportDel r;
        NTSTATUS status;
@@ -290,17 +386,24 @@ NTSTATUS rpccli_wkssvc_NetrWkstaTransportDel(struct rpc_pipe_client *cli, TALLOC
        r.in.transport_name = transport_name;
        r.in.unknown3 = unknown3;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrWkstaTransportDel, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRWKSTATRANSPORTDEL, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETRWKSTATRANSPORTDEL,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrWkstaTransportDel, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -316,7 +419,13 @@ NTSTATUS rpccli_wkssvc_NetrWkstaTransportDel(struct rpc_pipe_client *cli, TALLOC
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_wkssvc_NetrUseAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, uint32_t level, union wkssvc_NetrUseGetInfoCtr *ctr, uint32_t *parm_err, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrUseAdd(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 const char *server_name,
+                                 uint32_t level,
+                                 union wkssvc_NetrUseGetInfoCtr *ctr,
+                                 uint32_t *parm_err,
+                                 WERROR *werror)
 {
        struct wkssvc_NetrUseAdd r;
        NTSTATUS status;
@@ -327,17 +436,24 @@ NTSTATUS rpccli_wkssvc_NetrUseAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        r.in.ctr = ctr;
        r.in.parm_err = parm_err;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrUseAdd, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRUSEADD, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETRUSEADD,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrUseAdd, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -356,7 +472,13 @@ NTSTATUS rpccli_wkssvc_NetrUseAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_wkssvc_NetrUseGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *use_name, uint32_t level, union wkssvc_NetrUseGetInfoCtr *ctr, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrUseGetInfo(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     const char *server_name,
+                                     const char *use_name,
+                                     uint32_t level,
+                                     union wkssvc_NetrUseGetInfoCtr *ctr,
+                                     WERROR *werror)
 {
        struct wkssvc_NetrUseGetInfo r;
        NTSTATUS status;
@@ -366,17 +488,24 @@ NTSTATUS rpccli_wkssvc_NetrUseGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *m
        r.in.use_name = use_name;
        r.in.level = level;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrUseGetInfo, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRUSEGETINFO, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETRUSEGETINFO,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrUseGetInfo, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -393,7 +522,12 @@ NTSTATUS rpccli_wkssvc_NetrUseGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *m
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_wkssvc_NetrUseDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *use_name, uint32_t force_cond, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrUseDel(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 const char *server_name,
+                                 const char *use_name,
+                                 uint32_t force_cond,
+                                 WERROR *werror)
 {
        struct wkssvc_NetrUseDel r;
        NTSTATUS status;
@@ -403,17 +537,24 @@ NTSTATUS rpccli_wkssvc_NetrUseDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        r.in.use_name = use_name;
        r.in.force_cond = force_cond;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrUseDel, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRUSEDEL, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETRUSEDEL,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrUseDel, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -429,7 +570,14 @@ NTSTATUS rpccli_wkssvc_NetrUseDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_wkssvc_NetrUseEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, struct wkssvc_NetrUseEnumInfo *info, uint32_t prefmaxlen, uint32_t *entries_read, uint32_t *resume_handle, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrUseEnum(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  const char *server_name,
+                                  struct wkssvc_NetrUseEnumInfo *info,
+                                  uint32_t prefmaxlen,
+                                  uint32_t *entries_read,
+                                  uint32_t *resume_handle,
+                                  WERROR *werror)
 {
        struct wkssvc_NetrUseEnum r;
        NTSTATUS status;
@@ -440,17 +588,24 @@ NTSTATUS rpccli_wkssvc_NetrUseEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        r.in.prefmaxlen = prefmaxlen;
        r.in.resume_handle = resume_handle;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrUseEnum, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRUSEENUM, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETRUSEENUM,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrUseEnum, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -471,7 +626,14 @@ NTSTATUS rpccli_wkssvc_NetrUseEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_wkssvc_NetrMessageBufferSend(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *message_name, const char *message_sender_name, uint8_t *message_buffer, uint32_t message_size, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrMessageBufferSend(struct rpc_pipe_client *cli,
+                                            TALLOC_CTX *mem_ctx,
+                                            const char *server_name,
+                                            const char *message_name,
+                                            const char *message_sender_name,
+                                            uint8_t *message_buffer,
+                                            uint32_t message_size,
+                                            WERROR *werror)
 {
        struct wkssvc_NetrMessageBufferSend r;
        NTSTATUS status;
@@ -483,17 +645,24 @@ NTSTATUS rpccli_wkssvc_NetrMessageBufferSend(struct rpc_pipe_client *cli, TALLOC
        r.in.message_buffer = message_buffer;
        r.in.message_size = message_size;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrMessageBufferSend, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRMESSAGEBUFFERSEND, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETRMESSAGEBUFFERSEND,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrMessageBufferSend, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -509,7 +678,14 @@ NTSTATUS rpccli_wkssvc_NetrMessageBufferSend(struct rpc_pipe_client *cli, TALLOC
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_wkssvc_NetrWorkstationStatisticsGet(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *unknown2, uint32_t unknown3, uint32_t unknown4, struct wkssvc_NetrWorkstationStatistics **info, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrWorkstationStatisticsGet(struct rpc_pipe_client *cli,
+                                                   TALLOC_CTX *mem_ctx,
+                                                   const char *server_name,
+                                                   const char *unknown2,
+                                                   uint32_t unknown3,
+                                                   uint32_t unknown4,
+                                                   struct wkssvc_NetrWorkstationStatistics **info,
+                                                   WERROR *werror)
 {
        struct wkssvc_NetrWorkstationStatisticsGet r;
        NTSTATUS status;
@@ -520,17 +696,24 @@ NTSTATUS rpccli_wkssvc_NetrWorkstationStatisticsGet(struct rpc_pipe_client *cli,
        r.in.unknown3 = unknown3;
        r.in.unknown4 = unknown4;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrWorkstationStatisticsGet, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRWORKSTATIONSTATISTICSGET, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETRWORKSTATIONSTATISTICSGET,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrWorkstationStatisticsGet, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -547,7 +730,10 @@ NTSTATUS rpccli_wkssvc_NetrWorkstationStatisticsGet(struct rpc_pipe_client *cli,
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_wkssvc_NetrLogonDomainNameAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *domain_name, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrLogonDomainNameAdd(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             const char *domain_name,
+                                             WERROR *werror)
 {
        struct wkssvc_NetrLogonDomainNameAdd r;
        NTSTATUS status;
@@ -555,17 +741,24 @@ NTSTATUS rpccli_wkssvc_NetrLogonDomainNameAdd(struct rpc_pipe_client *cli, TALLO
        /* In parameters */
        r.in.domain_name = domain_name;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrLogonDomainNameAdd, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRLOGONDOMAINNAMEADD, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETRLOGONDOMAINNAMEADD,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrLogonDomainNameAdd, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -581,7 +774,10 @@ NTSTATUS rpccli_wkssvc_NetrLogonDomainNameAdd(struct rpc_pipe_client *cli, TALLO
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_wkssvc_NetrLogonDomainNameDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *domain_name, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrLogonDomainNameDel(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             const char *domain_name,
+                                             WERROR *werror)
 {
        struct wkssvc_NetrLogonDomainNameDel r;
        NTSTATUS status;
@@ -589,17 +785,24 @@ NTSTATUS rpccli_wkssvc_NetrLogonDomainNameDel(struct rpc_pipe_client *cli, TALLO
        /* In parameters */
        r.in.domain_name = domain_name;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrLogonDomainNameDel, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRLOGONDOMAINNAMEDEL, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETRLOGONDOMAINNAMEDEL,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrLogonDomainNameDel, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -615,7 +818,15 @@ NTSTATUS rpccli_wkssvc_NetrLogonDomainNameDel(struct rpc_pipe_client *cli, TALLO
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_wkssvc_NetrJoinDomain(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *domain_name, const char *account_ou, const char *Account, const char *password, uint32_t join_flags, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrJoinDomain(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     const char *server_name,
+                                     const char *domain_name,
+                                     const char *account_ou,
+                                     const char *Account,
+                                     const char *password,
+                                     uint32_t join_flags,
+                                     WERROR *werror)
 {
        struct wkssvc_NetrJoinDomain r;
        NTSTATUS status;
@@ -628,17 +839,24 @@ NTSTATUS rpccli_wkssvc_NetrJoinDomain(struct rpc_pipe_client *cli, TALLOC_CTX *m
        r.in.password = password;
        r.in.join_flags = join_flags;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrJoinDomain, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRJOINDOMAIN, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETRJOINDOMAIN,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrJoinDomain, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -654,7 +872,13 @@ NTSTATUS rpccli_wkssvc_NetrJoinDomain(struct rpc_pipe_client *cli, TALLOC_CTX *m
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_wkssvc_NetrUnjoinDomain(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *Account, const char *password, uint32_t unjoin_flags, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrUnjoinDomain(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       const char *server_name,
+                                       const char *Account,
+                                       const char *password,
+                                       uint32_t unjoin_flags,
+                                       WERROR *werror)
 {
        struct wkssvc_NetrUnjoinDomain r;
        NTSTATUS status;
@@ -665,17 +889,24 @@ NTSTATUS rpccli_wkssvc_NetrUnjoinDomain(struct rpc_pipe_client *cli, TALLOC_CTX
        r.in.password = password;
        r.in.unjoin_flags = unjoin_flags;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrUnjoinDomain, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRUNJOINDOMAIN, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETRUNJOINDOMAIN,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrUnjoinDomain, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -691,7 +922,14 @@ NTSTATUS rpccli_wkssvc_NetrUnjoinDomain(struct rpc_pipe_client *cli, TALLOC_CTX
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *NewMachineName, const char *Account, const char *password, uint32_t RenameOptions, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain(struct rpc_pipe_client *cli,
+                                                TALLOC_CTX *mem_ctx,
+                                                const char *server_name,
+                                                const char *NewMachineName,
+                                                const char *Account,
+                                                const char *password,
+                                                uint32_t RenameOptions,
+                                                WERROR *werror)
 {
        struct wkssvc_NetrRenameMachineInDomain r;
        NTSTATUS status;
@@ -703,17 +941,24 @@ NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain(struct rpc_pipe_client *cli, TA
        r.in.password = password;
        r.in.RenameOptions = RenameOptions;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrRenameMachineInDomain, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRRENAMEMACHINEINDOMAIN, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETRRENAMEMACHINEINDOMAIN,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrRenameMachineInDomain, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -729,7 +974,14 @@ NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain(struct rpc_pipe_client *cli, TA
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_wkssvc_NetrValidateName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *name, const char *Account, const char *Password, enum wkssvc_NetValidateNameType name_type, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrValidateName(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       const char *server_name,
+                                       const char *name,
+                                       const char *Account,
+                                       const char *Password,
+                                       enum wkssvc_NetValidateNameType name_type,
+                                       WERROR *werror)
 {
        struct wkssvc_NetrValidateName r;
        NTSTATUS status;
@@ -741,17 +993,24 @@ NTSTATUS rpccli_wkssvc_NetrValidateName(struct rpc_pipe_client *cli, TALLOC_CTX
        r.in.Password = Password;
        r.in.name_type = name_type;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrValidateName, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRVALIDATENAME, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETRVALIDATENAME,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrValidateName, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -767,7 +1026,12 @@ NTSTATUS rpccli_wkssvc_NetrValidateName(struct rpc_pipe_client *cli, TALLOC_CTX
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_wkssvc_NetrGetJoinInformation(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char **name_buffer, enum wkssvc_NetJoinStatus *name_type, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrGetJoinInformation(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             const char *server_name,
+                                             const char **name_buffer,
+                                             enum wkssvc_NetJoinStatus *name_type,
+                                             WERROR *werror)
 {
        struct wkssvc_NetrGetJoinInformation r;
        NTSTATUS status;
@@ -776,17 +1040,24 @@ NTSTATUS rpccli_wkssvc_NetrGetJoinInformation(struct rpc_pipe_client *cli, TALLO
        r.in.server_name = server_name;
        r.in.name_buffer = name_buffer;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrGetJoinInformation, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRGETJOININFORMATION, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETRGETJOININFORMATION,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrGetJoinInformation, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -804,7 +1075,15 @@ NTSTATUS rpccli_wkssvc_NetrGetJoinInformation(struct rpc_pipe_client *cli, TALLO
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_wkssvc_NetrGetJoinableOus(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *domain_name, const char *Account, const char *unknown, uint32_t *num_ous, const char ***ous, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrGetJoinableOus(struct rpc_pipe_client *cli,
+                                         TALLOC_CTX *mem_ctx,
+                                         const char *server_name,
+                                         const char *domain_name,
+                                         const char *Account,
+                                         const char *unknown,
+                                         uint32_t *num_ous,
+                                         const char ***ous,
+                                         WERROR *werror)
 {
        struct wkssvc_NetrGetJoinableOus r;
        NTSTATUS status;
@@ -816,17 +1095,24 @@ NTSTATUS rpccli_wkssvc_NetrGetJoinableOus(struct rpc_pipe_client *cli, TALLOC_CT
        r.in.unknown = unknown;
        r.in.num_ous = num_ous;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrGetJoinableOus, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRGETJOINABLEOUS, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETRGETJOINABLEOUS,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrGetJoinableOus, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -844,7 +1130,15 @@ NTSTATUS rpccli_wkssvc_NetrGetJoinableOus(struct rpc_pipe_client *cli, TALLOC_CT
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_wkssvc_NetrJoinDomain2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *domain_name, const char *account_ou, const char *admin_account, struct wkssvc_PasswordBuffer *encrypted_password, uint32_t join_flags, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrJoinDomain2(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      const char *server_name,
+                                      const char *domain_name,
+                                      const char *account_ou,
+                                      const char *admin_account,
+                                      struct wkssvc_PasswordBuffer *encrypted_password,
+                                      uint32_t join_flags,
+                                      WERROR *werror)
 {
        struct wkssvc_NetrJoinDomain2 r;
        NTSTATUS status;
@@ -857,17 +1151,24 @@ NTSTATUS rpccli_wkssvc_NetrJoinDomain2(struct rpc_pipe_client *cli, TALLOC_CTX *
        r.in.encrypted_password = encrypted_password;
        r.in.join_flags = join_flags;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrJoinDomain2, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRJOINDOMAIN2, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETRJOINDOMAIN2,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrJoinDomain2, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -883,7 +1184,13 @@ NTSTATUS rpccli_wkssvc_NetrJoinDomain2(struct rpc_pipe_client *cli, TALLOC_CTX *
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_wkssvc_NetrUnjoinDomain2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account, struct wkssvc_PasswordBuffer *encrypted_password, uint32_t unjoin_flags, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrUnjoinDomain2(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        const char *server_name,
+                                        const char *account,
+                                        struct wkssvc_PasswordBuffer *encrypted_password,
+                                        uint32_t unjoin_flags,
+                                        WERROR *werror)
 {
        struct wkssvc_NetrUnjoinDomain2 r;
        NTSTATUS status;
@@ -894,17 +1201,24 @@ NTSTATUS rpccli_wkssvc_NetrUnjoinDomain2(struct rpc_pipe_client *cli, TALLOC_CTX
        r.in.encrypted_password = encrypted_password;
        r.in.unjoin_flags = unjoin_flags;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrUnjoinDomain2, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRUNJOINDOMAIN2, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETRUNJOINDOMAIN2,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrUnjoinDomain2, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -920,7 +1234,14 @@ NTSTATUS rpccli_wkssvc_NetrUnjoinDomain2(struct rpc_pipe_client *cli, TALLOC_CTX
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *NewMachineName, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t RenameOptions, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain2(struct rpc_pipe_client *cli,
+                                                 TALLOC_CTX *mem_ctx,
+                                                 const char *server_name,
+                                                 const char *NewMachineName,
+                                                 const char *Account,
+                                                 struct wkssvc_PasswordBuffer *EncryptedPassword,
+                                                 uint32_t RenameOptions,
+                                                 WERROR *werror)
 {
        struct wkssvc_NetrRenameMachineInDomain2 r;
        NTSTATUS status;
@@ -932,17 +1253,24 @@ NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain2(struct rpc_pipe_client *cli, T
        r.in.EncryptedPassword = EncryptedPassword;
        r.in.RenameOptions = RenameOptions;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrRenameMachineInDomain2, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRRENAMEMACHINEINDOMAIN2, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETRRENAMEMACHINEINDOMAIN2,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrRenameMachineInDomain2, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -958,7 +1286,14 @@ NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain2(struct rpc_pipe_client *cli, T
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_wkssvc_NetrValidateName2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *name, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, enum wkssvc_NetValidateNameType name_type, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrValidateName2(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        const char *server_name,
+                                        const char *name,
+                                        const char *Account,
+                                        struct wkssvc_PasswordBuffer *EncryptedPassword,
+                                        enum wkssvc_NetValidateNameType name_type,
+                                        WERROR *werror)
 {
        struct wkssvc_NetrValidateName2 r;
        NTSTATUS status;
@@ -970,17 +1305,24 @@ NTSTATUS rpccli_wkssvc_NetrValidateName2(struct rpc_pipe_client *cli, TALLOC_CTX
        r.in.EncryptedPassword = EncryptedPassword;
        r.in.name_type = name_type;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrValidateName2, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRVALIDATENAME2, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETRVALIDATENAME2,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrValidateName2, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -996,7 +1338,15 @@ NTSTATUS rpccli_wkssvc_NetrValidateName2(struct rpc_pipe_client *cli, TALLOC_CTX
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_wkssvc_NetrGetJoinableOus2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *domain_name, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t *num_ous, const char ***ous, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrGetJoinableOus2(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx,
+                                          const char *server_name,
+                                          const char *domain_name,
+                                          const char *Account,
+                                          struct wkssvc_PasswordBuffer *EncryptedPassword,
+                                          uint32_t *num_ous,
+                                          const char ***ous,
+                                          WERROR *werror)
 {
        struct wkssvc_NetrGetJoinableOus2 r;
        NTSTATUS status;
@@ -1008,17 +1358,24 @@ NTSTATUS rpccli_wkssvc_NetrGetJoinableOus2(struct rpc_pipe_client *cli, TALLOC_C
        r.in.EncryptedPassword = EncryptedPassword;
        r.in.num_ous = num_ous;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrGetJoinableOus2, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRGETJOINABLEOUS2, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETRGETJOINABLEOUS2,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrGetJoinableOus2, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1036,7 +1393,14 @@ NTSTATUS rpccli_wkssvc_NetrGetJoinableOus2(struct rpc_pipe_client *cli, TALLOC_C
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_wkssvc_NetrAddAlternateComputerName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *NewAlternateMachineName, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t Reserved, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrAddAlternateComputerName(struct rpc_pipe_client *cli,
+                                                   TALLOC_CTX *mem_ctx,
+                                                   const char *server_name,
+                                                   const char *NewAlternateMachineName,
+                                                   const char *Account,
+                                                   struct wkssvc_PasswordBuffer *EncryptedPassword,
+                                                   uint32_t Reserved,
+                                                   WERROR *werror)
 {
        struct wkssvc_NetrAddAlternateComputerName r;
        NTSTATUS status;
@@ -1048,17 +1412,24 @@ NTSTATUS rpccli_wkssvc_NetrAddAlternateComputerName(struct rpc_pipe_client *cli,
        r.in.EncryptedPassword = EncryptedPassword;
        r.in.Reserved = Reserved;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrAddAlternateComputerName, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRADDALTERNATECOMPUTERNAME, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETRADDALTERNATECOMPUTERNAME,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrAddAlternateComputerName, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1074,7 +1445,14 @@ NTSTATUS rpccli_wkssvc_NetrAddAlternateComputerName(struct rpc_pipe_client *cli,
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_wkssvc_NetrRemoveAlternateComputerName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *AlternateMachineNameToRemove, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t Reserved, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrRemoveAlternateComputerName(struct rpc_pipe_client *cli,
+                                                      TALLOC_CTX *mem_ctx,
+                                                      const char *server_name,
+                                                      const char *AlternateMachineNameToRemove,
+                                                      const char *Account,
+                                                      struct wkssvc_PasswordBuffer *EncryptedPassword,
+                                                      uint32_t Reserved,
+                                                      WERROR *werror)
 {
        struct wkssvc_NetrRemoveAlternateComputerName r;
        NTSTATUS status;
@@ -1086,17 +1464,24 @@ NTSTATUS rpccli_wkssvc_NetrRemoveAlternateComputerName(struct rpc_pipe_client *c
        r.in.EncryptedPassword = EncryptedPassword;
        r.in.Reserved = Reserved;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrRemoveAlternateComputerName, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRREMOVEALTERNATECOMPUTERNAME, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETRREMOVEALTERNATECOMPUTERNAME,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrRemoveAlternateComputerName, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1112,7 +1497,14 @@ NTSTATUS rpccli_wkssvc_NetrRemoveAlternateComputerName(struct rpc_pipe_client *c
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_wkssvc_NetrSetPrimaryComputername(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *primary_name, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t Reserved, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrSetPrimaryComputername(struct rpc_pipe_client *cli,
+                                                 TALLOC_CTX *mem_ctx,
+                                                 const char *server_name,
+                                                 const char *primary_name,
+                                                 const char *Account,
+                                                 struct wkssvc_PasswordBuffer *EncryptedPassword,
+                                                 uint32_t Reserved,
+                                                 WERROR *werror)
 {
        struct wkssvc_NetrSetPrimaryComputername r;
        NTSTATUS status;
@@ -1124,17 +1516,24 @@ NTSTATUS rpccli_wkssvc_NetrSetPrimaryComputername(struct rpc_pipe_client *cli, T
        r.in.EncryptedPassword = EncryptedPassword;
        r.in.Reserved = Reserved;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrSetPrimaryComputername, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRSETPRIMARYCOMPUTERNAME, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETRSETPRIMARYCOMPUTERNAME,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrSetPrimaryComputername, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
@@ -1150,7 +1549,13 @@ NTSTATUS rpccli_wkssvc_NetrSetPrimaryComputername(struct rpc_pipe_client *cli, T
        return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_wkssvc_NetrEnumerateComputerNames(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, enum wkssvc_ComputerNameType name_type, uint32_t Reserved, struct wkssvc_ComputerNamesCtr **ctr, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrEnumerateComputerNames(struct rpc_pipe_client *cli,
+                                                 TALLOC_CTX *mem_ctx,
+                                                 const char *server_name,
+                                                 enum wkssvc_ComputerNameType name_type,
+                                                 uint32_t Reserved,
+                                                 struct wkssvc_ComputerNamesCtr **ctr,
+                                                 WERROR *werror)
 {
        struct wkssvc_NetrEnumerateComputerNames r;
        NTSTATUS status;
@@ -1160,17 +1565,24 @@ NTSTATUS rpccli_wkssvc_NetrEnumerateComputerNames(struct rpc_pipe_client *cli, T
        r.in.name_type = name_type;
        r.in.Reserved = Reserved;
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrEnumerateComputerNames, &r);
+       }
 
-       status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRENUMERATECOMPUTERNAMES, &r);
+       status = cli_do_rpc_ndr(cli,
+                               mem_ctx,
+                               PI_WKSSVC,
+                               &ndr_table_wkssvc,
+                               NDR_WKSSVC_NETRENUMERATECOMPUTERNAMES,
+                               &r);
 
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
 
-       if (DEBUGLEVEL >= 10)
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrEnumerateComputerNames, &r);
+       }
 
        if (NT_STATUS_IS_ERR(status)) {
                return status;
index 4ead050d56afab62c649efc63ef5da3d862de3db..89012daf21f2a45cff358fe3b128381ac7898f82 100644 (file)
 #include "librpc/gen_ndr/ndr_wkssvc.h"
 #ifndef __CLI_WKSSVC__
 #define __CLI_WKSSVC__
-NTSTATUS rpccli_wkssvc_NetWkstaGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, uint32_t level, union wkssvc_NetWkstaInfo *info, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetWkstaSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, uint32_t level, union wkssvc_NetWkstaInfo *info, uint32_t *parm_error, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetWkstaEnumUsers(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, struct wkssvc_NetWkstaEnumUsersInfo *info, uint32_t prefmaxlen, uint32_t *entries_read, uint32_t *resume_handle, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrWkstaUserGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *unknown, uint32_t level, union wkssvc_NetrWkstaUserInfo *info, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrWkstaUserSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *unknown, uint32_t level, union wkssvc_NetrWkstaUserInfo *info, uint32_t *parm_err, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetWkstaTransportEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, struct wkssvc_NetWkstaTransportInfo *info, uint32_t max_buffer, uint32_t *total_entries, uint32_t *resume_handle, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrWkstaTransportAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, uint32_t level, struct wkssvc_NetWkstaTransportInfo0 *info0, uint32_t *parm_err, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrWkstaTransportDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *transport_name, uint32_t unknown3, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrUseAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, uint32_t level, union wkssvc_NetrUseGetInfoCtr *ctr, uint32_t *parm_err, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrUseGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *use_name, uint32_t level, union wkssvc_NetrUseGetInfoCtr *ctr, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrUseDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *use_name, uint32_t force_cond, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrUseEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, struct wkssvc_NetrUseEnumInfo *info, uint32_t prefmaxlen, uint32_t *entries_read, uint32_t *resume_handle, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrMessageBufferSend(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *message_name, const char *message_sender_name, uint8_t *message_buffer, uint32_t message_size, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrWorkstationStatisticsGet(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *unknown2, uint32_t unknown3, uint32_t unknown4, struct wkssvc_NetrWorkstationStatistics **info, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrLogonDomainNameAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *domain_name, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrLogonDomainNameDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *domain_name, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrJoinDomain(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *domain_name, const char *account_ou, const char *Account, const char *password, uint32_t join_flags, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrUnjoinDomain(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *Account, const char *password, uint32_t unjoin_flags, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *NewMachineName, const char *Account, const char *password, uint32_t RenameOptions, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrValidateName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *name, const char *Account, const char *Password, enum wkssvc_NetValidateNameType name_type, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrGetJoinInformation(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char **name_buffer, enum wkssvc_NetJoinStatus *name_type, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrGetJoinableOus(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *domain_name, const char *Account, const char *unknown, uint32_t *num_ous, const char ***ous, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrJoinDomain2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *domain_name, const char *account_ou, const char *admin_account, struct wkssvc_PasswordBuffer *encrypted_password, uint32_t join_flags, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrUnjoinDomain2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account, struct wkssvc_PasswordBuffer *encrypted_password, uint32_t unjoin_flags, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *NewMachineName, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t RenameOptions, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrValidateName2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *name, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, enum wkssvc_NetValidateNameType name_type, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrGetJoinableOus2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *domain_name, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t *num_ous, const char ***ous, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrAddAlternateComputerName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *NewAlternateMachineName, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t Reserved, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrRemoveAlternateComputerName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *AlternateMachineNameToRemove, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t Reserved, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrSetPrimaryComputername(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *primary_name, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t Reserved, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrEnumerateComputerNames(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, enum wkssvc_ComputerNameType name_type, uint32_t Reserved, struct wkssvc_ComputerNamesCtr **ctr, WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetWkstaGetInfo(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      const char *server_name,
+                                      uint32_t level,
+                                      union wkssvc_NetWkstaInfo *info,
+                                      WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetWkstaSetInfo(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      const char *server_name,
+                                      uint32_t level,
+                                      union wkssvc_NetWkstaInfo *info,
+                                      uint32_t *parm_error,
+                                      WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetWkstaEnumUsers(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        const char *server_name,
+                                        struct wkssvc_NetWkstaEnumUsersInfo *info,
+                                        uint32_t prefmaxlen,
+                                        uint32_t *entries_read,
+                                        uint32_t *resume_handle,
+                                        WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrWkstaUserGetInfo(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           const char *unknown,
+                                           uint32_t level,
+                                           union wkssvc_NetrWkstaUserInfo *info,
+                                           WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrWkstaUserSetInfo(struct rpc_pipe_client *cli,
+                                           TALLOC_CTX *mem_ctx,
+                                           const char *unknown,
+                                           uint32_t level,
+                                           union wkssvc_NetrWkstaUserInfo *info,
+                                           uint32_t *parm_err,
+                                           WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetWkstaTransportEnum(struct rpc_pipe_client *cli,
+                                            TALLOC_CTX *mem_ctx,
+                                            const char *server_name,
+                                            struct wkssvc_NetWkstaTransportInfo *info,
+                                            uint32_t max_buffer,
+                                            uint32_t *total_entries,
+                                            uint32_t *resume_handle,
+                                            WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrWkstaTransportAdd(struct rpc_pipe_client *cli,
+                                            TALLOC_CTX *mem_ctx,
+                                            const char *server_name,
+                                            uint32_t level,
+                                            struct wkssvc_NetWkstaTransportInfo0 *info0,
+                                            uint32_t *parm_err,
+                                            WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrWkstaTransportDel(struct rpc_pipe_client *cli,
+                                            TALLOC_CTX *mem_ctx,
+                                            const char *server_name,
+                                            const char *transport_name,
+                                            uint32_t unknown3,
+                                            WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrUseAdd(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 const char *server_name,
+                                 uint32_t level,
+                                 union wkssvc_NetrUseGetInfoCtr *ctr,
+                                 uint32_t *parm_err,
+                                 WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrUseGetInfo(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     const char *server_name,
+                                     const char *use_name,
+                                     uint32_t level,
+                                     union wkssvc_NetrUseGetInfoCtr *ctr,
+                                     WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrUseDel(struct rpc_pipe_client *cli,
+                                 TALLOC_CTX *mem_ctx,
+                                 const char *server_name,
+                                 const char *use_name,
+                                 uint32_t force_cond,
+                                 WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrUseEnum(struct rpc_pipe_client *cli,
+                                  TALLOC_CTX *mem_ctx,
+                                  const char *server_name,
+                                  struct wkssvc_NetrUseEnumInfo *info,
+                                  uint32_t prefmaxlen,
+                                  uint32_t *entries_read,
+                                  uint32_t *resume_handle,
+                                  WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrMessageBufferSend(struct rpc_pipe_client *cli,
+                                            TALLOC_CTX *mem_ctx,
+                                            const char *server_name,
+                                            const char *message_name,
+                                            const char *message_sender_name,
+                                            uint8_t *message_buffer,
+                                            uint32_t message_size,
+                                            WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrWorkstationStatisticsGet(struct rpc_pipe_client *cli,
+                                                   TALLOC_CTX *mem_ctx,
+                                                   const char *server_name,
+                                                   const char *unknown2,
+                                                   uint32_t unknown3,
+                                                   uint32_t unknown4,
+                                                   struct wkssvc_NetrWorkstationStatistics **info,
+                                                   WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrLogonDomainNameAdd(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             const char *domain_name,
+                                             WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrLogonDomainNameDel(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             const char *domain_name,
+                                             WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrJoinDomain(struct rpc_pipe_client *cli,
+                                     TALLOC_CTX *mem_ctx,
+                                     const char *server_name,
+                                     const char *domain_name,
+                                     const char *account_ou,
+                                     const char *Account,
+                                     const char *password,
+                                     uint32_t join_flags,
+                                     WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrUnjoinDomain(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       const char *server_name,
+                                       const char *Account,
+                                       const char *password,
+                                       uint32_t unjoin_flags,
+                                       WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain(struct rpc_pipe_client *cli,
+                                                TALLOC_CTX *mem_ctx,
+                                                const char *server_name,
+                                                const char *NewMachineName,
+                                                const char *Account,
+                                                const char *password,
+                                                uint32_t RenameOptions,
+                                                WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrValidateName(struct rpc_pipe_client *cli,
+                                       TALLOC_CTX *mem_ctx,
+                                       const char *server_name,
+                                       const char *name,
+                                       const char *Account,
+                                       const char *Password,
+                                       enum wkssvc_NetValidateNameType name_type,
+                                       WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrGetJoinInformation(struct rpc_pipe_client *cli,
+                                             TALLOC_CTX *mem_ctx,
+                                             const char *server_name,
+                                             const char **name_buffer,
+                                             enum wkssvc_NetJoinStatus *name_type,
+                                             WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrGetJoinableOus(struct rpc_pipe_client *cli,
+                                         TALLOC_CTX *mem_ctx,
+                                         const char *server_name,
+                                         const char *domain_name,
+                                         const char *Account,
+                                         const char *unknown,
+                                         uint32_t *num_ous,
+                                         const char ***ous,
+                                         WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrJoinDomain2(struct rpc_pipe_client *cli,
+                                      TALLOC_CTX *mem_ctx,
+                                      const char *server_name,
+                                      const char *domain_name,
+                                      const char *account_ou,
+                                      const char *admin_account,
+                                      struct wkssvc_PasswordBuffer *encrypted_password,
+                                      uint32_t join_flags,
+                                      WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrUnjoinDomain2(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        const char *server_name,
+                                        const char *account,
+                                        struct wkssvc_PasswordBuffer *encrypted_password,
+                                        uint32_t unjoin_flags,
+                                        WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain2(struct rpc_pipe_client *cli,
+                                                 TALLOC_CTX *mem_ctx,
+                                                 const char *server_name,
+                                                 const char *NewMachineName,
+                                                 const char *Account,
+                                                 struct wkssvc_PasswordBuffer *EncryptedPassword,
+                                                 uint32_t RenameOptions,
+                                                 WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrValidateName2(struct rpc_pipe_client *cli,
+                                        TALLOC_CTX *mem_ctx,
+                                        const char *server_name,
+                                        const char *name,
+                                        const char *Account,
+                                        struct wkssvc_PasswordBuffer *EncryptedPassword,
+                                        enum wkssvc_NetValidateNameType name_type,
+                                        WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrGetJoinableOus2(struct rpc_pipe_client *cli,
+                                          TALLOC_CTX *mem_ctx,
+                                          const char *server_name,
+                                          const char *domain_name,
+                                          const char *Account,
+                                          struct wkssvc_PasswordBuffer *EncryptedPassword,
+                                          uint32_t *num_ous,
+                                          const char ***ous,
+                                          WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrAddAlternateComputerName(struct rpc_pipe_client *cli,
+                                                   TALLOC_CTX *mem_ctx,
+                                                   const char *server_name,
+                                                   const char *NewAlternateMachineName,
+                                                   const char *Account,
+                                                   struct wkssvc_PasswordBuffer *EncryptedPassword,
+                                                   uint32_t Reserved,
+                                                   WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrRemoveAlternateComputerName(struct rpc_pipe_client *cli,
+                                                      TALLOC_CTX *mem_ctx,
+                                                      const char *server_name,
+                                                      const char *AlternateMachineNameToRemove,
+                                                      const char *Account,
+                                                      struct wkssvc_PasswordBuffer *EncryptedPassword,
+                                                      uint32_t Reserved,
+                                                      WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrSetPrimaryComputername(struct rpc_pipe_client *cli,
+                                                 TALLOC_CTX *mem_ctx,
+                                                 const char *server_name,
+                                                 const char *primary_name,
+                                                 const char *Account,
+                                                 struct wkssvc_PasswordBuffer *EncryptedPassword,
+                                                 uint32_t Reserved,
+                                                 WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrEnumerateComputerNames(struct rpc_pipe_client *cli,
+                                                 TALLOC_CTX *mem_ctx,
+                                                 const char *server_name,
+                                                 enum wkssvc_ComputerNameType name_type,
+                                                 uint32_t Reserved,
+                                                 struct wkssvc_ComputerNamesCtr **ctr,
+                                                 WERROR *werror);
 #endif /* __CLI_WKSSVC__ */
index 4c92c438f04c0466aadb56225eac519dfe84bb8b..384c2ba94020462da0f07801d335394c4e04432e 100644 (file)
@@ -14,74 +14,76 @@ static bool api_dfs_GetManagerVersion(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct dfs_GetManagerVersion *r;
-       
+
        call = &ndr_table_netdfs.calls[NDR_DFS_GETMANAGERVERSION];
-       
+
        r = talloc(NULL, struct dfs_GetManagerVersion);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_GetManagerVersion, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.version = talloc_zero(r, enum dfs_ManagerVersion);
        if (r->out.version == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        _dfs_GetManagerVersion(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_GetManagerVersion, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_dfs_Add(pipes_struct *p)
@@ -92,67 +94,69 @@ static bool api_dfs_Add(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct dfs_Add *r;
-       
+
        call = &ndr_table_netdfs.calls[NDR_DFS_ADD];
-       
+
        r = talloc(NULL, struct dfs_Add);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_Add, r);
-       
+       }
+
        r->out.result = _dfs_Add(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_Add, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_dfs_Remove(pipes_struct *p)
@@ -163,67 +167,69 @@ static bool api_dfs_Remove(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct dfs_Remove *r;
-       
+
        call = &ndr_table_netdfs.calls[NDR_DFS_REMOVE];
-       
+
        r = talloc(NULL, struct dfs_Remove);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_Remove, r);
-       
+       }
+
        r->out.result = _dfs_Remove(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_Remove, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_dfs_SetInfo(pipes_struct *p)
@@ -234,67 +240,69 @@ static bool api_dfs_SetInfo(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct dfs_SetInfo *r;
-       
+
        call = &ndr_table_netdfs.calls[NDR_DFS_SETINFO];
-       
+
        r = talloc(NULL, struct dfs_SetInfo);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_SetInfo, r);
-       
+       }
+
        r->out.result = _dfs_SetInfo(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_SetInfo, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_dfs_GetInfo(pipes_struct *p)
@@ -305,74 +313,76 @@ static bool api_dfs_GetInfo(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct dfs_GetInfo *r;
-       
+
        call = &ndr_table_netdfs.calls[NDR_DFS_GETINFO];
-       
+
        r = talloc(NULL, struct dfs_GetInfo);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_GetInfo, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.info = talloc_zero(r, union dfs_Info);
        if (r->out.info == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _dfs_GetInfo(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_GetInfo, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_dfs_Enum(pipes_struct *p)
@@ -383,70 +393,72 @@ static bool api_dfs_Enum(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct dfs_Enum *r;
-       
+
        call = &ndr_table_netdfs.calls[NDR_DFS_ENUM];
-       
+
        r = talloc(NULL, struct dfs_Enum);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_Enum, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.info = r->in.info;
        r->out.total = r->in.total;
        r->out.result = _dfs_Enum(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_Enum, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_dfs_Rename(pipes_struct *p)
@@ -457,67 +469,69 @@ static bool api_dfs_Rename(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct dfs_Rename *r;
-       
+
        call = &ndr_table_netdfs.calls[NDR_DFS_RENAME];
-       
+
        r = talloc(NULL, struct dfs_Rename);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_Rename, r);
-       
+       }
+
        r->out.result = _dfs_Rename(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_Rename, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_dfs_Move(pipes_struct *p)
@@ -528,67 +542,69 @@ static bool api_dfs_Move(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct dfs_Move *r;
-       
+
        call = &ndr_table_netdfs.calls[NDR_DFS_MOVE];
-       
+
        r = talloc(NULL, struct dfs_Move);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_Move, r);
-       
+       }
+
        r->out.result = _dfs_Move(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_Move, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_dfs_ManagerGetConfigInfo(pipes_struct *p)
@@ -599,67 +615,69 @@ static bool api_dfs_ManagerGetConfigInfo(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct dfs_ManagerGetConfigInfo *r;
-       
+
        call = &ndr_table_netdfs.calls[NDR_DFS_MANAGERGETCONFIGINFO];
-       
+
        r = talloc(NULL, struct dfs_ManagerGetConfigInfo);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_ManagerGetConfigInfo, r);
-       
+       }
+
        r->out.result = _dfs_ManagerGetConfigInfo(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_ManagerGetConfigInfo, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_dfs_ManagerSendSiteInfo(pipes_struct *p)
@@ -670,67 +688,69 @@ static bool api_dfs_ManagerSendSiteInfo(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct dfs_ManagerSendSiteInfo *r;
-       
+
        call = &ndr_table_netdfs.calls[NDR_DFS_MANAGERSENDSITEINFO];
-       
+
        r = talloc(NULL, struct dfs_ManagerSendSiteInfo);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_ManagerSendSiteInfo, r);
-       
+       }
+
        r->out.result = _dfs_ManagerSendSiteInfo(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_ManagerSendSiteInfo, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_dfs_AddFtRoot(pipes_struct *p)
@@ -741,69 +761,71 @@ static bool api_dfs_AddFtRoot(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct dfs_AddFtRoot *r;
-       
+
        call = &ndr_table_netdfs.calls[NDR_DFS_ADDFTROOT];
-       
+
        r = talloc(NULL, struct dfs_AddFtRoot);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_AddFtRoot, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.unknown2 = r->in.unknown2;
        r->out.result = _dfs_AddFtRoot(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_AddFtRoot, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_dfs_RemoveFtRoot(pipes_struct *p)
@@ -814,69 +836,71 @@ static bool api_dfs_RemoveFtRoot(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct dfs_RemoveFtRoot *r;
-       
+
        call = &ndr_table_netdfs.calls[NDR_DFS_REMOVEFTROOT];
-       
+
        r = talloc(NULL, struct dfs_RemoveFtRoot);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_RemoveFtRoot, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.unknown = r->in.unknown;
        r->out.result = _dfs_RemoveFtRoot(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_RemoveFtRoot, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_dfs_AddStdRoot(pipes_struct *p)
@@ -887,67 +911,69 @@ static bool api_dfs_AddStdRoot(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct dfs_AddStdRoot *r;
-       
+
        call = &ndr_table_netdfs.calls[NDR_DFS_ADDSTDROOT];
-       
+
        r = talloc(NULL, struct dfs_AddStdRoot);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_AddStdRoot, r);
-       
+       }
+
        r->out.result = _dfs_AddStdRoot(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_AddStdRoot, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_dfs_RemoveStdRoot(pipes_struct *p)
@@ -958,67 +984,69 @@ static bool api_dfs_RemoveStdRoot(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct dfs_RemoveStdRoot *r;
-       
+
        call = &ndr_table_netdfs.calls[NDR_DFS_REMOVESTDROOT];
-       
+
        r = talloc(NULL, struct dfs_RemoveStdRoot);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_RemoveStdRoot, r);
-       
+       }
+
        r->out.result = _dfs_RemoveStdRoot(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_RemoveStdRoot, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_dfs_ManagerInitialize(pipes_struct *p)
@@ -1029,67 +1057,69 @@ static bool api_dfs_ManagerInitialize(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct dfs_ManagerInitialize *r;
-       
+
        call = &ndr_table_netdfs.calls[NDR_DFS_MANAGERINITIALIZE];
-       
+
        r = talloc(NULL, struct dfs_ManagerInitialize);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_ManagerInitialize, r);
-       
+       }
+
        r->out.result = _dfs_ManagerInitialize(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_ManagerInitialize, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_dfs_AddStdRootForced(pipes_struct *p)
@@ -1100,67 +1130,69 @@ static bool api_dfs_AddStdRootForced(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct dfs_AddStdRootForced *r;
-       
+
        call = &ndr_table_netdfs.calls[NDR_DFS_ADDSTDROOTFORCED];
-       
+
        r = talloc(NULL, struct dfs_AddStdRootForced);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_AddStdRootForced, r);
-       
+       }
+
        r->out.result = _dfs_AddStdRootForced(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_AddStdRootForced, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_dfs_GetDcAddress(pipes_struct *p)
@@ -1171,67 +1203,69 @@ static bool api_dfs_GetDcAddress(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct dfs_GetDcAddress *r;
-       
+
        call = &ndr_table_netdfs.calls[NDR_DFS_GETDCADDRESS];
-       
+
        r = talloc(NULL, struct dfs_GetDcAddress);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_GetDcAddress, r);
-       
+       }
+
        r->out.result = _dfs_GetDcAddress(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_GetDcAddress, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_dfs_SetDcAddress(pipes_struct *p)
@@ -1242,67 +1276,69 @@ static bool api_dfs_SetDcAddress(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct dfs_SetDcAddress *r;
-       
+
        call = &ndr_table_netdfs.calls[NDR_DFS_SETDCADDRESS];
-       
+
        r = talloc(NULL, struct dfs_SetDcAddress);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_SetDcAddress, r);
-       
+       }
+
        r->out.result = _dfs_SetDcAddress(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_SetDcAddress, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_dfs_FlushFtTable(pipes_struct *p)
@@ -1313,67 +1349,69 @@ static bool api_dfs_FlushFtTable(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct dfs_FlushFtTable *r;
-       
+
        call = &ndr_table_netdfs.calls[NDR_DFS_FLUSHFTTABLE];
-       
+
        r = talloc(NULL, struct dfs_FlushFtTable);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_FlushFtTable, r);
-       
+       }
+
        r->out.result = _dfs_FlushFtTable(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_FlushFtTable, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_dfs_Add2(pipes_struct *p)
@@ -1384,67 +1422,69 @@ static bool api_dfs_Add2(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct dfs_Add2 *r;
-       
+
        call = &ndr_table_netdfs.calls[NDR_DFS_ADD2];
-       
+
        r = talloc(NULL, struct dfs_Add2);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_Add2, r);
-       
+       }
+
        r->out.result = _dfs_Add2(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_Add2, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_dfs_Remove2(pipes_struct *p)
@@ -1455,67 +1495,69 @@ static bool api_dfs_Remove2(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct dfs_Remove2 *r;
-       
+
        call = &ndr_table_netdfs.calls[NDR_DFS_REMOVE2];
-       
+
        r = talloc(NULL, struct dfs_Remove2);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_Remove2, r);
-       
+       }
+
        r->out.result = _dfs_Remove2(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_Remove2, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_dfs_EnumEx(pipes_struct *p)
@@ -1526,70 +1568,72 @@ static bool api_dfs_EnumEx(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct dfs_EnumEx *r;
-       
+
        call = &ndr_table_netdfs.calls[NDR_DFS_ENUMEX];
-       
+
        r = talloc(NULL, struct dfs_EnumEx);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_EnumEx, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.info = r->in.info;
        r->out.total = r->in.total;
        r->out.result = _dfs_EnumEx(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_EnumEx, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_dfs_SetInfo2(pipes_struct *p)
@@ -1600,67 +1644,69 @@ static bool api_dfs_SetInfo2(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct dfs_SetInfo2 *r;
-       
+
        call = &ndr_table_netdfs.calls[NDR_DFS_SETINFO2];
-       
+
        r = talloc(NULL, struct dfs_SetInfo2);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(dfs_SetInfo2, r);
-       
+       }
+
        r->out.result = _dfs_SetInfo2(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(dfs_SetInfo2, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 
index 7e292985bc529b16cd6692554c98907d5e8936aa..de5fc9cd4664a46962bdcb8819e9024d29583a31 100644 (file)
@@ -14,74 +14,76 @@ static bool api_echo_AddOne(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct echo_AddOne *r;
-       
+
        call = &ndr_table_rpcecho.calls[NDR_ECHO_ADDONE];
-       
+
        r = talloc(NULL, struct echo_AddOne);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(echo_AddOne, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.out_data = talloc_zero(r, uint32_t);
        if (r->out.out_data == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        _echo_AddOne(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(echo_AddOne, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_echo_EchoData(pipes_struct *p)
@@ -92,74 +94,76 @@ static bool api_echo_EchoData(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct echo_EchoData *r;
-       
+
        call = &ndr_table_rpcecho.calls[NDR_ECHO_ECHODATA];
-       
+
        r = talloc(NULL, struct echo_EchoData);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(echo_EchoData, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.out_data = talloc_zero_array(r, uint8_t, r->in.len);
        if (r->out.out_data == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        _echo_EchoData(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(echo_EchoData, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_echo_SinkData(pipes_struct *p)
@@ -170,67 +174,69 @@ static bool api_echo_SinkData(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct echo_SinkData *r;
-       
+
        call = &ndr_table_rpcecho.calls[NDR_ECHO_SINKDATA];
-       
+
        r = talloc(NULL, struct echo_SinkData);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(echo_SinkData, r);
-       
+       }
+
        _echo_SinkData(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(echo_SinkData, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_echo_SourceData(pipes_struct *p)
@@ -241,74 +247,76 @@ static bool api_echo_SourceData(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct echo_SourceData *r;
-       
+
        call = &ndr_table_rpcecho.calls[NDR_ECHO_SOURCEDATA];
-       
+
        r = talloc(NULL, struct echo_SourceData);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(echo_SourceData, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.data = talloc_zero_array(r, uint8_t, r->in.len);
        if (r->out.data == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        _echo_SourceData(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(echo_SourceData, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_echo_TestCall(pipes_struct *p)
@@ -319,74 +327,76 @@ static bool api_echo_TestCall(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct echo_TestCall *r;
-       
+
        call = &ndr_table_rpcecho.calls[NDR_ECHO_TESTCALL];
-       
+
        r = talloc(NULL, struct echo_TestCall);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(echo_TestCall, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.s2 = talloc_zero(r, const char *);
        if (r->out.s2 == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        _echo_TestCall(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(echo_TestCall, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_echo_TestCall2(pipes_struct *p)
@@ -397,74 +407,76 @@ static bool api_echo_TestCall2(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct echo_TestCall2 *r;
-       
+
        call = &ndr_table_rpcecho.calls[NDR_ECHO_TESTCALL2];
-       
+
        r = talloc(NULL, struct echo_TestCall2);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(echo_TestCall2, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.info = talloc_zero(r, union echo_Info);
        if (r->out.info == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _echo_TestCall2(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(echo_TestCall2, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_echo_TestSleep(pipes_struct *p)
@@ -475,67 +487,69 @@ static bool api_echo_TestSleep(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct echo_TestSleep *r;
-       
+
        call = &ndr_table_rpcecho.calls[NDR_ECHO_TESTSLEEP];
-       
+
        r = talloc(NULL, struct echo_TestSleep);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(echo_TestSleep, r);
-       
+       }
+
        r->out.result = _echo_TestSleep(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(echo_TestSleep, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_echo_TestEnum(pipes_struct *p)
@@ -546,71 +560,73 @@ static bool api_echo_TestEnum(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct echo_TestEnum *r;
-       
+
        call = &ndr_table_rpcecho.calls[NDR_ECHO_TESTENUM];
-       
+
        r = talloc(NULL, struct echo_TestEnum);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(echo_TestEnum, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.foo1 = r->in.foo1;
        r->out.foo2 = r->in.foo2;
        r->out.foo3 = r->in.foo3;
        _echo_TestEnum(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(echo_TestEnum, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_echo_TestSurrounding(pipes_struct *p)
@@ -621,69 +637,71 @@ static bool api_echo_TestSurrounding(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct echo_TestSurrounding *r;
-       
+
        call = &ndr_table_rpcecho.calls[NDR_ECHO_TESTSURROUNDING];
-       
+
        r = talloc(NULL, struct echo_TestSurrounding);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(echo_TestSurrounding, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.data = r->in.data;
        _echo_TestSurrounding(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(echo_TestSurrounding, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_echo_TestDoublePointer(pipes_struct *p)
@@ -694,67 +712,69 @@ static bool api_echo_TestDoublePointer(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct echo_TestDoublePointer *r;
-       
+
        call = &ndr_table_rpcecho.calls[NDR_ECHO_TESTDOUBLEPOINTER];
-       
+
        r = talloc(NULL, struct echo_TestDoublePointer);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(echo_TestDoublePointer, r);
-       
+       }
+
        r->out.result = _echo_TestDoublePointer(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(echo_TestDoublePointer, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 
index d74a509cfb9ea41b14b69f44b83f44d8b872812c..af768d9555fb4767880c17d61084b48611d0e7ab 100644 (file)
@@ -14,67 +14,69 @@ static bool api_epm_Insert(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct epm_Insert *r;
-       
+
        call = &ndr_table_epmapper.calls[NDR_EPM_INSERT];
-       
+
        r = talloc(NULL, struct epm_Insert);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(epm_Insert, r);
-       
+       }
+
        r->out.result = _epm_Insert(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(epm_Insert, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_epm_Delete(pipes_struct *p)
@@ -85,67 +87,69 @@ static bool api_epm_Delete(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct epm_Delete *r;
-       
+
        call = &ndr_table_epmapper.calls[NDR_EPM_DELETE];
-       
+
        r = talloc(NULL, struct epm_Delete);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(epm_Delete, r);
-       
+       }
+
        r->out.result = _epm_Delete(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(epm_Delete, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_epm_Lookup(pipes_struct *p)
@@ -156,81 +160,83 @@ static bool api_epm_Lookup(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct epm_Lookup *r;
-       
+
        call = &ndr_table_epmapper.calls[NDR_EPM_LOOKUP];
-       
+
        r = talloc(NULL, struct epm_Lookup);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(epm_Lookup, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.entry_handle = r->in.entry_handle;
        r->out.num_ents = talloc_zero(r, uint32_t);
        if (r->out.num_ents == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.entries = talloc_zero_array(r, struct epm_entry_t, r->in.max_ents);
        if (r->out.entries == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _epm_Lookup(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(epm_Lookup, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_epm_Map(pipes_struct *p)
@@ -241,81 +247,83 @@ static bool api_epm_Map(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct epm_Map *r;
-       
+
        call = &ndr_table_epmapper.calls[NDR_EPM_MAP];
-       
+
        r = talloc(NULL, struct epm_Map);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(epm_Map, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.entry_handle = r->in.entry_handle;
        r->out.num_towers = talloc_zero(r, uint32_t);
        if (r->out.num_towers == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.towers = talloc_zero_array(r, struct epm_twr_p_t, r->in.max_towers);
        if (r->out.towers == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _epm_Map(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(epm_Map, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_epm_LookupHandleFree(pipes_struct *p)
@@ -326,69 +334,71 @@ static bool api_epm_LookupHandleFree(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct epm_LookupHandleFree *r;
-       
+
        call = &ndr_table_epmapper.calls[NDR_EPM_LOOKUPHANDLEFREE];
-       
+
        r = talloc(NULL, struct epm_LookupHandleFree);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(epm_LookupHandleFree, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.entry_handle = r->in.entry_handle;
        r->out.result = _epm_LookupHandleFree(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(epm_LookupHandleFree, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_epm_InqObject(pipes_struct *p)
@@ -399,67 +409,69 @@ static bool api_epm_InqObject(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct epm_InqObject *r;
-       
+
        call = &ndr_table_epmapper.calls[NDR_EPM_INQOBJECT];
-       
+
        r = talloc(NULL, struct epm_InqObject);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(epm_InqObject, r);
-       
+       }
+
        r->out.result = _epm_InqObject(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(epm_InqObject, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_epm_MgmtDelete(pipes_struct *p)
@@ -470,67 +482,69 @@ static bool api_epm_MgmtDelete(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct epm_MgmtDelete *r;
-       
+
        call = &ndr_table_epmapper.calls[NDR_EPM_MGMTDELETE];
-       
+
        r = talloc(NULL, struct epm_MgmtDelete);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(epm_MgmtDelete, r);
-       
+       }
+
        r->out.result = _epm_MgmtDelete(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(epm_MgmtDelete, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_epm_MapAuth(pipes_struct *p)
@@ -541,67 +555,69 @@ static bool api_epm_MapAuth(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct epm_MapAuth *r;
-       
+
        call = &ndr_table_epmapper.calls[NDR_EPM_MAPAUTH];
-       
+
        r = talloc(NULL, struct epm_MapAuth);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(epm_MapAuth, r);
-       
+       }
+
        r->out.result = _epm_MapAuth(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(epm_MapAuth, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 
index 784bb51d6f4a6f0b75cb254ab8beb8d4d14f3d5a..d9310a8fbb31d75f45ac9741ef8b4f084163ef83 100644 (file)
@@ -14,67 +14,69 @@ static bool api_eventlog_ClearEventLogW(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct eventlog_ClearEventLogW *r;
-       
+
        call = &ndr_table_eventlog.calls[NDR_EVENTLOG_CLEAREVENTLOGW];
-       
+
        r = talloc(NULL, struct eventlog_ClearEventLogW);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_ClearEventLogW, r);
-       
+       }
+
        r->out.result = _eventlog_ClearEventLogW(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_ClearEventLogW, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_eventlog_BackupEventLogW(pipes_struct *p)
@@ -85,67 +87,69 @@ static bool api_eventlog_BackupEventLogW(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct eventlog_BackupEventLogW *r;
-       
+
        call = &ndr_table_eventlog.calls[NDR_EVENTLOG_BACKUPEVENTLOGW];
-       
+
        r = talloc(NULL, struct eventlog_BackupEventLogW);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_BackupEventLogW, r);
-       
+       }
+
        r->out.result = _eventlog_BackupEventLogW(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_BackupEventLogW, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_eventlog_CloseEventLog(pipes_struct *p)
@@ -156,69 +160,71 @@ static bool api_eventlog_CloseEventLog(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct eventlog_CloseEventLog *r;
-       
+
        call = &ndr_table_eventlog.calls[NDR_EVENTLOG_CLOSEEVENTLOG];
-       
+
        r = talloc(NULL, struct eventlog_CloseEventLog);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_CloseEventLog, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.handle = r->in.handle;
        r->out.result = _eventlog_CloseEventLog(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_CloseEventLog, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_eventlog_DeregisterEventSource(pipes_struct *p)
@@ -229,67 +235,69 @@ static bool api_eventlog_DeregisterEventSource(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct eventlog_DeregisterEventSource *r;
-       
+
        call = &ndr_table_eventlog.calls[NDR_EVENTLOG_DEREGISTEREVENTSOURCE];
-       
+
        r = talloc(NULL, struct eventlog_DeregisterEventSource);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_DeregisterEventSource, r);
-       
+       }
+
        r->out.result = _eventlog_DeregisterEventSource(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_DeregisterEventSource, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_eventlog_GetNumRecords(pipes_struct *p)
@@ -300,74 +308,76 @@ static bool api_eventlog_GetNumRecords(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct eventlog_GetNumRecords *r;
-       
+
        call = &ndr_table_eventlog.calls[NDR_EVENTLOG_GETNUMRECORDS];
-       
+
        r = talloc(NULL, struct eventlog_GetNumRecords);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_GetNumRecords, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.number = talloc_zero(r, uint32_t);
        if (r->out.number == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _eventlog_GetNumRecords(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_GetNumRecords, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_eventlog_GetOldestRecord(pipes_struct *p)
@@ -378,67 +388,69 @@ static bool api_eventlog_GetOldestRecord(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct eventlog_GetOldestRecord *r;
-       
+
        call = &ndr_table_eventlog.calls[NDR_EVENTLOG_GETOLDESTRECORD];
-       
+
        r = talloc(NULL, struct eventlog_GetOldestRecord);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_GetOldestRecord, r);
-       
+       }
+
        r->out.result = _eventlog_GetOldestRecord(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_GetOldestRecord, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_eventlog_ChangeNotify(pipes_struct *p)
@@ -449,67 +461,69 @@ static bool api_eventlog_ChangeNotify(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct eventlog_ChangeNotify *r;
-       
+
        call = &ndr_table_eventlog.calls[NDR_EVENTLOG_CHANGENOTIFY];
-       
+
        r = talloc(NULL, struct eventlog_ChangeNotify);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_ChangeNotify, r);
-       
+       }
+
        r->out.result = _eventlog_ChangeNotify(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_ChangeNotify, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_eventlog_OpenEventLogW(pipes_struct *p)
@@ -520,74 +534,76 @@ static bool api_eventlog_OpenEventLogW(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct eventlog_OpenEventLogW *r;
-       
+
        call = &ndr_table_eventlog.calls[NDR_EVENTLOG_OPENEVENTLOGW];
-       
+
        r = talloc(NULL, struct eventlog_OpenEventLogW);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_OpenEventLogW, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.handle = talloc_zero(r, struct policy_handle);
        if (r->out.handle == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _eventlog_OpenEventLogW(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_OpenEventLogW, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_eventlog_RegisterEventSourceW(pipes_struct *p)
@@ -598,67 +614,69 @@ static bool api_eventlog_RegisterEventSourceW(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct eventlog_RegisterEventSourceW *r;
-       
+
        call = &ndr_table_eventlog.calls[NDR_EVENTLOG_REGISTEREVENTSOURCEW];
-       
+
        r = talloc(NULL, struct eventlog_RegisterEventSourceW);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_RegisterEventSourceW, r);
-       
+       }
+
        r->out.result = _eventlog_RegisterEventSourceW(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_RegisterEventSourceW, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_eventlog_OpenBackupEventLogW(pipes_struct *p)
@@ -669,67 +687,69 @@ static bool api_eventlog_OpenBackupEventLogW(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct eventlog_OpenBackupEventLogW *r;
-       
+
        call = &ndr_table_eventlog.calls[NDR_EVENTLOG_OPENBACKUPEVENTLOGW];
-       
+
        r = talloc(NULL, struct eventlog_OpenBackupEventLogW);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_OpenBackupEventLogW, r);
-       
+       }
+
        r->out.result = _eventlog_OpenBackupEventLogW(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_OpenBackupEventLogW, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_eventlog_ReadEventLogW(pipes_struct *p)
@@ -740,86 +760,88 @@ static bool api_eventlog_ReadEventLogW(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct eventlog_ReadEventLogW *r;
-       
+
        call = &ndr_table_eventlog.calls[NDR_EVENTLOG_READEVENTLOGW];
-       
+
        r = talloc(NULL, struct eventlog_ReadEventLogW);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_ReadEventLogW, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.data = talloc_zero_array(r, uint8_t, r->in.number_of_bytes);
        if (r->out.data == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.sent_size = talloc_zero(r, uint32_t);
        if (r->out.sent_size == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.real_size = talloc_zero(r, uint32_t);
        if (r->out.real_size == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _eventlog_ReadEventLogW(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_ReadEventLogW, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_eventlog_ReportEventW(pipes_struct *p)
@@ -830,67 +852,69 @@ static bool api_eventlog_ReportEventW(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct eventlog_ReportEventW *r;
-       
+
        call = &ndr_table_eventlog.calls[NDR_EVENTLOG_REPORTEVENTW];
-       
+
        r = talloc(NULL, struct eventlog_ReportEventW);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_ReportEventW, r);
-       
+       }
+
        r->out.result = _eventlog_ReportEventW(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_ReportEventW, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_eventlog_ClearEventLogA(pipes_struct *p)
@@ -901,67 +925,69 @@ static bool api_eventlog_ClearEventLogA(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct eventlog_ClearEventLogA *r;
-       
+
        call = &ndr_table_eventlog.calls[NDR_EVENTLOG_CLEAREVENTLOGA];
-       
+
        r = talloc(NULL, struct eventlog_ClearEventLogA);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_ClearEventLogA, r);
-       
+       }
+
        r->out.result = _eventlog_ClearEventLogA(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_ClearEventLogA, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_eventlog_BackupEventLogA(pipes_struct *p)
@@ -972,67 +998,69 @@ static bool api_eventlog_BackupEventLogA(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct eventlog_BackupEventLogA *r;
-       
+
        call = &ndr_table_eventlog.calls[NDR_EVENTLOG_BACKUPEVENTLOGA];
-       
+
        r = talloc(NULL, struct eventlog_BackupEventLogA);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_BackupEventLogA, r);
-       
+       }
+
        r->out.result = _eventlog_BackupEventLogA(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_BackupEventLogA, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_eventlog_OpenEventLogA(pipes_struct *p)
@@ -1043,67 +1071,69 @@ static bool api_eventlog_OpenEventLogA(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct eventlog_OpenEventLogA *r;
-       
+
        call = &ndr_table_eventlog.calls[NDR_EVENTLOG_OPENEVENTLOGA];
-       
+
        r = talloc(NULL, struct eventlog_OpenEventLogA);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_OpenEventLogA, r);
-       
+       }
+
        r->out.result = _eventlog_OpenEventLogA(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_OpenEventLogA, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_eventlog_RegisterEventSourceA(pipes_struct *p)
@@ -1114,67 +1144,69 @@ static bool api_eventlog_RegisterEventSourceA(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct eventlog_RegisterEventSourceA *r;
-       
+
        call = &ndr_table_eventlog.calls[NDR_EVENTLOG_REGISTEREVENTSOURCEA];
-       
+
        r = talloc(NULL, struct eventlog_RegisterEventSourceA);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_RegisterEventSourceA, r);
-       
+       }
+
        r->out.result = _eventlog_RegisterEventSourceA(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_RegisterEventSourceA, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_eventlog_OpenBackupEventLogA(pipes_struct *p)
@@ -1185,67 +1217,69 @@ static bool api_eventlog_OpenBackupEventLogA(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct eventlog_OpenBackupEventLogA *r;
-       
+
        call = &ndr_table_eventlog.calls[NDR_EVENTLOG_OPENBACKUPEVENTLOGA];
-       
+
        r = talloc(NULL, struct eventlog_OpenBackupEventLogA);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_OpenBackupEventLogA, r);
-       
+       }
+
        r->out.result = _eventlog_OpenBackupEventLogA(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_OpenBackupEventLogA, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_eventlog_ReadEventLogA(pipes_struct *p)
@@ -1256,67 +1290,69 @@ static bool api_eventlog_ReadEventLogA(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct eventlog_ReadEventLogA *r;
-       
+
        call = &ndr_table_eventlog.calls[NDR_EVENTLOG_READEVENTLOGA];
-       
+
        r = talloc(NULL, struct eventlog_ReadEventLogA);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_ReadEventLogA, r);
-       
+       }
+
        r->out.result = _eventlog_ReadEventLogA(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_ReadEventLogA, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_eventlog_ReportEventA(pipes_struct *p)
@@ -1327,67 +1363,69 @@ static bool api_eventlog_ReportEventA(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct eventlog_ReportEventA *r;
-       
+
        call = &ndr_table_eventlog.calls[NDR_EVENTLOG_REPORTEVENTA];
-       
+
        r = talloc(NULL, struct eventlog_ReportEventA);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_ReportEventA, r);
-       
+       }
+
        r->out.result = _eventlog_ReportEventA(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_ReportEventA, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_eventlog_RegisterClusterSvc(pipes_struct *p)
@@ -1398,67 +1436,69 @@ static bool api_eventlog_RegisterClusterSvc(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct eventlog_RegisterClusterSvc *r;
-       
+
        call = &ndr_table_eventlog.calls[NDR_EVENTLOG_REGISTERCLUSTERSVC];
-       
+
        r = talloc(NULL, struct eventlog_RegisterClusterSvc);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_RegisterClusterSvc, r);
-       
+       }
+
        r->out.result = _eventlog_RegisterClusterSvc(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_RegisterClusterSvc, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_eventlog_DeregisterClusterSvc(pipes_struct *p)
@@ -1469,67 +1509,69 @@ static bool api_eventlog_DeregisterClusterSvc(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct eventlog_DeregisterClusterSvc *r;
-       
+
        call = &ndr_table_eventlog.calls[NDR_EVENTLOG_DEREGISTERCLUSTERSVC];
-       
+
        r = talloc(NULL, struct eventlog_DeregisterClusterSvc);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_DeregisterClusterSvc, r);
-       
+       }
+
        r->out.result = _eventlog_DeregisterClusterSvc(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_DeregisterClusterSvc, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_eventlog_WriteClusterEvents(pipes_struct *p)
@@ -1540,67 +1582,69 @@ static bool api_eventlog_WriteClusterEvents(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct eventlog_WriteClusterEvents *r;
-       
+
        call = &ndr_table_eventlog.calls[NDR_EVENTLOG_WRITECLUSTEREVENTS];
-       
+
        r = talloc(NULL, struct eventlog_WriteClusterEvents);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_WriteClusterEvents, r);
-       
+       }
+
        r->out.result = _eventlog_WriteClusterEvents(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_WriteClusterEvents, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_eventlog_GetLogIntormation(pipes_struct *p)
@@ -1611,67 +1655,69 @@ static bool api_eventlog_GetLogIntormation(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct eventlog_GetLogIntormation *r;
-       
+
        call = &ndr_table_eventlog.calls[NDR_EVENTLOG_GETLOGINTORMATION];
-       
+
        r = talloc(NULL, struct eventlog_GetLogIntormation);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_GetLogIntormation, r);
-       
+       }
+
        r->out.result = _eventlog_GetLogIntormation(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_GetLogIntormation, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_eventlog_FlushEventLog(pipes_struct *p)
@@ -1682,67 +1728,69 @@ static bool api_eventlog_FlushEventLog(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct eventlog_FlushEventLog *r;
-       
+
        call = &ndr_table_eventlog.calls[NDR_EVENTLOG_FLUSHEVENTLOG];
-       
+
        r = talloc(NULL, struct eventlog_FlushEventLog);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(eventlog_FlushEventLog, r);
-       
+       }
+
        r->out.result = _eventlog_FlushEventLog(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(eventlog_FlushEventLog, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 
index 56fbf429571a5233b432512b623f3477a5683fb8..794adea81b57401d64e67ddfefb774bac006c69d 100644 (file)
@@ -14,67 +14,69 @@ static bool api_initshutdown_Init(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct initshutdown_Init *r;
-       
+
        call = &ndr_table_initshutdown.calls[NDR_INITSHUTDOWN_INIT];
-       
+
        r = talloc(NULL, struct initshutdown_Init);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(initshutdown_Init, r);
-       
+       }
+
        r->out.result = _initshutdown_Init(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(initshutdown_Init, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_initshutdown_Abort(pipes_struct *p)
@@ -85,67 +87,69 @@ static bool api_initshutdown_Abort(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct initshutdown_Abort *r;
-       
+
        call = &ndr_table_initshutdown.calls[NDR_INITSHUTDOWN_ABORT];
-       
+
        r = talloc(NULL, struct initshutdown_Abort);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(initshutdown_Abort, r);
-       
+       }
+
        r->out.result = _initshutdown_Abort(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(initshutdown_Abort, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_initshutdown_InitEx(pipes_struct *p)
@@ -156,67 +160,69 @@ static bool api_initshutdown_InitEx(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct initshutdown_InitEx *r;
-       
+
        call = &ndr_table_initshutdown.calls[NDR_INITSHUTDOWN_INITEX];
-       
+
        r = talloc(NULL, struct initshutdown_InitEx);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(initshutdown_InitEx, r);
-       
+       }
+
        r->out.result = _initshutdown_InitEx(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(initshutdown_InitEx, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 
index b76680969aef6839c9d11b9ba569140350195d85..68dc32cef59d7c1166ec8e735bc22eae2bafa4ee 100644 (file)
@@ -14,69 +14,71 @@ static bool api_lsa_Close(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_Close *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_CLOSE];
-       
+
        r = talloc(NULL, struct lsa_Close);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_Close, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.handle = r->in.handle;
        r->out.result = _lsa_Close(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_Close, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_Delete(pipes_struct *p)
@@ -87,67 +89,69 @@ static bool api_lsa_Delete(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_Delete *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_DELETE];
-       
+
        r = talloc(NULL, struct lsa_Delete);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_Delete, r);
-       
+       }
+
        r->out.result = _lsa_Delete(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_Delete, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_EnumPrivs(pipes_struct *p)
@@ -158,75 +162,77 @@ static bool api_lsa_EnumPrivs(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_EnumPrivs *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_ENUMPRIVS];
-       
+
        r = talloc(NULL, struct lsa_EnumPrivs);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_EnumPrivs, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.resume_handle = r->in.resume_handle;
        r->out.privs = talloc_zero(r, struct lsa_PrivArray);
        if (r->out.privs == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _lsa_EnumPrivs(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_EnumPrivs, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_QuerySecurity(pipes_struct *p)
@@ -237,74 +243,76 @@ static bool api_lsa_QuerySecurity(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_QuerySecurity *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_QUERYSECURITY];
-       
+
        r = talloc(NULL, struct lsa_QuerySecurity);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_QuerySecurity, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.sdbuf = talloc_zero(r, struct sec_desc_buf);
        if (r->out.sdbuf == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _lsa_QuerySecurity(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_QuerySecurity, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_SetSecObj(pipes_struct *p)
@@ -315,67 +323,69 @@ static bool api_lsa_SetSecObj(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_SetSecObj *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_SETSECOBJ];
-       
+
        r = talloc(NULL, struct lsa_SetSecObj);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_SetSecObj, r);
-       
+       }
+
        r->out.result = _lsa_SetSecObj(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_SetSecObj, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_ChangePassword(pipes_struct *p)
@@ -386,67 +396,69 @@ static bool api_lsa_ChangePassword(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_ChangePassword *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_CHANGEPASSWORD];
-       
+
        r = talloc(NULL, struct lsa_ChangePassword);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_ChangePassword, r);
-       
+       }
+
        r->out.result = _lsa_ChangePassword(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_ChangePassword, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_OpenPolicy(pipes_struct *p)
@@ -457,74 +469,76 @@ static bool api_lsa_OpenPolicy(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_OpenPolicy *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_OPENPOLICY];
-       
+
        r = talloc(NULL, struct lsa_OpenPolicy);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_OpenPolicy, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.handle = talloc_zero(r, struct policy_handle);
        if (r->out.handle == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _lsa_OpenPolicy(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_OpenPolicy, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_QueryInfoPolicy(pipes_struct *p)
@@ -535,74 +549,76 @@ static bool api_lsa_QueryInfoPolicy(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_QueryInfoPolicy *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_QUERYINFOPOLICY];
-       
+
        r = talloc(NULL, struct lsa_QueryInfoPolicy);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_QueryInfoPolicy, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.info = talloc_zero(r, union lsa_PolicyInformation);
        if (r->out.info == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _lsa_QueryInfoPolicy(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_QueryInfoPolicy, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_SetInfoPolicy(pipes_struct *p)
@@ -613,67 +629,69 @@ static bool api_lsa_SetInfoPolicy(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_SetInfoPolicy *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_SETINFOPOLICY];
-       
+
        r = talloc(NULL, struct lsa_SetInfoPolicy);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_SetInfoPolicy, r);
-       
+       }
+
        r->out.result = _lsa_SetInfoPolicy(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_SetInfoPolicy, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_ClearAuditLog(pipes_struct *p)
@@ -684,67 +702,69 @@ static bool api_lsa_ClearAuditLog(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_ClearAuditLog *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_CLEARAUDITLOG];
-       
+
        r = talloc(NULL, struct lsa_ClearAuditLog);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_ClearAuditLog, r);
-       
+       }
+
        r->out.result = _lsa_ClearAuditLog(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_ClearAuditLog, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_CreateAccount(pipes_struct *p)
@@ -755,74 +775,76 @@ static bool api_lsa_CreateAccount(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_CreateAccount *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_CREATEACCOUNT];
-       
+
        r = talloc(NULL, struct lsa_CreateAccount);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CreateAccount, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.acct_handle = talloc_zero(r, struct policy_handle);
        if (r->out.acct_handle == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _lsa_CreateAccount(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CreateAccount, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_EnumAccounts(pipes_struct *p)
@@ -833,75 +855,77 @@ static bool api_lsa_EnumAccounts(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_EnumAccounts *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_ENUMACCOUNTS];
-       
+
        r = talloc(NULL, struct lsa_EnumAccounts);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_EnumAccounts, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.resume_handle = r->in.resume_handle;
        r->out.sids = talloc_zero(r, struct lsa_SidArray);
        if (r->out.sids == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _lsa_EnumAccounts(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_EnumAccounts, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_CreateTrustedDomain(pipes_struct *p)
@@ -912,74 +936,76 @@ static bool api_lsa_CreateTrustedDomain(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_CreateTrustedDomain *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_CREATETRUSTEDDOMAIN];
-       
+
        r = talloc(NULL, struct lsa_CreateTrustedDomain);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CreateTrustedDomain, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.trustdom_handle = talloc_zero(r, struct policy_handle);
        if (r->out.trustdom_handle == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _lsa_CreateTrustedDomain(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CreateTrustedDomain, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_EnumTrustDom(pipes_struct *p)
@@ -990,75 +1016,77 @@ static bool api_lsa_EnumTrustDom(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_EnumTrustDom *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_ENUMTRUSTDOM];
-       
+
        r = talloc(NULL, struct lsa_EnumTrustDom);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_EnumTrustDom, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.resume_handle = r->in.resume_handle;
        r->out.domains = talloc_zero(r, struct lsa_DomainList);
        if (r->out.domains == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _lsa_EnumTrustDom(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_EnumTrustDom, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_LookupNames(pipes_struct *p)
@@ -1069,76 +1097,78 @@ static bool api_lsa_LookupNames(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_LookupNames *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_LOOKUPNAMES];
-       
+
        r = talloc(NULL, struct lsa_LookupNames);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LookupNames, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.domains = talloc_zero(r, struct lsa_RefDomainList);
        if (r->out.domains == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.sids = r->in.sids;
        r->out.count = r->in.count;
        r->out.result = _lsa_LookupNames(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LookupNames, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_LookupSids(pipes_struct *p)
@@ -1149,76 +1179,78 @@ static bool api_lsa_LookupSids(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_LookupSids *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_LOOKUPSIDS];
-       
+
        r = talloc(NULL, struct lsa_LookupSids);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LookupSids, r);
-       
-       ZERO_STRUCT(r->out);
+       }
+
+       ZERO_STRUCT(r->out);
        r->out.domains = talloc_zero(r, struct lsa_RefDomainList);
        if (r->out.domains == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.names = r->in.names;
        r->out.count = r->in.count;
        r->out.result = _lsa_LookupSids(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LookupSids, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_CreateSecret(pipes_struct *p)
@@ -1229,74 +1261,76 @@ static bool api_lsa_CreateSecret(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_CreateSecret *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_CREATESECRET];
-       
+
        r = talloc(NULL, struct lsa_CreateSecret);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CreateSecret, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.sec_handle = talloc_zero(r, struct policy_handle);
        if (r->out.sec_handle == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _lsa_CreateSecret(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CreateSecret, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_OpenAccount(pipes_struct *p)
@@ -1307,74 +1341,76 @@ static bool api_lsa_OpenAccount(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_OpenAccount *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_OPENACCOUNT];
-       
+
        r = talloc(NULL, struct lsa_OpenAccount);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_OpenAccount, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.acct_handle = talloc_zero(r, struct policy_handle);
        if (r->out.acct_handle == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _lsa_OpenAccount(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_OpenAccount, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_EnumPrivsAccount(pipes_struct *p)
@@ -1385,74 +1421,76 @@ static bool api_lsa_EnumPrivsAccount(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_EnumPrivsAccount *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_ENUMPRIVSACCOUNT];
-       
+
        r = talloc(NULL, struct lsa_EnumPrivsAccount);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_EnumPrivsAccount, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.privs = talloc_zero(r, struct lsa_PrivilegeSet);
        if (r->out.privs == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _lsa_EnumPrivsAccount(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_EnumPrivsAccount, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_AddPrivilegesToAccount(pipes_struct *p)
@@ -1463,67 +1501,69 @@ static bool api_lsa_AddPrivilegesToAccount(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_AddPrivilegesToAccount *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_ADDPRIVILEGESTOACCOUNT];
-       
+
        r = talloc(NULL, struct lsa_AddPrivilegesToAccount);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_AddPrivilegesToAccount, r);
-       
+       }
+
        r->out.result = _lsa_AddPrivilegesToAccount(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_AddPrivilegesToAccount, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_RemovePrivilegesFromAccount(pipes_struct *p)
@@ -1534,67 +1574,69 @@ static bool api_lsa_RemovePrivilegesFromAccount(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_RemovePrivilegesFromAccount *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_REMOVEPRIVILEGESFROMACCOUNT];
-       
+
        r = talloc(NULL, struct lsa_RemovePrivilegesFromAccount);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_RemovePrivilegesFromAccount, r);
-       
+       }
+
        r->out.result = _lsa_RemovePrivilegesFromAccount(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_RemovePrivilegesFromAccount, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_GetQuotasForAccount(pipes_struct *p)
@@ -1605,67 +1647,69 @@ static bool api_lsa_GetQuotasForAccount(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_GetQuotasForAccount *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_GETQUOTASFORACCOUNT];
-       
+
        r = talloc(NULL, struct lsa_GetQuotasForAccount);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_GetQuotasForAccount, r);
-       
+       }
+
        r->out.result = _lsa_GetQuotasForAccount(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_GetQuotasForAccount, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_SetQuotasForAccount(pipes_struct *p)
@@ -1676,67 +1720,69 @@ static bool api_lsa_SetQuotasForAccount(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_SetQuotasForAccount *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_SETQUOTASFORACCOUNT];
-       
+
        r = talloc(NULL, struct lsa_SetQuotasForAccount);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_SetQuotasForAccount, r);
-       
+       }
+
        r->out.result = _lsa_SetQuotasForAccount(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_SetQuotasForAccount, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_GetSystemAccessAccount(pipes_struct *p)
@@ -1747,67 +1793,69 @@ static bool api_lsa_GetSystemAccessAccount(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_GetSystemAccessAccount *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_GETSYSTEMACCESSACCOUNT];
-       
+
        r = talloc(NULL, struct lsa_GetSystemAccessAccount);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_GetSystemAccessAccount, r);
-       
+       }
+
        r->out.result = _lsa_GetSystemAccessAccount(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_GetSystemAccessAccount, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_SetSystemAccessAccount(pipes_struct *p)
@@ -1818,67 +1866,69 @@ static bool api_lsa_SetSystemAccessAccount(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_SetSystemAccessAccount *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_SETSYSTEMACCESSACCOUNT];
-       
+
        r = talloc(NULL, struct lsa_SetSystemAccessAccount);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_SetSystemAccessAccount, r);
-       
+       }
+
        r->out.result = _lsa_SetSystemAccessAccount(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_SetSystemAccessAccount, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_OpenTrustedDomain(pipes_struct *p)
@@ -1889,74 +1939,76 @@ static bool api_lsa_OpenTrustedDomain(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_OpenTrustedDomain *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_OPENTRUSTEDDOMAIN];
-       
+
        r = talloc(NULL, struct lsa_OpenTrustedDomain);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_OpenTrustedDomain, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.trustdom_handle = talloc_zero(r, struct policy_handle);
        if (r->out.trustdom_handle == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _lsa_OpenTrustedDomain(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_OpenTrustedDomain, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_QueryTrustedDomainInfo(pipes_struct *p)
@@ -1967,74 +2019,76 @@ static bool api_lsa_QueryTrustedDomainInfo(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_QueryTrustedDomainInfo *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_QUERYTRUSTEDDOMAININFO];
-       
+
        r = talloc(NULL, struct lsa_QueryTrustedDomainInfo);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_QueryTrustedDomainInfo, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.info = talloc_zero(r, union lsa_TrustedDomainInfo);
        if (r->out.info == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _lsa_QueryTrustedDomainInfo(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_QueryTrustedDomainInfo, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_SetInformationTrustedDomain(pipes_struct *p)
@@ -2045,67 +2099,69 @@ static bool api_lsa_SetInformationTrustedDomain(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_SetInformationTrustedDomain *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_SETINFORMATIONTRUSTEDDOMAIN];
-       
+
        r = talloc(NULL, struct lsa_SetInformationTrustedDomain);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_SetInformationTrustedDomain, r);
-       
+       }
+
        r->out.result = _lsa_SetInformationTrustedDomain(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_SetInformationTrustedDomain, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_OpenSecret(pipes_struct *p)
@@ -2116,74 +2172,76 @@ static bool api_lsa_OpenSecret(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_OpenSecret *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_OPENSECRET];
-       
+
        r = talloc(NULL, struct lsa_OpenSecret);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_OpenSecret, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.sec_handle = talloc_zero(r, struct policy_handle);
        if (r->out.sec_handle == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _lsa_OpenSecret(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_OpenSecret, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_SetSecret(pipes_struct *p)
@@ -2194,67 +2252,69 @@ static bool api_lsa_SetSecret(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_SetSecret *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_SETSECRET];
-       
+
        r = talloc(NULL, struct lsa_SetSecret);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_SetSecret, r);
-       
+       }
+
        r->out.result = _lsa_SetSecret(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_SetSecret, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_QuerySecret(pipes_struct *p)
@@ -2265,72 +2325,74 @@ static bool api_lsa_QuerySecret(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_QuerySecret *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_QUERYSECRET];
-       
+
        r = talloc(NULL, struct lsa_QuerySecret);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_QuerySecret, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.new_val = r->in.new_val;
        r->out.new_mtime = r->in.new_mtime;
        r->out.old_val = r->in.old_val;
        r->out.old_mtime = r->in.old_mtime;
        r->out.result = _lsa_QuerySecret(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_QuerySecret, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_LookupPrivValue(pipes_struct *p)
@@ -2341,74 +2403,76 @@ static bool api_lsa_LookupPrivValue(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_LookupPrivValue *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_LOOKUPPRIVVALUE];
-       
+
        r = talloc(NULL, struct lsa_LookupPrivValue);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LookupPrivValue, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.luid = talloc_zero(r, struct lsa_LUID);
        if (r->out.luid == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _lsa_LookupPrivValue(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LookupPrivValue, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_LookupPrivName(pipes_struct *p)
@@ -2419,74 +2483,76 @@ static bool api_lsa_LookupPrivName(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_LookupPrivName *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_LOOKUPPRIVNAME];
-       
+
        r = talloc(NULL, struct lsa_LookupPrivName);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LookupPrivName, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.name = talloc_zero(r, struct lsa_StringLarge);
        if (r->out.name == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _lsa_LookupPrivName(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LookupPrivName, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_LookupPrivDisplayName(pipes_struct *p)
@@ -2497,75 +2563,77 @@ static bool api_lsa_LookupPrivDisplayName(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_LookupPrivDisplayName *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_LOOKUPPRIVDISPLAYNAME];
-       
+
        r = talloc(NULL, struct lsa_LookupPrivDisplayName);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LookupPrivDisplayName, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.disp_name = talloc_zero(r, struct lsa_StringLarge);
        if (r->out.disp_name == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.language_id = r->in.language_id;
        r->out.result = _lsa_LookupPrivDisplayName(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LookupPrivDisplayName, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_DeleteObject(pipes_struct *p)
@@ -2576,67 +2644,69 @@ static bool api_lsa_DeleteObject(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_DeleteObject *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_DELETEOBJECT];
-       
+
        r = talloc(NULL, struct lsa_DeleteObject);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_DeleteObject, r);
-       
+       }
+
        r->out.result = _lsa_DeleteObject(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_DeleteObject, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_EnumAccountsWithUserRight(pipes_struct *p)
@@ -2647,74 +2717,76 @@ static bool api_lsa_EnumAccountsWithUserRight(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_EnumAccountsWithUserRight *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_ENUMACCOUNTSWITHUSERRIGHT];
-       
+
        r = talloc(NULL, struct lsa_EnumAccountsWithUserRight);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_EnumAccountsWithUserRight, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.sids = talloc_zero(r, struct lsa_SidArray);
        if (r->out.sids == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _lsa_EnumAccountsWithUserRight(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_EnumAccountsWithUserRight, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_EnumAccountRights(pipes_struct *p)
@@ -2725,74 +2797,76 @@ static bool api_lsa_EnumAccountRights(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_EnumAccountRights *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_ENUMACCOUNTRIGHTS];
-       
+
        r = talloc(NULL, struct lsa_EnumAccountRights);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_EnumAccountRights, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.rights = talloc_zero(r, struct lsa_RightSet);
        if (r->out.rights == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _lsa_EnumAccountRights(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_EnumAccountRights, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_AddAccountRights(pipes_struct *p)
@@ -2803,67 +2877,69 @@ static bool api_lsa_AddAccountRights(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_AddAccountRights *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_ADDACCOUNTRIGHTS];
-       
+
        r = talloc(NULL, struct lsa_AddAccountRights);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_AddAccountRights, r);
-       
+       }
+
        r->out.result = _lsa_AddAccountRights(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_AddAccountRights, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_RemoveAccountRights(pipes_struct *p)
@@ -2874,67 +2950,69 @@ static bool api_lsa_RemoveAccountRights(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_RemoveAccountRights *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_REMOVEACCOUNTRIGHTS];
-       
+
        r = talloc(NULL, struct lsa_RemoveAccountRights);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_RemoveAccountRights, r);
-       
+       }
+
        r->out.result = _lsa_RemoveAccountRights(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_RemoveAccountRights, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_QueryTrustedDomainInfoBySid(pipes_struct *p)
@@ -2945,74 +3023,76 @@ static bool api_lsa_QueryTrustedDomainInfoBySid(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_QueryTrustedDomainInfoBySid *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_QUERYTRUSTEDDOMAININFOBYSID];
-       
+
        r = talloc(NULL, struct lsa_QueryTrustedDomainInfoBySid);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_QueryTrustedDomainInfoBySid, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.info = talloc_zero(r, union lsa_TrustedDomainInfo);
        if (r->out.info == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _lsa_QueryTrustedDomainInfoBySid(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_QueryTrustedDomainInfoBySid, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_SetTrustedDomainInfo(pipes_struct *p)
@@ -3023,67 +3103,69 @@ static bool api_lsa_SetTrustedDomainInfo(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_SetTrustedDomainInfo *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_SETTRUSTEDDOMAININFO];
-       
+
        r = talloc(NULL, struct lsa_SetTrustedDomainInfo);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_SetTrustedDomainInfo, r);
-       
+       }
+
        r->out.result = _lsa_SetTrustedDomainInfo(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_SetTrustedDomainInfo, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_DeleteTrustedDomain(pipes_struct *p)
@@ -3094,67 +3176,69 @@ static bool api_lsa_DeleteTrustedDomain(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_DeleteTrustedDomain *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_DELETETRUSTEDDOMAIN];
-       
+
        r = talloc(NULL, struct lsa_DeleteTrustedDomain);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_DeleteTrustedDomain, r);
-       
+       }
+
        r->out.result = _lsa_DeleteTrustedDomain(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_DeleteTrustedDomain, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_StorePrivateData(pipes_struct *p)
@@ -3165,67 +3249,69 @@ static bool api_lsa_StorePrivateData(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_StorePrivateData *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_STOREPRIVATEDATA];
-       
+
        r = talloc(NULL, struct lsa_StorePrivateData);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_StorePrivateData, r);
-       
+       }
+
        r->out.result = _lsa_StorePrivateData(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_StorePrivateData, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_RetrievePrivateData(pipes_struct *p)
@@ -3236,67 +3322,69 @@ static bool api_lsa_RetrievePrivateData(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_RetrievePrivateData *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_RETRIEVEPRIVATEDATA];
-       
+
        r = talloc(NULL, struct lsa_RetrievePrivateData);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_RetrievePrivateData, r);
-       
+       }
+
        r->out.result = _lsa_RetrievePrivateData(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_RetrievePrivateData, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_OpenPolicy2(pipes_struct *p)
@@ -3307,74 +3395,76 @@ static bool api_lsa_OpenPolicy2(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_OpenPolicy2 *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_OPENPOLICY2];
-       
+
        r = talloc(NULL, struct lsa_OpenPolicy2);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_OpenPolicy2, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.handle = talloc_zero(r, struct policy_handle);
        if (r->out.handle == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _lsa_OpenPolicy2(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_OpenPolicy2, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_GetUserName(pipes_struct *p)
@@ -3385,70 +3475,72 @@ static bool api_lsa_GetUserName(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_GetUserName *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_GETUSERNAME];
-       
+
        r = talloc(NULL, struct lsa_GetUserName);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_GetUserName, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.account_name = r->in.account_name;
        r->out.authority_name = r->in.authority_name;
        r->out.result = _lsa_GetUserName(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_GetUserName, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_QueryInfoPolicy2(pipes_struct *p)
@@ -3459,74 +3551,76 @@ static bool api_lsa_QueryInfoPolicy2(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_QueryInfoPolicy2 *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_QUERYINFOPOLICY2];
-       
+
        r = talloc(NULL, struct lsa_QueryInfoPolicy2);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_QueryInfoPolicy2, r);
-       
-       ZERO_STRUCT(r->out);
+       }
+
+       ZERO_STRUCT(r->out);
        r->out.info = talloc_zero(r, union lsa_PolicyInformation);
        if (r->out.info == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _lsa_QueryInfoPolicy2(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_QueryInfoPolicy2, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_SetInfoPolicy2(pipes_struct *p)
@@ -3537,67 +3631,69 @@ static bool api_lsa_SetInfoPolicy2(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_SetInfoPolicy2 *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_SETINFOPOLICY2];
-       
+
        r = talloc(NULL, struct lsa_SetInfoPolicy2);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_SetInfoPolicy2, r);
-       
+       }
+
        r->out.result = _lsa_SetInfoPolicy2(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_SetInfoPolicy2, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_QueryTrustedDomainInfoByName(pipes_struct *p)
@@ -3608,74 +3704,76 @@ static bool api_lsa_QueryTrustedDomainInfoByName(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_QueryTrustedDomainInfoByName *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_QUERYTRUSTEDDOMAININFOBYNAME];
-       
+
        r = talloc(NULL, struct lsa_QueryTrustedDomainInfoByName);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_QueryTrustedDomainInfoByName, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.info = talloc_zero(r, union lsa_TrustedDomainInfo);
        if (r->out.info == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _lsa_QueryTrustedDomainInfoByName(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_QueryTrustedDomainInfoByName, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_SetTrustedDomainInfoByName(pipes_struct *p)
@@ -3686,67 +3784,69 @@ static bool api_lsa_SetTrustedDomainInfoByName(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_SetTrustedDomainInfoByName *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_SETTRUSTEDDOMAININFOBYNAME];
-       
+
        r = talloc(NULL, struct lsa_SetTrustedDomainInfoByName);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_SetTrustedDomainInfoByName, r);
-       
+       }
+
        r->out.result = _lsa_SetTrustedDomainInfoByName(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_SetTrustedDomainInfoByName, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_EnumTrustedDomainsEx(pipes_struct *p)
@@ -3757,75 +3857,77 @@ static bool api_lsa_EnumTrustedDomainsEx(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_EnumTrustedDomainsEx *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_ENUMTRUSTEDDOMAINSEX];
-       
+
        r = talloc(NULL, struct lsa_EnumTrustedDomainsEx);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_EnumTrustedDomainsEx, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.resume_handle = r->in.resume_handle;
        r->out.domains = talloc_zero(r, struct lsa_DomainListEx);
        if (r->out.domains == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _lsa_EnumTrustedDomainsEx(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_EnumTrustedDomainsEx, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_CreateTrustedDomainEx(pipes_struct *p)
@@ -3836,67 +3938,69 @@ static bool api_lsa_CreateTrustedDomainEx(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_CreateTrustedDomainEx *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_CREATETRUSTEDDOMAINEX];
-       
+
        r = talloc(NULL, struct lsa_CreateTrustedDomainEx);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CreateTrustedDomainEx, r);
-       
+       }
+
        r->out.result = _lsa_CreateTrustedDomainEx(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CreateTrustedDomainEx, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_CloseTrustedDomainEx(pipes_struct *p)
@@ -3907,69 +4011,71 @@ static bool api_lsa_CloseTrustedDomainEx(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_CloseTrustedDomainEx *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_CLOSETRUSTEDDOMAINEX];
-       
+
        r = talloc(NULL, struct lsa_CloseTrustedDomainEx);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CloseTrustedDomainEx, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.handle = r->in.handle;
        r->out.result = _lsa_CloseTrustedDomainEx(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CloseTrustedDomainEx, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_QueryDomainInformationPolicy(pipes_struct *p)
@@ -3980,74 +4086,76 @@ static bool api_lsa_QueryDomainInformationPolicy(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_QueryDomainInformationPolicy *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_QUERYDOMAININFORMATIONPOLICY];
-       
+
        r = talloc(NULL, struct lsa_QueryDomainInformationPolicy);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_QueryDomainInformationPolicy, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.info = talloc_zero(r, union lsa_DomainInformationPolicy);
        if (r->out.info == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _lsa_QueryDomainInformationPolicy(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_QueryDomainInformationPolicy, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_SetDomainInformationPolicy(pipes_struct *p)
@@ -4058,67 +4166,69 @@ static bool api_lsa_SetDomainInformationPolicy(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_SetDomainInformationPolicy *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_SETDOMAININFORMATIONPOLICY];
-       
+
        r = talloc(NULL, struct lsa_SetDomainInformationPolicy);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_SetDomainInformationPolicy, r);
-       
+       }
+
        r->out.result = _lsa_SetDomainInformationPolicy(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_SetDomainInformationPolicy, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_OpenTrustedDomainByName(pipes_struct *p)
@@ -4129,74 +4239,76 @@ static bool api_lsa_OpenTrustedDomainByName(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_OpenTrustedDomainByName *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_OPENTRUSTEDDOMAINBYNAME];
-       
+
        r = talloc(NULL, struct lsa_OpenTrustedDomainByName);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_OpenTrustedDomainByName, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.trustdom_handle = talloc_zero(r, struct policy_handle);
        if (r->out.trustdom_handle == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _lsa_OpenTrustedDomainByName(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_OpenTrustedDomainByName, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_TestCall(pipes_struct *p)
@@ -4207,67 +4319,69 @@ static bool api_lsa_TestCall(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_TestCall *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_TESTCALL];
-       
+
        r = talloc(NULL, struct lsa_TestCall);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_TestCall, r);
-       
+       }
+
        r->out.result = _lsa_TestCall(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_TestCall, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_LookupSids2(pipes_struct *p)
@@ -4278,76 +4392,78 @@ static bool api_lsa_LookupSids2(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_LookupSids2 *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_LOOKUPSIDS2];
-       
+
        r = talloc(NULL, struct lsa_LookupSids2);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LookupSids2, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.domains = talloc_zero(r, struct lsa_RefDomainList);
        if (r->out.domains == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.names = r->in.names;
        r->out.count = r->in.count;
        r->out.result = _lsa_LookupSids2(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LookupSids2, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_LookupNames2(pipes_struct *p)
@@ -4358,76 +4474,78 @@ static bool api_lsa_LookupNames2(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_LookupNames2 *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_LOOKUPNAMES2];
-       
+
        r = talloc(NULL, struct lsa_LookupNames2);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LookupNames2, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.domains = talloc_zero(r, struct lsa_RefDomainList);
        if (r->out.domains == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.sids = r->in.sids;
        r->out.count = r->in.count;
        r->out.result = _lsa_LookupNames2(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LookupNames2, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_CreateTrustedDomainEx2(pipes_struct *p)
@@ -4438,67 +4556,69 @@ static bool api_lsa_CreateTrustedDomainEx2(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_CreateTrustedDomainEx2 *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_CREATETRUSTEDDOMAINEX2];
-       
+
        r = talloc(NULL, struct lsa_CreateTrustedDomainEx2);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CreateTrustedDomainEx2, r);
-       
+       }
+
        r->out.result = _lsa_CreateTrustedDomainEx2(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CreateTrustedDomainEx2, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_CREDRWRITE(pipes_struct *p)
@@ -4509,67 +4629,69 @@ static bool api_lsa_CREDRWRITE(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_CREDRWRITE *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_CREDRWRITE];
-       
+
        r = talloc(NULL, struct lsa_CREDRWRITE);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CREDRWRITE, r);
-       
+       }
+
        r->out.result = _lsa_CREDRWRITE(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CREDRWRITE, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_CREDRREAD(pipes_struct *p)
@@ -4580,67 +4702,69 @@ static bool api_lsa_CREDRREAD(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_CREDRREAD *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_CREDRREAD];
-       
+
        r = talloc(NULL, struct lsa_CREDRREAD);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CREDRREAD, r);
-       
+       }
+
        r->out.result = _lsa_CREDRREAD(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CREDRREAD, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_CREDRENUMERATE(pipes_struct *p)
@@ -4651,67 +4775,69 @@ static bool api_lsa_CREDRENUMERATE(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_CREDRENUMERATE *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_CREDRENUMERATE];
-       
+
        r = talloc(NULL, struct lsa_CREDRENUMERATE);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CREDRENUMERATE, r);
-       
+       }
+
        r->out.result = _lsa_CREDRENUMERATE(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CREDRENUMERATE, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_CREDRWRITEDOMAINCREDENTIALS(pipes_struct *p)
@@ -4722,67 +4848,69 @@ static bool api_lsa_CREDRWRITEDOMAINCREDENTIALS(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_CREDRWRITEDOMAINCREDENTIALS *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_CREDRWRITEDOMAINCREDENTIALS];
-       
+
        r = talloc(NULL, struct lsa_CREDRWRITEDOMAINCREDENTIALS);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CREDRWRITEDOMAINCREDENTIALS, r);
-       
+       }
+
        r->out.result = _lsa_CREDRWRITEDOMAINCREDENTIALS(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CREDRWRITEDOMAINCREDENTIALS, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_CREDRREADDOMAINCREDENTIALS(pipes_struct *p)
@@ -4793,67 +4921,69 @@ static bool api_lsa_CREDRREADDOMAINCREDENTIALS(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_CREDRREADDOMAINCREDENTIALS *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_CREDRREADDOMAINCREDENTIALS];
-       
+
        r = talloc(NULL, struct lsa_CREDRREADDOMAINCREDENTIALS);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CREDRREADDOMAINCREDENTIALS, r);
-       
+       }
+
        r->out.result = _lsa_CREDRREADDOMAINCREDENTIALS(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CREDRREADDOMAINCREDENTIALS, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_CREDRDELETE(pipes_struct *p)
@@ -4864,67 +4994,69 @@ static bool api_lsa_CREDRDELETE(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_CREDRDELETE *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_CREDRDELETE];
-       
+
        r = talloc(NULL, struct lsa_CREDRDELETE);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CREDRDELETE, r);
-       
+       }
+
        r->out.result = _lsa_CREDRDELETE(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CREDRDELETE, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_CREDRGETTARGETINFO(pipes_struct *p)
@@ -4935,67 +5067,69 @@ static bool api_lsa_CREDRGETTARGETINFO(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_CREDRGETTARGETINFO *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_CREDRGETTARGETINFO];
-       
+
        r = talloc(NULL, struct lsa_CREDRGETTARGETINFO);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CREDRGETTARGETINFO, r);
-       
+       }
+
        r->out.result = _lsa_CREDRGETTARGETINFO(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CREDRGETTARGETINFO, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_CREDRPROFILELOADED(pipes_struct *p)
@@ -5006,67 +5140,69 @@ static bool api_lsa_CREDRPROFILELOADED(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_CREDRPROFILELOADED *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_CREDRPROFILELOADED];
-       
+
        r = talloc(NULL, struct lsa_CREDRPROFILELOADED);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CREDRPROFILELOADED, r);
-       
+       }
+
        r->out.result = _lsa_CREDRPROFILELOADED(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CREDRPROFILELOADED, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_LookupNames3(pipes_struct *p)
@@ -5077,76 +5213,78 @@ static bool api_lsa_LookupNames3(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_LookupNames3 *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_LOOKUPNAMES3];
-       
+
        r = talloc(NULL, struct lsa_LookupNames3);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LookupNames3, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.domains = talloc_zero(r, struct lsa_RefDomainList);
        if (r->out.domains == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.sids = r->in.sids;
        r->out.count = r->in.count;
        r->out.result = _lsa_LookupNames3(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LookupNames3, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_CREDRGETSESSIONTYPES(pipes_struct *p)
@@ -5157,67 +5295,69 @@ static bool api_lsa_CREDRGETSESSIONTYPES(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_CREDRGETSESSIONTYPES *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_CREDRGETSESSIONTYPES];
-       
+
        r = talloc(NULL, struct lsa_CREDRGETSESSIONTYPES);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CREDRGETSESSIONTYPES, r);
-       
+       }
+
        r->out.result = _lsa_CREDRGETSESSIONTYPES(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CREDRGETSESSIONTYPES, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_LSARREGISTERAUDITEVENT(pipes_struct *p)
@@ -5228,67 +5368,69 @@ static bool api_lsa_LSARREGISTERAUDITEVENT(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_LSARREGISTERAUDITEVENT *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_LSARREGISTERAUDITEVENT];
-       
+
        r = talloc(NULL, struct lsa_LSARREGISTERAUDITEVENT);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LSARREGISTERAUDITEVENT, r);
-       
+       }
+
        r->out.result = _lsa_LSARREGISTERAUDITEVENT(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LSARREGISTERAUDITEVENT, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_LSARGENAUDITEVENT(pipes_struct *p)
@@ -5299,67 +5441,69 @@ static bool api_lsa_LSARGENAUDITEVENT(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_LSARGENAUDITEVENT *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_LSARGENAUDITEVENT];
-       
+
        r = talloc(NULL, struct lsa_LSARGENAUDITEVENT);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LSARGENAUDITEVENT, r);
-       
+       }
+
        r->out.result = _lsa_LSARGENAUDITEVENT(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LSARGENAUDITEVENT, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_LSARUNREGISTERAUDITEVENT(pipes_struct *p)
@@ -5370,67 +5514,69 @@ static bool api_lsa_LSARUNREGISTERAUDITEVENT(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_LSARUNREGISTERAUDITEVENT *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_LSARUNREGISTERAUDITEVENT];
-       
+
        r = talloc(NULL, struct lsa_LSARUNREGISTERAUDITEVENT);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LSARUNREGISTERAUDITEVENT, r);
-       
+       }
+
        r->out.result = _lsa_LSARUNREGISTERAUDITEVENT(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LSARUNREGISTERAUDITEVENT, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_LSARQUERYFORESTTRUSTINFORMATION(pipes_struct *p)
@@ -5441,67 +5587,69 @@ static bool api_lsa_LSARQUERYFORESTTRUSTINFORMATION(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_LSARQUERYFORESTTRUSTINFORMATION *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_LSARQUERYFORESTTRUSTINFORMATION];
-       
+
        r = talloc(NULL, struct lsa_LSARQUERYFORESTTRUSTINFORMATION);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LSARQUERYFORESTTRUSTINFORMATION, r);
-       
+       }
+
        r->out.result = _lsa_LSARQUERYFORESTTRUSTINFORMATION(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LSARQUERYFORESTTRUSTINFORMATION, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_LSARSETFORESTTRUSTINFORMATION(pipes_struct *p)
@@ -5512,67 +5660,69 @@ static bool api_lsa_LSARSETFORESTTRUSTINFORMATION(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_LSARSETFORESTTRUSTINFORMATION *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_LSARSETFORESTTRUSTINFORMATION];
-       
+
        r = talloc(NULL, struct lsa_LSARSETFORESTTRUSTINFORMATION);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LSARSETFORESTTRUSTINFORMATION, r);
-       
+       }
+
        r->out.result = _lsa_LSARSETFORESTTRUSTINFORMATION(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LSARSETFORESTTRUSTINFORMATION, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_CREDRRENAME(pipes_struct *p)
@@ -5583,67 +5733,69 @@ static bool api_lsa_CREDRRENAME(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_CREDRRENAME *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_CREDRRENAME];
-       
+
        r = talloc(NULL, struct lsa_CREDRRENAME);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_CREDRRENAME, r);
-       
+       }
+
        r->out.result = _lsa_CREDRRENAME(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_CREDRRENAME, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_LookupSids3(pipes_struct *p)
@@ -5654,76 +5806,78 @@ static bool api_lsa_LookupSids3(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_LookupSids3 *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_LOOKUPSIDS3];
-       
+
        r = talloc(NULL, struct lsa_LookupSids3);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LookupSids3, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.domains = talloc_zero(r, struct lsa_RefDomainList);
        if (r->out.domains == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.names = r->in.names;
        r->out.count = r->in.count;
        r->out.result = _lsa_LookupSids3(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LookupSids3, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_LookupNames4(pipes_struct *p)
@@ -5734,76 +5888,78 @@ static bool api_lsa_LookupNames4(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_LookupNames4 *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_LOOKUPNAMES4];
-       
+
        r = talloc(NULL, struct lsa_LookupNames4);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LookupNames4, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.domains = talloc_zero(r, struct lsa_RefDomainList);
        if (r->out.domains == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.sids = r->in.sids;
        r->out.count = r->in.count;
        r->out.result = _lsa_LookupNames4(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LookupNames4, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_LSAROPENPOLICYSCE(pipes_struct *p)
@@ -5814,67 +5970,69 @@ static bool api_lsa_LSAROPENPOLICYSCE(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_LSAROPENPOLICYSCE *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_LSAROPENPOLICYSCE];
-       
+
        r = talloc(NULL, struct lsa_LSAROPENPOLICYSCE);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LSAROPENPOLICYSCE, r);
-       
+       }
+
        r->out.result = _lsa_LSAROPENPOLICYSCE(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LSAROPENPOLICYSCE, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(pipes_struct *p)
@@ -5885,67 +6043,69 @@ static bool api_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_LSARADTREGISTERSECURITYEVENTSOURCE *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_LSARADTREGISTERSECURITYEVENTSOURCE];
-       
+
        r = talloc(NULL, struct lsa_LSARADTREGISTERSECURITYEVENTSOURCE);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LSARADTREGISTERSECURITYEVENTSOURCE, r);
-       
+       }
+
        r->out.result = _lsa_LSARADTREGISTERSECURITYEVENTSOURCE(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LSARADTREGISTERSECURITYEVENTSOURCE, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(pipes_struct *p)
@@ -5956,67 +6116,69 @@ static bool api_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_LSARADTUNREGISTERSECURITYEVENTSOURCE];
-       
+
        r = talloc(NULL, struct lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE, r);
-       
+       }
+
        r->out.result = _lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_lsa_LSARADTREPORTSECURITYEVENT(pipes_struct *p)
@@ -6027,67 +6189,69 @@ static bool api_lsa_LSARADTREPORTSECURITYEVENT(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct lsa_LSARADTREPORTSECURITYEVENT *r;
-       
+
        call = &ndr_table_lsarpc.calls[NDR_LSA_LSARADTREPORTSECURITYEVENT];
-       
+
        r = talloc(NULL, struct lsa_LSARADTREPORTSECURITYEVENT);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(lsa_LSARADTREPORTSECURITYEVENT, r);
-       
+       }
+
        r->out.result = _lsa_LSARADTREPORTSECURITYEVENT(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(lsa_LSARADTREPORTSECURITYEVENT, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 
index 899e1bf6b0bb291cb9986ff358af5089e0fc9dc7..163de46ca8bcbefc5747a13c8f25cbbbfa3a72c2 100644 (file)
@@ -14,74 +14,76 @@ static bool api_netr_LogonUasLogon(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_LogonUasLogon *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_LOGONUASLOGON];
-       
+
        r = talloc(NULL, struct netr_LogonUasLogon);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_LogonUasLogon, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.info = talloc_zero(r, struct netr_UasInfo);
        if (r->out.info == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _netr_LogonUasLogon(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_LogonUasLogon, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_LogonUasLogoff(pipes_struct *p)
@@ -92,74 +94,76 @@ static bool api_netr_LogonUasLogoff(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_LogonUasLogoff *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_LOGONUASLOGOFF];
-       
+
        r = talloc(NULL, struct netr_LogonUasLogoff);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_LogonUasLogoff, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.info = talloc_zero(r, struct netr_UasLogoffInfo);
        if (r->out.info == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _netr_LogonUasLogoff(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_LogonUasLogoff, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_LogonSamLogon(pipes_struct *p)
@@ -170,81 +174,83 @@ static bool api_netr_LogonSamLogon(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_LogonSamLogon *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_LOGONSAMLOGON];
-       
+
        r = talloc(NULL, struct netr_LogonSamLogon);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_LogonSamLogon, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.return_authenticator = r->in.return_authenticator;
        r->out.validation = talloc_zero(r, union netr_Validation);
        if (r->out.validation == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.authoritative = talloc_zero(r, uint8_t);
        if (r->out.authoritative == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _netr_LogonSamLogon(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_LogonSamLogon, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_LogonSamLogoff(pipes_struct *p)
@@ -255,69 +261,71 @@ static bool api_netr_LogonSamLogoff(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_LogonSamLogoff *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_LOGONSAMLOGOFF];
-       
+
        r = talloc(NULL, struct netr_LogonSamLogoff);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_LogonSamLogoff, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.return_authenticator = r->in.return_authenticator;
        r->out.result = _netr_LogonSamLogoff(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_LogonSamLogoff, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_ServerReqChallenge(pipes_struct *p)
@@ -328,69 +336,71 @@ static bool api_netr_ServerReqChallenge(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_ServerReqChallenge *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_SERVERREQCHALLENGE];
-       
+
        r = talloc(NULL, struct netr_ServerReqChallenge);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_ServerReqChallenge, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.credentials = r->in.credentials;
        r->out.result = _netr_ServerReqChallenge(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_ServerReqChallenge, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_ServerAuthenticate(pipes_struct *p)
@@ -401,69 +411,71 @@ static bool api_netr_ServerAuthenticate(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_ServerAuthenticate *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_SERVERAUTHENTICATE];
-       
+
        r = talloc(NULL, struct netr_ServerAuthenticate);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_ServerAuthenticate, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.credentials = r->in.credentials;
        r->out.result = _netr_ServerAuthenticate(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_ServerAuthenticate, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_ServerPasswordSet(pipes_struct *p)
@@ -474,74 +486,76 @@ static bool api_netr_ServerPasswordSet(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_ServerPasswordSet *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_SERVERPASSWORDSET];
-       
+
        r = talloc(NULL, struct netr_ServerPasswordSet);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_ServerPasswordSet, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.return_authenticator = talloc_zero(r, struct netr_Authenticator);
        if (r->out.return_authenticator == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _netr_ServerPasswordSet(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_ServerPasswordSet, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_DatabaseDeltas(pipes_struct *p)
@@ -552,76 +566,78 @@ static bool api_netr_DatabaseDeltas(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_DatabaseDeltas *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_DATABASEDELTAS];
-       
+
        r = talloc(NULL, struct netr_DatabaseDeltas);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_DatabaseDeltas, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.return_authenticator = r->in.return_authenticator;
        r->out.sequence_num = r->in.sequence_num;
        r->out.delta_enum_array = talloc_zero(r, struct netr_DELTA_ENUM_ARRAY);
        if (r->out.delta_enum_array == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _netr_DatabaseDeltas(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_DatabaseDeltas, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_DatabaseSync(pipes_struct *p)
@@ -632,76 +648,78 @@ static bool api_netr_DatabaseSync(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_DatabaseSync *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_DATABASESYNC];
-       
+
        r = talloc(NULL, struct netr_DatabaseSync);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_DatabaseSync, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.return_authenticator = r->in.return_authenticator;
        r->out.sync_context = r->in.sync_context;
        r->out.delta_enum_array = talloc_zero(r, struct netr_DELTA_ENUM_ARRAY);
        if (r->out.delta_enum_array == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _netr_DatabaseSync(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_DatabaseSync, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_AccountDeltas(pipes_struct *p)
@@ -712,93 +730,95 @@ static bool api_netr_AccountDeltas(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_AccountDeltas *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_ACCOUNTDELTAS];
-       
+
        r = talloc(NULL, struct netr_AccountDeltas);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_AccountDeltas, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.return_authenticator = r->in.return_authenticator;
        r->out.buffer = talloc_zero(r, struct netr_AccountBuffer);
        if (r->out.buffer == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.count_returned = talloc_zero(r, uint32_t);
        if (r->out.count_returned == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.total_entries = talloc_zero(r, uint32_t);
        if (r->out.total_entries == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.recordid = talloc_zero(r, struct netr_UAS_INFO_0);
        if (r->out.recordid == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _netr_AccountDeltas(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_AccountDeltas, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_AccountSync(pipes_struct *p)
@@ -809,94 +829,96 @@ static bool api_netr_AccountSync(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_AccountSync *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_ACCOUNTSYNC];
-       
+
        r = talloc(NULL, struct netr_AccountSync);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_AccountSync, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.return_authenticator = r->in.return_authenticator;
        r->out.buffer = talloc_zero(r, struct netr_AccountBuffer);
        if (r->out.buffer == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.count_returned = talloc_zero(r, uint32_t);
        if (r->out.count_returned == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.total_entries = talloc_zero(r, uint32_t);
        if (r->out.total_entries == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.next_reference = talloc_zero(r, uint32_t);
        if (r->out.next_reference == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.recordid = r->in.recordid;
        r->out.result = _netr_AccountSync(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_AccountSync, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_GetDcName(pipes_struct *p)
@@ -907,74 +929,76 @@ static bool api_netr_GetDcName(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_GetDcName *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_GETDCNAME];
-       
+
        r = talloc(NULL, struct netr_GetDcName);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_GetDcName, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.dcname = talloc_zero(r, const char *);
        if (r->out.dcname == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _netr_GetDcName(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_GetDcName, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_LogonControl(pipes_struct *p)
@@ -985,74 +1009,76 @@ static bool api_netr_LogonControl(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_LogonControl *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_LOGONCONTROL];
-       
+
        r = talloc(NULL, struct netr_LogonControl);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_LogonControl, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.info = talloc_zero(r, union netr_CONTROL_QUERY_INFORMATION);
        if (r->out.info == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _netr_LogonControl(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_LogonControl, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_GetAnyDCName(pipes_struct *p)
@@ -1063,74 +1089,76 @@ static bool api_netr_GetAnyDCName(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_GetAnyDCName *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_GETANYDCNAME];
-       
+
        r = talloc(NULL, struct netr_GetAnyDCName);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_GetAnyDCName, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.dcname = talloc_zero(r, const char *);
        if (r->out.dcname == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _netr_GetAnyDCName(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_GetAnyDCName, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_LogonControl2(pipes_struct *p)
@@ -1141,74 +1169,76 @@ static bool api_netr_LogonControl2(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_LogonControl2 *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_LOGONCONTROL2];
-       
+
        r = talloc(NULL, struct netr_LogonControl2);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_LogonControl2, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.query = talloc_zero(r, union netr_CONTROL_QUERY_INFORMATION);
        if (r->out.query == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _netr_LogonControl2(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_LogonControl2, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_ServerAuthenticate2(pipes_struct *p)
@@ -1219,70 +1249,72 @@ static bool api_netr_ServerAuthenticate2(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_ServerAuthenticate2 *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_SERVERAUTHENTICATE2];
-       
+
        r = talloc(NULL, struct netr_ServerAuthenticate2);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_ServerAuthenticate2, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.credentials = r->in.credentials;
        r->out.negotiate_flags = r->in.negotiate_flags;
        r->out.result = _netr_ServerAuthenticate2(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_ServerAuthenticate2, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_DatabaseSync2(pipes_struct *p)
@@ -1293,76 +1325,78 @@ static bool api_netr_DatabaseSync2(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_DatabaseSync2 *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_DATABASESYNC2];
-       
+
        r = talloc(NULL, struct netr_DatabaseSync2);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_DatabaseSync2, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.return_authenticator = r->in.return_authenticator;
        r->out.sync_context = r->in.sync_context;
        r->out.delta_enum_array = talloc_zero(r, struct netr_DELTA_ENUM_ARRAY);
        if (r->out.delta_enum_array == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _netr_DatabaseSync2(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_DatabaseSync2, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_DatabaseRedo(pipes_struct *p)
@@ -1373,75 +1407,77 @@ static bool api_netr_DatabaseRedo(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_DatabaseRedo *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_DATABASEREDO];
-       
+
        r = talloc(NULL, struct netr_DatabaseRedo);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_DatabaseRedo, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.return_authenticator = r->in.return_authenticator;
        r->out.delta_enum_array = talloc_zero(r, struct netr_DELTA_ENUM_ARRAY);
        if (r->out.delta_enum_array == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _netr_DatabaseRedo(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_DatabaseRedo, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_LogonControl2Ex(pipes_struct *p)
@@ -1452,74 +1488,76 @@ static bool api_netr_LogonControl2Ex(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_LogonControl2Ex *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_LOGONCONTROL2EX];
-       
+
        r = talloc(NULL, struct netr_LogonControl2Ex);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_LogonControl2Ex, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.query = talloc_zero(r, union netr_CONTROL_QUERY_INFORMATION);
        if (r->out.query == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _netr_LogonControl2Ex(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_LogonControl2Ex, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_NETRENUMERATETRUSTEDDOMAINS(pipes_struct *p)
@@ -1530,67 +1568,69 @@ static bool api_netr_NETRENUMERATETRUSTEDDOMAINS(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_NETRENUMERATETRUSTEDDOMAINS *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_NETRENUMERATETRUSTEDDOMAINS];
-       
+
        r = talloc(NULL, struct netr_NETRENUMERATETRUSTEDDOMAINS);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_NETRENUMERATETRUSTEDDOMAINS, r);
-       
+       }
+
        r->out.result = _netr_NETRENUMERATETRUSTEDDOMAINS(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_NETRENUMERATETRUSTEDDOMAINS, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_DsRGetDCName(pipes_struct *p)
@@ -1601,74 +1641,76 @@ static bool api_netr_DsRGetDCName(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_DsRGetDCName *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_DSRGETDCNAME];
-       
+
        r = talloc(NULL, struct netr_DsRGetDCName);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_DsRGetDCName, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.info = talloc_zero(r, struct netr_DsRGetDCNameInfo);
        if (r->out.info == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _netr_DsRGetDCName(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_DsRGetDCName, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_NETRLOGONDUMMYROUTINE1(pipes_struct *p)
@@ -1679,67 +1721,69 @@ static bool api_netr_NETRLOGONDUMMYROUTINE1(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_NETRLOGONDUMMYROUTINE1 *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_NETRLOGONDUMMYROUTINE1];
-       
+
        r = talloc(NULL, struct netr_NETRLOGONDUMMYROUTINE1);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_NETRLOGONDUMMYROUTINE1, r);
-       
+       }
+
        r->out.result = _netr_NETRLOGONDUMMYROUTINE1(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_NETRLOGONDUMMYROUTINE1, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_NETRLOGONSETSERVICEBITS(pipes_struct *p)
@@ -1750,67 +1794,69 @@ static bool api_netr_NETRLOGONSETSERVICEBITS(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_NETRLOGONSETSERVICEBITS *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_NETRLOGONSETSERVICEBITS];
-       
+
        r = talloc(NULL, struct netr_NETRLOGONSETSERVICEBITS);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_NETRLOGONSETSERVICEBITS, r);
-       
+       }
+
        r->out.result = _netr_NETRLOGONSETSERVICEBITS(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_NETRLOGONSETSERVICEBITS, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_NETRLOGONGETTRUSTRID(pipes_struct *p)
@@ -1821,67 +1867,69 @@ static bool api_netr_NETRLOGONGETTRUSTRID(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_NETRLOGONGETTRUSTRID *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_NETRLOGONGETTRUSTRID];
-       
+
        r = talloc(NULL, struct netr_NETRLOGONGETTRUSTRID);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_NETRLOGONGETTRUSTRID, r);
-       
+       }
+
        r->out.result = _netr_NETRLOGONGETTRUSTRID(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_NETRLOGONGETTRUSTRID, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_NETRLOGONCOMPUTESERVERDIGEST(pipes_struct *p)
@@ -1892,67 +1940,69 @@ static bool api_netr_NETRLOGONCOMPUTESERVERDIGEST(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_NETRLOGONCOMPUTESERVERDIGEST *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_NETRLOGONCOMPUTESERVERDIGEST];
-       
+
        r = talloc(NULL, struct netr_NETRLOGONCOMPUTESERVERDIGEST);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_NETRLOGONCOMPUTESERVERDIGEST, r);
-       
+       }
+
        r->out.result = _netr_NETRLOGONCOMPUTESERVERDIGEST(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_NETRLOGONCOMPUTESERVERDIGEST, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_NETRLOGONCOMPUTECLIENTDIGEST(pipes_struct *p)
@@ -1963,67 +2013,69 @@ static bool api_netr_NETRLOGONCOMPUTECLIENTDIGEST(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_NETRLOGONCOMPUTECLIENTDIGEST *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_NETRLOGONCOMPUTECLIENTDIGEST];
-       
+
        r = talloc(NULL, struct netr_NETRLOGONCOMPUTECLIENTDIGEST);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_NETRLOGONCOMPUTECLIENTDIGEST, r);
-       
+       }
+
        r->out.result = _netr_NETRLOGONCOMPUTECLIENTDIGEST(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_NETRLOGONCOMPUTECLIENTDIGEST, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_ServerAuthenticate3(pipes_struct *p)
@@ -2034,76 +2086,78 @@ static bool api_netr_ServerAuthenticate3(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_ServerAuthenticate3 *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_SERVERAUTHENTICATE3];
-       
+
        r = talloc(NULL, struct netr_ServerAuthenticate3);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_ServerAuthenticate3, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.credentials = r->in.credentials;
        r->out.negotiate_flags = r->in.negotiate_flags;
        r->out.rid = talloc_zero(r, uint32_t);
        if (r->out.rid == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _netr_ServerAuthenticate3(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_ServerAuthenticate3, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_DsRGetDCNameEx(pipes_struct *p)
@@ -2114,74 +2168,76 @@ static bool api_netr_DsRGetDCNameEx(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_DsRGetDCNameEx *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_DSRGETDCNAMEEX];
-       
+
        r = talloc(NULL, struct netr_DsRGetDCNameEx);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_DsRGetDCNameEx, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.info = talloc_zero(r, struct netr_DsRGetDCNameInfo);
        if (r->out.info == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _netr_DsRGetDCNameEx(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_DsRGetDCNameEx, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_DsRGetSiteName(pipes_struct *p)
@@ -2192,74 +2248,76 @@ static bool api_netr_DsRGetSiteName(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_DsRGetSiteName *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_DSRGETSITENAME];
-       
+
        r = talloc(NULL, struct netr_DsRGetSiteName);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_DsRGetSiteName, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.site = talloc_zero(r, const char *);
        if (r->out.site == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _netr_DsRGetSiteName(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_DsRGetSiteName, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_LogonGetDomainInfo(pipes_struct *p)
@@ -2270,75 +2328,77 @@ static bool api_netr_LogonGetDomainInfo(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_LogonGetDomainInfo *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_LOGONGETDOMAININFO];
-       
+
        r = talloc(NULL, struct netr_LogonGetDomainInfo);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_LogonGetDomainInfo, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.return_authenticator = r->in.return_authenticator;
        r->out.info = talloc_zero(r, union netr_DomainInfo);
        if (r->out.info == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _netr_LogonGetDomainInfo(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_LogonGetDomainInfo, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_ServerPasswordSet2(pipes_struct *p)
@@ -2349,74 +2409,76 @@ static bool api_netr_ServerPasswordSet2(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_ServerPasswordSet2 *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_SERVERPASSWORDSET2];
-       
+
        r = talloc(NULL, struct netr_ServerPasswordSet2);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_ServerPasswordSet2, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.return_authenticator = talloc_zero(r, struct netr_Authenticator);
        if (r->out.return_authenticator == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _netr_ServerPasswordSet2(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_ServerPasswordSet2, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_NETRSERVERPASSWORDGET(pipes_struct *p)
@@ -2427,67 +2489,69 @@ static bool api_netr_NETRSERVERPASSWORDGET(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_NETRSERVERPASSWORDGET *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_NETRSERVERPASSWORDGET];
-       
+
        r = talloc(NULL, struct netr_NETRSERVERPASSWORDGET);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_NETRSERVERPASSWORDGET, r);
-       
+       }
+
        r->out.result = _netr_NETRSERVERPASSWORDGET(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_NETRSERVERPASSWORDGET, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_NETRLOGONSENDTOSAM(pipes_struct *p)
@@ -2498,67 +2562,69 @@ static bool api_netr_NETRLOGONSENDTOSAM(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_NETRLOGONSENDTOSAM *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_NETRLOGONSENDTOSAM];
-       
+
        r = talloc(NULL, struct netr_NETRLOGONSENDTOSAM);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_NETRLOGONSENDTOSAM, r);
-       
+       }
+
        r->out.result = _netr_NETRLOGONSENDTOSAM(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_NETRLOGONSENDTOSAM, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_DSRADDRESSTOSITENAMESW(pipes_struct *p)
@@ -2569,67 +2635,69 @@ static bool api_netr_DSRADDRESSTOSITENAMESW(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_DSRADDRESSTOSITENAMESW *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_DSRADDRESSTOSITENAMESW];
-       
+
        r = talloc(NULL, struct netr_DSRADDRESSTOSITENAMESW);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_DSRADDRESSTOSITENAMESW, r);
-       
+       }
+
        r->out.result = _netr_DSRADDRESSTOSITENAMESW(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_DSRADDRESSTOSITENAMESW, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_DsRGetDCNameEx2(pipes_struct *p)
@@ -2640,74 +2708,76 @@ static bool api_netr_DsRGetDCNameEx2(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_DsRGetDCNameEx2 *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_DSRGETDCNAMEEX2];
-       
+
        r = talloc(NULL, struct netr_DsRGetDCNameEx2);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_DsRGetDCNameEx2, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.info = talloc_zero(r, struct netr_DsRGetDCNameInfo);
        if (r->out.info == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _netr_DsRGetDCNameEx2(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_DsRGetDCNameEx2, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(pipes_struct *p)
@@ -2718,67 +2788,69 @@ static bool api_netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_NETRLOGONGETTIMESERVICEPARENTDOMAIN];
-       
+
        r = talloc(NULL, struct netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN, r);
-       
+       }
+
        r->out.result = _netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_NETRENUMERATETRUSTEDDOMAINSEX(pipes_struct *p)
@@ -2789,67 +2861,69 @@ static bool api_netr_NETRENUMERATETRUSTEDDOMAINSEX(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_NETRENUMERATETRUSTEDDOMAINSEX *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_NETRENUMERATETRUSTEDDOMAINSEX];
-       
+
        r = talloc(NULL, struct netr_NETRENUMERATETRUSTEDDOMAINSEX);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_NETRENUMERATETRUSTEDDOMAINSEX, r);
-       
+       }
+
        r->out.result = _netr_NETRENUMERATETRUSTEDDOMAINSEX(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_NETRENUMERATETRUSTEDDOMAINSEX, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_DSRADDRESSTOSITENAMESEXW(pipes_struct *p)
@@ -2860,67 +2934,69 @@ static bool api_netr_DSRADDRESSTOSITENAMESEXW(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_DSRADDRESSTOSITENAMESEXW *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_DSRADDRESSTOSITENAMESEXW];
-       
+
        r = talloc(NULL, struct netr_DSRADDRESSTOSITENAMESEXW);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_DSRADDRESSTOSITENAMESEXW, r);
-       
+       }
+
        r->out.result = _netr_DSRADDRESSTOSITENAMESEXW(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_DSRADDRESSTOSITENAMESEXW, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_DSRGETDCSITECOVERAGEW(pipes_struct *p)
@@ -2931,67 +3007,69 @@ static bool api_netr_DSRGETDCSITECOVERAGEW(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_DSRGETDCSITECOVERAGEW *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_DSRGETDCSITECOVERAGEW];
-       
+
        r = talloc(NULL, struct netr_DSRGETDCSITECOVERAGEW);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_DSRGETDCSITECOVERAGEW, r);
-       
+       }
+
        r->out.result = _netr_DSRGETDCSITECOVERAGEW(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_DSRGETDCSITECOVERAGEW, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_LogonSamLogonEx(pipes_struct *p)
@@ -3002,81 +3080,83 @@ static bool api_netr_LogonSamLogonEx(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_LogonSamLogonEx *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_LOGONSAMLOGONEX];
-       
+
        r = talloc(NULL, struct netr_LogonSamLogonEx);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_LogonSamLogonEx, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.validation = talloc_zero(r, union netr_Validation);
        if (r->out.validation == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.authoritative = talloc_zero(r, uint8_t);
        if (r->out.authoritative == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.flags = r->in.flags;
        r->out.result = _netr_LogonSamLogonEx(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_LogonSamLogonEx, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_DsrEnumerateDomainTrusts(pipes_struct *p)
@@ -3087,80 +3167,82 @@ static bool api_netr_DsrEnumerateDomainTrusts(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_DsrEnumerateDomainTrusts *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_DSRENUMERATEDOMAINTRUSTS];
-       
+
        r = talloc(NULL, struct netr_DsrEnumerateDomainTrusts);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_DsrEnumerateDomainTrusts, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.count = talloc_zero(r, uint32_t);
        if (r->out.count == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.trusts = talloc_zero_array(r, struct netr_DomainTrust *, r->out.count);
        if (r->out.trusts == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _netr_DsrEnumerateDomainTrusts(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_DsrEnumerateDomainTrusts, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_DSRDEREGISTERDNSHOSTRECORDS(pipes_struct *p)
@@ -3171,67 +3253,69 @@ static bool api_netr_DSRDEREGISTERDNSHOSTRECORDS(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_DSRDEREGISTERDNSHOSTRECORDS *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_DSRDEREGISTERDNSHOSTRECORDS];
-       
+
        r = talloc(NULL, struct netr_DSRDEREGISTERDNSHOSTRECORDS);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_DSRDEREGISTERDNSHOSTRECORDS, r);
-       
+       }
+
        r->out.result = _netr_DSRDEREGISTERDNSHOSTRECORDS(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_DSRDEREGISTERDNSHOSTRECORDS, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_NETRSERVERTRUSTPASSWORDSGET(pipes_struct *p)
@@ -3242,67 +3326,69 @@ static bool api_netr_NETRSERVERTRUSTPASSWORDSGET(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_NETRSERVERTRUSTPASSWORDSGET *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_NETRSERVERTRUSTPASSWORDSGET];
-       
+
        r = talloc(NULL, struct netr_NETRSERVERTRUSTPASSWORDSGET);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_NETRSERVERTRUSTPASSWORDSGET, r);
-       
+       }
+
        r->out.result = _netr_NETRSERVERTRUSTPASSWORDSGET(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_NETRSERVERTRUSTPASSWORDSGET, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_DSRGETFORESTTRUSTINFORMATION(pipes_struct *p)
@@ -3313,67 +3399,69 @@ static bool api_netr_DSRGETFORESTTRUSTINFORMATION(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_DSRGETFORESTTRUSTINFORMATION *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_DSRGETFORESTTRUSTINFORMATION];
-       
+
        r = talloc(NULL, struct netr_DSRGETFORESTTRUSTINFORMATION);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_DSRGETFORESTTRUSTINFORMATION, r);
-       
+       }
+
        r->out.result = _netr_DSRGETFORESTTRUSTINFORMATION(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_DSRGETFORESTTRUSTINFORMATION, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_NETRGETFORESTTRUSTINFORMATION(pipes_struct *p)
@@ -3384,67 +3472,69 @@ static bool api_netr_NETRGETFORESTTRUSTINFORMATION(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_NETRGETFORESTTRUSTINFORMATION *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_NETRGETFORESTTRUSTINFORMATION];
-       
+
        r = talloc(NULL, struct netr_NETRGETFORESTTRUSTINFORMATION);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_NETRGETFORESTTRUSTINFORMATION, r);
-       
+       }
+
        r->out.result = _netr_NETRGETFORESTTRUSTINFORMATION(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_NETRGETFORESTTRUSTINFORMATION, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_LogonSamLogonWithFlags(pipes_struct *p)
@@ -3455,82 +3545,84 @@ static bool api_netr_LogonSamLogonWithFlags(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_LogonSamLogonWithFlags *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_LOGONSAMLOGONWITHFLAGS];
-       
+
        r = talloc(NULL, struct netr_LogonSamLogonWithFlags);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_LogonSamLogonWithFlags, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.return_authenticator = r->in.return_authenticator;
        r->out.validation = talloc_zero(r, union netr_Validation);
        if (r->out.validation == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.authoritative = talloc_zero(r, uint8_t);
        if (r->out.authoritative == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.flags = r->in.flags;
        r->out.result = _netr_LogonSamLogonWithFlags(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_LogonSamLogonWithFlags, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_netr_NETRSERVERGETTRUSTINFO(pipes_struct *p)
@@ -3541,67 +3633,69 @@ static bool api_netr_NETRSERVERGETTRUSTINFO(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct netr_NETRSERVERGETTRUSTINFO *r;
-       
+
        call = &ndr_table_netlogon.calls[NDR_NETR_NETRSERVERGETTRUSTINFO];
-       
+
        r = talloc(NULL, struct netr_NETRSERVERGETTRUSTINFO);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(netr_NETRSERVERGETTRUSTINFO, r);
-       
+       }
+
        r->out.result = _netr_NETRSERVERGETTRUSTINFO(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(netr_NETRSERVERGETTRUSTINFO, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 
index 88a3f272c78d945fa4e2196f6c4831ff6a9d3834..44fe358a84593ecf38526ca00cd1a2885b1dd33a 100644 (file)
@@ -14,77 +14,79 @@ static bool api_srvsvc_NetCharDevEnum(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetCharDevEnum *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETCHARDEVENUM];
-       
+
        r = talloc(NULL, struct srvsvc_NetCharDevEnum);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevEnum, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.level = r->in.level;
        r->out.ctr = r->in.ctr;
        r->out.totalentries = talloc_zero(r, uint32_t);
        if (r->out.totalentries == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.resume_handle = r->in.resume_handle;
        r->out.result = _srvsvc_NetCharDevEnum(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevEnum, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetCharDevGetInfo(pipes_struct *p)
@@ -95,74 +97,76 @@ static bool api_srvsvc_NetCharDevGetInfo(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetCharDevGetInfo *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETCHARDEVGETINFO];
-       
+
        r = talloc(NULL, struct srvsvc_NetCharDevGetInfo);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevGetInfo, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.info = talloc_zero(r, union srvsvc_NetCharDevInfo);
        if (r->out.info == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _srvsvc_NetCharDevGetInfo(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevGetInfo, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetCharDevControl(pipes_struct *p)
@@ -173,67 +177,69 @@ static bool api_srvsvc_NetCharDevControl(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetCharDevControl *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETCHARDEVCONTROL];
-       
+
        r = talloc(NULL, struct srvsvc_NetCharDevControl);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevControl, r);
-       
+       }
+
        r->out.result = _srvsvc_NetCharDevControl(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevControl, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetCharDevQEnum(pipes_struct *p)
@@ -244,77 +250,79 @@ static bool api_srvsvc_NetCharDevQEnum(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetCharDevQEnum *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETCHARDEVQENUM];
-       
+
        r = talloc(NULL, struct srvsvc_NetCharDevQEnum);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQEnum, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.level = r->in.level;
        r->out.ctr = r->in.ctr;
        r->out.totalentries = talloc_zero(r, uint32_t);
        if (r->out.totalentries == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.resume_handle = r->in.resume_handle;
        r->out.result = _srvsvc_NetCharDevQEnum(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQEnum, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetCharDevQGetInfo(pipes_struct *p)
@@ -325,74 +333,76 @@ static bool api_srvsvc_NetCharDevQGetInfo(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetCharDevQGetInfo *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETCHARDEVQGETINFO];
-       
+
        r = talloc(NULL, struct srvsvc_NetCharDevQGetInfo);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQGetInfo, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.info = talloc_zero(r, union srvsvc_NetCharDevQInfo);
        if (r->out.info == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _srvsvc_NetCharDevQGetInfo(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQGetInfo, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetCharDevQSetInfo(pipes_struct *p)
@@ -403,69 +413,71 @@ static bool api_srvsvc_NetCharDevQSetInfo(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetCharDevQSetInfo *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETCHARDEVQSETINFO];
-       
+
        r = talloc(NULL, struct srvsvc_NetCharDevQSetInfo);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQSetInfo, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.parm_error = r->in.parm_error;
        r->out.result = _srvsvc_NetCharDevQSetInfo(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQSetInfo, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetCharDevQPurge(pipes_struct *p)
@@ -476,67 +488,69 @@ static bool api_srvsvc_NetCharDevQPurge(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetCharDevQPurge *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETCHARDEVQPURGE];
-       
+
        r = talloc(NULL, struct srvsvc_NetCharDevQPurge);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQPurge, r);
-       
+       }
+
        r->out.result = _srvsvc_NetCharDevQPurge(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQPurge, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetCharDevQPurgeSelf(pipes_struct *p)
@@ -547,67 +561,69 @@ static bool api_srvsvc_NetCharDevQPurgeSelf(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetCharDevQPurgeSelf *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETCHARDEVQPURGESELF];
-       
+
        r = talloc(NULL, struct srvsvc_NetCharDevQPurgeSelf);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQPurgeSelf, r);
-       
+       }
+
        r->out.result = _srvsvc_NetCharDevQPurgeSelf(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQPurgeSelf, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetConnEnum(pipes_struct *p)
@@ -618,77 +634,79 @@ static bool api_srvsvc_NetConnEnum(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetConnEnum *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETCONNENUM];
-       
+
        r = talloc(NULL, struct srvsvc_NetConnEnum);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetConnEnum, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.level = r->in.level;
        r->out.ctr = r->in.ctr;
        r->out.totalentries = talloc_zero(r, uint32_t);
        if (r->out.totalentries == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.resume_handle = r->in.resume_handle;
        r->out.result = _srvsvc_NetConnEnum(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetConnEnum, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetFileEnum(pipes_struct *p)
@@ -699,77 +717,79 @@ static bool api_srvsvc_NetFileEnum(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetFileEnum *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETFILEENUM];
-       
+
        r = talloc(NULL, struct srvsvc_NetFileEnum);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetFileEnum, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.level = r->in.level;
        r->out.ctr = r->in.ctr;
        r->out.totalentries = talloc_zero(r, uint32_t);
        if (r->out.totalentries == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.resume_handle = r->in.resume_handle;
        r->out.result = _srvsvc_NetFileEnum(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetFileEnum, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetFileGetInfo(pipes_struct *p)
@@ -780,74 +800,76 @@ static bool api_srvsvc_NetFileGetInfo(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetFileGetInfo *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETFILEGETINFO];
-       
+
        r = talloc(NULL, struct srvsvc_NetFileGetInfo);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetFileGetInfo, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.info = talloc_zero(r, union srvsvc_NetFileInfo);
        if (r->out.info == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _srvsvc_NetFileGetInfo(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetFileGetInfo, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetFileClose(pipes_struct *p)
@@ -858,67 +880,69 @@ static bool api_srvsvc_NetFileClose(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetFileClose *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETFILECLOSE];
-       
+
        r = talloc(NULL, struct srvsvc_NetFileClose);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetFileClose, r);
-       
+       }
+
        r->out.result = _srvsvc_NetFileClose(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetFileClose, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetSessEnum(pipes_struct *p)
@@ -929,77 +953,79 @@ static bool api_srvsvc_NetSessEnum(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetSessEnum *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSESSENUM];
-       
+
        r = talloc(NULL, struct srvsvc_NetSessEnum);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetSessEnum, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.level = r->in.level;
        r->out.ctr = r->in.ctr;
        r->out.totalentries = talloc_zero(r, uint32_t);
        if (r->out.totalentries == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.resume_handle = r->in.resume_handle;
        r->out.result = _srvsvc_NetSessEnum(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetSessEnum, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetSessDel(pipes_struct *p)
@@ -1010,67 +1036,69 @@ static bool api_srvsvc_NetSessDel(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetSessDel *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSESSDEL];
-       
+
        r = talloc(NULL, struct srvsvc_NetSessDel);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetSessDel, r);
-       
+       }
+
        r->out.result = _srvsvc_NetSessDel(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetSessDel, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetShareAdd(pipes_struct *p)
@@ -1081,69 +1109,71 @@ static bool api_srvsvc_NetShareAdd(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetShareAdd *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSHAREADD];
-       
+
        r = talloc(NULL, struct srvsvc_NetShareAdd);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetShareAdd, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.parm_error = r->in.parm_error;
        r->out.result = _srvsvc_NetShareAdd(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetShareAdd, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetShareEnumAll(pipes_struct *p)
@@ -1154,77 +1184,79 @@ static bool api_srvsvc_NetShareEnumAll(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetShareEnumAll *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSHAREENUMALL];
-       
+
        r = talloc(NULL, struct srvsvc_NetShareEnumAll);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetShareEnumAll, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.level = r->in.level;
        r->out.ctr = r->in.ctr;
        r->out.totalentries = talloc_zero(r, uint32_t);
        if (r->out.totalentries == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.resume_handle = r->in.resume_handle;
        r->out.result = _srvsvc_NetShareEnumAll(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetShareEnumAll, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetShareGetInfo(pipes_struct *p)
@@ -1235,74 +1267,76 @@ static bool api_srvsvc_NetShareGetInfo(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetShareGetInfo *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSHAREGETINFO];
-       
+
        r = talloc(NULL, struct srvsvc_NetShareGetInfo);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetShareGetInfo, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.info = talloc_zero(r, union srvsvc_NetShareInfo);
        if (r->out.info == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _srvsvc_NetShareGetInfo(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetShareGetInfo, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetShareSetInfo(pipes_struct *p)
@@ -1313,69 +1347,71 @@ static bool api_srvsvc_NetShareSetInfo(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetShareSetInfo *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSHARESETINFO];
-       
+
        r = talloc(NULL, struct srvsvc_NetShareSetInfo);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetShareSetInfo, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.parm_error = r->in.parm_error;
        r->out.result = _srvsvc_NetShareSetInfo(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetShareSetInfo, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetShareDel(pipes_struct *p)
@@ -1386,67 +1422,69 @@ static bool api_srvsvc_NetShareDel(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetShareDel *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSHAREDEL];
-       
+
        r = talloc(NULL, struct srvsvc_NetShareDel);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetShareDel, r);
-       
+       }
+
        r->out.result = _srvsvc_NetShareDel(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDel, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetShareDelSticky(pipes_struct *p)
@@ -1457,67 +1495,69 @@ static bool api_srvsvc_NetShareDelSticky(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetShareDelSticky *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSHAREDELSTICKY];
-       
+
        r = talloc(NULL, struct srvsvc_NetShareDelSticky);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetShareDelSticky, r);
-       
+       }
+
        r->out.result = _srvsvc_NetShareDelSticky(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDelSticky, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetShareCheck(pipes_struct *p)
@@ -1528,74 +1568,76 @@ static bool api_srvsvc_NetShareCheck(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetShareCheck *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSHARECHECK];
-       
+
        r = talloc(NULL, struct srvsvc_NetShareCheck);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetShareCheck, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.type = talloc_zero(r, enum srvsvc_ShareType);
        if (r->out.type == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _srvsvc_NetShareCheck(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetShareCheck, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetSrvGetInfo(pipes_struct *p)
@@ -1606,74 +1648,76 @@ static bool api_srvsvc_NetSrvGetInfo(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetSrvGetInfo *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSRVGETINFO];
-       
+
        r = talloc(NULL, struct srvsvc_NetSrvGetInfo);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetSrvGetInfo, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.info = talloc_zero(r, union srvsvc_NetSrvInfo);
        if (r->out.info == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _srvsvc_NetSrvGetInfo(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetSrvGetInfo, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetSrvSetInfo(pipes_struct *p)
@@ -1684,69 +1728,71 @@ static bool api_srvsvc_NetSrvSetInfo(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetSrvSetInfo *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSRVSETINFO];
-       
+
        r = talloc(NULL, struct srvsvc_NetSrvSetInfo);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetSrvSetInfo, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.parm_error = r->in.parm_error;
        r->out.result = _srvsvc_NetSrvSetInfo(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetSrvSetInfo, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetDiskEnum(pipes_struct *p)
@@ -1757,76 +1803,78 @@ static bool api_srvsvc_NetDiskEnum(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetDiskEnum *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETDISKENUM];
-       
+
        r = talloc(NULL, struct srvsvc_NetDiskEnum);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetDiskEnum, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.info = r->in.info;
        r->out.totalentries = talloc_zero(r, uint32_t);
        if (r->out.totalentries == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.resume_handle = r->in.resume_handle;
        r->out.result = _srvsvc_NetDiskEnum(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetDiskEnum, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetServerStatisticsGet(pipes_struct *p)
@@ -1837,74 +1885,76 @@ static bool api_srvsvc_NetServerStatisticsGet(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetServerStatisticsGet *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSERVERSTATISTICSGET];
-       
+
        r = talloc(NULL, struct srvsvc_NetServerStatisticsGet);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetServerStatisticsGet, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.stats = talloc_zero(r, struct srvsvc_Statistics);
        if (r->out.stats == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _srvsvc_NetServerStatisticsGet(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetServerStatisticsGet, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetTransportAdd(pipes_struct *p)
@@ -1915,67 +1965,69 @@ static bool api_srvsvc_NetTransportAdd(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetTransportAdd *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETTRANSPORTADD];
-       
+
        r = talloc(NULL, struct srvsvc_NetTransportAdd);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetTransportAdd, r);
-       
+       }
+
        r->out.result = _srvsvc_NetTransportAdd(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetTransportAdd, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetTransportEnum(pipes_struct *p)
@@ -1986,77 +2038,79 @@ static bool api_srvsvc_NetTransportEnum(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetTransportEnum *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETTRANSPORTENUM];
-       
+
        r = talloc(NULL, struct srvsvc_NetTransportEnum);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetTransportEnum, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.level = r->in.level;
        r->out.transports = r->in.transports;
        r->out.totalentries = talloc_zero(r, uint32_t);
        if (r->out.totalentries == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.resume_handle = r->in.resume_handle;
        r->out.result = _srvsvc_NetTransportEnum(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetTransportEnum, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetTransportDel(pipes_struct *p)
@@ -2067,67 +2121,69 @@ static bool api_srvsvc_NetTransportDel(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetTransportDel *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETTRANSPORTDEL];
-       
+
        r = talloc(NULL, struct srvsvc_NetTransportDel);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetTransportDel, r);
-       
+       }
+
        r->out.result = _srvsvc_NetTransportDel(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetTransportDel, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetRemoteTOD(pipes_struct *p)
@@ -2138,74 +2194,76 @@ static bool api_srvsvc_NetRemoteTOD(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetRemoteTOD *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETREMOTETOD];
-       
+
        r = talloc(NULL, struct srvsvc_NetRemoteTOD);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetRemoteTOD, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.info = talloc_zero(r, struct srvsvc_NetRemoteTODInfo);
        if (r->out.info == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _srvsvc_NetRemoteTOD(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetRemoteTOD, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetSetServiceBits(pipes_struct *p)
@@ -2216,67 +2274,69 @@ static bool api_srvsvc_NetSetServiceBits(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetSetServiceBits *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSETSERVICEBITS];
-       
+
        r = talloc(NULL, struct srvsvc_NetSetServiceBits);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetSetServiceBits, r);
-       
+       }
+
        r->out.result = _srvsvc_NetSetServiceBits(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetSetServiceBits, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetPathType(pipes_struct *p)
@@ -2287,74 +2347,76 @@ static bool api_srvsvc_NetPathType(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetPathType *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETPATHTYPE];
-       
+
        r = talloc(NULL, struct srvsvc_NetPathType);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetPathType, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.pathtype = talloc_zero(r, uint32_t);
        if (r->out.pathtype == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _srvsvc_NetPathType(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetPathType, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetPathCanonicalize(pipes_struct *p)
@@ -2365,75 +2427,77 @@ static bool api_srvsvc_NetPathCanonicalize(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetPathCanonicalize *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETPATHCANONICALIZE];
-       
+
        r = talloc(NULL, struct srvsvc_NetPathCanonicalize);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetPathCanonicalize, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.can_path = talloc_zero_array(r, uint8_t, r->in.maxbuf);
        if (r->out.can_path == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.pathtype = r->in.pathtype;
        r->out.result = _srvsvc_NetPathCanonicalize(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetPathCanonicalize, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetPathCompare(pipes_struct *p)
@@ -2444,67 +2508,69 @@ static bool api_srvsvc_NetPathCompare(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetPathCompare *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETPATHCOMPARE];
-       
+
        r = talloc(NULL, struct srvsvc_NetPathCompare);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetPathCompare, r);
-       
+       }
+
        r->out.result = _srvsvc_NetPathCompare(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetPathCompare, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetNameValidate(pipes_struct *p)
@@ -2515,67 +2581,69 @@ static bool api_srvsvc_NetNameValidate(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetNameValidate *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETNAMEVALIDATE];
-       
+
        r = talloc(NULL, struct srvsvc_NetNameValidate);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetNameValidate, r);
-       
+       }
+
        r->out.result = _srvsvc_NetNameValidate(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetNameValidate, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NETRPRNAMECANONICALIZE(pipes_struct *p)
@@ -2586,67 +2654,69 @@ static bool api_srvsvc_NETRPRNAMECANONICALIZE(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NETRPRNAMECANONICALIZE *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETRPRNAMECANONICALIZE];
-       
+
        r = talloc(NULL, struct srvsvc_NETRPRNAMECANONICALIZE);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NETRPRNAMECANONICALIZE, r);
-       
+       }
+
        r->out.result = _srvsvc_NETRPRNAMECANONICALIZE(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NETRPRNAMECANONICALIZE, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetPRNameCompare(pipes_struct *p)
@@ -2657,67 +2727,69 @@ static bool api_srvsvc_NetPRNameCompare(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetPRNameCompare *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETPRNAMECOMPARE];
-       
+
        r = talloc(NULL, struct srvsvc_NetPRNameCompare);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetPRNameCompare, r);
-       
+       }
+
        r->out.result = _srvsvc_NetPRNameCompare(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetPRNameCompare, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetShareEnum(pipes_struct *p)
@@ -2728,77 +2800,79 @@ static bool api_srvsvc_NetShareEnum(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetShareEnum *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSHAREENUM];
-       
+
        r = talloc(NULL, struct srvsvc_NetShareEnum);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetShareEnum, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.level = r->in.level;
        r->out.ctr = r->in.ctr;
        r->out.totalentries = talloc_zero(r, uint32_t);
        if (r->out.totalentries == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.resume_handle = r->in.resume_handle;
        r->out.result = _srvsvc_NetShareEnum(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetShareEnum, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetShareDelStart(pipes_struct *p)
@@ -2809,74 +2883,76 @@ static bool api_srvsvc_NetShareDelStart(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetShareDelStart *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSHAREDELSTART];
-       
+
        r = talloc(NULL, struct srvsvc_NetShareDelStart);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetShareDelStart, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.hnd = talloc_zero(r, struct policy_handle);
        if (r->out.hnd == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _srvsvc_NetShareDelStart(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDelStart, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetShareDelCommit(pipes_struct *p)
@@ -2887,69 +2963,71 @@ static bool api_srvsvc_NetShareDelCommit(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetShareDelCommit *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSHAREDELCOMMIT];
-       
+
        r = talloc(NULL, struct srvsvc_NetShareDelCommit);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetShareDelCommit, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.hnd = r->in.hnd;
        r->out.result = _srvsvc_NetShareDelCommit(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDelCommit, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetGetFileSecurity(pipes_struct *p)
@@ -2960,74 +3038,76 @@ static bool api_srvsvc_NetGetFileSecurity(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetGetFileSecurity *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETGETFILESECURITY];
-       
+
        r = talloc(NULL, struct srvsvc_NetGetFileSecurity);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetGetFileSecurity, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.sd_buf = talloc_zero(r, struct sec_desc_buf);
        if (r->out.sd_buf == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _srvsvc_NetGetFileSecurity(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetGetFileSecurity, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetSetFileSecurity(pipes_struct *p)
@@ -3038,67 +3118,69 @@ static bool api_srvsvc_NetSetFileSecurity(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetSetFileSecurity *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSETFILESECURITY];
-       
+
        r = talloc(NULL, struct srvsvc_NetSetFileSecurity);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetSetFileSecurity, r);
-       
+       }
+
        r->out.result = _srvsvc_NetSetFileSecurity(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetSetFileSecurity, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetServerTransportAddEx(pipes_struct *p)
@@ -3109,67 +3191,69 @@ static bool api_srvsvc_NetServerTransportAddEx(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetServerTransportAddEx *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSERVERTRANSPORTADDEX];
-       
+
        r = talloc(NULL, struct srvsvc_NetServerTransportAddEx);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetServerTransportAddEx, r);
-       
+       }
+
        r->out.result = _srvsvc_NetServerTransportAddEx(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetServerTransportAddEx, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NetServerSetServiceBitsEx(pipes_struct *p)
@@ -3180,67 +3264,69 @@ static bool api_srvsvc_NetServerSetServiceBitsEx(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NetServerSetServiceBitsEx *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSERVERSETSERVICEBITSEX];
-       
+
        r = talloc(NULL, struct srvsvc_NetServerSetServiceBitsEx);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NetServerSetServiceBitsEx, r);
-       
+       }
+
        r->out.result = _srvsvc_NetServerSetServiceBitsEx(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NetServerSetServiceBitsEx, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NETRDFSGETVERSION(pipes_struct *p)
@@ -3251,67 +3337,69 @@ static bool api_srvsvc_NETRDFSGETVERSION(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NETRDFSGETVERSION *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETRDFSGETVERSION];
-       
+
        r = talloc(NULL, struct srvsvc_NETRDFSGETVERSION);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSGETVERSION, r);
-       
+       }
+
        r->out.result = _srvsvc_NETRDFSGETVERSION(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSGETVERSION, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NETRDFSCREATELOCALPARTITION(pipes_struct *p)
@@ -3322,67 +3410,69 @@ static bool api_srvsvc_NETRDFSCREATELOCALPARTITION(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NETRDFSCREATELOCALPARTITION *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETRDFSCREATELOCALPARTITION];
-       
+
        r = talloc(NULL, struct srvsvc_NETRDFSCREATELOCALPARTITION);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSCREATELOCALPARTITION, r);
-       
+       }
+
        r->out.result = _srvsvc_NETRDFSCREATELOCALPARTITION(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSCREATELOCALPARTITION, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NETRDFSDELETELOCALPARTITION(pipes_struct *p)
@@ -3393,67 +3483,69 @@ static bool api_srvsvc_NETRDFSDELETELOCALPARTITION(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NETRDFSDELETELOCALPARTITION *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETRDFSDELETELOCALPARTITION];
-       
+
        r = talloc(NULL, struct srvsvc_NETRDFSDELETELOCALPARTITION);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSDELETELOCALPARTITION, r);
-       
+       }
+
        r->out.result = _srvsvc_NETRDFSDELETELOCALPARTITION(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSDELETELOCALPARTITION, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NETRDFSSETLOCALVOLUMESTATE(pipes_struct *p)
@@ -3464,67 +3556,69 @@ static bool api_srvsvc_NETRDFSSETLOCALVOLUMESTATE(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NETRDFSSETLOCALVOLUMESTATE *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETRDFSSETLOCALVOLUMESTATE];
-       
+
        r = talloc(NULL, struct srvsvc_NETRDFSSETLOCALVOLUMESTATE);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSSETLOCALVOLUMESTATE, r);
-       
+       }
+
        r->out.result = _srvsvc_NETRDFSSETLOCALVOLUMESTATE(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSSETLOCALVOLUMESTATE, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NETRDFSSETSERVERINFO(pipes_struct *p)
@@ -3535,67 +3629,69 @@ static bool api_srvsvc_NETRDFSSETSERVERINFO(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NETRDFSSETSERVERINFO *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETRDFSSETSERVERINFO];
-       
+
        r = talloc(NULL, struct srvsvc_NETRDFSSETSERVERINFO);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSSETSERVERINFO, r);
-       
+       }
+
        r->out.result = _srvsvc_NETRDFSSETSERVERINFO(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSSETSERVERINFO, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NETRDFSCREATEEXITPOINT(pipes_struct *p)
@@ -3606,67 +3702,69 @@ static bool api_srvsvc_NETRDFSCREATEEXITPOINT(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NETRDFSCREATEEXITPOINT *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETRDFSCREATEEXITPOINT];
-       
+
        r = talloc(NULL, struct srvsvc_NETRDFSCREATEEXITPOINT);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSCREATEEXITPOINT, r);
-       
+       }
+
        r->out.result = _srvsvc_NETRDFSCREATEEXITPOINT(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSCREATEEXITPOINT, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NETRDFSDELETEEXITPOINT(pipes_struct *p)
@@ -3677,67 +3775,69 @@ static bool api_srvsvc_NETRDFSDELETEEXITPOINT(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NETRDFSDELETEEXITPOINT *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETRDFSDELETEEXITPOINT];
-       
+
        r = talloc(NULL, struct srvsvc_NETRDFSDELETEEXITPOINT);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSDELETEEXITPOINT, r);
-       
+       }
+
        r->out.result = _srvsvc_NETRDFSDELETEEXITPOINT(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSDELETEEXITPOINT, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NETRDFSMODIFYPREFIX(pipes_struct *p)
@@ -3748,67 +3848,69 @@ static bool api_srvsvc_NETRDFSMODIFYPREFIX(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NETRDFSMODIFYPREFIX *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETRDFSMODIFYPREFIX];
-       
+
        r = talloc(NULL, struct srvsvc_NETRDFSMODIFYPREFIX);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSMODIFYPREFIX, r);
-       
+       }
+
        r->out.result = _srvsvc_NETRDFSMODIFYPREFIX(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSMODIFYPREFIX, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NETRDFSFIXLOCALVOLUME(pipes_struct *p)
@@ -3819,67 +3921,69 @@ static bool api_srvsvc_NETRDFSFIXLOCALVOLUME(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NETRDFSFIXLOCALVOLUME *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETRDFSFIXLOCALVOLUME];
-       
+
        r = talloc(NULL, struct srvsvc_NETRDFSFIXLOCALVOLUME);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSFIXLOCALVOLUME, r);
-       
+       }
+
        r->out.result = _srvsvc_NETRDFSFIXLOCALVOLUME(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSFIXLOCALVOLUME, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NETRDFSMANAGERREPORTSITEINFO(pipes_struct *p)
@@ -3890,67 +3994,69 @@ static bool api_srvsvc_NETRDFSMANAGERREPORTSITEINFO(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NETRDFSMANAGERREPORTSITEINFO *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETRDFSMANAGERREPORTSITEINFO];
-       
+
        r = talloc(NULL, struct srvsvc_NETRDFSMANAGERREPORTSITEINFO);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSMANAGERREPORTSITEINFO, r);
-       
+       }
+
        r->out.result = _srvsvc_NETRDFSMANAGERREPORTSITEINFO(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSMANAGERREPORTSITEINFO, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_srvsvc_NETRSERVERTRANSPORTDELEX(pipes_struct *p)
@@ -3961,67 +4067,69 @@ static bool api_srvsvc_NETRSERVERTRANSPORTDELEX(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct srvsvc_NETRSERVERTRANSPORTDELEX *r;
-       
+
        call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETRSERVERTRANSPORTDELEX];
-       
+
        r = talloc(NULL, struct srvsvc_NETRSERVERTRANSPORTDELEX);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(srvsvc_NETRSERVERTRANSPORTDELEX, r);
-       
+       }
+
        r->out.result = _srvsvc_NETRSERVERTRANSPORTDELEX(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(srvsvc_NETRSERVERTRANSPORTDELEX, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 
index 1d4719858ddfc9a88a573cf788fd96d8d6a1152b..4a0a2591abbe919efd9dba62189fd1a3f2948d61 100644 (file)
@@ -14,69 +14,71 @@ static bool api_svcctl_CloseServiceHandle(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_CloseServiceHandle *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_CLOSESERVICEHANDLE];
-       
+
        r = talloc(NULL, struct svcctl_CloseServiceHandle);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_CloseServiceHandle, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.handle = r->in.handle;
        r->out.result = _svcctl_CloseServiceHandle(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_CloseServiceHandle, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_ControlService(pipes_struct *p)
@@ -87,74 +89,76 @@ static bool api_svcctl_ControlService(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_ControlService *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_CONTROLSERVICE];
-       
+
        r = talloc(NULL, struct svcctl_ControlService);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_ControlService, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.service_status = talloc_zero(r, struct SERVICE_STATUS);
        if (r->out.service_status == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _svcctl_ControlService(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_ControlService, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_DeleteService(pipes_struct *p)
@@ -165,67 +169,69 @@ static bool api_svcctl_DeleteService(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_DeleteService *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_DELETESERVICE];
-       
+
        r = talloc(NULL, struct svcctl_DeleteService);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_DeleteService, r);
-       
+       }
+
        r->out.result = _svcctl_DeleteService(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_DeleteService, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_LockServiceDatabase(pipes_struct *p)
@@ -236,74 +242,76 @@ static bool api_svcctl_LockServiceDatabase(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_LockServiceDatabase *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_LOCKSERVICEDATABASE];
-       
+
        r = talloc(NULL, struct svcctl_LockServiceDatabase);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_LockServiceDatabase, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.lock = talloc_zero(r, struct policy_handle);
        if (r->out.lock == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _svcctl_LockServiceDatabase(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_LockServiceDatabase, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_QueryServiceObjectSecurity(pipes_struct *p)
@@ -314,67 +322,69 @@ static bool api_svcctl_QueryServiceObjectSecurity(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_QueryServiceObjectSecurity *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_QUERYSERVICEOBJECTSECURITY];
-       
+
        r = talloc(NULL, struct svcctl_QueryServiceObjectSecurity);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_QueryServiceObjectSecurity, r);
-       
+       }
+
        r->out.result = _svcctl_QueryServiceObjectSecurity(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceObjectSecurity, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_SetServiceObjectSecurity(pipes_struct *p)
@@ -385,67 +395,69 @@ static bool api_svcctl_SetServiceObjectSecurity(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_SetServiceObjectSecurity *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_SETSERVICEOBJECTSECURITY];
-       
+
        r = talloc(NULL, struct svcctl_SetServiceObjectSecurity);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_SetServiceObjectSecurity, r);
-       
+       }
+
        r->out.result = _svcctl_SetServiceObjectSecurity(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_SetServiceObjectSecurity, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_QueryServiceStatus(pipes_struct *p)
@@ -456,74 +468,76 @@ static bool api_svcctl_QueryServiceStatus(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_QueryServiceStatus *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_QUERYSERVICESTATUS];
-       
+
        r = talloc(NULL, struct svcctl_QueryServiceStatus);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_QueryServiceStatus, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.service_status = talloc_zero(r, struct SERVICE_STATUS);
        if (r->out.service_status == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _svcctl_QueryServiceStatus(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceStatus, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_SetServiceStatus(pipes_struct *p)
@@ -534,67 +548,69 @@ static bool api_svcctl_SetServiceStatus(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_SetServiceStatus *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_SETSERVICESTATUS];
-       
+
        r = talloc(NULL, struct svcctl_SetServiceStatus);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_SetServiceStatus, r);
-       
+       }
+
        r->out.result = _svcctl_SetServiceStatus(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_SetServiceStatus, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_UnlockServiceDatabase(pipes_struct *p)
@@ -605,69 +621,71 @@ static bool api_svcctl_UnlockServiceDatabase(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_UnlockServiceDatabase *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_UNLOCKSERVICEDATABASE];
-       
+
        r = talloc(NULL, struct svcctl_UnlockServiceDatabase);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_UnlockServiceDatabase, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.lock = r->in.lock;
        r->out.result = _svcctl_UnlockServiceDatabase(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_UnlockServiceDatabase, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_NotifyBootConfigStatus(pipes_struct *p)
@@ -678,67 +696,69 @@ static bool api_svcctl_NotifyBootConfigStatus(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_NotifyBootConfigStatus *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_NOTIFYBOOTCONFIGSTATUS];
-       
+
        r = talloc(NULL, struct svcctl_NotifyBootConfigStatus);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_NotifyBootConfigStatus, r);
-       
+       }
+
        r->out.result = _svcctl_NotifyBootConfigStatus(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_NotifyBootConfigStatus, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_SCSetServiceBitsW(pipes_struct *p)
@@ -749,67 +769,69 @@ static bool api_svcctl_SCSetServiceBitsW(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_SCSetServiceBitsW *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_SCSETSERVICEBITSW];
-       
+
        r = talloc(NULL, struct svcctl_SCSetServiceBitsW);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_SCSetServiceBitsW, r);
-       
+       }
+
        r->out.result = _svcctl_SCSetServiceBitsW(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_SCSetServiceBitsW, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_ChangeServiceConfigW(pipes_struct *p)
@@ -820,74 +842,76 @@ static bool api_svcctl_ChangeServiceConfigW(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_ChangeServiceConfigW *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_CHANGESERVICECONFIGW];
-       
+
        r = talloc(NULL, struct svcctl_ChangeServiceConfigW);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_ChangeServiceConfigW, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.tag_id = talloc_zero(r, uint32_t);
        if (r->out.tag_id == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _svcctl_ChangeServiceConfigW(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_ChangeServiceConfigW, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_CreateServiceW(pipes_struct *p)
@@ -898,75 +922,77 @@ static bool api_svcctl_CreateServiceW(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_CreateServiceW *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_CREATESERVICEW];
-       
+
        r = talloc(NULL, struct svcctl_CreateServiceW);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_CreateServiceW, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.TagId = r->in.TagId;
        r->out.handle = talloc_zero(r, struct policy_handle);
        if (r->out.handle == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _svcctl_CreateServiceW(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_CreateServiceW, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_EnumDependentServicesW(pipes_struct *p)
@@ -977,86 +1003,88 @@ static bool api_svcctl_EnumDependentServicesW(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_EnumDependentServicesW *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_ENUMDEPENDENTSERVICESW];
-       
+
        r = talloc(NULL, struct svcctl_EnumDependentServicesW);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_EnumDependentServicesW, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.service_status = talloc_zero(r, struct ENUM_SERVICE_STATUS);
        if (r->out.service_status == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.bytes_needed = talloc_zero(r, uint32_t);
        if (r->out.bytes_needed == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.services_returned = talloc_zero(r, uint32_t);
        if (r->out.services_returned == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _svcctl_EnumDependentServicesW(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_EnumDependentServicesW, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_EnumServicesStatusW(pipes_struct *p)
@@ -1067,87 +1095,89 @@ static bool api_svcctl_EnumServicesStatusW(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_EnumServicesStatusW *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_ENUMSERVICESSTATUSW];
-       
+
        r = talloc(NULL, struct svcctl_EnumServicesStatusW);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_EnumServicesStatusW, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.service = talloc_zero_array(r, uint8_t, r->in.buf_size);
        if (r->out.service == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.bytes_needed = talloc_zero(r, uint32_t);
        if (r->out.bytes_needed == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.services_returned = talloc_zero(r, uint32_t);
        if (r->out.services_returned == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.resume_handle = r->in.resume_handle;
        r->out.result = _svcctl_EnumServicesStatusW(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_EnumServicesStatusW, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_OpenSCManagerW(pipes_struct *p)
@@ -1158,74 +1188,76 @@ static bool api_svcctl_OpenSCManagerW(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_OpenSCManagerW *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_OPENSCMANAGERW];
-       
+
        r = talloc(NULL, struct svcctl_OpenSCManagerW);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_OpenSCManagerW, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.handle = talloc_zero(r, struct policy_handle);
        if (r->out.handle == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _svcctl_OpenSCManagerW(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_OpenSCManagerW, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_OpenServiceW(pipes_struct *p)
@@ -1236,74 +1268,76 @@ static bool api_svcctl_OpenServiceW(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_OpenServiceW *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_OPENSERVICEW];
-       
+
        r = talloc(NULL, struct svcctl_OpenServiceW);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_OpenServiceW, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.handle = talloc_zero(r, struct policy_handle);
        if (r->out.handle == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _svcctl_OpenServiceW(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_OpenServiceW, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_QueryServiceConfigW(pipes_struct *p)
@@ -1314,80 +1348,82 @@ static bool api_svcctl_QueryServiceConfigW(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_QueryServiceConfigW *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_QUERYSERVICECONFIGW];
-       
+
        r = talloc(NULL, struct svcctl_QueryServiceConfigW);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_QueryServiceConfigW, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.query = talloc_zero_array(r, uint8_t, r->in.buf_size);
        if (r->out.query == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.bytes_needed = talloc_zero(r, uint32_t);
        if (r->out.bytes_needed == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _svcctl_QueryServiceConfigW(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceConfigW, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_QueryServiceLockStatusW(pipes_struct *p)
@@ -1398,80 +1434,82 @@ static bool api_svcctl_QueryServiceLockStatusW(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_QueryServiceLockStatusW *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_QUERYSERVICELOCKSTATUSW];
-       
+
        r = talloc(NULL, struct svcctl_QueryServiceLockStatusW);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_QueryServiceLockStatusW, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.lock_status = talloc_zero(r, struct SERVICE_LOCK_STATUS);
        if (r->out.lock_status == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.required_buf_size = talloc_zero(r, uint32_t);
        if (r->out.required_buf_size == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _svcctl_QueryServiceLockStatusW(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceLockStatusW, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_StartServiceW(pipes_struct *p)
@@ -1482,67 +1520,69 @@ static bool api_svcctl_StartServiceW(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_StartServiceW *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_STARTSERVICEW];
-       
+
        r = talloc(NULL, struct svcctl_StartServiceW);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_StartServiceW, r);
-       
+       }
+
        r->out.result = _svcctl_StartServiceW(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_StartServiceW, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_GetServiceDisplayNameW(pipes_struct *p)
@@ -1553,75 +1593,77 @@ static bool api_svcctl_GetServiceDisplayNameW(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_GetServiceDisplayNameW *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_GETSERVICEDISPLAYNAMEW];
-       
+
        r = talloc(NULL, struct svcctl_GetServiceDisplayNameW);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_GetServiceDisplayNameW, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.display_name = talloc_zero(r, const char *);
        if (r->out.display_name == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.display_name_length = r->in.display_name_length;
        r->out.result = _svcctl_GetServiceDisplayNameW(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_GetServiceDisplayNameW, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_GetServiceKeyNameW(pipes_struct *p)
@@ -1632,75 +1674,77 @@ static bool api_svcctl_GetServiceKeyNameW(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_GetServiceKeyNameW *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_GETSERVICEKEYNAMEW];
-       
+
        r = talloc(NULL, struct svcctl_GetServiceKeyNameW);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_GetServiceKeyNameW, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.key_name = talloc_zero(r, const char *);
        if (r->out.key_name == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.display_name_length = r->in.display_name_length;
        r->out.result = _svcctl_GetServiceKeyNameW(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_GetServiceKeyNameW, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_SCSetServiceBitsA(pipes_struct *p)
@@ -1711,67 +1755,69 @@ static bool api_svcctl_SCSetServiceBitsA(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_SCSetServiceBitsA *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_SCSETSERVICEBITSA];
-       
+
        r = talloc(NULL, struct svcctl_SCSetServiceBitsA);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_SCSetServiceBitsA, r);
-       
+       }
+
        r->out.result = _svcctl_SCSetServiceBitsA(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_SCSetServiceBitsA, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_ChangeServiceConfigA(pipes_struct *p)
@@ -1782,74 +1828,76 @@ static bool api_svcctl_ChangeServiceConfigA(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_ChangeServiceConfigA *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_CHANGESERVICECONFIGA];
-       
+
        r = talloc(NULL, struct svcctl_ChangeServiceConfigA);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_ChangeServiceConfigA, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.tag_id = talloc_zero(r, uint32_t);
        if (r->out.tag_id == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _svcctl_ChangeServiceConfigA(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_ChangeServiceConfigA, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_CreateServiceA(pipes_struct *p)
@@ -1860,74 +1908,76 @@ static bool api_svcctl_CreateServiceA(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_CreateServiceA *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_CREATESERVICEA];
-       
+
        r = talloc(NULL, struct svcctl_CreateServiceA);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_CreateServiceA, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.TagId = talloc_zero(r, uint32_t);
        if (r->out.TagId == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _svcctl_CreateServiceA(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_CreateServiceA, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_EnumDependentServicesA(pipes_struct *p)
@@ -1938,86 +1988,88 @@ static bool api_svcctl_EnumDependentServicesA(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_EnumDependentServicesA *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_ENUMDEPENDENTSERVICESA];
-       
+
        r = talloc(NULL, struct svcctl_EnumDependentServicesA);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_EnumDependentServicesA, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.service_status = talloc_zero(r, struct ENUM_SERVICE_STATUS);
        if (r->out.service_status == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.bytes_needed = talloc_zero(r, uint32_t);
        if (r->out.bytes_needed == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.services_returned = talloc_zero(r, uint32_t);
        if (r->out.services_returned == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _svcctl_EnumDependentServicesA(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_EnumDependentServicesA, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_EnumServicesStatusA(pipes_struct *p)
@@ -2028,87 +2080,89 @@ static bool api_svcctl_EnumServicesStatusA(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_EnumServicesStatusA *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_ENUMSERVICESSTATUSA];
-       
+
        r = talloc(NULL, struct svcctl_EnumServicesStatusA);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_EnumServicesStatusA, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.service = talloc_zero_array(r, uint8_t, r->in.buf_size);
        if (r->out.service == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.bytes_needed = talloc_zero(r, uint32_t);
        if (r->out.bytes_needed == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.services_returned = talloc_zero(r, uint32_t);
        if (r->out.services_returned == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.resume_handle = r->in.resume_handle;
        r->out.result = _svcctl_EnumServicesStatusA(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_EnumServicesStatusA, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_OpenSCManagerA(pipes_struct *p)
@@ -2119,74 +2173,76 @@ static bool api_svcctl_OpenSCManagerA(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_OpenSCManagerA *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_OPENSCMANAGERA];
-       
+
        r = talloc(NULL, struct svcctl_OpenSCManagerA);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_OpenSCManagerA, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.handle = talloc_zero(r, struct policy_handle);
        if (r->out.handle == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _svcctl_OpenSCManagerA(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_OpenSCManagerA, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_OpenServiceA(pipes_struct *p)
@@ -2197,67 +2253,69 @@ static bool api_svcctl_OpenServiceA(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_OpenServiceA *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_OPENSERVICEA];
-       
+
        r = talloc(NULL, struct svcctl_OpenServiceA);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_OpenServiceA, r);
-       
+       }
+
        r->out.result = _svcctl_OpenServiceA(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_OpenServiceA, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_QueryServiceConfigA(pipes_struct *p)
@@ -2268,80 +2326,82 @@ static bool api_svcctl_QueryServiceConfigA(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_QueryServiceConfigA *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_QUERYSERVICECONFIGA];
-       
+
        r = talloc(NULL, struct svcctl_QueryServiceConfigA);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_QueryServiceConfigA, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.query = talloc_zero_array(r, uint8_t, r->in.buf_size);
        if (r->out.query == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.bytes_needed = talloc_zero(r, uint32_t);
        if (r->out.bytes_needed == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _svcctl_QueryServiceConfigA(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceConfigA, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_QueryServiceLockStatusA(pipes_struct *p)
@@ -2352,80 +2412,82 @@ static bool api_svcctl_QueryServiceLockStatusA(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_QueryServiceLockStatusA *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_QUERYSERVICELOCKSTATUSA];
-       
+
        r = talloc(NULL, struct svcctl_QueryServiceLockStatusA);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_QueryServiceLockStatusA, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.lock_status = talloc_zero(r, struct SERVICE_LOCK_STATUS);
        if (r->out.lock_status == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.required_buf_size = talloc_zero(r, uint32_t);
        if (r->out.required_buf_size == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _svcctl_QueryServiceLockStatusA(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceLockStatusA, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_StartServiceA(pipes_struct *p)
@@ -2436,67 +2498,69 @@ static bool api_svcctl_StartServiceA(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_StartServiceA *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_STARTSERVICEA];
-       
+
        r = talloc(NULL, struct svcctl_StartServiceA);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_StartServiceA, r);
-       
+       }
+
        r->out.result = _svcctl_StartServiceA(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_StartServiceA, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_GetServiceDisplayNameA(pipes_struct *p)
@@ -2507,75 +2571,77 @@ static bool api_svcctl_GetServiceDisplayNameA(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_GetServiceDisplayNameA *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_GETSERVICEDISPLAYNAMEA];
-       
+
        r = talloc(NULL, struct svcctl_GetServiceDisplayNameA);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_GetServiceDisplayNameA, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.display_name = talloc_zero(r, const char *);
        if (r->out.display_name == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.display_name_length = r->in.display_name_length;
        r->out.result = _svcctl_GetServiceDisplayNameA(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_GetServiceDisplayNameA, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_GetServiceKeyNameA(pipes_struct *p)
@@ -2586,75 +2652,77 @@ static bool api_svcctl_GetServiceKeyNameA(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_GetServiceKeyNameA *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_GETSERVICEKEYNAMEA];
-       
+
        r = talloc(NULL, struct svcctl_GetServiceKeyNameA);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_GetServiceKeyNameA, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.key_name = talloc_zero(r, const char *);
        if (r->out.key_name == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.display_name_length = r->in.display_name_length;
        r->out.result = _svcctl_GetServiceKeyNameA(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_GetServiceKeyNameA, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_GetCurrentGroupeStateW(pipes_struct *p)
@@ -2665,67 +2733,69 @@ static bool api_svcctl_GetCurrentGroupeStateW(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_GetCurrentGroupeStateW *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_GETCURRENTGROUPESTATEW];
-       
+
        r = talloc(NULL, struct svcctl_GetCurrentGroupeStateW);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_GetCurrentGroupeStateW, r);
-       
+       }
+
        r->out.result = _svcctl_GetCurrentGroupeStateW(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_GetCurrentGroupeStateW, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_EnumServiceGroupW(pipes_struct *p)
@@ -2736,67 +2806,69 @@ static bool api_svcctl_EnumServiceGroupW(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_EnumServiceGroupW *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_ENUMSERVICEGROUPW];
-       
+
        r = talloc(NULL, struct svcctl_EnumServiceGroupW);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_EnumServiceGroupW, r);
-       
+       }
+
        r->out.result = _svcctl_EnumServiceGroupW(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_EnumServiceGroupW, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_ChangeServiceConfig2A(pipes_struct *p)
@@ -2807,67 +2879,69 @@ static bool api_svcctl_ChangeServiceConfig2A(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_ChangeServiceConfig2A *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_CHANGESERVICECONFIG2A];
-       
+
        r = talloc(NULL, struct svcctl_ChangeServiceConfig2A);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_ChangeServiceConfig2A, r);
-       
+       }
+
        r->out.result = _svcctl_ChangeServiceConfig2A(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_ChangeServiceConfig2A, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_ChangeServiceConfig2W(pipes_struct *p)
@@ -2878,67 +2952,69 @@ static bool api_svcctl_ChangeServiceConfig2W(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_ChangeServiceConfig2W *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_CHANGESERVICECONFIG2W];
-       
+
        r = talloc(NULL, struct svcctl_ChangeServiceConfig2W);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_ChangeServiceConfig2W, r);
-       
+       }
+
        r->out.result = _svcctl_ChangeServiceConfig2W(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_ChangeServiceConfig2W, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_QueryServiceConfig2A(pipes_struct *p)
@@ -2949,80 +3025,82 @@ static bool api_svcctl_QueryServiceConfig2A(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_QueryServiceConfig2A *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_QUERYSERVICECONFIG2A];
-       
+
        r = talloc(NULL, struct svcctl_QueryServiceConfig2A);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_QueryServiceConfig2A, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.buffer = talloc_zero_array(r, uint8_t, r->in.buf_size);
        if (r->out.buffer == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.bytes_needed = talloc_zero(r, uint32_t);
        if (r->out.bytes_needed == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _svcctl_QueryServiceConfig2A(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceConfig2A, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_QueryServiceConfig2W(pipes_struct *p)
@@ -3033,80 +3111,82 @@ static bool api_svcctl_QueryServiceConfig2W(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_QueryServiceConfig2W *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_QUERYSERVICECONFIG2W];
-       
+
        r = talloc(NULL, struct svcctl_QueryServiceConfig2W);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_QueryServiceConfig2W, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.buffer = talloc_zero_array(r, uint8_t, r->in.buf_size);
        if (r->out.buffer == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.bytes_needed = talloc_zero(r, uint32_t);
        if (r->out.bytes_needed == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _svcctl_QueryServiceConfig2W(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceConfig2W, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_QueryServiceStatusEx(pipes_struct *p)
@@ -3117,80 +3197,82 @@ static bool api_svcctl_QueryServiceStatusEx(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_QueryServiceStatusEx *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_QUERYSERVICESTATUSEX];
-       
+
        r = talloc(NULL, struct svcctl_QueryServiceStatusEx);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_QueryServiceStatusEx, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.buffer = talloc_zero_array(r, uint8_t, r->in.buf_size);
        if (r->out.buffer == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.bytes_needed = talloc_zero(r, uint32_t);
        if (r->out.bytes_needed == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _svcctl_QueryServiceStatusEx(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceStatusEx, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_EnumServicesStatusExA(pipes_struct *p)
@@ -3201,93 +3283,95 @@ static bool api_EnumServicesStatusExA(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct EnumServicesStatusExA *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_ENUMSERVICESSTATUSEXA];
-       
+
        r = talloc(NULL, struct EnumServicesStatusExA);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(EnumServicesStatusExA, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.services = talloc_zero_array(r, uint8_t, r->in.buf_size);
        if (r->out.services == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.bytes_needed = talloc_zero(r, uint32_t);
        if (r->out.bytes_needed == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.service_returned = talloc_zero(r, uint32_t);
        if (r->out.service_returned == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.resume_handle = r->in.resume_handle;
        r->out.group_name = talloc_zero(r, const char *);
        if (r->out.group_name == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _EnumServicesStatusExA(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(EnumServicesStatusExA, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_EnumServicesStatusExW(pipes_struct *p)
@@ -3298,93 +3382,95 @@ static bool api_EnumServicesStatusExW(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct EnumServicesStatusExW *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_ENUMSERVICESSTATUSEXW];
-       
+
        r = talloc(NULL, struct EnumServicesStatusExW);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(EnumServicesStatusExW, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.services = talloc_zero_array(r, uint8_t, r->in.buf_size);
        if (r->out.services == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.bytes_needed = talloc_zero(r, uint32_t);
        if (r->out.bytes_needed == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.service_returned = talloc_zero(r, uint32_t);
        if (r->out.service_returned == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.resume_handle = r->in.resume_handle;
        r->out.group_name = talloc_zero(r, const char *);
        if (r->out.group_name == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _EnumServicesStatusExW(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(EnumServicesStatusExW, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_svcctl_SCSendTSMessage(pipes_struct *p)
@@ -3395,67 +3481,69 @@ static bool api_svcctl_SCSendTSMessage(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct svcctl_SCSendTSMessage *r;
-       
+
        call = &ndr_table_svcctl.calls[NDR_SVCCTL_SCSENDTSMESSAGE];
-       
+
        r = talloc(NULL, struct svcctl_SCSendTSMessage);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(svcctl_SCSendTSMessage, r);
-       
+       }
+
        r->out.result = _svcctl_SCSendTSMessage(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(svcctl_SCSendTSMessage, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 
index 19863d798fc651b542778a0084ceea5b04a775df..36a6250ad00b7c6c7c17fdc7e7090e676e32258e 100644 (file)
@@ -14,74 +14,76 @@ static bool api_unixinfo_SidToUid(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct unixinfo_SidToUid *r;
-       
+
        call = &ndr_table_unixinfo.calls[NDR_UNIXINFO_SIDTOUID];
-       
+
        r = talloc(NULL, struct unixinfo_SidToUid);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(unixinfo_SidToUid, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.uid = talloc_zero(r, uint64_t);
        if (r->out.uid == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _unixinfo_SidToUid(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(unixinfo_SidToUid, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_unixinfo_UidToSid(pipes_struct *p)
@@ -92,74 +94,76 @@ static bool api_unixinfo_UidToSid(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct unixinfo_UidToSid *r;
-       
+
        call = &ndr_table_unixinfo.calls[NDR_UNIXINFO_UIDTOSID];
-       
+
        r = talloc(NULL, struct unixinfo_UidToSid);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(unixinfo_UidToSid, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.sid = talloc_zero(r, struct dom_sid);
        if (r->out.sid == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _unixinfo_UidToSid(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(unixinfo_UidToSid, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_unixinfo_SidToGid(pipes_struct *p)
@@ -170,74 +174,76 @@ static bool api_unixinfo_SidToGid(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct unixinfo_SidToGid *r;
-       
+
        call = &ndr_table_unixinfo.calls[NDR_UNIXINFO_SIDTOGID];
-       
+
        r = talloc(NULL, struct unixinfo_SidToGid);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(unixinfo_SidToGid, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.gid = talloc_zero(r, uint64_t);
        if (r->out.gid == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _unixinfo_SidToGid(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(unixinfo_SidToGid, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_unixinfo_GidToSid(pipes_struct *p)
@@ -248,74 +254,76 @@ static bool api_unixinfo_GidToSid(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct unixinfo_GidToSid *r;
-       
+
        call = &ndr_table_unixinfo.calls[NDR_UNIXINFO_GIDTOSID];
-       
+
        r = talloc(NULL, struct unixinfo_GidToSid);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(unixinfo_GidToSid, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.sid = talloc_zero(r, struct dom_sid);
        if (r->out.sid == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _unixinfo_GidToSid(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(unixinfo_GidToSid, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_unixinfo_GetPWUid(pipes_struct *p)
@@ -326,75 +334,77 @@ static bool api_unixinfo_GetPWUid(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct unixinfo_GetPWUid *r;
-       
+
        call = &ndr_table_unixinfo.calls[NDR_UNIXINFO_GETPWUID];
-       
+
        r = talloc(NULL, struct unixinfo_GetPWUid);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(unixinfo_GetPWUid, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.count = r->in.count;
        r->out.infos = talloc_zero_array(r, struct unixinfo_GetPWUidInfo, *r->out.count);
        if (r->out.infos == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _unixinfo_GetPWUid(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(unixinfo_GetPWUid, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 
index 51918bcb9761b7979767c20968306668a68486ad..ecce99f67a359bd0df2b552fbb4937090644ab77 100644 (file)
@@ -14,74 +14,76 @@ static bool api_winreg_OpenHKCR(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_OpenHKCR *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_OPENHKCR];
-       
+
        r = talloc(NULL, struct winreg_OpenHKCR);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_OpenHKCR, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.handle = talloc_zero(r, struct policy_handle);
        if (r->out.handle == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _winreg_OpenHKCR(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_OpenHKCR, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_OpenHKCU(pipes_struct *p)
@@ -92,74 +94,76 @@ static bool api_winreg_OpenHKCU(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_OpenHKCU *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_OPENHKCU];
-       
+
        r = talloc(NULL, struct winreg_OpenHKCU);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_OpenHKCU, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.handle = talloc_zero(r, struct policy_handle);
        if (r->out.handle == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _winreg_OpenHKCU(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_OpenHKCU, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_OpenHKLM(pipes_struct *p)
@@ -170,74 +174,76 @@ static bool api_winreg_OpenHKLM(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_OpenHKLM *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_OPENHKLM];
-       
+
        r = talloc(NULL, struct winreg_OpenHKLM);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_OpenHKLM, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.handle = talloc_zero(r, struct policy_handle);
        if (r->out.handle == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _winreg_OpenHKLM(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_OpenHKLM, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_OpenHKPD(pipes_struct *p)
@@ -248,74 +254,76 @@ static bool api_winreg_OpenHKPD(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_OpenHKPD *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_OPENHKPD];
-       
+
        r = talloc(NULL, struct winreg_OpenHKPD);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_OpenHKPD, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.handle = talloc_zero(r, struct policy_handle);
        if (r->out.handle == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _winreg_OpenHKPD(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_OpenHKPD, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_OpenHKU(pipes_struct *p)
@@ -326,74 +334,76 @@ static bool api_winreg_OpenHKU(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_OpenHKU *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_OPENHKU];
-       
+
        r = talloc(NULL, struct winreg_OpenHKU);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_OpenHKU, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.handle = talloc_zero(r, struct policy_handle);
        if (r->out.handle == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _winreg_OpenHKU(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_OpenHKU, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_CloseKey(pipes_struct *p)
@@ -404,69 +414,71 @@ static bool api_winreg_CloseKey(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_CloseKey *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_CLOSEKEY];
-       
+
        r = talloc(NULL, struct winreg_CloseKey);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_CloseKey, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.handle = r->in.handle;
        r->out.result = _winreg_CloseKey(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_CloseKey, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_CreateKey(pipes_struct *p)
@@ -477,75 +489,77 @@ static bool api_winreg_CreateKey(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_CreateKey *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_CREATEKEY];
-       
+
        r = talloc(NULL, struct winreg_CreateKey);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_CreateKey, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.new_handle = talloc_zero(r, struct policy_handle);
        if (r->out.new_handle == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.action_taken = r->in.action_taken;
        r->out.result = _winreg_CreateKey(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_CreateKey, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_DeleteKey(pipes_struct *p)
@@ -556,67 +570,69 @@ static bool api_winreg_DeleteKey(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_DeleteKey *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_DELETEKEY];
-       
+
        r = talloc(NULL, struct winreg_DeleteKey);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_DeleteKey, r);
-       
+       }
+
        r->out.result = _winreg_DeleteKey(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_DeleteKey, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_DeleteValue(pipes_struct *p)
@@ -627,67 +643,69 @@ static bool api_winreg_DeleteValue(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_DeleteValue *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_DELETEVALUE];
-       
+
        r = talloc(NULL, struct winreg_DeleteValue);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_DeleteValue, r);
-       
+       }
+
        r->out.result = _winreg_DeleteValue(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_DeleteValue, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_EnumKey(pipes_struct *p)
@@ -698,71 +716,73 @@ static bool api_winreg_EnumKey(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_EnumKey *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_ENUMKEY];
-       
+
        r = talloc(NULL, struct winreg_EnumKey);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_EnumKey, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.name = r->in.name;
        r->out.keyclass = r->in.keyclass;
        r->out.last_changed_time = r->in.last_changed_time;
        r->out.result = _winreg_EnumKey(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_EnumKey, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_EnumValue(pipes_struct *p)
@@ -773,35 +793,36 @@ static bool api_winreg_EnumValue(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_EnumValue *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_ENUMVALUE];
-       
+
        r = talloc(NULL, struct winreg_EnumValue);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_EnumValue, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.name = r->in.name;
        r->out.type = r->in.type;
@@ -809,37 +830,38 @@ static bool api_winreg_EnumValue(pipes_struct *p)
        r->out.size = r->in.size;
        r->out.length = r->in.length;
        r->out.result = _winreg_EnumValue(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_EnumValue, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_FlushKey(pipes_struct *p)
@@ -850,67 +872,69 @@ static bool api_winreg_FlushKey(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_FlushKey *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_FLUSHKEY];
-       
+
        r = talloc(NULL, struct winreg_FlushKey);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_FlushKey, r);
-       
+       }
+
        r->out.result = _winreg_FlushKey(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_FlushKey, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_GetKeySecurity(pipes_struct *p)
@@ -921,69 +945,71 @@ static bool api_winreg_GetKeySecurity(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_GetKeySecurity *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_GETKEYSECURITY];
-       
+
        r = talloc(NULL, struct winreg_GetKeySecurity);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_GetKeySecurity, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.sd = r->in.sd;
        r->out.result = _winreg_GetKeySecurity(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_GetKeySecurity, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_LoadKey(pipes_struct *p)
@@ -994,67 +1020,69 @@ static bool api_winreg_LoadKey(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_LoadKey *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_LOADKEY];
-       
+
        r = talloc(NULL, struct winreg_LoadKey);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_LoadKey, r);
-       
+       }
+
        r->out.result = _winreg_LoadKey(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_LoadKey, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_NotifyChangeKeyValue(pipes_struct *p)
@@ -1065,67 +1093,69 @@ static bool api_winreg_NotifyChangeKeyValue(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_NotifyChangeKeyValue *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_NOTIFYCHANGEKEYVALUE];
-       
+
        r = talloc(NULL, struct winreg_NotifyChangeKeyValue);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_NotifyChangeKeyValue, r);
-       
+       }
+
        r->out.result = _winreg_NotifyChangeKeyValue(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_NotifyChangeKeyValue, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_OpenKey(pipes_struct *p)
@@ -1136,74 +1166,76 @@ static bool api_winreg_OpenKey(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_OpenKey *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_OPENKEY];
-       
+
        r = talloc(NULL, struct winreg_OpenKey);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_OpenKey, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.handle = talloc_zero(r, struct policy_handle);
        if (r->out.handle == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _winreg_OpenKey(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_OpenKey, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_QueryInfoKey(pipes_struct *p)
@@ -1214,117 +1246,119 @@ static bool api_winreg_QueryInfoKey(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_QueryInfoKey *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_QUERYINFOKEY];
-       
+
        r = talloc(NULL, struct winreg_QueryInfoKey);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_QueryInfoKey, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.classname = r->in.classname;
        r->out.num_subkeys = talloc_zero(r, uint32_t);
        if (r->out.num_subkeys == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.max_subkeylen = talloc_zero(r, uint32_t);
        if (r->out.max_subkeylen == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.max_classlen = talloc_zero(r, uint32_t);
        if (r->out.max_classlen == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.num_values = talloc_zero(r, uint32_t);
        if (r->out.num_values == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.max_valnamelen = talloc_zero(r, uint32_t);
        if (r->out.max_valnamelen == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.max_valbufsize = talloc_zero(r, uint32_t);
        if (r->out.max_valbufsize == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.secdescsize = talloc_zero(r, uint32_t);
        if (r->out.secdescsize == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.last_changed_time = talloc_zero(r, NTTIME);
        if (r->out.last_changed_time == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _winreg_QueryInfoKey(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_QueryInfoKey, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_QueryValue(pipes_struct *p)
@@ -1335,72 +1369,74 @@ static bool api_winreg_QueryValue(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_QueryValue *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_QUERYVALUE];
-       
+
        r = talloc(NULL, struct winreg_QueryValue);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_QueryValue, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.type = r->in.type;
        r->out.data = r->in.data;
        r->out.data_size = r->in.data_size;
        r->out.value_length = r->in.value_length;
        r->out.result = _winreg_QueryValue(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_QueryValue, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_ReplaceKey(pipes_struct *p)
@@ -1411,67 +1447,69 @@ static bool api_winreg_ReplaceKey(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_ReplaceKey *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_REPLACEKEY];
-       
+
        r = talloc(NULL, struct winreg_ReplaceKey);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_ReplaceKey, r);
-       
+       }
+
        r->out.result = _winreg_ReplaceKey(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_ReplaceKey, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_RestoreKey(pipes_struct *p)
@@ -1482,67 +1520,69 @@ static bool api_winreg_RestoreKey(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_RestoreKey *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_RESTOREKEY];
-       
+
        r = talloc(NULL, struct winreg_RestoreKey);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_RestoreKey, r);
-       
+       }
+
        r->out.result = _winreg_RestoreKey(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_RestoreKey, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_SaveKey(pipes_struct *p)
@@ -1553,67 +1593,69 @@ static bool api_winreg_SaveKey(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_SaveKey *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_SAVEKEY];
-       
+
        r = talloc(NULL, struct winreg_SaveKey);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_SaveKey, r);
-       
+       }
+
        r->out.result = _winreg_SaveKey(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_SaveKey, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_SetKeySecurity(pipes_struct *p)
@@ -1624,67 +1666,69 @@ static bool api_winreg_SetKeySecurity(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_SetKeySecurity *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_SETKEYSECURITY];
-       
+
        r = talloc(NULL, struct winreg_SetKeySecurity);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_SetKeySecurity, r);
-       
+       }
+
        r->out.result = _winreg_SetKeySecurity(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_SetKeySecurity, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_SetValue(pipes_struct *p)
@@ -1695,67 +1739,69 @@ static bool api_winreg_SetValue(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_SetValue *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_SETVALUE];
-       
+
        r = talloc(NULL, struct winreg_SetValue);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_SetValue, r);
-       
+       }
+
        r->out.result = _winreg_SetValue(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_SetValue, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_UnLoadKey(pipes_struct *p)
@@ -1766,67 +1812,69 @@ static bool api_winreg_UnLoadKey(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_UnLoadKey *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_UNLOADKEY];
-       
+
        r = talloc(NULL, struct winreg_UnLoadKey);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_UnLoadKey, r);
-       
+       }
+
        r->out.result = _winreg_UnLoadKey(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_UnLoadKey, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_InitiateSystemShutdown(pipes_struct *p)
@@ -1837,67 +1885,69 @@ static bool api_winreg_InitiateSystemShutdown(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_InitiateSystemShutdown *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_INITIATESYSTEMSHUTDOWN];
-       
+
        r = talloc(NULL, struct winreg_InitiateSystemShutdown);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_InitiateSystemShutdown, r);
-       
+       }
+
        r->out.result = _winreg_InitiateSystemShutdown(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_InitiateSystemShutdown, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_AbortSystemShutdown(pipes_struct *p)
@@ -1908,67 +1958,69 @@ static bool api_winreg_AbortSystemShutdown(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_AbortSystemShutdown *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_ABORTSYSTEMSHUTDOWN];
-       
+
        r = talloc(NULL, struct winreg_AbortSystemShutdown);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_AbortSystemShutdown, r);
-       
+       }
+
        r->out.result = _winreg_AbortSystemShutdown(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_AbortSystemShutdown, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_GetVersion(pipes_struct *p)
@@ -1979,74 +2031,76 @@ static bool api_winreg_GetVersion(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_GetVersion *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_GETVERSION];
-       
+
        r = talloc(NULL, struct winreg_GetVersion);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_GetVersion, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.version = talloc_zero(r, uint32_t);
        if (r->out.version == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _winreg_GetVersion(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_GetVersion, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_OpenHKCC(pipes_struct *p)
@@ -2057,74 +2111,76 @@ static bool api_winreg_OpenHKCC(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_OpenHKCC *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_OPENHKCC];
-       
+
        r = talloc(NULL, struct winreg_OpenHKCC);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_OpenHKCC, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.handle = talloc_zero(r, struct policy_handle);
        if (r->out.handle == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _winreg_OpenHKCC(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_OpenHKCC, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_OpenHKDD(pipes_struct *p)
@@ -2135,74 +2191,76 @@ static bool api_winreg_OpenHKDD(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_OpenHKDD *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_OPENHKDD];
-       
+
        r = talloc(NULL, struct winreg_OpenHKDD);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_OpenHKDD, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.handle = talloc_zero(r, struct policy_handle);
        if (r->out.handle == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _winreg_OpenHKDD(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_OpenHKDD, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_QueryMultipleValues(pipes_struct *p)
@@ -2213,71 +2271,73 @@ static bool api_winreg_QueryMultipleValues(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_QueryMultipleValues *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_QUERYMULTIPLEVALUES];
-       
+
        r = talloc(NULL, struct winreg_QueryMultipleValues);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_QueryMultipleValues, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.values = r->in.values;
        r->out.buffer = r->in.buffer;
        r->out.buffer_size = r->in.buffer_size;
        r->out.result = _winreg_QueryMultipleValues(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_QueryMultipleValues, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_InitiateSystemShutdownEx(pipes_struct *p)
@@ -2288,67 +2348,69 @@ static bool api_winreg_InitiateSystemShutdownEx(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_InitiateSystemShutdownEx *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_INITIATESYSTEMSHUTDOWNEX];
-       
+
        r = talloc(NULL, struct winreg_InitiateSystemShutdownEx);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_InitiateSystemShutdownEx, r);
-       
+       }
+
        r->out.result = _winreg_InitiateSystemShutdownEx(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_InitiateSystemShutdownEx, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_SaveKeyEx(pipes_struct *p)
@@ -2359,67 +2421,69 @@ static bool api_winreg_SaveKeyEx(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_SaveKeyEx *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_SAVEKEYEX];
-       
+
        r = talloc(NULL, struct winreg_SaveKeyEx);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_SaveKeyEx, r);
-       
+       }
+
        r->out.result = _winreg_SaveKeyEx(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_SaveKeyEx, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_OpenHKPT(pipes_struct *p)
@@ -2430,74 +2494,76 @@ static bool api_winreg_OpenHKPT(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_OpenHKPT *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_OPENHKPT];
-       
+
        r = talloc(NULL, struct winreg_OpenHKPT);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_OpenHKPT, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.handle = talloc_zero(r, struct policy_handle);
        if (r->out.handle == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _winreg_OpenHKPT(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_OpenHKPT, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_OpenHKPN(pipes_struct *p)
@@ -2508,74 +2574,76 @@ static bool api_winreg_OpenHKPN(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_OpenHKPN *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_OPENHKPN];
-       
+
        r = talloc(NULL, struct winreg_OpenHKPN);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_OpenHKPN, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.handle = talloc_zero(r, struct policy_handle);
        if (r->out.handle == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _winreg_OpenHKPN(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_OpenHKPN, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_winreg_QueryMultipleValues2(pipes_struct *p)
@@ -2586,67 +2654,69 @@ static bool api_winreg_QueryMultipleValues2(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct winreg_QueryMultipleValues2 *r;
-       
+
        call = &ndr_table_winreg.calls[NDR_WINREG_QUERYMULTIPLEVALUES2];
-       
+
        r = talloc(NULL, struct winreg_QueryMultipleValues2);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(winreg_QueryMultipleValues2, r);
-       
+       }
+
        r->out.result = _winreg_QueryMultipleValues2(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(winreg_QueryMultipleValues2, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 
index ff8c1e26039ef5f8f29ae4d79c0c4de766dbf260..ddbf3aa373f5898a4d5f775923dda381cce0ad9b 100644 (file)
@@ -14,74 +14,76 @@ static bool api_wkssvc_NetWkstaGetInfo(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetWkstaGetInfo *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETWKSTAGETINFO];
-       
+
        r = talloc(NULL, struct wkssvc_NetWkstaGetInfo);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaGetInfo, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.info = talloc_zero(r, union wkssvc_NetWkstaInfo);
        if (r->out.info == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _wkssvc_NetWkstaGetInfo(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaGetInfo, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_wkssvc_NetWkstaSetInfo(pipes_struct *p)
@@ -92,69 +94,71 @@ static bool api_wkssvc_NetWkstaSetInfo(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetWkstaSetInfo *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETWKSTASETINFO];
-       
+
        r = talloc(NULL, struct wkssvc_NetWkstaSetInfo);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaSetInfo, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.parm_error = r->in.parm_error;
        r->out.result = _wkssvc_NetWkstaSetInfo(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaSetInfo, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_wkssvc_NetWkstaEnumUsers(pipes_struct *p)
@@ -165,76 +169,78 @@ static bool api_wkssvc_NetWkstaEnumUsers(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetWkstaEnumUsers *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETWKSTAENUMUSERS];
-       
+
        r = talloc(NULL, struct wkssvc_NetWkstaEnumUsers);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaEnumUsers, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.info = r->in.info;
        r->out.entries_read = talloc_zero(r, uint32_t);
        if (r->out.entries_read == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.resume_handle = r->in.resume_handle;
        r->out.result = _wkssvc_NetWkstaEnumUsers(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaEnumUsers, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_wkssvc_NetrWkstaUserGetInfo(pipes_struct *p)
@@ -245,74 +251,76 @@ static bool api_wkssvc_NetrWkstaUserGetInfo(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetrWkstaUserGetInfo *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRWKSTAUSERGETINFO];
-       
+
        r = talloc(NULL, struct wkssvc_NetrWkstaUserGetInfo);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrWkstaUserGetInfo, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.info = talloc_zero(r, union wkssvc_NetrWkstaUserInfo);
        if (r->out.info == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _wkssvc_NetrWkstaUserGetInfo(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrWkstaUserGetInfo, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_wkssvc_NetrWkstaUserSetInfo(pipes_struct *p)
@@ -323,69 +331,71 @@ static bool api_wkssvc_NetrWkstaUserSetInfo(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetrWkstaUserSetInfo *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRWKSTAUSERSETINFO];
-       
+
        r = talloc(NULL, struct wkssvc_NetrWkstaUserSetInfo);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrWkstaUserSetInfo, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.parm_err = r->in.parm_err;
        r->out.result = _wkssvc_NetrWkstaUserSetInfo(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrWkstaUserSetInfo, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_wkssvc_NetWkstaTransportEnum(pipes_struct *p)
@@ -396,76 +406,78 @@ static bool api_wkssvc_NetWkstaTransportEnum(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetWkstaTransportEnum *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETWKSTATRANSPORTENUM];
-       
+
        r = talloc(NULL, struct wkssvc_NetWkstaTransportEnum);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaTransportEnum, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.info = r->in.info;
        r->out.total_entries = talloc_zero(r, uint32_t);
        if (r->out.total_entries == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.resume_handle = r->in.resume_handle;
        r->out.result = _wkssvc_NetWkstaTransportEnum(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaTransportEnum, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_wkssvc_NetrWkstaTransportAdd(pipes_struct *p)
@@ -476,69 +488,71 @@ static bool api_wkssvc_NetrWkstaTransportAdd(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetrWkstaTransportAdd *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRWKSTATRANSPORTADD];
-       
+
        r = talloc(NULL, struct wkssvc_NetrWkstaTransportAdd);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrWkstaTransportAdd, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.parm_err = r->in.parm_err;
        r->out.result = _wkssvc_NetrWkstaTransportAdd(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrWkstaTransportAdd, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_wkssvc_NetrWkstaTransportDel(pipes_struct *p)
@@ -549,67 +563,69 @@ static bool api_wkssvc_NetrWkstaTransportDel(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetrWkstaTransportDel *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRWKSTATRANSPORTDEL];
-       
+
        r = talloc(NULL, struct wkssvc_NetrWkstaTransportDel);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrWkstaTransportDel, r);
-       
+       }
+
        r->out.result = _wkssvc_NetrWkstaTransportDel(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrWkstaTransportDel, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_wkssvc_NetrUseAdd(pipes_struct *p)
@@ -620,69 +636,71 @@ static bool api_wkssvc_NetrUseAdd(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetrUseAdd *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRUSEADD];
-       
+
        r = talloc(NULL, struct wkssvc_NetrUseAdd);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrUseAdd, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.parm_err = r->in.parm_err;
        r->out.result = _wkssvc_NetrUseAdd(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrUseAdd, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_wkssvc_NetrUseGetInfo(pipes_struct *p)
@@ -693,74 +711,76 @@ static bool api_wkssvc_NetrUseGetInfo(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetrUseGetInfo *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRUSEGETINFO];
-       
+
        r = talloc(NULL, struct wkssvc_NetrUseGetInfo);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrUseGetInfo, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.ctr = talloc_zero(r, union wkssvc_NetrUseGetInfoCtr);
        if (r->out.ctr == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _wkssvc_NetrUseGetInfo(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrUseGetInfo, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_wkssvc_NetrUseDel(pipes_struct *p)
@@ -771,67 +791,69 @@ static bool api_wkssvc_NetrUseDel(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetrUseDel *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRUSEDEL];
-       
+
        r = talloc(NULL, struct wkssvc_NetrUseDel);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrUseDel, r);
-       
+       }
+
        r->out.result = _wkssvc_NetrUseDel(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrUseDel, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_wkssvc_NetrUseEnum(pipes_struct *p)
@@ -842,76 +864,78 @@ static bool api_wkssvc_NetrUseEnum(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetrUseEnum *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRUSEENUM];
-       
+
        r = talloc(NULL, struct wkssvc_NetrUseEnum);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrUseEnum, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.info = r->in.info;
        r->out.entries_read = talloc_zero(r, uint32_t);
        if (r->out.entries_read == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.resume_handle = r->in.resume_handle;
        r->out.result = _wkssvc_NetrUseEnum(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrUseEnum, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_wkssvc_NetrMessageBufferSend(pipes_struct *p)
@@ -922,67 +946,69 @@ static bool api_wkssvc_NetrMessageBufferSend(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetrMessageBufferSend *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRMESSAGEBUFFERSEND];
-       
+
        r = talloc(NULL, struct wkssvc_NetrMessageBufferSend);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrMessageBufferSend, r);
-       
+       }
+
        r->out.result = _wkssvc_NetrMessageBufferSend(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrMessageBufferSend, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_wkssvc_NetrWorkstationStatisticsGet(pipes_struct *p)
@@ -993,74 +1019,76 @@ static bool api_wkssvc_NetrWorkstationStatisticsGet(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetrWorkstationStatisticsGet *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRWORKSTATIONSTATISTICSGET];
-       
+
        r = talloc(NULL, struct wkssvc_NetrWorkstationStatisticsGet);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrWorkstationStatisticsGet, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.info = talloc_zero(r, struct wkssvc_NetrWorkstationStatistics *);
        if (r->out.info == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _wkssvc_NetrWorkstationStatisticsGet(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrWorkstationStatisticsGet, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_wkssvc_NetrLogonDomainNameAdd(pipes_struct *p)
@@ -1071,67 +1099,69 @@ static bool api_wkssvc_NetrLogonDomainNameAdd(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetrLogonDomainNameAdd *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRLOGONDOMAINNAMEADD];
-       
+
        r = talloc(NULL, struct wkssvc_NetrLogonDomainNameAdd);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrLogonDomainNameAdd, r);
-       
+       }
+
        r->out.result = _wkssvc_NetrLogonDomainNameAdd(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrLogonDomainNameAdd, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_wkssvc_NetrLogonDomainNameDel(pipes_struct *p)
@@ -1142,67 +1172,69 @@ static bool api_wkssvc_NetrLogonDomainNameDel(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetrLogonDomainNameDel *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRLOGONDOMAINNAMEDEL];
-       
+
        r = talloc(NULL, struct wkssvc_NetrLogonDomainNameDel);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrLogonDomainNameDel, r);
-       
+       }
+
        r->out.result = _wkssvc_NetrLogonDomainNameDel(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrLogonDomainNameDel, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_wkssvc_NetrJoinDomain(pipes_struct *p)
@@ -1213,67 +1245,69 @@ static bool api_wkssvc_NetrJoinDomain(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetrJoinDomain *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRJOINDOMAIN];
-       
+
        r = talloc(NULL, struct wkssvc_NetrJoinDomain);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrJoinDomain, r);
-       
+       }
+
        r->out.result = _wkssvc_NetrJoinDomain(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrJoinDomain, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_wkssvc_NetrUnjoinDomain(pipes_struct *p)
@@ -1284,67 +1318,69 @@ static bool api_wkssvc_NetrUnjoinDomain(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetrUnjoinDomain *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRUNJOINDOMAIN];
-       
+
        r = talloc(NULL, struct wkssvc_NetrUnjoinDomain);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrUnjoinDomain, r);
-       
+       }
+
        r->out.result = _wkssvc_NetrUnjoinDomain(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrUnjoinDomain, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_wkssvc_NetrRenameMachineInDomain(pipes_struct *p)
@@ -1355,67 +1391,69 @@ static bool api_wkssvc_NetrRenameMachineInDomain(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetrRenameMachineInDomain *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRRENAMEMACHINEINDOMAIN];
-       
+
        r = talloc(NULL, struct wkssvc_NetrRenameMachineInDomain);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrRenameMachineInDomain, r);
-       
+       }
+
        r->out.result = _wkssvc_NetrRenameMachineInDomain(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrRenameMachineInDomain, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_wkssvc_NetrValidateName(pipes_struct *p)
@@ -1426,67 +1464,69 @@ static bool api_wkssvc_NetrValidateName(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetrValidateName *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRVALIDATENAME];
-       
+
        r = talloc(NULL, struct wkssvc_NetrValidateName);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrValidateName, r);
-       
+       }
+
        r->out.result = _wkssvc_NetrValidateName(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrValidateName, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_wkssvc_NetrGetJoinInformation(pipes_struct *p)
@@ -1497,75 +1537,77 @@ static bool api_wkssvc_NetrGetJoinInformation(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetrGetJoinInformation *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRGETJOININFORMATION];
-       
+
        r = talloc(NULL, struct wkssvc_NetrGetJoinInformation);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrGetJoinInformation, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.name_buffer = r->in.name_buffer;
        r->out.name_type = talloc_zero(r, enum wkssvc_NetJoinStatus);
        if (r->out.name_type == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _wkssvc_NetrGetJoinInformation(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrGetJoinInformation, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_wkssvc_NetrGetJoinableOus(pipes_struct *p)
@@ -1576,75 +1618,77 @@ static bool api_wkssvc_NetrGetJoinableOus(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetrGetJoinableOus *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRGETJOINABLEOUS];
-       
+
        r = talloc(NULL, struct wkssvc_NetrGetJoinableOus);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrGetJoinableOus, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.num_ous = r->in.num_ous;
        r->out.ous = talloc_zero_array(r, const char **, *r->out.num_ous);
        if (r->out.ous == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _wkssvc_NetrGetJoinableOus(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrGetJoinableOus, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_wkssvc_NetrJoinDomain2(pipes_struct *p)
@@ -1655,67 +1699,69 @@ static bool api_wkssvc_NetrJoinDomain2(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetrJoinDomain2 *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRJOINDOMAIN2];
-       
+
        r = talloc(NULL, struct wkssvc_NetrJoinDomain2);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrJoinDomain2, r);
-       
+       }
+
        r->out.result = _wkssvc_NetrJoinDomain2(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrJoinDomain2, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_wkssvc_NetrUnjoinDomain2(pipes_struct *p)
@@ -1726,67 +1772,69 @@ static bool api_wkssvc_NetrUnjoinDomain2(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetrUnjoinDomain2 *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRUNJOINDOMAIN2];
-       
+
        r = talloc(NULL, struct wkssvc_NetrUnjoinDomain2);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrUnjoinDomain2, r);
-       
+       }
+
        r->out.result = _wkssvc_NetrUnjoinDomain2(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrUnjoinDomain2, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_wkssvc_NetrRenameMachineInDomain2(pipes_struct *p)
@@ -1797,67 +1845,69 @@ static bool api_wkssvc_NetrRenameMachineInDomain2(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetrRenameMachineInDomain2 *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRRENAMEMACHINEINDOMAIN2];
-       
+
        r = talloc(NULL, struct wkssvc_NetrRenameMachineInDomain2);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrRenameMachineInDomain2, r);
-       
+       }
+
        r->out.result = _wkssvc_NetrRenameMachineInDomain2(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrRenameMachineInDomain2, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_wkssvc_NetrValidateName2(pipes_struct *p)
@@ -1868,67 +1918,69 @@ static bool api_wkssvc_NetrValidateName2(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetrValidateName2 *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRVALIDATENAME2];
-       
+
        r = talloc(NULL, struct wkssvc_NetrValidateName2);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrValidateName2, r);
-       
+       }
+
        r->out.result = _wkssvc_NetrValidateName2(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrValidateName2, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_wkssvc_NetrGetJoinableOus2(pipes_struct *p)
@@ -1939,75 +1991,77 @@ static bool api_wkssvc_NetrGetJoinableOus2(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetrGetJoinableOus2 *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRGETJOINABLEOUS2];
-       
+
        r = talloc(NULL, struct wkssvc_NetrGetJoinableOus2);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrGetJoinableOus2, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.num_ous = r->in.num_ous;
        r->out.ous = talloc_zero_array(r, const char **, *r->out.num_ous);
        if (r->out.ous == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _wkssvc_NetrGetJoinableOus2(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrGetJoinableOus2, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_wkssvc_NetrAddAlternateComputerName(pipes_struct *p)
@@ -2018,67 +2072,69 @@ static bool api_wkssvc_NetrAddAlternateComputerName(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetrAddAlternateComputerName *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRADDALTERNATECOMPUTERNAME];
-       
+
        r = talloc(NULL, struct wkssvc_NetrAddAlternateComputerName);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrAddAlternateComputerName, r);
-       
+       }
+
        r->out.result = _wkssvc_NetrAddAlternateComputerName(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrAddAlternateComputerName, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_wkssvc_NetrRemoveAlternateComputerName(pipes_struct *p)
@@ -2089,67 +2145,69 @@ static bool api_wkssvc_NetrRemoveAlternateComputerName(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetrRemoveAlternateComputerName *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRREMOVEALTERNATECOMPUTERNAME];
-       
+
        r = talloc(NULL, struct wkssvc_NetrRemoveAlternateComputerName);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrRemoveAlternateComputerName, r);
-       
+       }
+
        r->out.result = _wkssvc_NetrRemoveAlternateComputerName(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrRemoveAlternateComputerName, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_wkssvc_NetrSetPrimaryComputername(pipes_struct *p)
@@ -2160,67 +2218,69 @@ static bool api_wkssvc_NetrSetPrimaryComputername(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetrSetPrimaryComputername *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRSETPRIMARYCOMPUTERNAME];
-       
+
        r = talloc(NULL, struct wkssvc_NetrSetPrimaryComputername);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrSetPrimaryComputername, r);
-       
+       }
+
        r->out.result = _wkssvc_NetrSetPrimaryComputername(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrSetPrimaryComputername, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 static bool api_wkssvc_NetrEnumerateComputerNames(pipes_struct *p)
@@ -2231,74 +2291,76 @@ static bool api_wkssvc_NetrEnumerateComputerNames(pipes_struct *p)
        enum ndr_err_code ndr_err;
        DATA_BLOB blob;
        struct wkssvc_NetrEnumerateComputerNames *r;
-       
+
        call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRENUMERATECOMPUTERNAMES];
-       
+
        r = talloc(NULL, struct wkssvc_NetrEnumerateComputerNames);
        if (r == NULL) {
-               return False;
+               return false;
        }
-       
+
        if (!prs_data_blob(&p->in_data.data, &blob, r)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull = ndr_pull_init_blob(&blob, r);
        if (pull == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        pull->flags |= LIBNDR_FLAG_REF_ALLOC;
        ndr_err = call->ndr_pull(pull, NDR_IN, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(wkssvc_NetrEnumerateComputerNames, r);
-       
+       }
+
        ZERO_STRUCT(r->out);
        r->out.ctr = talloc_zero(r, struct wkssvc_ComputerNamesCtr *);
        if (r->out.ctr == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        r->out.result = _wkssvc_NetrEnumerateComputerNames(p, r);
-       
+
        if (p->rng_fault_state) {
                talloc_free(r);
-               /* Return True here, srv_pipe_hnd.c will take care */
-               return True;
+               /* Return true here, srv_pipe_hnd.c will take care */
+               return true;
        }
-       
-       if (DEBUGLEVEL >= 10)
+
+       if (DEBUGLEVEL >= 10) {
                NDR_PRINT_OUT_DEBUG(wkssvc_NetrEnumerateComputerNames, r);
-       
+       }
+
        push = ndr_push_init_ctx(r);
        if (push == NULL) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        ndr_err = call->ndr_push(push, NDR_OUT, r);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        blob = ndr_push_blob(push);
-       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+       if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
                talloc_free(r);
-               return False;
+               return false;
        }
-       
+
        talloc_free(r);
-       
-       return True;
+
+       return true;
 }
 
 
index 54504f608da05ad446b49293ef1895cf5661006d..aab77a3d54f47223b87921ae16ccfb14421e4e1d 100644 (file)
@@ -297,6 +297,7 @@ bool cli_NetServerEnum(struct cli_state *cli, char *workgroup, uint32 stype,
                                STR_TERMINATE|STR_UPPER);
 
                if (len == (size_t)-1) {
+                       SAFE_FREE(last_entry);
                        return false;
                }
                p += len;
index fa6cbe146f68df85a2576c0e537f6457bd89674a..2a66d514005eeb18af8b7f6d9b99a8a2c75bea30 100644 (file)
@@ -1,7 +1,7 @@
 /*
    Unix SMB/CIFS implementation.
 
-   DsGetDcname
+   dsgetdcname
 
    Copyright (C) Gerald Carter 2006
    Copyright (C) Guenther Deschner 2007-2008
@@ -259,7 +259,7 @@ static NTSTATUS unpack_dsdcinfo(TALLOC_CTX *mem_ctx,
 /****************************************************************
 ****************************************************************/
 
-static char *DsGetDcName_cache_key(TALLOC_CTX *mem_ctx, const char *domain)
+static char *dsgetdcname_cache_key(TALLOC_CTX *mem_ctx, const char *domain)
 {
        if (!mem_ctx || !domain) {
                return NULL;
@@ -271,7 +271,7 @@ static char *DsGetDcName_cache_key(TALLOC_CTX *mem_ctx, const char *domain)
 /****************************************************************
 ****************************************************************/
 
-static NTSTATUS DsGetDcName_cache_delete(TALLOC_CTX *mem_ctx,
+static NTSTATUS dsgetdcname_cache_delete(TALLOC_CTX *mem_ctx,
                                        const char *domain_name)
 {
        char *key;
@@ -280,7 +280,7 @@ static NTSTATUS DsGetDcName_cache_delete(TALLOC_CTX *mem_ctx,
                return NT_STATUS_INTERNAL_DB_ERROR;
        }
 
-       key = DsGetDcName_cache_key(mem_ctx, domain_name);
+       key = dsgetdcname_cache_key(mem_ctx, domain_name);
        if (!key) {
                return NT_STATUS_NO_MEMORY;
        }
@@ -295,13 +295,13 @@ static NTSTATUS DsGetDcName_cache_delete(TALLOC_CTX *mem_ctx,
 /****************************************************************
 ****************************************************************/
 
-static NTSTATUS DsGetDcName_cache_store(TALLOC_CTX *mem_ctx,
+static NTSTATUS dsgetdcname_cache_store(TALLOC_CTX *mem_ctx,
                                        const char *domain_name,
                                        struct DS_DOMAIN_CONTROLLER_INFO *info)
 {
        time_t expire_time;
        char *key;
-       bool ret = False;
+       bool ret = false;
        DATA_BLOB blob;
        unsigned char *buf = NULL;
        int len = 0;
@@ -310,7 +310,7 @@ static NTSTATUS DsGetDcName_cache_store(TALLOC_CTX *mem_ctx,
                return NT_STATUS_INTERNAL_DB_ERROR;
        }
 
-       key = DsGetDcName_cache_key(mem_ctx, domain_name);
+       key = dsgetdcname_cache_key(mem_ctx, domain_name);
        if (!key) {
                return NT_STATUS_NO_MEMORY;
        }
@@ -341,7 +341,7 @@ static NTSTATUS DsGetDcName_cache_store(TALLOC_CTX *mem_ctx,
 /****************************************************************
 ****************************************************************/
 
-static NTSTATUS DsGetDcName_cache_refresh(TALLOC_CTX *mem_ctx,
+static NTSTATUS dsgetdcname_cache_refresh(TALLOC_CTX *mem_ctx,
                                          const char *domain_name,
                                          struct GUID *domain_guid,
                                          uint32_t flags,
@@ -358,9 +358,9 @@ static NTSTATUS DsGetDcName_cache_refresh(TALLOC_CTX *mem_ctx,
        if (ads_cldap_netlogon(info->domain_controller_name,
                               info->domain_name, &r)) {
 
-               DsGetDcName_cache_delete(mem_ctx, domain_name);
+               dsgetdcname_cache_delete(mem_ctx, domain_name);
 
-               return DsGetDcName_cache_store(mem_ctx,
+               return dsgetdcname_cache_store(mem_ctx,
                                               info->domain_name,
                                               info);
        }
@@ -371,7 +371,7 @@ static NTSTATUS DsGetDcName_cache_refresh(TALLOC_CTX *mem_ctx,
 /****************************************************************
 ****************************************************************/
 
-#define RETURN_ON_FALSE(x) if (!x) return False;
+#define RETURN_ON_FALSE(x) if (!x) return false;
 
 static bool check_cldap_reply_required_flags(uint32_t ret_flags,
                                             uint32_t req_flags)
@@ -398,13 +398,13 @@ static bool check_cldap_reply_required_flags(uint32_t ret_flags,
        if (req_flags & DS_WRITABLE_REQUIRED)
                RETURN_ON_FALSE(ret_flags & ADS_WRITABLE);
 
-       return True;
+       return true;
 }
 
 /****************************************************************
 ****************************************************************/
 
-static NTSTATUS DsGetDcName_cache_fetch(TALLOC_CTX *mem_ctx,
+static NTSTATUS dsgetdcname_cache_fetch(TALLOC_CTX *mem_ctx,
                                        const char *domain_name,
                                        struct GUID *domain_guid,
                                        uint32_t flags,
@@ -420,7 +420,7 @@ static NTSTATUS DsGetDcName_cache_fetch(TALLOC_CTX *mem_ctx,
                return NT_STATUS_INTERNAL_DB_ERROR;
        }
 
-       key = DsGetDcName_cache_key(mem_ctx, domain_name);
+       key = dsgetdcname_cache_key(mem_ctx, domain_name);
        if (!key) {
                return NT_STATUS_NO_MEMORY;
        }
@@ -454,7 +454,7 @@ static NTSTATUS DsGetDcName_cache_fetch(TALLOC_CTX *mem_ctx,
 /****************************************************************
 ****************************************************************/
 
-static NTSTATUS DsGetDcName_cached(TALLOC_CTX *mem_ctx,
+static NTSTATUS dsgetdcname_cached(TALLOC_CTX *mem_ctx,
                                   const char *domain_name,
                                   struct GUID *domain_guid,
                                   uint32_t flags,
@@ -462,12 +462,12 @@ static NTSTATUS DsGetDcName_cached(TALLOC_CTX *mem_ctx,
                                   struct DS_DOMAIN_CONTROLLER_INFO **info)
 {
        NTSTATUS status;
-       bool expired = False;
+       bool expired = false;
 
-       status = DsGetDcName_cache_fetch(mem_ctx, domain_name, domain_guid,
+       status = dsgetdcname_cache_fetch(mem_ctx, domain_name, domain_guid,
                                         flags, site_name, info, &expired);
        if (!NT_STATUS_IS_OK(status)) {
-               DEBUG(10,("DsGetDcName_cached: cache fetch failed with: %s\n",
+               DEBUG(10,("dsgetdcname_cached: cache fetch failed with: %s\n",
                        nt_errstr(status)));
                return NT_STATUS_DOMAIN_CONTROLLER_NOT_FOUND;
        }
@@ -477,7 +477,7 @@ static NTSTATUS DsGetDcName_cached(TALLOC_CTX *mem_ctx,
        }
 
        if (expired) {
-               status = DsGetDcName_cache_refresh(mem_ctx, domain_name,
+               status = dsgetdcname_cache_refresh(mem_ctx, domain_name,
                                                   domain_guid, flags,
                                                   site_name, *info);
                if (!NT_STATUS_IS_OK(status)) {
@@ -503,24 +503,24 @@ static bool check_allowed_required_flags(uint32_t flags)
        debug_dsdcinfo_flags(10, flags);
 
        if (return_type == (DS_RETURN_FLAT_NAME|DS_RETURN_DNS_NAME)) {
-               return False;
+               return false;
        }
 
        if (offered_type == (DS_IS_DNS_NAME|DS_IS_FLAT_NAME)) {
-               return False;
+               return false;
        }
 
        if (query_type == (DS_BACKGROUND_ONLY|DS_FORCE_REDISCOVERY)) {
-               return False;
+               return false;
        }
 
 #if 0
        if ((flags & DS_RETURN_DNS_NAME) && (!(flags & DS_IP_REQUIRED))) {
                printf("gd: here5 \n");
-               return False;
+               return false;
        }
 #endif
-       return True;
+       return true;
 }
 
 /****************************************************************
@@ -739,7 +739,7 @@ static NTSTATUS process_dc_dns(TALLOC_CTX *mem_ctx,
                               struct DS_DOMAIN_CONTROLLER_INFO **info)
 {
        int i = 0;
-       bool valid_dc = False;
+       bool valid_dc = false;
        struct cldap_netlogon_reply r;
        const char *dc_hostname, *dc_domain_name;
        const char *dc_address;
@@ -754,7 +754,7 @@ static NTSTATUS process_dc_dns(TALLOC_CTX *mem_ctx,
                if ((ads_cldap_netlogon(dclist[i]->hostname,
                                        domain_name, &r)) &&
                    (check_cldap_reply_required_flags(r.flags, flags))) {
-                       valid_dc = True;
+                       valid_dc = true;
                        break;
                }
 
@@ -837,7 +837,7 @@ static NTSTATUS process_dc_netbios(TALLOC_CTX *mem_ctx,
 /****************************************************************
 ****************************************************************/
 
-static NTSTATUS DsGetDcName_rediscover(TALLOC_CTX *mem_ctx,
+static NTSTATUS dsgetdcname_rediscover(TALLOC_CTX *mem_ctx,
                                       const char *domain_name,
                                       struct GUID *domain_guid,
                                       uint32_t flags,
@@ -848,7 +848,7 @@ static NTSTATUS DsGetDcName_rediscover(TALLOC_CTX *mem_ctx,
        struct ip_service_name *dclist;
        int num_dcs;
 
-       DEBUG(10,("DsGetDcName_rediscover\n"));
+       DEBUG(10,("dsgetdcname_rediscover\n"));
 
        if (flags & DS_IS_FLAT_NAME) {
 
@@ -893,7 +893,7 @@ static NTSTATUS DsGetDcName_rediscover(TALLOC_CTX *mem_ctx,
 /********************************************************************
 ********************************************************************/
 
-NTSTATUS DsGetDcName_remote(TALLOC_CTX *mem_ctx,
+NTSTATUS dsgetdcname_remote(TALLOC_CTX *mem_ctx,
                            const char *computer_name,
                            const char *domain_name,
                            struct GUID *domain_guid,
@@ -946,7 +946,7 @@ NTSTATUS DsGetDcName_remote(TALLOC_CTX *mem_ctx,
 /********************************************************************
 ********************************************************************/
 
-NTSTATUS DsGetDcName_local(TALLOC_CTX *mem_ctx,
+NTSTATUS dsgetdcname_local(TALLOC_CTX *mem_ctx,
                           const char *computer_name,
                           const char *domain_name,
                           struct GUID *domain_guid,
@@ -968,7 +968,7 @@ NTSTATUS DsGetDcName_local(TALLOC_CTX *mem_ctx,
                goto rediscover;
        }
 
-       status = DsGetDcName_cached(mem_ctx, domain_name, domain_guid,
+       status = dsgetdcname_cached(mem_ctx, domain_name, domain_guid,
                                    flags, site_name, &myinfo);
        if (NT_STATUS_IS_OK(status)) {
                *info = myinfo;
@@ -980,12 +980,12 @@ NTSTATUS DsGetDcName_local(TALLOC_CTX *mem_ctx,
        }
 
  rediscover:
-       status = DsGetDcName_rediscover(mem_ctx, domain_name,
+       status = dsgetdcname_rediscover(mem_ctx, domain_name,
                                        domain_guid, flags, site_name,
                                        &myinfo);
 
        if (NT_STATUS_IS_OK(status)) {
-               DsGetDcName_cache_store(mem_ctx, domain_name, myinfo);
+               dsgetdcname_cache_store(mem_ctx, domain_name, myinfo);
                *info = myinfo;
        }
 
@@ -993,12 +993,12 @@ NTSTATUS DsGetDcName_local(TALLOC_CTX *mem_ctx,
 }
 
 /********************************************************************
DsGetDcName.
dsgetdcname.
 
  This will be the only public function here.
 ********************************************************************/
 
-NTSTATUS DsGetDcName(TALLOC_CTX *mem_ctx,
+NTSTATUS dsgetdcname(TALLOC_CTX *mem_ctx,
                     const char *computer_name,
                     const char *domain_name,
                     struct GUID *domain_guid,
@@ -1006,7 +1006,7 @@ NTSTATUS DsGetDcName(TALLOC_CTX *mem_ctx,
                     uint32_t flags,
                     struct DS_DOMAIN_CONTROLLER_INFO **info)
 {
-       DEBUG(10,("DsGetDcName: computer_name: %s, domain_name: %s, "
+       DEBUG(10,("dsgetdcname: computer_name: %s, domain_name: %s, "
                  "domain_guid: %s, site_name: %s, flags: 0x%08x\n",
                  computer_name, domain_name,
                  domain_guid ? GUID_string(mem_ctx, domain_guid) : "(null)",
@@ -1015,7 +1015,7 @@ NTSTATUS DsGetDcName(TALLOC_CTX *mem_ctx,
        *info = NULL;
 
        if (computer_name) {
-               return DsGetDcName_remote(mem_ctx,
+               return dsgetdcname_remote(mem_ctx,
                                          computer_name,
                                          domain_name,
                                          domain_guid,
@@ -1024,7 +1024,7 @@ NTSTATUS DsGetDcName(TALLOC_CTX *mem_ctx,
                                          info);
        }
 
-       return DsGetDcName_local(mem_ctx,
+       return dsgetdcname_local(mem_ctx,
                                 computer_name,
                                 domain_name,
                                 domain_guid,
index 2ec8cd29386d404cc8dc426ab065951c8caa3d8b..113b994bc72108e5989459e9e65e92818f5c0550 100644 (file)
@@ -102,7 +102,7 @@ bool is_locked(files_struct *fsp,
                        DEBUG(10,("is_locked: optimisation - level II oplock on file %s\n", fsp->fsp_name ));
                        ret = False;
                } else {
-                       struct byte_range_lock *br_lck = brl_get_locks_readonly(NULL, fsp);
+                       struct byte_range_lock *br_lck = brl_get_locks_readonly(talloc_tos(), fsp);
                        if (!br_lck) {
                                return False;
                        }
@@ -116,7 +116,7 @@ bool is_locked(files_struct *fsp,
                        TALLOC_FREE(br_lck);
                }
        } else {
-               struct byte_range_lock *br_lck = brl_get_locks_readonly(NULL, fsp);
+               struct byte_range_lock *br_lck = brl_get_locks_readonly(talloc_tos(), fsp);
                if (!br_lck) {
                        return False;
                }
@@ -160,7 +160,7 @@ NTSTATUS query_lock(files_struct *fsp,
                return NT_STATUS_OK;
        }
 
-       br_lck = brl_get_locks_readonly(NULL, fsp);
+       br_lck = brl_get_locks_readonly(talloc_tos(), fsp);
        if (!br_lck) {
                return NT_STATUS_NO_MEMORY;
        }
@@ -210,7 +210,7 @@ struct byte_range_lock *do_lock(struct messaging_context *msg_ctx,
                lock_flav_name(lock_flav), lock_type_name(lock_type),
                (double)offset, (double)count, fsp->fnum, fsp->fsp_name ));
 
-       br_lck = brl_get_locks(NULL, fsp);
+       br_lck = brl_get_locks(talloc_tos(), fsp);
        if (!br_lck) {
                *perr = NT_STATUS_NO_MEMORY;
                return NULL;
@@ -269,7 +269,7 @@ NTSTATUS do_unlock(struct messaging_context *msg_ctx,
        DEBUG(10,("do_unlock: unlock start=%.0f len=%.0f requested for fnum %d file %s\n",
                  (double)offset, (double)count, fsp->fnum, fsp->fsp_name ));
 
-       br_lck = brl_get_locks(NULL, fsp);
+       br_lck = brl_get_locks(talloc_tos(), fsp);
        if (!br_lck) {
                return NT_STATUS_NO_MEMORY;
        }
@@ -323,7 +323,7 @@ NTSTATUS do_lock_cancel(files_struct *fsp,
        DEBUG(10,("do_lock_cancel: cancel start=%.0f len=%.0f requested for fnum %d file %s\n",
                  (double)offset, (double)count, fsp->fnum, fsp->fsp_name ));
 
-       br_lck = brl_get_locks(NULL, fsp);
+       br_lck = brl_get_locks(talloc_tos(), fsp);
        if (!br_lck) {
                return NT_STATUS_NO_MEMORY;
        }
@@ -372,7 +372,7 @@ void locking_close_file(struct messaging_context *msg_ctx,
                return;
        }
 
-       br_lck = brl_get_locks(NULL,fsp);
+       br_lck = brl_get_locks(talloc_tos(),fsp);
 
        if (br_lck) {
                cancel_pending_lock_requests_by_fid(fsp, br_lck);
@@ -925,7 +925,7 @@ bool get_delete_on_close_flag(struct file_id id)
        bool result;
        struct share_mode_lock *lck;
   
-       if (!(lck = fetch_share_mode_unlocked(NULL, id, NULL, NULL))) {
+       if (!(lck = fetch_share_mode_unlocked(talloc_tos(), id, NULL, NULL))) {
                return False;
        }
        result = lck->delete_on_close;
@@ -1328,7 +1328,7 @@ bool set_delete_on_close(files_struct *fsp, bool delete_on_close, UNIX_USER_TOKE
                return True;
        }
 
-       lck = get_share_mode_lock(NULL, fsp->file_id, NULL, NULL);
+       lck = get_share_mode_lock(talloc_tos(), fsp->file_id, NULL, NULL);
        if (lck == NULL) {
                return False;
        }
index 6eb74e66edd8a547a42407109d19f93f929cdfc3..be934f6bd602c0db70e28ddc2bad24c2fad88abd 100644 (file)
@@ -48,7 +48,6 @@ static void * g_readbuf = NULL;
 static bool prime_cache(
             struct vfs_handle_struct *  handle,
                        files_struct *                  fsp,
-                       int                                     fd,
                        SMB_OFF_T                           offset,
                        size_t                              count)
 {
@@ -75,7 +74,7 @@ static bool prime_cache(
             MODULE, (long long)g_readsz, (long long)*last,
             fsp->fsp_name));
 
-        nread = sys_pread(fd, g_readbuf, g_readsz, *last);
+        nread = sys_pread(fsp->fh->fd, g_readbuf, g_readsz, *last);
         if (nread < 0) {
             *last = -1;
             return False;
@@ -125,36 +124,34 @@ static int cprime_connect(
 static ssize_t cprime_sendfile(
                 struct vfs_handle_struct *  handle,
                 int                         tofd,
-                files_struct *              fsp,
-                int                         fromfd,
+                files_struct *              fromfsp,
                 const DATA_BLOB *           header,
                 SMB_OFF_T                   offset,
                 size_t                      count)
 {
         if (g_readbuf && offset == 0) {
-                prime_cache(handle, fsp, fromfd, offset, count);
+                prime_cache(handle, fromfsp, offset, count);
         }
 
-        return SMB_VFS_NEXT_SENDFILE(handle, tofd, fsp, fromfd,
+        return SMB_VFS_NEXT_SENDFILE(handle, tofd, fromfsp,
                                      header, offset, count);
 }
 
 static ssize_t cprime_read(
                 vfs_handle_struct * handle,
                 files_struct *      fsp,
-                int                 fd,
                 void *              data,
                 size_t              count)
 {
         SMB_OFF_T offset;
 
-        offset = SMB_VFS_LSEEK(fsp, fd, 0, SEEK_CUR);
+        offset = SMB_VFS_LSEEK(fsp, 0, SEEK_CUR);
         if (offset >= 0 && g_readbuf)  {
-                prime_cache(handle, fsp, fd, offset, count);
-                SMB_VFS_LSEEK(fsp, fd, offset, SEEK_SET);
+                prime_cache(handle, fsp, offset, count);
+                SMB_VFS_LSEEK(fsp, offset, SEEK_SET);
         }
 
-        return SMB_VFS_NEXT_READ(handle, fsp, fd, data, count);
+        return SMB_VFS_NEXT_READ(handle, fsp, data, count);
 }
 
 static ssize_t cprime_pread(
@@ -165,7 +162,7 @@ static ssize_t cprime_pread(
                 SMB_OFF_T           offset)
 {
         if (g_readbuf) {
-                prime_cache(handle, fsp, fsp->fh->fd, offset, count);
+                prime_cache(handle, fsp, offset, count);
         }
 
         return SMB_VFS_NEXT_PREAD(handle, fsp, data, count, offset);
index fe7324122f7403499d47717e23c1584dbac9bd90..ac391cf00780f8461dc1bf7541063f3ef48166f1 100644 (file)
@@ -229,12 +229,11 @@ static int commit_open(
 static ssize_t commit_write(
         vfs_handle_struct * handle,
         files_struct *      fsp,
-        int                 fd,
         void *              data,
         size_t              count)
 {
         ssize_t ret;
-        ret = SMB_VFS_NEXT_WRITE(handle, fsp, fd, data, count);
+        ret = SMB_VFS_NEXT_WRITE(handle, fsp, data, count);
 
         if (ret > 0) {
                 if (commit(handle, fsp, fsp->fh->pos, ret) == -1) {
index 97138bdacf041b3bc6317e347f9af433421a66cf..e21136ccee9e0a10ef5464f0b54a87deb0a9dd40 100644 (file)
@@ -208,12 +208,12 @@ static int vfswrap_close(vfs_handle_struct *handle, files_struct *fsp, int fd)
        return result;
 }
 
-static ssize_t vfswrap_read(vfs_handle_struct *handle, files_struct *fsp, int fd, void *data, size_t n)
+static ssize_t vfswrap_read(vfs_handle_struct *handle, files_struct *fsp, void *data, size_t n)
 {
        ssize_t result;
 
        START_PROFILE_BYTES(syscall_read, n);
-       result = sys_read(fd, data, n);
+       result = sys_read(fsp->fh->fd, data, n);
        END_PROFILE(syscall_read);
        return result;
 }
@@ -230,7 +230,7 @@ static ssize_t vfswrap_pread(vfs_handle_struct *handle, files_struct *fsp, void
 
        if (result == -1 && errno == ESPIPE) {
                /* Maintain the fiction that pipes can be seeked (sought?) on. */
-               result = SMB_VFS_READ(fsp, fsp->fh->fd, data, n);
+               result = SMB_VFS_READ(fsp, data, n);
                fsp->fh->pos = 0;
        }
 
@@ -241,7 +241,7 @@ static ssize_t vfswrap_pread(vfs_handle_struct *handle, files_struct *fsp, void
        curr = SMB_VFS_LSEEK(fsp, 0, SEEK_CUR);
        if (curr == -1 && errno == ESPIPE) {
                /* Maintain the fiction that pipes can be seeked (sought?) on. */
-               result = SMB_VFS_READ(fsp, fsp->fh->fd, data, n);
+               result = SMB_VFS_READ(fsp, data, n);
                fsp->fh->pos = 0;
                return result;
        }
@@ -251,7 +251,7 @@ static ssize_t vfswrap_pread(vfs_handle_struct *handle, files_struct *fsp, void
        }
 
        errno = 0;
-       result = SMB_VFS_READ(fsp, fsp->fh->fd, data, n);
+       result = SMB_VFS_READ(fsp, data, n);
        lerrno = errno;
 
        SMB_VFS_LSEEK(fsp, curr, SEEK_SET);
@@ -262,12 +262,12 @@ static ssize_t vfswrap_pread(vfs_handle_struct *handle, files_struct *fsp, void
        return result;
 }
 
-static ssize_t vfswrap_write(vfs_handle_struct *handle, files_struct *fsp, int fd, const void *data, size_t n)
+static ssize_t vfswrap_write(vfs_handle_struct *handle, files_struct *fsp, const void *data, size_t n)
 {
        ssize_t result;
 
        START_PROFILE_BYTES(syscall_write, n);
-       result = sys_write(fd, data, n);
+       result = sys_write(fsp->fh->fd, data, n);
        END_PROFILE(syscall_write);
        return result;
 }
@@ -284,7 +284,7 @@ static ssize_t vfswrap_pwrite(vfs_handle_struct *handle, files_struct *fsp, cons
 
        if (result == -1 && errno == ESPIPE) {
                /* Maintain the fiction that pipes can be sought on. */
-               result = SMB_VFS_WRITE(fsp, fsp->fh->fd, data, n);
+               result = SMB_VFS_WRITE(fsp, data, n);
        }
 
 #else /* HAVE_PWRITE */
@@ -300,7 +300,7 @@ static ssize_t vfswrap_pwrite(vfs_handle_struct *handle, files_struct *fsp, cons
                return -1;
        }
 
-       result = SMB_VFS_WRITE(fsp, fsp->fh->fd, data, n);
+       result = SMB_VFS_WRITE(fsp, data, n);
        lerrno = errno;
 
        SMB_VFS_LSEEK(fsp, curr, SEEK_SET);
@@ -337,28 +337,27 @@ static SMB_OFF_T vfswrap_lseek(vfs_handle_struct *handle, files_struct *fsp, SMB
        return result;
 }
 
-static ssize_t vfswrap_sendfile(vfs_handle_struct *handle, int tofd, files_struct *fsp, int fromfd, const DATA_BLOB *hdr,
+static ssize_t vfswrap_sendfile(vfs_handle_struct *handle, int tofd, files_struct *fromfsp, const DATA_BLOB *hdr,
                        SMB_OFF_T offset, size_t n)
 {
        ssize_t result;
 
        START_PROFILE_BYTES(syscall_sendfile, n);
-       result = sys_sendfile(tofd, fromfd, hdr, offset, n);
+       result = sys_sendfile(tofd, fromfsp->fh->fd, hdr, offset, n);
        END_PROFILE(syscall_sendfile);
        return result;
 }
 
 static ssize_t vfswrap_recvfile(vfs_handle_struct *handle,
                        int fromfd,
-                       files_struct *fsp,
-                       int tofd,
+                       files_struct *tofsp,
                        SMB_OFF_T offset,
                        size_t n)
 {
        ssize_t result;
 
        START_PROFILE_BYTES(syscall_recvfile, n);
-       result = sys_recvfile(fromfd, tofd, offset, n);
+       result = sys_recvfile(fromfd, tofsp->fh->fd, offset, n);
        END_PROFILE(syscall_recvfile);
        return result;
 }
@@ -712,7 +711,7 @@ static int strict_allocate_ftruncate(vfs_handle_struct *handle, files_struct *fs
                SMB_OFF_T retlen;
                SMB_OFF_T current_len_to_write = MIN(sizeof(zero_space),space_to_write);
 
-               retlen = SMB_VFS_WRITE(fsp,fsp->fh->fd,(char *)zero_space,current_len_to_write);
+               retlen = SMB_VFS_WRITE(fsp,(char *)zero_space,current_len_to_write);
                if (retlen <= 0)
                        return -1;
 
@@ -787,7 +786,7 @@ static int vfswrap_ftruncate(vfs_handle_struct *handle, files_struct *fsp, SMB_O
        if (SMB_VFS_LSEEK(fsp, len-1, SEEK_SET) != len -1)
                goto done;
 
-       if (SMB_VFS_WRITE(fsp, fsp->fh->fd, &c, 1)!=1)
+       if (SMB_VFS_WRITE(fsp, &c, 1)!=1)
                goto done;
 
        /* Seek to where we were */
index 95fdc17d56109c83a2f71a7d70d57b80c795dc41..5aa9bab5b5ce9695b1f9410498b474848500bbcd 100644 (file)
@@ -113,22 +113,22 @@ static int smb_full_audit_open(vfs_handle_struct *handle,
                      const char *fname, files_struct *fsp, int flags, mode_t mode);
 static int smb_full_audit_close(vfs_handle_struct *handle, files_struct *fsp, int fd);
 static ssize_t smb_full_audit_read(vfs_handle_struct *handle, files_struct *fsp,
-                         int fd, void *data, size_t n);
+                         void *data, size_t n);
 static ssize_t smb_full_audit_pread(vfs_handle_struct *handle, files_struct *fsp,
                           void *data, size_t n, SMB_OFF_T offset);
 static ssize_t smb_full_audit_write(vfs_handle_struct *handle, files_struct *fsp,
-                          int fd, const void *data, size_t n);
+                          const void *data, size_t n);
 static ssize_t smb_full_audit_pwrite(vfs_handle_struct *handle, files_struct *fsp,
                            const void *data, size_t n,
                            SMB_OFF_T offset);
 static SMB_OFF_T smb_full_audit_lseek(vfs_handle_struct *handle, files_struct *fsp,
                             SMB_OFF_T offset, int whence);
 static ssize_t smb_full_audit_sendfile(vfs_handle_struct *handle, int tofd,
-                             files_struct *fsp, int fromfd,
+                             files_struct *fromfsp,
                              const DATA_BLOB *hdr, SMB_OFF_T offset,
                              size_t n);
 static ssize_t smb_full_audit_recvfile(vfs_handle_struct *handle, int fromfd,
-                             files_struct *fsp, int tofd,
+                             files_struct *tofsp,
                              SMB_OFF_T offset,
                              size_t n);
 static int smb_full_audit_rename(vfs_handle_struct *handle,
@@ -1087,11 +1087,11 @@ static int smb_full_audit_close(vfs_handle_struct *handle, files_struct *fsp, in
 }
 
 static ssize_t smb_full_audit_read(vfs_handle_struct *handle, files_struct *fsp,
-                         int fd, void *data, size_t n)
+                         void *data, size_t n)
 {
        ssize_t result;
 
-       result = SMB_VFS_NEXT_READ(handle, fsp, fd, data, n);
+       result = SMB_VFS_NEXT_READ(handle, fsp, data, n);
 
        do_log(SMB_VFS_OP_READ, (result >= 0), handle, "%s", fsp->fsp_name);
 
@@ -1111,11 +1111,11 @@ static ssize_t smb_full_audit_pread(vfs_handle_struct *handle, files_struct *fsp
 }
 
 static ssize_t smb_full_audit_write(vfs_handle_struct *handle, files_struct *fsp,
-                          int fd, const void *data, size_t n)
+                          const void *data, size_t n)
 {
        ssize_t result;
 
-       result = SMB_VFS_NEXT_WRITE(handle, fsp, fd, data, n);
+       result = SMB_VFS_NEXT_WRITE(handle, fsp, data, n);
 
        do_log(SMB_VFS_OP_WRITE, (result >= 0), handle, "%s", fsp->fsp_name);
 
@@ -1149,33 +1149,31 @@ static SMB_OFF_T smb_full_audit_lseek(vfs_handle_struct *handle, files_struct *f
 }
 
 static ssize_t smb_full_audit_sendfile(vfs_handle_struct *handle, int tofd,
-                             files_struct *fsp, int fromfd,
+                             files_struct *fromfsp,
                              const DATA_BLOB *hdr, SMB_OFF_T offset,
                              size_t n)
 {
        ssize_t result;
 
-       result = SMB_VFS_NEXT_SENDFILE(handle, tofd, fsp, fromfd, hdr,
-                                      offset, n);
+       result = SMB_VFS_NEXT_SENDFILE(handle, tofd, fromfsp, hdr, offset, n);
 
        do_log(SMB_VFS_OP_SENDFILE, (result >= 0), handle,
-              "%s", fsp->fsp_name);
+              "%s", fromfsp->fsp_name);
 
        return result;
 }
 
 static ssize_t smb_full_audit_recvfile(vfs_handle_struct *handle, int fromfd,
-                             files_struct *fsp, int tofd,
+                     files_struct *tofsp,
                              SMB_OFF_T offset,
                              size_t n)
 {
        ssize_t result;
 
-       result = SMB_VFS_NEXT_RECVFILE(handle, fromfd, fsp, tofd,
-                                      offset, n);
+       result = SMB_VFS_NEXT_RECVFILE(handle, fromfd, tofsp, offset, n);
 
        do_log(SMB_VFS_OP_RECVFILE, (result >= 0), handle,
-              "%s", fsp->fsp_name);
+              "%s", tofsp->fsp_name);
 
        return result;
 }
index b3642d558fe307a4537647ac6e2506c97477f2ac..df75814b7248dd6932601bbb1ac7424e087a45a7 100644 (file)
@@ -35,8 +35,7 @@ struct readahead_data {
 
 static ssize_t readahead_sendfile(struct vfs_handle_struct *handle,
                                        int tofd,
-                                       files_struct *fsp,
-                                       int fromfd,
+                                       files_struct *fromfsp,
                                        const DATA_BLOB *header,
                                        SMB_OFF_T offset,
                                        size_t count)
@@ -45,16 +44,16 @@ static ssize_t readahead_sendfile(struct vfs_handle_struct *handle,
 
        if ( offset % rhd->off_bound == 0) {
 #if defined(HAVE_LINUX_READAHEAD)
-               int err = readahead(fromfd, offset, (size_t)rhd->len);
+               int err = readahead(fromfsp->fh->fd, offset, (size_t)rhd->len);
                DEBUG(10,("readahead_sendfile: readahead on fd %u, offset %llu, len %u returned %d\n",
-                       (unsigned int)fromfd,
+                       (unsigned int)fromfsp->fh->fd,
                        (unsigned long long)offset,
                        (unsigned int)rhd->len,
                        err ));
 #elif defined(HAVE_POSIX_FADVISE)
-               int err = posix_fadvise(fromfd, offset, (off_t)rhd->len, POSIX_FADV_WILLNEED);
+               int err = posix_fadvise(fromfsp->fh->fd, offset, (off_t)rhd->len, POSIX_FADV_WILLNEED);
                DEBUG(10,("readahead_sendfile: posix_fadvise on fd %u, offset %llu, len %u returned %d\n",
-                       (unsigned int)fromfd,
+                       (unsigned int)fromfsp->fh->fd,
                        (unsigned long long)offset,
                        (unsigned int)rhd->len,
                        err ));
@@ -67,8 +66,7 @@ static ssize_t readahead_sendfile(struct vfs_handle_struct *handle,
        }
        return SMB_VFS_NEXT_SENDFILE(handle,
                                        tofd,
-                                       fsp,
-                                       fromfd,
+                                       fromfsp,
                                        header,
                                        offset,
                                        count);
index 90773c13951fbe036f440e3a0366c2f09d24fb55..ebe194814109096d963cfbc74acf16592f83e986 100644 (file)
@@ -331,7 +331,7 @@ subnet %s - name not found.\n", nmb_namestr(&nmb->question.question_name),
  
        /* this is not an exact calculation. the 46 is for the stats buffer
                and the 60 is to leave room for the header etc */
-       bufend = &rdata[MAX_DGRAM_SIZE] - (18 + 46 + 60);
+       bufend = &rdata[MAX_DGRAM_SIZE-1] - (18 + 46 + 60);
        countptr = buf = rdata;
        buf += 1;
        buf0 = buf;
index 9700cd1320cff77f803c7445c97579fa51fb605c..eaf19b746a412445c18d54864893f18b0c2bf9c3 100644 (file)
@@ -1588,7 +1588,7 @@ static void init_globals(bool first_time_only)
        Globals.bNTPipeSupport = True;  /* Do NT pipes by default. */
        Globals.bNTStatusSupport = True; /* Use NT status by default. */
        Globals.bStatCache = True;      /* use stat cache by default */
-       Globals.iMaxStatCacheSize = 1024; /* one Meg by default. */
+       Globals.iMaxStatCacheSize = 256; /* 256k by default */
        Globals.restrict_anonymous = 0;
        Globals.bClientLanManAuth = False;      /* Do NOT use the LanMan hash if it is available */
        Globals.bClientPlaintextAuth = False;   /* Do NOT use a plaintext password even if is requested by the server */
index 28df56bdb1dd3e31ea65f8a43c45d99cfd6509f9..90a6ff011b35a385cbb7b28a61504f386ea88e99 100644 (file)
@@ -1973,7 +1973,7 @@ static NTSTATUS ldapsam_rename_sam_account(struct pdb_methods *my_methods,
 
        /* rename the posix user */
        rename_script = SMB_STRDUP(lp_renameuser_script());
-       if (rename_script) {
+       if (rename_script == NULL) {
                return NT_STATUS_NO_MEMORY;
        }
 
index 01e5cf2cda521985df5689009b1b749bd5a01cd5..1b877ee5b4ad6c0948d2011790a0e6db918f3ab4 100644 (file)
@@ -167,7 +167,7 @@ static void enum_file_fn( const struct share_mode_entry *e,
        ZERO_STRUCT( fsp );
        fsp.file_id = e->id;
 
-       if ( (brl = brl_get_locks(NULL,&fsp)) != NULL ) {
+       if ( (brl = brl_get_locks(talloc_tos(), &fsp)) != NULL ) {
                num_locks = brl->num_locks;
                TALLOC_FREE(brl);
        }
index 4e0d5289f88e78ae3c0cd0e8f9d08995bb3cbcda..479361a8c1020117f29c2d251dab1029c3f6e02d 100644 (file)
@@ -625,7 +625,7 @@ void remove_pending_lock_requests_by_mid(int mid)
                next = blr->next;
                if(SVAL(blr->inbuf,smb_mid) == mid) {
                        files_struct *fsp = blr->fsp;
-                       struct byte_range_lock *br_lck = brl_get_locks(NULL, fsp);
+                       struct byte_range_lock *br_lck = brl_get_locks(talloc_tos(), fsp);
 
                        if (br_lck) {
                                DEBUG(10,("remove_pending_lock_requests_by_mid - removing request type %d for \
@@ -715,7 +715,7 @@ static void process_blocking_lock_queue(void)
                        fsp->fnum, fsp->fsp_name ));
 
                if(!change_to_user(conn,vuid)) {
-                       struct byte_range_lock *br_lck = brl_get_locks(NULL, fsp);
+                       struct byte_range_lock *br_lck = brl_get_locks(talloc_tos(), fsp);
 
                        /*
                         * Remove the entry and return an error to the client.
@@ -741,7 +741,7 @@ static void process_blocking_lock_queue(void)
                }
 
                if(!set_current_service(conn,SVAL(blr->inbuf,smb_flg),True)) {
-                       struct byte_range_lock *br_lck = brl_get_locks(NULL, fsp);
+                       struct byte_range_lock *br_lck = brl_get_locks(talloc_tos(), fsp);
 
                        /*
                         * Remove the entry and return an error to the client.
@@ -773,7 +773,7 @@ static void process_blocking_lock_queue(void)
                 */
 
                if(blocking_lock_record_process(blr)) {
-                       struct byte_range_lock *br_lck = brl_get_locks(NULL, fsp);
+                       struct byte_range_lock *br_lck = brl_get_locks(talloc_tos(), fsp);
 
                        if (br_lck) {
                                brl_lock_cancel(br_lck,
@@ -800,7 +800,7 @@ static void process_blocking_lock_queue(void)
                 */
 
                if (!timeval_is_zero(&blr->expire_time) && timeval_compare(&blr->expire_time, &tv_curr) <= 0) {
-                       struct byte_range_lock *br_lck = brl_get_locks(NULL, fsp);
+                       struct byte_range_lock *br_lck = brl_get_locks(talloc_tos(), fsp);
 
                        /*
                         * Lock expired - throw away all previously
index 5d30e467d0979dff9c12dbd8b6548a2445f10829..4c385d7611837f74823fa43f6d09aab48c3e07c2 100644 (file)
@@ -163,7 +163,8 @@ static NTSTATUS close_remove_share_mode(files_struct *fsp,
                                        enum file_close_type close_type)
 {
        connection_struct *conn = fsp->conn;
-       bool delete_file = False;
+       bool delete_file = false;
+       bool changed_user = false;
        struct share_mode_lock *lck;
        SMB_STRUCT_STAT sbuf;
        NTSTATUS status = NT_STATUS_OK;
@@ -176,7 +177,7 @@ static NTSTATUS close_remove_share_mode(files_struct *fsp,
         * This prevents race conditions with the file being created. JRA.
         */
 
-       lck = get_share_mode_lock(NULL, fsp->file_id, NULL, NULL);
+       lck = get_share_mode_lock(talloc_tos(), fsp->file_id, NULL, NULL);
 
        if (lck == NULL) {
                DEBUG(0, ("close_remove_share_mode: Could not get share mode "
@@ -246,18 +247,27 @@ static NTSTATUS close_remove_share_mode(files_struct *fsp,
        DEBUG(5,("close_remove_share_mode: file %s. Delete on close was set "
                 "- deleting file.\n", fsp->fsp_name));
 
-       /* Become the user who requested the delete. */
+       if (!unix_token_equal(lck->delete_token, &current_user.ut)) {
+               /* Become the user who requested the delete. */
 
-       if (!push_sec_ctx()) {
-               smb_panic("close_remove_share_mode: file %s. failed to push "
-                         "sec_ctx.\n");
-       }
+               DEBUG(5,("close_remove_share_mode: file %s. "
+                       "Change user to uid %u\n",
+                       fsp->fsp_name,
+                       (unsigned int)lck->delete_token->uid));
 
-       set_sec_ctx(lck->delete_token->uid,
-                   lck->delete_token->gid,
-                   lck->delete_token->ngroups,
-                   lck->delete_token->groups,
-                   NULL);
+               if (!push_sec_ctx()) {
+                       smb_panic("close_remove_share_mode: file %s. failed to push "
+                                 "sec_ctx.\n");
+               }
+
+               set_sec_ctx(lck->delete_token->uid,
+                           lck->delete_token->gid,
+                           lck->delete_token->ngroups,
+                           lck->delete_token->groups,
+                           NULL);
+
+               changed_user = true;
+       }
 
        /* We can only delete the file if the name we have is still valid and
           hasn't been renamed. */
@@ -326,9 +336,11 @@ static NTSTATUS close_remove_share_mode(files_struct *fsp,
 
  done:
 
-       /* unbecome user. */
-       pop_sec_ctx();
-       
+       if (changed_user) {
+               /* unbecome user. */
+               pop_sec_ctx();
+       }
+
        TALLOC_FREE(lck);
        return status;
 }
@@ -441,7 +453,7 @@ static NTSTATUS close_directory(files_struct *fsp, enum file_close_type close_ty
         * reference to a directory also.
         */
 
-       lck = get_share_mode_lock(NULL, fsp->file_id, NULL, NULL);
+       lck = get_share_mode_lock(talloc_tos(), fsp->file_id, NULL, NULL);
 
        if (lck == NULL) {
                DEBUG(0, ("close_directory: Could not get share mode lock for %s\n", fsp->fsp_name));
index 95e45a699003594ae642918b983c065c7ff7aff4..016c8adb1bd59d2e39ab93f51900c1cd189b7c32 100644 (file)
@@ -132,7 +132,7 @@ bool claim_connection(connection_struct *conn, const char *name,
 
        DEBUG(5,("claiming [%s]\n", name));
 
-       if (!(rec = connections_fetch_entry(NULL, conn, name))) {
+       if (!(rec = connections_fetch_entry(talloc_tos(), conn, name))) {
                DEBUG(0, ("connections_fetch_entry failed\n"));
                return False;
        }
index ae64c06215687d9982d3e018941dee9456d32ae3..e8df732ea23f3f59e30a03cb257f902b59dde181 100644 (file)
@@ -1604,7 +1604,6 @@ static void call_nt_transact_query_security_desc(connection_struct *conn,
        SEC_DESC *psd = NULL;
        size_t sd_size;
        uint32 security_info_wanted;
-       TALLOC_CTX *frame;
        files_struct *fsp = NULL;
        NTSTATUS status;
        DATA_BLOB blob;
@@ -1631,8 +1630,6 @@ static void call_nt_transact_query_security_desc(connection_struct *conn,
                return;
        }
 
-       frame = talloc_stackframe();
-
        /*
         * Get the permissions to return.
         */
@@ -1651,7 +1648,6 @@ static void call_nt_transact_query_security_desc(connection_struct *conn,
        }
 
        if (!NT_STATUS_IS_OK(status)) {
-               TALLOC_FREE(frame);
                reply_nterror(req, status);
                return;
        }
@@ -1665,7 +1661,6 @@ static void call_nt_transact_query_security_desc(connection_struct *conn,
        if (max_data_count < sd_size) {
                send_nt_replies(conn, req, NT_STATUS_BUFFER_TOO_SMALL,
                                params, 4, *ppdata, 0);
-               TALLOC_FREE(frame);
                return;
        }
 
@@ -1675,7 +1670,6 @@ static void call_nt_transact_query_security_desc(connection_struct *conn,
 
        data = nttrans_realloc(ppdata, sd_size);
        if(data == NULL) {
-               TALLOC_FREE(frame);
                reply_doserror(req, ERRDOS, ERRnomem);
                return;
        }
@@ -1684,7 +1678,6 @@ static void call_nt_transact_query_security_desc(connection_struct *conn,
                                   &blob.data, &blob.length);
 
        if (!NT_STATUS_IS_OK(status)) {
-               TALLOC_FREE(frame);
                reply_nterror(req, status);
                return;
        }
@@ -1694,7 +1687,6 @@ static void call_nt_transact_query_security_desc(connection_struct *conn,
 
        send_nt_replies(conn, req, NT_STATUS_OK, params, 4, data, (int)sd_size);
 
-       TALLOC_FREE(frame);
        return;
 }
 
index 4abe01738063fb62f9f4a0cdf42b038becd2ee43..59699dfbd0f67b08a95798d92a87fcb2bac9082e 100644 (file)
@@ -125,7 +125,7 @@ static NTSTATUS change_dir_owner_to_parent(connection_struct *conn,
        char *saved_dir = NULL;
        SMB_STRUCT_STAT sbuf;
        SMB_STRUCT_STAT parent_st;
-       TALLOC_CTX *ctx = talloc_stackframe();
+       TALLOC_CTX *ctx = talloc_tos();
        NTSTATUS status = NT_STATUS_OK;
        int ret;
 
@@ -135,7 +135,6 @@ static NTSTATUS change_dir_owner_to_parent(connection_struct *conn,
                DEBUG(0,("change_dir_owner_to_parent: failed to stat parent "
                         "directory %s. Error was %s\n",
                         inherit_from_dir, strerror(errno) ));
-               TALLOC_FREE(ctx);
                return status;
        }
 
@@ -152,7 +151,6 @@ static NTSTATUS change_dir_owner_to_parent(connection_struct *conn,
                DEBUG(0,("change_dir_owner_to_parent: failed to get "
                         "current working directory. Error was %s\n",
                         strerror(errno)));
-               TALLOC_FREE(ctx);
                return status;
        }
 
@@ -202,7 +200,6 @@ static NTSTATUS change_dir_owner_to_parent(connection_struct *conn,
 
  out:
 
-       TALLOC_FREE(ctx);
        vfs_ChDir(conn,saved_dir);
        return status;
 }
@@ -1224,7 +1221,7 @@ NTSTATUS open_file_ntcreate(connection_struct *conn,
                request_time = pml->request_time;
 
                /* Remove the deferred open entry under lock. */
-               lck = get_share_mode_lock(NULL, state->id, NULL, NULL);
+               lck = get_share_mode_lock(talloc_tos(), state->id, NULL, NULL);
                if (lck == NULL) {
                        DEBUG(0, ("could not get share mode lock\n"));
                } else {
@@ -1454,7 +1451,7 @@ NTSTATUS open_file_ntcreate(connection_struct *conn,
        if (file_existed) {
                id = vfs_file_id_from_sbuf(conn, psbuf);
 
-               lck = get_share_mode_lock(NULL, id,
+               lck = get_share_mode_lock(talloc_tos(), id,
                                          conn->connectpath,
                                          fname);
 
@@ -1681,7 +1678,7 @@ NTSTATUS open_file_ntcreate(connection_struct *conn,
 
                id = fsp->file_id;
 
-               lck = get_share_mode_lock(NULL, id,
+               lck = get_share_mode_lock(talloc_tos(), id,
                                          conn->connectpath,
                                          fname);
 
@@ -2215,7 +2212,7 @@ NTSTATUS open_directory(connection_struct *conn,
 
        string_set(&fsp->fsp_name,fname);
 
-       lck = get_share_mode_lock(NULL, fsp->file_id,
+       lck = get_share_mode_lock(talloc_tos(), fsp->file_id,
                                  conn->connectpath,
                                  fname);
 
@@ -2707,7 +2704,6 @@ NTSTATUS create_file(connection_struct *conn,
                     int *pinfo,
                     SMB_STRUCT_STAT *psbuf)
 {
-       TALLOC_CTX *frame = talloc_stackframe();
        struct case_semantics_state *case_state = NULL;
        SMB_STRUCT_STAT sbuf;
        int info = FILE_WAS_OPENED;
@@ -2845,6 +2841,8 @@ NTSTATUS create_file(connection_struct *conn,
                                goto fail;
                        }
 
+                       SET_STAT_INVALID(sbuf);
+
                        goto done;
                }
        }
@@ -2916,7 +2914,6 @@ NTSTATUS create_file(connection_struct *conn,
        if (psbuf != NULL) {
                *psbuf = sbuf;
        }
-       TALLOC_FREE(frame);
        return NT_STATUS_OK;
 
  fail:
@@ -2926,6 +2923,5 @@ NTSTATUS create_file(connection_struct *conn,
                close_file(fsp, ERROR_CLOSE);
                fsp = NULL;
        }
-       TALLOC_FREE(frame);
        return status;
 }
index 277e07c178e83f87f09e772f746b80c38710b927..420aa94fe6998eeb5ccdb1ec36d33d901954deb5 100644 (file)
@@ -181,7 +181,7 @@ bool remove_oplock(files_struct *fsp)
        struct share_mode_lock *lck;
 
        /* Remove the oplock flag from the sharemode. */
-       lck = get_share_mode_lock(NULL, fsp->file_id, NULL, NULL);
+       lck = get_share_mode_lock(talloc_tos(), fsp->file_id, NULL, NULL);
        if (lck == NULL) {
                DEBUG(0,("remove_oplock: failed to lock share entry for "
                         "file %s\n", fsp->fsp_name ));
@@ -206,7 +206,7 @@ bool downgrade_oplock(files_struct *fsp)
        bool ret;
        struct share_mode_lock *lck;
 
-       lck = get_share_mode_lock(NULL, fsp->file_id, NULL, NULL);
+       lck = get_share_mode_lock(talloc_tos(), fsp->file_id, NULL, NULL);
        if (lck == NULL) {
                DEBUG(0,("downgrade_oplock: failed to lock share entry for "
                         "file %s\n", fsp->fsp_name ));
@@ -757,7 +757,7 @@ void release_level_2_oplocks_on_change(files_struct *fsp)
        if (!LEVEL_II_OPLOCK_TYPE(fsp->oplock_type))
                return;
 
-       lck = get_share_mode_lock(NULL, fsp->file_id, NULL, NULL);
+       lck = get_share_mode_lock(talloc_tos(), fsp->file_id, NULL, NULL);
        if (lck == NULL) {
                DEBUG(0,("release_level_2_oplocks_on_change: failed to lock "
                         "share mode entry for file %s.\n", fsp->fsp_name ));
index fe32d57ff7ccada3cddfc30e4249df99bab99d9d..2d3cf7fbd8dd713334d3a0d877654307c2843c0f 100644 (file)
@@ -2071,7 +2071,7 @@ void smbd_process(void)
                char *inbuf;
                size_t inbuf_len;
                bool encrypted = false;
-               TALLOC_CTX *frame = talloc_stackframe();
+               TALLOC_CTX *frame = talloc_stackframe_pool(8192);
 
                errno = 0;
 
index a796a3193b0f62c62d795ee9c61c23f741447023..8149f5aeb66b9504afdcf65306bc7ebadd749cfe 100644 (file)
@@ -592,7 +592,8 @@ void reply_tcon_and_X(struct smb_request *req)
        }
 
        if (global_encrypted_passwords_negotiated) {
-               password = data_blob(smb_buf(req->inbuf),passlen);
+               password = data_blob_talloc(talloc_tos(), smb_buf(req->inbuf),
+                                           passlen);
                if (lp_security() == SEC_SHARE) {
                        /*
                         * Security = share always has a pad byte
@@ -603,7 +604,8 @@ void reply_tcon_and_X(struct smb_request *req)
                        p = smb_buf(req->inbuf) + passlen;
                }
        } else {
-               password = data_blob(smb_buf(req->inbuf),passlen+1);
+               password = data_blob_talloc(talloc_tos(), smb_buf(req->inbuf),
+                                           passlen+1);
                /* Ensure correct termination */
                password.data[passlen]=0;
                p = smb_buf(req->inbuf) + passlen + 1;
@@ -2652,7 +2654,7 @@ void send_file_readbraw(connection_struct *conn,
                _smb_setlen(header,nread);
                header_blob = data_blob_const(header, 4);
 
-               if ( SMB_VFS_SENDFILE( smbd_server_fd(), fsp, fsp->fh->fd,
+               if (SMB_VFS_SENDFILE(smbd_server_fd(), fsp,
                                &header_blob, startpos, nread) == -1) {
                        /* Returning ENOSYS means no data at all was sent.
                         * Do this as a normal read. */
@@ -3135,7 +3137,7 @@ static void send_file_readX(connection_struct *conn, struct smb_request *req,
                construct_reply_common((char *)req->inbuf, (char *)headerbuf);
                setup_readX_header((char *)headerbuf, smb_maxcnt);
 
-               if ((nread = SMB_VFS_SENDFILE( smbd_server_fd(), fsp, fsp->fh->fd, &header, startpos, smb_maxcnt)) == -1) {
+               if ((nread = SMB_VFS_SENDFILE(smbd_server_fd(), fsp, &header, startpos, smb_maxcnt)) == -1) {
                        /* Returning ENOSYS means no data at all was sent. Do this as a normal read. */
                        if (errno == ENOSYS) {
                                goto normal_read;
@@ -5508,7 +5510,7 @@ NTSTATUS rename_internals_fsp(connection_struct *conn,
                return NT_STATUS_ACCESS_DENIED;
        }
 
-       lck = get_share_mode_lock(NULL, fsp->file_id, NULL, NULL);
+       lck = get_share_mode_lock(talloc_tos(), fsp->file_id, NULL, NULL);
 
        /*
         * We have the file open ourselves, so not being able to get the
index 6edcc3676425e5e2711029fdebb58a849110eb9f..0f307f6a647b09eb9398692d68d18851b64f0f4d 100644 (file)
@@ -32,6 +32,23 @@ struct sec_ctx {
 static struct sec_ctx sec_ctx_stack[MAX_SEC_CTX_DEPTH + 1];
 static int sec_ctx_stack_ndx;
 
+/****************************************************************************
+ Are two UNIX tokens equal ?
+****************************************************************************/
+
+bool unix_token_equal(const UNIX_USER_TOKEN *t1, const UNIX_USER_TOKEN *t2)
+{
+       if (t1->uid != t2->uid || t1->gid != t2->gid ||
+                       t1->ngroups != t2->ngroups) {
+               return false;
+       }
+       if (memcmp(t1->groups, t2->groups,
+                       t1->ngroups*sizeof(gid_t)) != 0) {
+               return false;
+       }
+       return true;
+}
+
 /****************************************************************************
  Become the specified uid.
 ****************************************************************************/
index 43a6d62a2898c544b45a6654d13cbfe1bb7b515b..8371d17f104fa0bb55557f6024ab04cd03829a66 100644 (file)
@@ -390,8 +390,11 @@ static bool open_sockets_smbd(bool is_daemon, bool interactive, const char *smb_
                                }
 
                                s = fd_listenset[num_sockets] =
-                                       open_socket_in(SOCK_STREAM, port, 0,
-                                                       ifss, True);
+                                       open_socket_in(SOCK_STREAM,
+                                                       port,
+                                                       num_sockets == 0 ? 0 : 2,
+                                                       ifss,
+                                                       true);
                                if(s == -1) {
                                        continue;
                                }
@@ -467,8 +470,11 @@ static bool open_sockets_smbd(bool is_daemon, bool interactive, const char *smb_
                                        continue;
                                }
 
-                               s = open_socket_in(SOCK_STREAM, port, 0,
-                                                  &ss, true);
+                               s = open_socket_in(SOCK_STREAM,
+                                               port,
+                                               num_sockets == 0 ? 0 : 2,
+                                               &ss,
+                                               true);
                                if (s == -1) {
                                        continue;
                                }
index 65fc8181446aecd2b54559fca492008249fac0c3..2588a66b8b923a861061a7856f6d15964a16de12 100644 (file)
@@ -357,7 +357,6 @@ void load_registry_shares(void)
 int find_service(fstring service)
 {
        int iService;
-       TALLOC_CTX *frame = talloc_stackframe();
 
        all_string_sub(service,"\\","/",0);
 
@@ -463,8 +462,6 @@ int find_service(fstring service)
        if (iService < 0)
                DEBUG(3,("find_service() failed to find service %s\n", service));
 
-       TALLOC_FREE(frame);
-
        return (iService);
 }
 
@@ -1150,20 +1147,17 @@ static connection_struct *make_connection_snum(int snum, user_struct *vuser,
 #if SOFTLINK_OPTIMISATION
        /* resolve any soft links early if possible */
        if (vfs_ChDir(conn,conn->connectpath) == 0) {
-               TALLOC_CTX *ctx = talloc_stackframe();
+               TALLOC_CTX *ctx = talloc_tos();
                char *s = vfs_GetWd(ctx,s);
                if (!s) {
                        *status = map_nt_error_from_unix(errno);
-                       TALLOC_FREE(ctx);
                        goto err_root_exit;
                }
                if (!set_conn_connectpath(conn,s)) {
                        *status = NT_STATUS_NO_MEMORY;
-                       TALLOC_FREE(ctx);
                        goto err_root_exit;
                }
                vfs_ChDir(conn,conn->connectpath);
-               TALLOC_FREE(ctx);
        }
 #endif
 
index 485513c734395ef1d09df0da86a3c16c4f02b040..bf6802f2a6c7e1a217daec4d07aa86efd4a2a01f 100644 (file)
@@ -297,9 +297,8 @@ static unsigned int estimate_ea_size(connection_struct *conn, files_struct *fsp,
        if (!lp_ea_support(SNUM(conn))) {
                return 0;
        }
-       mem_ctx = talloc_init("estimate_ea_size");
+       mem_ctx = talloc_tos();
        (void)get_ea_list_from_file(mem_ctx, conn, fsp, fname, &total_ea_len);
-       talloc_destroy(mem_ctx);
        return total_ea_len;
 }
 
@@ -310,7 +309,7 @@ static unsigned int estimate_ea_size(connection_struct *conn, files_struct *fsp,
 static void canonicalize_ea_name(connection_struct *conn, files_struct *fsp, const char *fname, fstring unix_ea_name)
 {
        size_t total_ea_len;
-       TALLOC_CTX *mem_ctx = talloc_init("canonicalize_ea_name");
+       TALLOC_CTX *mem_ctx = talloc_tos();
        struct ea_list *ea_list = get_ea_list_from_file(mem_ctx, conn, fsp, fname, &total_ea_len);
 
        for (; ea_list; ea_list = ea_list->next) {
@@ -321,7 +320,6 @@ static void canonicalize_ea_name(connection_struct *conn, files_struct *fsp, con
                        break;
                }
        }
-       talloc_destroy(mem_ctx);
 }
 
 /****************************************************************************
@@ -1955,9 +1953,7 @@ total_data=%u (should be %u)\n", (unsigned int)total_data, (unsigned int)IVAL(pd
                        out_of_space = True;
                        finished = False;
                } else {
-                       TALLOC_CTX *sub_ctx = talloc_stackframe();
-
-                       finished = !get_lanman2_dir_entry(sub_ctx,
+                       finished = !get_lanman2_dir_entry(ctx,
                                        conn,
                                        req->flags2,
                                        mask,dirtype,info_level,
@@ -1966,8 +1962,6 @@ total_data=%u (should be %u)\n", (unsigned int)total_data, (unsigned int)IVAL(pd
                                        space_remaining, &out_of_space,
                                        &got_exact_match,
                                        &last_entry_off, ea_list);
-
-                       TALLOC_FREE(sub_ctx);
                }
 
                if (finished && out_of_space)
@@ -2303,9 +2297,7 @@ total_data=%u (should be %u)\n", (unsigned int)total_data, (unsigned int)IVAL(pd
                        out_of_space = True;
                        finished = False;
                } else {
-                       TALLOC_CTX *sub_ctx = talloc_stackframe();
-
-                       finished = !get_lanman2_dir_entry(sub_ctx,
+                       finished = !get_lanman2_dir_entry(ctx,
                                                conn,
                                                req->flags2,
                                                mask,dirtype,info_level,
@@ -2314,8 +2306,6 @@ total_data=%u (should be %u)\n", (unsigned int)total_data, (unsigned int)IVAL(pd
                                                space_remaining, &out_of_space,
                                                &got_exact_match,
                                                &last_entry_off, ea_list);
-
-                       TALLOC_FREE(sub_ctx);
                }
 
                if (finished && out_of_space)
@@ -4759,17 +4749,12 @@ static NTSTATUS smb_info_set_ea(connection_struct *conn,
                return NT_STATUS_INVALID_PARAMETER;
        }
 
-       ctx = talloc_init("SMB_INFO_SET_EA");
-       if (!ctx) {
-               return NT_STATUS_NO_MEMORY;
-       }
+       ctx = talloc_tos();
        ea_list = read_ea_list(ctx, pdata + 4, total_data - 4);
        if (!ea_list) {
-               talloc_destroy(ctx);
                return NT_STATUS_INVALID_PARAMETER;
        }
        status = set_ea(conn, fsp, fname, ea_list);
-       talloc_destroy(ctx);
 
        return status;
 }
@@ -6208,7 +6193,7 @@ static NTSTATUS smb_posix_unlink(connection_struct *conn,
         * non-POSIX opens return SHARING_VIOLATION.
         */
 
-       lck = get_share_mode_lock(NULL, fsp->file_id, NULL, NULL);
+       lck = get_share_mode_lock(talloc_tos(), fsp->file_id, NULL, NULL);
        if (lck == NULL) {
                DEBUG(0, ("smb_posix_unlink: Could not get share mode "
                        "lock for file %s\n", fsp->fsp_name));
index 9a5e0aff60ccb9a78640483f6fe238e0c4399b0e..33a3a43aa474a9a76d6e9a18e5d3ba1db2bd23f5 100644 (file)
@@ -389,8 +389,8 @@ ssize_t vfs_read_data(files_struct *fsp, char *buf, size_t byte_count)
 
        while (total < byte_count)
        {
-               ssize_t ret = SMB_VFS_READ(fsp, fsp->fh->fd, buf + total,
-                                       byte_count - total);
+               ssize_t ret = SMB_VFS_READ(fsp, buf + total,
+                                          byte_count - total);
 
                if (ret == 0) return total;
                if (ret == -1) {
@@ -445,13 +445,12 @@ ssize_t vfs_write_data(struct smb_request *req,
                req->unread_bytes = 0;
                return SMB_VFS_RECVFILE(smbd_server_fd(),
                                        fsp,
-                                       fsp->fh->fd,
                                        (SMB_OFF_T)-1,
                                        N);
        }
 
        while (total < N) {
-               ret = SMB_VFS_WRITE(fsp,fsp->fh->fd,buffer + total,N - total);
+               ret = SMB_VFS_WRITE(fsp, buffer + total, N - total);
 
                if (ret == -1)
                        return -1;
@@ -479,7 +478,6 @@ ssize_t vfs_pwrite_data(struct smb_request *req,
                req->unread_bytes = 0;
                return SMB_VFS_RECVFILE(smbd_server_fd(),
                                        fsp,
-                                       fsp->fh->fd,
                                        offset,
                                        N);
        }
@@ -662,25 +660,24 @@ int vfs_fill_sparse(files_struct *fsp, SMB_OFF_T len)
  Transfer some data (n bytes) between two file_struct's.
 ****************************************************************************/
 
-static files_struct *in_fsp;
-static files_struct *out_fsp;
-
-static ssize_t read_fn(int fd, void *buf, size_t len)
+static ssize_t vfs_read_fn(void *file, void *buf, size_t len)
 {
-       return SMB_VFS_READ(in_fsp, fd, buf, len);
+       struct files_struct *fsp = (struct files_struct *)file;
+
+       return SMB_VFS_READ(fsp, buf, len);
 }
 
-static ssize_t write_fn(int fd, const void *buf, size_t len)
+static ssize_t vfs_write_fn(void *file, const void *buf, size_t len)
 {
-       return SMB_VFS_WRITE(out_fsp, fd, buf, len);
+       struct files_struct *fsp = (struct files_struct *)file;
+
+       return SMB_VFS_WRITE(fsp, buf, len);
 }
 
 SMB_OFF_T vfs_transfer_file(files_struct *in, files_struct *out, SMB_OFF_T n)
 {
-       in_fsp = in;
-       out_fsp = out;
-
-       return transfer_file_internal(in_fsp->fh->fd, out_fsp->fh->fd, n, read_fn, write_fn);
+       return transfer_file_internal((void *)in, (void *)out, n,
+                                     vfs_read_fn, vfs_write_fn);
 }
 
 /*******************************************************************
@@ -869,14 +866,13 @@ NTSTATUS check_reduced_name(connection_struct *conn, const char *fname)
                                return map_nt_error_from_unix(errno);
                        case ENOENT:
                        {
-                               TALLOC_CTX *tmp_ctx = talloc_stackframe();
+                               TALLOC_CTX *ctx = talloc_tos();
                                char *tmp_fname = NULL;
                                char *last_component = NULL;
                                /* Last component didn't exist. Remove it and try and canonicalise the directory. */
 
-                               tmp_fname = talloc_strdup(tmp_ctx, fname);
+                               tmp_fname = talloc_strdup(ctx, fname);
                                if (!tmp_fname) {
-                                       TALLOC_FREE(tmp_ctx);
                                        return NT_STATUS_NO_MEMORY;
                                }
                                p = strrchr_m(tmp_fname, '/');
@@ -885,10 +881,9 @@ NTSTATUS check_reduced_name(connection_struct *conn, const char *fname)
                                        last_component = p;
                                } else {
                                        last_component = tmp_fname;
-                                       tmp_fname = talloc_strdup(tmp_ctx,
+                                       tmp_fname = talloc_strdup(ctx,
                                                        ".");
                                        if (!tmp_fname) {
-                                               TALLOC_FREE(tmp_ctx);
                                                return NT_STATUS_NO_MEMORY;
                                        }
                                }
@@ -900,15 +895,13 @@ NTSTATUS check_reduced_name(connection_struct *conn, const char *fname)
 #endif
                                if (!resolved_name) {
                                        DEBUG(3,("reduce_name: couldn't get realpath for %s\n", fname));
-                                       TALLOC_FREE(tmp_ctx);
                                        return map_nt_error_from_unix(errno);
                                }
-                               tmp_fname = talloc_asprintf(tmp_ctx,
+                               tmp_fname = talloc_asprintf(ctx,
                                                "%s/%s",
                                                resolved_name,
                                                last_component);
                                if (!tmp_fname) {
-                                       TALLOC_FREE(tmp_ctx);
                                        return NT_STATUS_NO_MEMORY;
                                }
 #ifdef REALPATH_TAKES_NULL
@@ -922,7 +915,6 @@ NTSTATUS check_reduced_name(connection_struct *conn, const char *fname)
                                safe_strcpy(resolved_name_buf, tmp_fname, PATH_MAX);
                                resolved_name = resolved_name_buf;
 #endif
-                               TALLOC_FREE(tmp_ctx);
                                break;
                        }
                        default:
index fbf9c3c9e383562931fc26bfd423c038e24fb550..f3b98862fee1cd0c2abc8f1eb651b63f3f170e4e 100644 (file)
@@ -279,14 +279,27 @@ static NTSTATUS cmd_open(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, c
        }
 
        fsp = SMB_MALLOC_P(struct files_struct);
+       if (fsp == NULL) {
+               return NT_STATUS_NO_MEMORY;
+       }
        fsp->fsp_name = SMB_STRDUP(argv[1]);
+       if (fsp->fsp_name == NULL) {
+               SAFE_FREE(fsp);
+               return NT_STATUS_NO_MEMORY;
+       }
        fsp->fh = SMB_MALLOC_P(struct fd_handle);
+       if (fsp->fh == NULL) {
+               SAFE_FREE(fsp->fsp_name);
+               SAFE_FREE(fsp);
+               return NT_STATUS_NO_MEMORY;
+       }
        fsp->conn = vfs->conn;
 
        fsp->fh->fd = SMB_VFS_OPEN(vfs->conn, argv[1], fsp, flags, mode);
        if (fsp->fh->fd == -1) {
                printf("open: error=%d (%s)\n", errno, strerror(errno));
                SAFE_FREE(fsp->fh);
+               SAFE_FREE(fsp->fsp_name);
                SAFE_FREE(fsp);
                return NT_STATUS_UNSUCCESSFUL;
        }
@@ -376,7 +389,7 @@ static NTSTATUS cmd_read(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, c
        }
        vfs->data_size = size;
        
-       rsize = SMB_VFS_READ(vfs->files[fd], fd, vfs->data, size);
+       rsize = SMB_VFS_READ(vfs->files[fd], vfs->data, size);
        if (rsize == -1) {
                printf("read: error=%d (%s)\n", errno, strerror(errno));
                return NT_STATUS_UNSUCCESSFUL;
@@ -409,7 +422,7 @@ static NTSTATUS cmd_write(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc,
                return NT_STATUS_UNSUCCESSFUL;
        }
 
-       wsize = SMB_VFS_WRITE(vfs->files[fd], fd, vfs->data, size);
+       wsize = SMB_VFS_WRITE(vfs->files[fd], vfs->data, size);
 
        if (wsize == -1) {
                printf("write: error=%d (%s)\n", errno, strerror(errno));
index 310af82beba289949a1f0df3081ef364d9fba2bc..80f6ba9001a19db5b0425bd78f667c30d2e321f9 100644 (file)
@@ -1446,7 +1446,6 @@ int net_ads_join(int argc, const char **argv)
        ADS_STRUCT *ads = NULL;
        ADS_STATUS status;
        NTSTATUS nt_status;
-       char *machine_account = NULL;
        char *short_domain_name = NULL;
        char *tmp_password, *password;
        TALLOC_CTX *ctx = NULL;
@@ -1684,7 +1683,6 @@ int net_ads_join(int argc, const char **argv)
 
        d_printf("Joined '%s' to realm '%s'\n", global_myname(), ads->server.realm);
 
-       SAFE_FREE(machine_account);
        TALLOC_FREE( ctx );
        ads_destroy(&ads);
 
@@ -1694,7 +1692,6 @@ fail:
        /* issue an overall failure message at the end. */
        d_printf("Failed to join domain: %s\n", get_friendly_nt_error_msg(nt_status));
 
-       SAFE_FREE(machine_account);
        TALLOC_FREE( ctx );
         ads_destroy(&ads);
 
index c661c77ce662480de4f70b6ca801a4b011b4bb94..44a0b46e4eae2871c287764e9799f6e15b16f40f 100644 (file)
@@ -47,7 +47,7 @@ DNS_ERROR DoDNSUpdate(char *pszServerName,
        OM_uint32 minor;
        struct dns_update_request *req, *resp;
 
-       if ( (num_addrs <= 0) || !iplist ) {
+       if ( (num_addrs <= 0) || !sslist ) {
                return ERROR_DNS_INVALID_PARAMETER;
        }
 
@@ -167,14 +167,16 @@ int get_my_ip_address( struct sockaddr_storage **pp_ss )
                }
 #if defined(HAVE_IPV6)
                if ((nics[i].ip.ss_family == AF_INET)) {
-                       memcpy(&list[count++], &nics[i].ip);
+                       memcpy(&list[count++], &nics[i].ip,
+                              sizeof(struct sockaddr_storage));
                } else
 #endif
-               if ((nics[i].ip.ss_family == AF_INET)) {
-                       memcpy(&list[count++], &nics[i].ip);
+               if (nics[i].ip.ss_family == AF_INET) {
+                       memcpy(&list[count++], &nics[i].ip,
+                              sizeof(struct sockaddr_storage));
                }
        }
-       *ips = list;
+       *pp_ss = list;
 
        return count;
 }
index 3a8338ec706a250be06224951504513615ae20d6..30993ae2fa7742df290b762633c9cd129d702c1b 100644 (file)
@@ -101,7 +101,7 @@ static int net_dom_unjoin(int argc, const char **argv)
        status = NetUnjoinDomain(server_name, account, password, unjoin_flags);
        if (status != 0) {
                printf("Failed to unjoin domain: %s\n",
-                       libnetapi_errstr(ctx, status));
+                       libnetapi_errstr(status));
                goto done;
        }
 
@@ -215,7 +215,7 @@ static int net_dom_join(int argc, const char **argv)
                               Account, password, join_flags);
        if (status != 0) {
                printf("Failed to join domain: %s\n",
-                       libnetapi_errstr(ctx, status));
+                       libnetapi_errstr(status));
                goto done;
        }
 
index 20298faa299520b36268960f26a114628690ebb8..765971fba3836ab4cea08874b68ea0514b671cb3 100644 (file)
@@ -401,7 +401,7 @@ static int net_lookup_dsgetdcname(int argc, const char **argv)
                site_name = sitename_fetch(domain_name);
        }
 
-       status = DsGetDcName(mem_ctx, NULL, domain_name, NULL, site_name,
+       status = dsgetdcname(mem_ctx, NULL, domain_name, NULL, site_name,
                             flags, &info);
        if (!NT_STATUS_IS_OK(status)) {
                d_printf("failed with: %s\n", nt_errstr(status));
index ee497ebf32092e667e75bbe65b2abfebd6138c49..05bd74af25b31054fe74afe851be4d5bae28522e 100644 (file)
@@ -48,7 +48,7 @@ void winbindd_dsgetdcname(struct winbindd_cli_state *state)
        state->request.domain_name
                [sizeof(state->request.domain_name)-1] = '\0';
 
-       DEBUG(3, ("[%5lu]: DsGetDcName for %s\n", (unsigned long)state->pid,
+       DEBUG(3, ("[%5lu]: dsgetdcname for %s\n", (unsigned long)state->pid,
                  state->request.domain_name));
 
        sendto_child(state, locator_child());
@@ -64,10 +64,10 @@ static enum winbindd_result dual_dsgetdcname(struct winbindd_domain *domain,
        state->request.domain_name
                [sizeof(state->request.domain_name)-1] = '\0';
 
-       DEBUG(3, ("[%5lu]: DsGetDcName for %s\n", (unsigned long)state->pid,
+       DEBUG(3, ("[%5lu]: dsgetdcname for %s\n", (unsigned long)state->pid,
                  state->request.domain_name));
 
-       result = DsGetDcName(state->mem_ctx, NULL, state->request.domain_name,
+       result = dsgetdcname(state->mem_ctx, NULL, state->request.domain_name,
                             NULL, NULL, state->request.flags, &info);
 
        if (!NT_STATUS_IS_OK(result)) {