samba.git
15 years agobuild: don't install the cifs.upcall binary twice.
Günther Deschner [Fri, 5 Sep 2008 12:01:45 +0000 (14:01 +0200)]
build: don't install the cifs.upcall binary twice.

Guenther

15 years agonet: use netapi for NetFileEnum.
Günther Deschner [Wed, 10 Sep 2008 08:34:28 +0000 (10:34 +0200)]
net: use netapi for NetFileEnum.

Guenther

15 years agonet: use netapi for NetFileClose.
Günther Deschner [Wed, 10 Sep 2008 08:34:13 +0000 (10:34 +0200)]
net: use netapi for NetFileClose.

Guenther

15 years agonetapi: implement NetFileEnum_r.
Günther Deschner [Wed, 10 Sep 2008 08:03:48 +0000 (10:03 +0200)]
netapi: implement NetFileEnum_r.

Guenther

15 years agonetapi: add NetFileEnum example code.
Günther Deschner [Tue, 9 Sep 2008 20:17:00 +0000 (22:17 +0200)]
netapi: add NetFileEnum example code.

Guenther

15 years agonetapi: add NetFileEnum to public header.
Günther Deschner [Tue, 9 Sep 2008 20:16:07 +0000 (22:16 +0200)]
netapi: add NetFileEnum to public header.

Guenther

15 years agonetapi: add NetFileEnum skeleton.
Günther Deschner [Tue, 9 Sep 2008 20:01:32 +0000 (22:01 +0200)]
netapi: add NetFileEnum skeleton.

Guenther

15 years agore-run make idl.
Günther Deschner [Tue, 9 Sep 2008 19:59:36 +0000 (21:59 +0200)]
re-run make idl.

Guenther

15 years agonetapi: add NetFileEnum to IDL.
Günther Deschner [Tue, 9 Sep 2008 19:59:22 +0000 (21:59 +0200)]
netapi: add NetFileEnum to IDL.

Guenther

15 years agonetapi: add NetFileGetInfo example code.
Günther Deschner [Tue, 9 Sep 2008 19:56:29 +0000 (21:56 +0200)]
netapi: add NetFileGetInfo example code.

Guenther

15 years agonetapi: add NetFileGetInfo to public header.
Günther Deschner [Tue, 9 Sep 2008 19:56:04 +0000 (21:56 +0200)]
netapi: add NetFileGetInfo to public header.

Guenther

15 years agonetapi: implement NetFileGetInfo_r.
Günther Deschner [Tue, 9 Sep 2008 19:55:45 +0000 (21:55 +0200)]
netapi: implement NetFileGetInfo_r.

Guenther

15 years agonetapi: add NetFileGetInfo skeleton.
Günther Deschner [Tue, 9 Sep 2008 17:43:02 +0000 (19:43 +0200)]
netapi: add NetFileGetInfo skeleton.

Guenther

15 years agore-run make idl.
Günther Deschner [Tue, 9 Sep 2008 17:30:43 +0000 (19:30 +0200)]
re-run make idl.

Guenther

15 years agonetapi: add IDL for NetFileGetInfo.
Günther Deschner [Tue, 9 Sep 2008 17:30:25 +0000 (19:30 +0200)]
netapi: add IDL for NetFileGetInfo.

Guenther

15 years agonetapi: implement NetFileClose_r.
Günther Deschner [Tue, 9 Sep 2008 17:31:03 +0000 (19:31 +0200)]
netapi: implement NetFileClose_r.

Guenther

15 years agonetapi: add NetFileClose example code.
Günther Deschner [Tue, 9 Sep 2008 17:37:17 +0000 (19:37 +0200)]
netapi: add NetFileClose example code.

Guenther

15 years agonetapi: add NetFileClose to public header.
Günther Deschner [Tue, 9 Sep 2008 17:37:39 +0000 (19:37 +0200)]
netapi: add NetFileClose to public header.

Guenther

15 years agonetapi: add NetFileClose skeleton.
Günther Deschner [Tue, 9 Sep 2008 17:21:48 +0000 (19:21 +0200)]
netapi: add NetFileClose skeleton.

Guenther

15 years agore-run make idl.
Günther Deschner [Tue, 9 Sep 2008 17:20:05 +0000 (19:20 +0200)]
re-run make idl.

