]> git.pld-linux.org Git - packages/samba.git/commitdiff
rediffed patches
authorJan Palus <atler@pld-linux.org>
Sat, 27 Feb 2021 12:42:30 +0000 (13:42 +0100)
committerJan Palus <atler@pld-linux.org>
Sat, 27 Feb 2021 12:42:30 +0000 (13:42 +0100)
samba-bug-9816.patch
samba-lprng-no-dot-printers.patch
server-role.patch
unicodePwd-nthash-values-over-LDAP.patch

index 5b16a6f6e7f9ed2e0b9ae9ebabbf8d4d12809053..c965c2d751f7201e6865ec2ceaf4cddf4c6826a9 100644 (file)
@@ -28,7 +28,7 @@ index 37edb31..00abad8 100644
  #ifdef _WIN32
  #define mkdir(d,m) _mkdir(d)
  #endif
  #ifdef _WIN32
  #define mkdir(d,m) _mkdir(d)
  #endif
-@@ -898,5 +903,19 @@ int rep_usleep(useconds_t sec)
+@@ -898,6 +903,20 @@ int rep_usleep(useconds_t sec)
  #ifndef HAVE_SETPROCTITLE
  void rep_setproctitle(const char *fmt, ...)
  {
  #ifndef HAVE_SETPROCTITLE
  void rep_setproctitle(const char *fmt, ...)
  {
@@ -48,6 +48,7 @@ index 37edb31..00abad8 100644
 +#endif
  }
  #endif
 +#endif
  }
  #endif
+ #ifndef HAVE_SETPROCTITLE_INIT
 -- 
 1.7.10.4
 
 -- 
 1.7.10.4
 
index 4ced8153e1fda0268824e1e1cc6ab5e5b06b5c42..35f5210be26cf14eed8417745e3070327dc7fecf 100644 (file)
@@ -10,9 +10,9 @@ diff -ur samba-3.0.26a/source3/param/loadparm.c samba-3.0.26a-lprng/source3/para
 +      return sDefault.printing;
 +}
 +
 +      return sDefault.printing;
 +}
 +
