Re: [SCM] Samba Shared Repository - branch master updated

2012-10-12 Thread Kai Blin
On 2012-10-11 21:23, Stefan (metze) Metzmacher wrote:
> Hi Jelmer,
> 
>> - Log -
>> commit c2d14747d608d406de6410556807d467cd0b85ef
>> Author: Jelmer Vernooij 
>> Date:   Thu Oct 11 14:45:10 2012 +0200
>>
>> provision: Always create DNS user.
>> 
>> The DNS user is currently only used by the bind9 plugin. This makes it
>> easier to later on switch between the builtin DNS server and bind
>> backend.
>> 
>> In addition, ideally the internal DNS server would use that (separate)
>> user too.
> 
> Why? Isn't that the job of samba_upgradedns?
> I removed this behavior because I want us to match windows as much as
> possible.

+1

Cheers,
Kai

-- 
Kai Blin
Worldforge developer http://www.worldforge.org/
Wine developer http://wiki.winehq.org/KaiBlin
Samba team member http://www.samba.org/samba/team/


[SCM] Samba Shared Repository - branch v4-0-test updated

2012-10-12 Thread Karolin Seeger
The branch, v4-0-test has been updated
   via  d5c51e9 WHATSNEW: Start release notes for Samba 4.0.0rc3.
  from  1f1bc49 docs: Add very basic samba manpage.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test


- Log -
commit d5c51e95ff8dbd4f5f50a7ea3f1d211194bb2809
Author: Karolin Seeger 
Date:   Fri Oct 12 12:15:46 2012 +0200

WHATSNEW: Start release notes for Samba 4.0.0rc3.

To be continued...

Karolin

Autobuild-User(v4-0-test): Karolin Seeger 
Autobuild-Date(v4-0-test): Fri Oct 12 13:58:45 CEST 2012 on sn-devel-104

---

Summary of changes:
 WHATSNEW.txt |   62 -
 1 files changed, 60 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index f214087..d920c8a 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,7 +1,7 @@
 Release Announcements
 =
 
-This is the second release candidate of Samba 4.0.  This is *not*
+This is the third release candidate of Samba 4.0.  This is *not*
 intended for production environments and is designed for testing
 purposes only.  Please report any defects via the Samba bug reporting
 system at https://bugzilla.samba.org/.
@@ -58,7 +58,7 @@ Samba3-like logon services provided over CIFS.  We correctly 
generate
 the infamous Kerberos PAC, and include it with the Kerberos tickets we
 issue.
 
-Samba 4.0.0rc2 ships with two distinct file servers.  We now use the
+Samba 4.0.0rc3 ships with two distinct file servers.  We now use the
 file server from the Samba 3.x series 'smbd' for all file serving by
 default.
 
@@ -162,6 +162,64 @@ smb.conf changes
winbindd socket directory   New
 
 
+CHANGES SINCE 4.0.0rc2
+==
+
+o   Jeremy Allison 
+* BUG 8966: Fix 'net rpc share allowedusers' to work with 2008r2.
+* BUG 9209: Parse of invalid SMB2 create blob can cause smbd crash.
+* BUG 9214: Bad user supplied SMB2 credit value can cause smbd to call
+  smb_panic.
+
+
+o   Andrew Bartlett 
+* BUG 9235: Update Samba3-HOWTO Collection.
+
+
+o   Björn Baumbach 
+* BUG 9235: Fix opening and ending tag mismatch in Samba3-HOWTO.
+
+
+o   Kai Blin 
+* BUG 9225: Fix return code for deleted DNS records.
+
+
+o   Volker Lendecke 
+* BUG 9223: Fix uninitialized variable in the cldap server.
+* BUG 9268: Make tdb robust against improper CLEAR_IF_FIRST restart.
+
+
+o   Stefan Metzmacher 
+* BUG 9196: Don't take 'state->te' as indication for "was_deferred".
+
+
+o   Matthieu Patou 
+* BUG 9240: Remove unused variable in DNS server.
+
+
+o   Rusty Russell 
+* BUG 9268: Make tdb robust against shrinking tdbs.
+
+
+o   Andreas Schneider 
+* BUG 9244: Build pam_smbpass module only if enabled.
+* BUG 9245: Make sure the registry is set up before we init printing.
+
+
+o   Karolin Seeger 
+* BUG 7826: Remove link to Using Samba.
+* BUG 9243: Remove duplicate synonym min protocol.
+
+
+o   Jelmer Vernooij 
+* BUG 9243: Add basic documentation for 'server min protocol'.
+
+
+o   Matthias Dieter Wallnöfer 
+* BUG 9183: Introduce the wildcard binding feature to allow DNS to listen 
on
+  localhost.
+
+
 CHANGES SINCE 4.0.0rc1
 ==
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2012-10-12 Thread Christian Ambach
The branch, master has been updated
   via  bddd118 s3:smb2_getinfo ensure proper error for not yet present 
quota support
   via  6d1be1c s3:vfs_gpfs re-indent run-away lines
   via  fa728d1 s3:vfs_gpfs fix the build
   via  e4946cf s3:vfs_gpfs remove a trailing space
   via  12ae181 s3:vfs_gpfs skip local flock when gpfs sharemodes are 
disabled
  from  ff82afb selftest: Move more tests to common list script.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit bddd1182ea44875f28e12cf15fd07a86f43d8716
Author: Christian Ambach 
Date:   Thu Sep 27 22:09:23 2012 -0700

s3:smb2_getinfo ensure proper error for not yet present quota support

non-existing quota support needs to be signaled by NT_STATUS_NOT_SUPPORTED,
not NT_STATUS_INVALID_PARAMETER

Autobuild-User(master): Christian Ambach 
Autobuild-Date(master): Fri Oct 12 13:37:37 CEST 2012 on sn-devel-104

commit 6d1be1caf925f80badabcbca3a2676398647f4a3
Author: Christian Ambach 
Date:   Fri Oct 12 11:47:04 2012 +0200

s3:vfs_gpfs re-indent run-away lines

some lines added by the acl_blob additions were longer than 80 chars

commit fa728d1c0b6583c7d11b5540a8d13942a14701f4
Author: Christian Ambach 
Date:   Fri Oct 12 11:45:59 2012 +0200

s3:vfs_gpfs fix the build

make it compile again after the recent (untested) additions of the acl_blob 
functions

commit e4946cf10cdc112aaa61291442ce29690fe1c105
Author: Christian Ambach 
Date:   Fri Oct 12 10:32:20 2012 +0200

s3:vfs_gpfs remove a trailing space

commit 12ae1812d0f123b6b988f597efaabf610f352d30
Author: Christian Ambach 
Date:   Fri Oct 12 10:31:10 2012 +0200

s3:vfs_gpfs skip local flock when gpfs sharemodes are disabled

no sense in calling local flock when clustered sharemodes should be disabled

---

Summary of changes:
 source3/modules/vfs_gpfs.c  |   39 +++
 source3/smbd/smb2_getinfo.c |4 
 2 files changed, 31 insertions(+), 12 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c
index b3cdca5..8e8c694 100644
--- a/source3/modules/vfs_gpfs.c
+++ b/source3/modules/vfs_gpfs.c
@@ -50,7 +50,7 @@ struct gpfs_config_data {
 };
 
 