Guenther

15 years agonetapi: add NetFileClose to IDL.
Günther Deschner [Tue, 9 Sep 2008 17:19:49 +0000 (19:19 +0200)]
netapi: add NetFileClose to IDL.

Guenther

15 years agonetapi: implement NetUserGetLocalGroups_r.
Günther Deschner [Tue, 9 Sep 2008 16:44:40 +0000 (18:44 +0200)]
netapi: implement NetUserGetLocalGroups_r.

Guenther

15 years agonetapi: add NetUserGetLocalGroups example code.
Günther Deschner [Tue, 9 Sep 2008 12:48:06 +0000 (14:48 +0200)]
netapi: add NetUserGetLocalGroups example code.

Guenther

15 years agonetapi: add NetUserGetLocalGroups to public header.
Günther Deschner [Tue, 9 Sep 2008 11:44:09 +0000 (13:44 +0200)]
netapi: add NetUserGetLocalGroups to public header.

Guenther

15 years agonetapi: add NetUserGetLocalGroups skeleton.
Günther Deschner [Tue, 9 Sep 2008 11:42:27 +0000 (13:42 +0200)]
netapi: add NetUserGetLocalGroups skeleton.

Guenther

15 years agore-run make idl.
Günther Deschner [Tue, 9 Sep 2008 11:40:39 +0000 (13:40 +0200)]
re-run make idl.

Guenther

15 years agonetapi: add NetUserGetLocalGroups to IDL.
Günther Deschner [Tue, 9 Sep 2008 11:40:18 +0000 (13:40 +0200)]
netapi: add NetUserGetLocalGroups to IDL.

Guenther

15 years agonetapi: fix group_getusers example.
Günther Deschner [Mon, 8 Sep 2008 14:43:06 +0000 (16:43 +0200)]
netapi: fix group_getusers example.

Guenther

15 years agonetapi: implement NetGroupGetUsers_r.
Günther Deschner [Mon, 8 Sep 2008 14:42:38 +0000 (16:42 +0200)]
netapi: implement NetGroupGetUsers_r.

Guenther

15 years agonetapi: implement NetGroupSetUsers_r.
Günther Deschner [Tue, 9 Sep 2008 11:17:22 +0000 (13:17 +0200)]
netapi: implement NetGroupSetUsers_r.

Guenther

15 years agonetapi: add example code for NetGroupSetUsers.
Günther Deschner [Fri, 5 Sep 2008 15:05:49 +0000 (17:05 +0200)]
netapi: add example code for NetGroupSetUsers.

Guenther

15 years agonetapi: add NetGroupSetUsers to public header.
Günther Deschner [Mon, 8 Sep 2008 08:23:07 +0000 (10:23 +0200)]
netapi: add NetGroupSetUsers to public header.

Guenther

15 years agonetapi: add skeleton for NetGroupSetUsers.
Günther Deschner [Mon, 8 Sep 2008 08:21:17 +0000 (10:21 +0200)]
netapi: add skeleton for NetGroupSetUsers.

Guenther

15 years agore-run make idl.
Günther Deschner [Fri, 5 Sep 2008 15:00:41 +0000 (17:00 +0200)]
re-run make idl.

Guenther

15 years agonetapi: add IDL for NetGroupSetUsers.
Günther Deschner [Fri, 5 Sep 2008 14:59:21 +0000 (16:59 +0200)]
netapi: add IDL for NetGroupSetUsers.

Guenther

15 years agonetapi: implement NetUserSetGroups_r.
Günther Deschner [Mon, 8 Sep 2008 17:10:00 +0000 (19:10 +0200)]
netapi: implement NetUserSetGroups_r.

Guenther

15 years agonetapi: add example code for NetUserSetGroups.
Günther Deschner [Fri, 5 Sep 2008 15:01:23 +0000 (17:01 +0200)]
netapi: add example code for NetUserSetGroups.

Guenther

15 years agonetapi: add NetUserSetGroups to public header.
Günther Deschner [Mon, 8 Sep 2008 08:26:11 +0000 (10:26 +0200)]
netapi: add NetUserSetGroups to public header.

Guenther

15 years agonetapi: add skeleton for NetUserSetGroups.
Günther Deschner [Fri, 5 Sep 2008 14:51:55 +0000 (16:51 +0200)]
netapi: add skeleton for NetUserSetGroups.

