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-15558 SMB logon fails during 1st second after service start
Reviewed by: Matt Barden <matt.barden@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
NEX-15558 SMB logon fails during 1st second after service start
Reviewed by: Matt Barden <matt.barden@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
NEX-2225 Unable to join NexentaStor to 2008 AD
re #12435 rb3958 r10 is added 2 times to panic info
re #12393 rb3935 Kerberos and smbd disagree about who is our AD server

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/smbsrv/libmlsvc/common/mlsvc_init.c
          +++ new/usr/src/lib/smbsrv/libmlsvc/common/mlsvc_init.c
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  23      - * Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
       23 + * Copyright 2017 Nexenta Systems, Inc.  All rights reserved.
  24   24   */
  25   25  
  26   26  #include <sys/errno.h>
  27   27  #include <sys/tzfile.h>
  28   28  #include <stdlib.h>
  29   29  #include <unistd.h>
  30   30  #include <strings.h>
  31   31  #include <string.h>
  32   32  #include <rpc/xdr.h>
  33   33  #include <synch.h>
↓ open down ↓ 63 lines elided ↑ open up ↑
  97   97  mlsvc_timecheck(void *arg)
  98   98  {
  99   99          smb_domainex_t di;
 100  100  
 101  101          for (;;) {
 102  102                  (void) sleep(MLSVC_TIMECHECK_INTERVAL);
 103  103  
 104  104                  if (smb_config_get_secmode() != SMB_SECMODE_DOMAIN)
 105  105                          continue;
 106  106  
 107      -                /* Avoid interfering with DC discovery. */
 108      -                if (smb_ddiscover_wait() != 0)
 109      -                        continue;
 110      -
 111  107                  if (!smb_domain_getinfo(&di))
 112  108                          continue;
 113  109  
 114      -                ndr_srvsvc_timecheck(di.d_dci.dc_name,
      110 +                srvsvc_timecheck(di.d_dci.dc_name,
 115  111                      di.d_primary.di_nbname);
 116  112          }
 117  113  
 118  114          /*NOTREACHED*/
 119  115          return (NULL);
 120  116  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX