Print this page
1575 untangle libmlrpc from SMB server
Reviewed by: Matt Barden <matt.barden@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
NEX-1409 bcmp(NULL, NULL, 0) panics in DEBUG kernel
Reviewed by: Saso Kiselkov <saso.kiselkov@nexenta.com>
Reviewed by: Josef Sipek <josef.sipek@nexenta.com>
SMB-143 OS X 10.9.2 not working with SMB2
SMB-39 Use AF_UNIX pipes for RPC


  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 *);