Guenther

15 years agore-run make idl.
Günther Deschner [Fri, 5 Sep 2008 14:50:04 +0000 (16:50 +0200)]
re-run make idl.

Guenther

15 years agonetapi: add IDL for NetUserSetGroups.
Günther Deschner [Fri, 5 Sep 2008 14:49:09 +0000 (16:49 +0200)]
netapi: add IDL for NetUserSetGroups.

Guenther

15 years agonetapi: make add_GROUP_USERS_INFO_X_buffer non-static.
Günther Deschner [Mon, 8 Sep 2008 14:42:10 +0000 (16:42 +0200)]
netapi: make add_GROUP_USERS_INFO_X_buffer non-static.

Guenther

15 years agonetapi: fix NetShareEnum_r.
Günther Deschner [Wed, 10 Sep 2008 08:13:41 +0000 (10:13 +0200)]
netapi: fix NetShareEnum_r.

Guenther

15 years agonetapi: fix NetShareGetInfo_r.
Günther Deschner [Wed, 10 Sep 2008 08:13:55 +0000 (10:13 +0200)]
netapi: fix NetShareGetInfo_r.

Guenther

15 years agonet: use netapi for NetShareEnum.
Günther Deschner [Wed, 10 Sep 2008 08:53:46 +0000 (10:53 +0200)]
net: use netapi for NetShareEnum.

Guenther

15 years agonetapi: fix NetShareEnum_r which in fact enumerates all shares.
Günther Deschner [Wed, 10 Sep 2008 11:26:54 +0000 (13:26 +0200)]
netapi: fix NetShareEnum_r which in fact enumerates all shares.

Guenther

15 years agonetapi: fix doxygen warning.
Günther Deschner [Tue, 9 Sep 2008 17:36:51 +0000 (19:36 +0200)]
netapi: fix doxygen warning.

Guenther

15 years agoFix bug #5052 - not work cancel inheritance on share. We were
Jeremy Allison [Wed, 10 Sep 2008 23:22:51 +0000 (16:22 -0700)]
Fix bug #5052 - not work cancel inheritance on share. We were
using the parent security descriptor type and flags instead
of using the passed in SD.
Jeremy.

15 years agoMerge branch 'v3-devel' of ssh://jra@git.samba.org/data/git/samba into v3-devel
Jeremy Allison [Wed, 10 Sep 2008 21:57:52 +0000 (14:57 -0700)]
Merge branch 'v3-devel' of ssh://jra@git.samba.org/data/git/samba into v3-devel

15 years agoWhen requesting UNIX info levels on findfirst/findnext, don't play games with write...
Jeremy Allison [Wed, 10 Sep 2008 21:54:25 +0000 (14:54 -0700)]
When requesting UNIX info levels on findfirst/findnext, don't play games with write time,
just return what the underlying filesystem says. Trying not to confuse UNIX apps any more than necessary.
Jeremy.

15 years agopackaging(RHEL): fix direction of link (.so) of nss libs.
Michael Adam [Wed, 10 Sep 2008 21:22:49 +0000 (23:22 +0200)]
packaging(RHEL): fix direction of link (.so) of nss libs.

libnss_winbindd.so -> libnss_winbindd.so.2
libnss_wins.so -> libnss_wins.so.2

Michael

15 years agoFix blocker bug 5745 kerberos authentication with (lib)smbclient is broken.
Jeremy Allison [Wed, 10 Sep 2008 17:18:02 +0000 (10:18 -0700)]
Fix blocker bug 5745 kerberos authentication with (lib)smbclient is broken.
Jeremy.

15 years agonet: share_type is defined in net_rap.c, net_rpc.c needs to use that.
Kai Blin [Wed, 10 Sep 2008 10:05:18 +0000 (12:05 +0200)]
net: share_type is defined in net_rap.c, net_rpc.c needs to use that.

This fixes a crash in net rpc share that Günther Deschner found.

15 years agoFix some bogus compiler warnings
Volker Lendecke [Wed, 10 Sep 2008 09:51:02 +0000 (11:51 +0200)]
Fix some bogus compiler warnings

15 years agoFix make test on sparc and possibly also on AIX
Volker Lendecke [Tue, 9 Sep 2008 20:13:39 +0000 (22:13 +0200)]
Fix make test on sparc and possibly also on AIX

