Print this page
1575 untangle libmlrpc ... (smbsrv)


  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
  24  * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
  25  */
  26 
  27 /*
  28  * Local Security Authority RPC (LSAR) server-side interface.
  29  */
  30 
  31 #include <unistd.h>
  32 #include <strings.h>
  33 #include <pwd.h>
  34 #include <grp.h>
  35 

  36 #include <smbsrv/libsmb.h>
  37 #include <smbsrv/libmlrpc.h>
  38 #include <smbsrv/libmlsvc.h>
  39 #include <smbsrv/ndl/lsarpc.ndl>
  40 #include <lsalib.h>
  41 #include <smbsrv/smbinfo.h>
  42 #include <smbsrv/nmpipes.h>
  43 #include <smbsrv/ntlocale.h>
  44 
  45 struct local_group_table {
  46         WORD sid_name_use;
  47         WORD domain_ix;
  48         char *sid;
  49         char *name;
  50 };
  51 
  52 static int lsarpc_key_domain;
  53 static int lsarpc_key_account;
  54 
  55 static int lsarpc_call_stub(ndr_xa_t *mxa);
  56 
  57 static int lsarpc_s_CloseHandle(void *, ndr_xa_t *);




  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
  24  * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
  25  */
  26 
  27 /*
  28  * Local Security Authority RPC (LSAR) server-side interface.
  29  */
  30 
  31 #include <unistd.h>
  32 #include <strings.h>
  33 #include <pwd.h>
  34 #include <grp.h>
  35 
  36 #include <libmlrpc/libmlrpc.h>
  37 #include <smbsrv/libsmb.h>

  38 #include <smbsrv/libmlsvc.h>
  39 #include <smbsrv/ndl/lsarpc.ndl>
  40 #include <lsalib.h>
  41 #include <smbsrv/smbinfo.h>
  42 #include <smbsrv/nmpipes.h>
  43 #include <smbsrv/ntlocale.h>
  44 
  45 struct local_group_table {
  46         WORD sid_name_use;
  47         WORD domain_ix;
  48         char *sid;
  49         char *name;
  50 };
  51 
  52 static int lsarpc_key_domain;
  53 static int lsarpc_key_account;
  54 
  55 static int lsarpc_call_stub(ndr_xa_t *mxa);
  56 
  57 static int lsarpc_s_CloseHandle(void *, ndr_xa_t *);