-static int vfs_gpfs_kernel_flock(vfs_handle_struct *handle, files_struct *fsp, 
+static int vfs_gpfs_kernel_flock(vfs_handle_struct *handle, files_struct *fsp,
 uint32 share_mode, uint32 access_mask)
 {
 
@@ -61,12 +61,15 @@ static int vfs_gpfs_kernel_flock(vfs_handle_struct *handle, 
files_struct *fsp,
struct gpfs_config_data,
return -1);
 
+   if(!config->sharemodes) {
+   return 0;
+   }
+
START_PROFILE(syscall_kernel_flock);
 
kernel_flock(fsp->fh->fd, share_mode, access_mask);
 
-   if (config->sharemodes
-   && !set_gpfs_sharemode(fsp, access_mask, fsp->share_access)) {
+   if (!set_gpfs_sharemode(fsp, access_mask, fsp->share_access)) {
ret = -1;
}
 
@@ -362,7 +365,8 @@ static NTSTATUS gpfsacl_fget_nt_acl(vfs_handle_struct 
*handle,
return NT_STATUS_INTERNAL_ERROR);
 
if (!config->acl) {
-   return SMB_VFS_NEXT_FGET_NT_ACL(handle, fsp, security_info, 
ppdesc);
+   return SMB_VFS_NEXT_FGET_NT_ACL(handle, fsp, security_info,
+   mem_ctx, ppdesc);
}
 
result = gpfs_get_nfs4_acl(fsp->fsp_name->base_name, &pacl);
@@ -395,7 +399,8 @@ static NTSTATUS gpfsacl_get_nt_acl(vfs_handle_struct 
*handle,
return NT_STATUS_INTERNAL_ERROR);
 
if (!config->acl) {
-   return SMB_VFS_NEXT_GET_NT_ACL(handle, name, security_info, 
ppdesc);
+   return SMB_VFS_NEXT_GET_NT_ACL(handle, name, security_info,
+  mem_ctx, ppdesc);
}
 
result = gpfs_get_nfs4_acl(name, &pacl);
@@ -709,22 +714,28 @@ static SMB_ACL_T gpfsacl_sys_acl_get_fd(vfs_handle_struct 
*handle,
 GPFS_ACL_TYPE_ACCESS, mem_ctx);
 }
 
-static int gpfsacl_sys_acl_blob_get_file(vfs_handle_struct *handle, const char 
*path_p,
+static int gpfsacl_sys_acl_blob_get_file(vfs_handle_struct *handle,
+ const char *path_p,
  TALLOC_CTX *mem_ctx,
  char **blob_description,
  DATA_BLOB *blob)
 {
struct gpfs_config_data *config;
+   SMB4ACL_T *pacl = NULL;
+   int result;
 
SMB_VFS_HANDLE_GET_DATA(handle, config,
struct gpfs_config_data,
-   

[SCM] Samba Shared Repository - branch v4-0-test updated

2012-10-12 Thread Karolin Seeger
The branch, v4-0-test has been updated
   via  1f1bc49 docs: Add very basic samba manpage.
   via  e2d1cb7 s3-printing: Increase debug level for info that the db is 
empty.
   via  8bd3ada packaging: Add support for reloading systemd services.
   via  5881b1e s4:torture/smb2: improve the smb2.create.blob test
  from  ba24443 autoconf: fix --with(out)-sendfile-support option handling

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test


- Log -
commit 1f1bc49feb87a05e4c3d7b8fe8c5f92be0fbb5b9
Author: Karolin Seeger 
Date:   Wed Oct 10 10:43:02 2012 +0200

docs: Add very basic samba manpage.

Please feel free to extend.

Karolin

Autobuild-User(master): Karolin Seeger 
Autobuild-Date(master): Thu Oct 11 11:40:37 CEST 2012 on sn-devel-104
(cherry picked from commit a11595bd2e6895f734e621c69c1ad0ee3e1a685a)

Addresses bug #8802 - Create missing manpages for new binaries.

Autobuild-User(v4-0-test): Karolin Seeger 
Autobuild-Date(v4-0-test): Fri Oct 12 11:12:32 CEST 2012 on sn-devel-104

commit e2d1cb7e081fafff92fb8219d9600d39ed598d6c
Author: Andreas Schneider 
Date:   Thu Sep 20 10:20:31 2012 +0200

s3-printing: Increase debug level for info that the db is empty.

Autobuild-User(master): Andreas Schneider 
Autobuild-Date(master): Thu Sep 20 12:01:48 CEST 2012 on sn-devel-104
(cherry picked from commit d52d7efba31e3f1e63ed365900aba0a8cb960930)

See bug #9112 - smbd.log is flooded by 'printer_list_get_printer: Failed to
fetch record!' for details.

commit 8bd3ada2bb3d67f3fa8499e1b2f8450b12aba45e
Author: Andreas Schneider 
Date:   Wed Oct 10 11:30:15 2012 +0200

packaging: Add support for reloading systemd services.

Signed-off-by: Andreas Schneider 

Fix bug #9280 - Add support for reloading the daemons using systemctl 
reload.

commit 5881b1ed197a15c235405df19b31afe69c8e0e78
Author: Stefan Metzmacher 
Date:   Wed Sep 19 21:18:46 2012 +0200

s4:torture/smb2: improve the smb2.create.blob test

metze
(cherry picked from commit e6c600aa2c751e694917322378417816c3e58eb6)

(See bug #9209 - Parse of invalid SMB2 create blob can cause smbd crash for
details.)

---

Summary of changes:
 docs-xml/manpages/samba.8.xml |  181 +
 packaging/systemd/nmb.service |1 +
 packaging/systemd/samba.service   |1 +
 packaging/systemd/smb.service |1 +
 packaging/systemd/winbind.service |1 +
 source3/printing/printer_list.c   |3 +-
 source4/torture/smb2/create.c |   93 +++-
 7 files changed, 278 insertions(+), 3 deletions(-)
 create mode 100644 docs-xml/manpages/samba.8.xml


Changeset truncated at 500 lines:

diff --git a/docs-xml/manpages/samba.8.xml b/docs-xml/manpages/samba.8.xml
new file mode 100644
index 000..229e941
--- /dev/null
+++ b/docs-xml/manpages/samba.8.xml
@@ -0,0 +1,181 @@
+
+http://www.samba.org/samba/DTD/samba-doc";>
+
+
+
+   samba
+   8
+   Samba
+   System Administration tools
+   4.0
+
+
+
+
+   samba
+   Server to provide AD and SMB/CIFS services to 
clients
+
+
+
+   
+   samba
+   -D
+   -i
+   -M 
+   --maximum-runtime=
+   -b
+   --help
+   --usage
+   -d 
+   --debug-stderr
+   -s 
+   --option==
+   -l 
+   --leak-report
+   --leak-report-full
+   -V
+   
+
+
+
+   DESCRIPTION
+   This program is part of the 
samba
+   7 suite.
+
+   samba is the server daemon that
+   provides Active Directory, filesharing and printing services to clients.
+   
+
+
+
+   OPTIONS
+
+   
+   
+   -D|--daemon
+   If specified, this parameter causes
+   the server to operate as a daemon. That is, it detaches
+   itself and runs in the background, fielding requests
+   on the appropriate ports. Operating the server as a
+   daemon is the recommended way of running
+   samba for servers that provide more
+   than casual use file and print services.  This switch is
+   assumed if samba is executed on the
+   command line of a shell.
+   
+   
+
+   
+   -i|--interactive
+   If this parameter is specified it causes the
+   server to run "interactively", not as a daemon, even if the
+   server is executed on the command line of a shell. Setting this
+   parameter negates the implicit daemo

[SCM] Samba Shared Repository - branch v3-6-test updated

2012-10-12 Thread Karolin Seeger
The branch, v3-6-test has been updated
   via  5166e0b s3-printing: Increase debug level for info that the db is 
empty.
  from  3c71fa3 packaging: Add support for reloading systemd services.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-6-test


- Log -
commit 5166e0bde86619f477645cca9642be85d567ffe8
Author: Andreas Schneider 
Date:   Thu Sep 20 10:20:31 2012 +0200

s3-printing: Increase debug level for info that the db is empty.

(cherry picked from commit c80d70da1364349a5329d17a68033163c5025264)

Signed-off-by: Andreas Schneider 

See bug #9112 - smbd.log is flooded by 'printer_list_get_printer: Failed to
fetch record!' for details.

---

Summary of changes:
 source3/printing/printer_list.c |3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/printing/printer_list.c b/source3/printing/printer_list.c
index 6ddd774..8f196a5 100644
--- a/source3/printing/printer_list.c
+++ b/source3/printing/printer_list.c
@@ -91,7 +91,8 @@ NTSTATUS printer_list_get_printer(TALLOC_CTX *mem_ctx,
 
data = dbwrap_fetch_bystring_upper(db, key, key);
if (data.dptr == NULL) {
-   DEBUG(1, ("Failed to fetch record!\n"));
+   DEBUG(6, ("Failed to fetch record! "
+ "The printer database is empty?\n"));
status = NT_STATUS_NOT_FOUND;
goto done;
}


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-6-test updated

2012-10-12 Thread Karolin Seeger
The branch, v3-6-test has been updated
   via  3c71fa3 packaging: Add support for reloading systemd services.
  from  a1db9aa autoconf: fix --with(out)-sendfile-support option handling

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-6-test


- Log -
commit 3c71fa399705f91baae764a43b436e83f14c4024
Author: Andreas Schneider 
Date:   Wed Oct 10 11:30:15 2012 +0200

packaging: Add support for reloading systemd services.

Signed-off-by: Andreas Schneider 

Fix bug #9280 - Add support for reloading the daemons using systemctl 
reload.

---

Summary of changes:
 packaging/systemd/nmb.service |1 +
 packaging/systemd/smb.service |1 +
 packaging/systemd/winbind.service |1 +
 3 files changed, 3 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/packaging/systemd/nmb.service b/packaging/systemd/nmb.service
index a2ecd22..e5e81a1 100644
--- a/packaging/systemd/nmb.service
+++ b/packaging/systemd/nmb.service
@@ -7,6 +7,7 @@ Type=forking
 PIDFile=/run/nmbd.pid
 EnvironmentFile=-/etc/sysconfig/samba
 ExecStart=/usr/sbin/nmbd $NMBDOPTIONS
+ExecReload=/usr/bin/kill -HUP $MAINPID
 
 [Install]
 WantedBy=multi-user.target
diff --git a/packaging/systemd/smb.service b/packaging/systemd/smb.service
index 70d9842..d0d945a 100644
--- a/packaging/systemd/smb.service
+++ b/packaging/systemd/smb.service
@@ -8,6 +8,7 @@ PIDFile=/run/smbd.pid
 LimitNOFILE=16384
 EnvironmentFile=-/etc/sysconfig/samba
 ExecStart=/usr/sbin/smbd $SMBDOPTIONS
+ExecReload=/usr/bin/kill -HUP $MAINPID
 
 [Install]
 WantedBy=multi-user.target
diff --git a/packaging/systemd/winbind.service 
b/packaging/systemd/winbind.service
index 9ce1b52..eff266f 100644
--- a/packaging/systemd/winbind.service
+++ b/packaging/systemd/winbind.service
@@ -7,6 +7,7 @@ Type=forking
 PIDFile=/run/winbindd.pid
 EnvironmentFile=-/etc/sysconfig/samba
 ExecStart=/usr/sbin/winbindd "$WINBINDOPTIONS"
+ExecReload=/usr/bin/kill -HUP $MAINPID
 
 [Install]
 WantedBy=multi-user.target


-- 
Samba Shared Repository