15 years agoMerge branch 'v3-devel' of ssh://git.samba.org/data/git/samba into v3-devel
Jelmer Vernooij [Tue, 9 Sep 2008 17:27:00 +0000 (19:27 +0200)]
Merge branch 'v3-devel' of ssh://git.samba.org/data/git/samba into v3-devel

15 years agoStop ignoring .svn directories when creating tags, since we no longer use
Jelmer Vernooij [Tue, 9 Sep 2008 17:05:48 +0000 (19:05 +0200)]
Stop ignoring .svn directories when creating tags, since we no longer use
svn.

15 years agoRename object variables to avoid clashes with Samba 4.
Jelmer Vernooij [Tue, 9 Sep 2008 17:03:49 +0000 (19:03 +0200)]
Rename object variables to avoid clashes with Samba 4.

15 years agoConvert cli_query_secdesc to the async trans call
Volker Lendecke [Tue, 9 Sep 2008 13:03:51 +0000 (15:03 +0200)]
Convert cli_query_secdesc to the async trans call

15 years agoConvert cli_qfileinfo to the async trans call
Volker Lendecke [Tue, 9 Sep 2008 13:03:34 +0000 (15:03 +0200)]
Convert cli_qfileinfo to the async trans call

15 years agoAdd async trans/trans2/nttrans calls to libsmb
Volker Lendecke [Tue, 9 Sep 2008 12:47:23 +0000 (14:47 +0200)]
Add async trans/trans2/nttrans calls to libsmb

Logic stolen from Samba4, naturally the specific implementation differs a bit.

15 years agoAdd some debug to reply_nttrans
Volker Lendecke [Tue, 9 Sep 2008 12:43:20 +0000 (14:43 +0200)]
Add some debug to reply_nttrans

15 years agoMove setting the mid field in req->outbuf from _cork to _uncork
Volker Lendecke [Tue, 9 Sep 2008 12:39:45 +0000 (14:39 +0200)]
Move setting the mid field in req->outbuf from _cork to _uncork

The async trans calls need this, as for secondary trans calls they have to
modify the MID from what cli_request_chain() gave us.

15 years agoAdd utility function cli_in_chain()
Volker Lendecke [Tue, 9 Sep 2008 12:37:17 +0000 (14:37 +0200)]
Add utility function cli_in_chain()

This gives a hint whether a function is called from within the middle of a
chain. In particular the trans calls don't really like this.

15 years agomake smb_bytes_push_str public
Volker Lendecke [Tue, 9 Sep 2008 12:35:42 +0000 (14:35 +0200)]
make smb_bytes_push_str public

15 years agoAdd a utility function to append a DATA_BLOB to a talloc object
Volker Lendecke [Tue, 9 Sep 2008 12:34:28 +0000 (14:34 +0200)]
Add a utility function to append a DATA_BLOB to a talloc object

15 years agopackaging(RHEL): add makerpms.git.sh to build rpms from inside a git checkout
Michael Adam [Mon, 8 Sep 2008 11:44:52 +0000 (13:44 +0200)]
packaging(RHEL): add makerpms.git.sh to build rpms from inside a git checkout

This expects a path to a release docs tarball (.tar.bz2) in the DOCS_TARBALL
environment variable. The tarball should have a prefix of "docs/".

Michael

15 years agopackaging(RHEL): use ccache if available
Michael Adam [Mon, 8 Sep 2008 15:38:55 +0000 (17:38 +0200)]
packaging(RHEL): use ccache if available

Michael

15 years agopackaging(RHEL): add ldbtools binaries and man pages to common package
Michael Adam [Mon, 8 Sep 2008 13:52:27 +0000 (15:52 +0200)]
packaging(RHEL): add ldbtools binaries and man pages to common package

Michael

15 years agopackaging(RHEL): add cifs.upcall binary and manpage to client package
Michael Adam [Mon, 8 Sep 2008 13:51:57 +0000 (15:51 +0200)]
packaging(RHEL): add cifs.upcall binary and manpage to client package

Michael

15 years agopackaging(RHEL): fix installation of pam modules.
Michael Adam [Mon, 8 Sep 2008 13:51:33 +0000 (15:51 +0200)]
packaging(RHEL): fix installation of pam modules.