- /*******************************************************************
-  Ensure we don't use sendfile if server smb signing is active.
- ********************************************************************/
+ static uint32_t spoolss_state;
+ bool lp_disable_spoolss( void )
 --- samba-3.6.0/source3/printing/print_standard.c~     2011-08-09 13:17:47.000000000 +0200
 +++ samba-3.6.0/source3/printing/print_standard.c      2011-10-17 21:15:15.693523176 +0200
 @@ -64,6 +64,7 @@ bool std_pcap_cache_reload(const char *p
 --- samba-3.6.0/source3/printing/print_standard.c~     2011-08-09 13:17:47.000000000 +0200
 +++ samba-3.6.0/source3/printing/print_standard.c      2011-10-17 21:15:15.693523176 +0200
 @@ -64,6 +64,7 @@ bool std_pcap_cache_reload(const char *p
@@ -21,11 +21,11 @@ diff -ur samba-3.0.26a/source3/param/loadparm.c samba-3.0.26a-lprng/source3/para
        bool print_warning = false;
 +      enum printing_types printing = lp_defaultprinting();
  
        bool print_warning = false;
 +      enum printing_types printing = lp_defaultprinting();
  
-       if ((pcap_file = x_fopen(pcap_name, O_RDONLY, 0)) == NULL) {
+       if ((pcap_file = fopen(pcap_name, "r")) == NULL) {
                DEBUG(0, ("Unable to open printcap file %s for read!\n", pcap_name));
 @@ -77,6 +79,10 @@
                DEBUG(0, ("Unable to open printcap file %s for read!\n", pcap_name));
 @@ -77,6 +79,10 @@
-               if (*pcap_line == '#' || *pcap_line == 0)
                        continue;
                        continue;
+               }
  
 +              /* skip .name in case of LPRng */
 +              if (printing == PRINT_LPRNG && *name == '.')
  
 +              /* skip .name in case of LPRng */
 +              if (printing == PRINT_LPRNG && *name == '.')
index ea1ca81ae24b4b1df283b8ca466c1081be4dea20..2c2be360426dd2edab325ade802d5b16e9e6d9fb 100644 (file)
@@ -6,18 +6,18 @@
  EnvironmentFile=-@SYSCONFDIR@/sysconfig/samba
 +ExecStartPre=/bin/sh -c '[ "`samba-tool testparm --parameter-name="server role" 2>/dev/null | tail -1`" != "active directory domain controller" ]'
  ExecStart=@SBINDIR@/smbd --foreground --no-process-group $SMBDOPTIONS
  EnvironmentFile=-@SYSCONFDIR@/sysconfig/samba
 +ExecStartPre=/bin/sh -c '[ "`samba-tool testparm --parameter-name="server role" 2>/dev/null | tail -1`" != "active directory domain controller" ]'
  ExecStart=@SBINDIR@/smbd --foreground --no-process-group $SMBDOPTIONS
- ExecReload=/usr/bin/kill -HUP $MAINPID
+ ExecReload=/bin/kill -HUP $MAINPID
  LimitCORE=infinity
 --- samba-4.7.4/packaging/systemd/nmb.service.in.orig  2017-12-26 18:26:31.457609415 +0100
 +++ samba-4.7.4/packaging/systemd/nmb.service.in       2017-12-26 18:27:32.350942051 +0100
 @@ -7,6 +7,8 @@
  LimitCORE=infinity
 --- samba-4.7.4/packaging/systemd/nmb.service.in.orig  2017-12-26 18:26:31.457609415 +0100
 +++ samba-4.7.4/packaging/systemd/nmb.service.in       2017-12-26 18:27:32.350942051 +0100
 @@ -7,6 +7,8 @@
- NotifyAccess=all
+ Type=notify
  PIDFile=@PIDDIR@/nmbd.pid
  EnvironmentFile=-@SYSCONFDIR@/sysconfig/samba
 +ExecStartPre=/bin/sh -c '[ "`samba-tool testparm --parameter-name="server role" 2>/dev/null | tail -1`" != "active directory domain controller" ]'
 +ExecStartPre=/bin/sh -c '[ "`testparm -s --parameter-name="disable netbios" 2>/dev/null`" != "Yes" ]'
  ExecStart=@SBINDIR@/nmbd --foreground --no-process-group $NMBDOPTIONS
  PIDFile=@PIDDIR@/nmbd.pid
  EnvironmentFile=-@SYSCONFDIR@/sysconfig/samba
 +ExecStartPre=/bin/sh -c '[ "`samba-tool testparm --parameter-name="server role" 2>/dev/null | tail -1`" != "active directory domain controller" ]'
 +ExecStartPre=/bin/sh -c '[ "`testparm -s --parameter-name="disable netbios" 2>/dev/null`" != "Yes" ]'
  ExecStart=@SBINDIR@/nmbd --foreground --no-process-group $NMBDOPTIONS
- ExecReload=/usr/bin/kill -HUP $MAINPID
+ ExecReload=/bin/kill -HUP $MAINPID
  LimitCORE=infinity
 --- samba-4.7.4/packaging/systemd/samba.service.in.orig        2017-12-26 18:26:31.457609415 +0100
 +++ samba-4.7.4/packaging/systemd/samba.service.in     2017-12-26 18:27:52.774275149 +0100
  LimitCORE=infinity
 --- samba-4.7.4/packaging/systemd/samba.service.in.orig        2017-12-26 18:26:31.457609415 +0100
 +++ samba-4.7.4/packaging/systemd/samba.service.in     2017-12-26 18:27:52.774275149 +0100
@@ -27,5 +27,5 @@
  EnvironmentFile=-@SYSCONFDIR@/sysconfig/samba
 +ExecStartPre=/bin/sh -c '[ "`samba-tool testparm --parameter-name="server role" 2>/dev/null | tail -1`" = "active directory domain controller" ]'
  ExecStart=@SBINDIR@/samba --foreground --no-process-group $SAMBAOPTIONS
  EnvironmentFile=-@SYSCONFDIR@/sysconfig/samba
 +ExecStartPre=/bin/sh -c '[ "`samba-tool testparm --parameter-name="server role" 2>/dev/null | tail -1`" = "active directory domain controller" ]'
  ExecStart=@SBINDIR@/samba --foreground --no-process-group $SAMBAOPTIONS
- ExecReload=/usr/bin/kill -HUP $MAINPID
+ ExecReload=/bin/kill -HUP $MAINPID
+ @systemd_samba_extra@
index e7f7c420165558d0a9a5b0137d7939e6ac3d660d..5d50f43eff1da12f3b9d226e452ff206f558b63d 100644 (file)
@@ -10,8 +10,8 @@ Allow setting unicodePwd with NTHash vlue over LDAP
 -      { DSDB_CONTROL_PASSWORD_HASH_VALUES_OID, NULL, NULL },
 +      { DSDB_CONTROL_PASSWORD_HASH_VALUES_OID, decode_flag_request, encode_flag_request },
        { DSDB_CONTROL_PASSWORD_CHANGE_OID, NULL, NULL },
 -      { DSDB_CONTROL_PASSWORD_HASH_VALUES_OID, NULL, NULL },
 +      { DSDB_CONTROL_PASSWORD_HASH_VALUES_OID, decode_flag_request, encode_flag_request },
        { DSDB_CONTROL_PASSWORD_CHANGE_OID, NULL, NULL },
+       { DSDB_CONTROL_PASSWORD_ACL_VALIDATION_OID, NULL, NULL },
        { DSDB_CONTROL_APPLY_LINKS, NULL, NULL },
        { DSDB_CONTROL_APPLY_LINKS, NULL, NULL },
-       { LDB_CONTROL_BYPASS_OPERATIONAL_OID, NULL, NULL },
 --- samba-4.0.7/source4/dsdb/samdb/ldb_modules/password_hash.c~        2013-07-02 20:01:42.731518064 +0200
 +++ samba-4.0.7/source4/dsdb/samdb/ldb_modules/password_hash.c 2013-07-02 20:39:24.909757777 +0200
 @@ -3386,10 +3386,29 @@
 --- samba-4.0.7/source4/dsdb/samdb/ldb_modules/password_hash.c~        2013-07-02 20:01:42.731518064 +0200
 +++ samba-4.0.7/source4/dsdb/samdb/ldb_modules/password_hash.c 2013-07-02 20:39:24.909757777 +0200
 @@ -3386,10 +3386,29 @@
This page took 0.117124 seconds and 4 git commands to generate.