Michael

15 years agopackaging(RHEL): remove leftovers of smbmount from SPEC file.
Michael Adam [Mon, 8 Sep 2008 12:46:31 +0000 (14:46 +0200)]
packaging(RHEL): remove leftovers of smbmount from SPEC file.

Michael

15 years agopackaging(RHEL): add new libs (talloc, tdb, ...) to the common package
Michael Adam [Fri, 29 Aug 2008 15:45:45 +0000 (17:45 +0200)]
packaging(RHEL): add new libs (talloc, tdb, ...) to the common package

Michael

15 years agopackaging(RHEL): remove workaround code for libsmclient/sharemodes installation
Michael Adam [Fri, 29 Aug 2008 14:57:16 +0000 (16:57 +0200)]
packaging(RHEL): remove workaround code for libsmclient/sharemodes installation

With 3.3.0, this is not needed any more
(libdir/modulesdir separation and corrected library creation).

Michael

15 years agopackaging(RHEL): fix libdir installation by using _libarch/_libarchdir
Michael Adam [Fri, 29 Aug 2008 14:55:55 +0000 (16:55 +0200)]
packaging(RHEL): fix libdir installation by using _libarch/_libarchdir

Michael

15 years agopackaging(RHEL): remove libmsrpc stuff which is no more...
Michael Adam [Fri, 29 Aug 2008 14:48:37 +0000 (16:48 +0200)]
packaging(RHEL): remove libmsrpc stuff which is no more...

Michael

15 years agopackaging(RHEL): remove duplicate installation of pam_smbpass.so
Michael Adam [Fri, 29 Aug 2008 14:44:06 +0000 (16:44 +0200)]
packaging(RHEL): remove duplicate installation of pam_smbpass.so

Michael

15 years agopackaging(RHEL): remove smbmount related stuff from spec file
Michael Adam [Fri, 29 Aug 2008 14:41:30 +0000 (16:41 +0200)]
packaging(RHEL): remove smbmount related stuff from spec file

Michael

15 years agopackaging(RHEL): don't make proto for samba 3.3
Michael Adam [Fri, 29 Aug 2008 14:40:04 +0000 (16:40 +0200)]
packaging(RHEL): don't make proto for samba 3.3

Michael

15 years agopackaging(RHEL): use --libdir and --with-modulesdir instead of --with-libdir
Michael Adam [Fri, 29 Aug 2008 14:38:31 +0000 (16:38 +0200)]
packaging(RHEL): use --libdir and --with-modulesdir instead of --with-libdir

Michael

15 years agopackaging(RHEL): fix version of GPL (2 --> 3)
Michael Adam [Fri, 29 Aug 2008 13:45:18 +0000 (15:45 +0200)]
packaging(RHEL): fix version of GPL (2 --> 3)

Michael

15 years agoFix a memleak in cli_qfilename (only used in smbtorture)
Volker Lendecke [Mon, 8 Sep 2008 20:39:16 +0000 (22:39 +0200)]
Fix a memleak in cli_qfilename (only used in smbtorture)

15 years agoFix calculation of useable_space for trans2 and nttrans replies
Volker Lendecke [Mon, 8 Sep 2008 20:53:50 +0000 (22:53 +0200)]
Fix calculation of useable_space for trans2 and nttrans replies

When alignment was in place, we pretended to send more data/params according to
the param_offset/param_length and data_offset/data_length parameters than would
actually fit into the SMB according to the NBSS length field.

15 years agoWhen setting an NFSv4 ACL, map generic bits
Volker Lendecke [Mon, 8 Sep 2008 14:42:06 +0000 (16:42 +0200)]
When setting an NFSv4 ACL, map generic bits

15 years agoThanks metze for pointing out the missing extern :-)
Volker Lendecke [Mon, 8 Sep 2008 14:23:36 +0000 (16:23 +0200)]
Thanks metze for pointing out the missing extern :-)

15 years agosmbd: some write time fixes
Stefan Metzmacher [Mon, 8 Sep 2008 13:12:24 +0000 (15:12 +0200)]
smbd: some write time fixes

- only the first non truncating write causes
  the write time update with 2 seconds delay.
  It's not enough to check for an existing update event
  as it will be NULL after the event was triggered.

- SMBwrite truncates always update the write time
  unless the sticky write time is set.

- SMBwrite truncates don't trigger a write time update on close.

metze

15 years agoRemove some duplicate code
Volker Lendecke [Mon, 8 Sep 2008 13:57:15 +0000 (15:57 +0200)]
Remove some duplicate code

15 years agopackaging(RHEL-CTDB): add fix for versions containing "-" signs.
Michael Adam [Mon, 8 Sep 2008 12:09:41 +0000 (14:09 +0200)]
packaging(RHEL-CTDB): add fix for versions containing "-" signs.

Michael
(cherry picked from commit 423105e29aaef449dbc40d124900a3f654b7266b)

15 years agopackaging(RHEL-CTDB): extend and slightly reformat comment header block
Michael Adam [Mon, 8 Sep 2008 11:11:17 +0000 (13:11 +0200)]
packaging(RHEL-CTDB): extend and slightly reformat comment header block

Michael
(cherry picked from commit 1bfc8cc575cd84f24ceb6f6c5d13c9171c0895a5)

15 years agopackaging(RHEL-CTDB): unify and extend (C) header
Michael Adam [Mon, 8 Sep 2008 11:08:18 +0000 (13:08 +0200)]
packaging(RHEL-CTDB): unify and extend (C) header

Michael
(cherry picked from commit e051c1cbf7a993e3885c4a515e516da3574a1f57)

15 years agopackaging(RHEL-CTDB): autodetect the samba version number from version.h
Michael Adam [Thu, 4 Sep 2008 12:36:29 +0000 (14:36 +0200)]
packaging(RHEL-CTDB): autodetect the samba version number from version.h

Generate version.h first.
Create samba.spec from (new) samba.spec.tmpl, replacing PVERSION
by the version string. (as is done with update-pkginfo called
from the create-tarball release script)

Michael

15 years agopackaging(RHEL-CTDB): introduce variable TOPDIR
Michael Adam [Thu, 4 Sep 2008 12:10:45 +0000 (14:10 +0200)]
packaging(RHEL-CTDB): introduce variable TOPDIR

Michael
(cherry picked from commit 74e335ebf210c4812b0f790d05b697a183803af7)

15 years agopackaging(RHEL-CTDB): rename SPECDIR to RPMSPECDIR
Michael Adam [Thu, 4 Sep 2008 12:09:36 +0000 (14:09 +0200)]
packaging(RHEL-CTDB): rename SPECDIR to RPMSPECDIR

Michael
(cherry picked from commit ac2b09b2274a12c34c446c4536793a33515958cc)

15 years agopackaging(RHEL-CTDB): rename SRCDIR to RPMSRCDIR
Michael Adam [Thu, 4 Sep 2008 12:09:15 +0000 (14:09 +0200)]
packaging(RHEL-CTDB): rename SRCDIR to RPMSRCDIR

Michael
(cherry picked from commit d8a8ea87439315ecf407a866a12e2993343af39c)

15 years agonetapi: expand NetUser testsuite a little.
Günther Deschner [Fri, 5 Sep 2008 15:06:24 +0000 (17:06 +0200)]
netapi: expand NetUser testsuite a little.

Guenther

15 years agonetapi: add NetShare testsuite.
Günther Deschner [Fri, 5 Sep 2008 13:13:13 +0000 (15:13 +0200)]
netapi: add NetShare testsuite.

Guenther

15 years agonet: use NETSETUP flags consistently.
Günther Deschner [Fri, 5 Sep 2008 14:28:56 +0000 (16:28 +0200)]
net: use NETSETUP flags consistently.

Guenther

15 years agonetapi: re-arrange a little NetLocalGroupSetMembers example code.
Günther Deschner [Fri, 5 Sep 2008 21:21:58 +0000 (23:21 +0200)]
netapi: re-arrange a little NetLocalGroupSetMembers example code.

Guenther

15 years agonetapi: fix NetShareGetInfo example output.
Günther Deschner [Fri, 5 Sep 2008 12:01:17 +0000 (14:01 +0200)]
netapi: fix NetShareGetInfo example output.

Guenther

15 years agoFix debug message to show correct function name.
Jeremy Allison [Sat, 6 Sep 2008 03:37:00 +0000 (20:37 -0700)]
Fix debug message to show correct function name.
Jeremy.