ira/wip.git
14 years agos4-smbtorture: fix test_ReportEventLog in RPC-EVENTLOG.
Günther Deschner [Wed, 8 Apr 2009 19:29:16 +0000 (21:29 +0200)]
s4-smbtorture: fix test_ReportEventLog in RPC-EVENTLOG.

Guenther

14 years agos3-examples: fix usage for eventlog example script.
Günther Deschner [Mon, 27 Apr 2009 09:14:44 +0000 (11:14 +0200)]
s3-examples: fix usage for eventlog example script.

Guenther

14 years agos3-samr: fix enum_acb_mask type (uint32 instead of uint16).
Günther Deschner [Mon, 8 Jun 2009 15:32:10 +0000 (17:32 +0200)]
s3-samr: fix enum_acb_mask type (uint32 instead of uint16).

Guenther

14 years agos3-rpcclient: allow to set query size for samr enum calls.
Günther Deschner [Mon, 8 Jun 2009 13:48:24 +0000 (15:48 +0200)]
s3-rpcclient: allow to set query size for samr enum calls.

Guenther

14 years agos3:Makefile.in: use LIBDL as make variable instead of a shell variable
Stefan Metzmacher [Mon, 8 Jun 2009 09:51:36 +0000 (11:51 +0200)]
s3:Makefile.in: use LIBDL as make variable instead of a shell variable

metze

14 years agoFix make test_pam_modules
Timur I. Bakeyev [Sun, 7 Jun 2009 17:05:23 +0000 (17:05 +0000)]
Fix make test_pam_modules

In Samba3 there is a very handy Makefile target 'test_pam_modules'. It let
quickly veryfy, that obtained PAM module actually is loadable and doesn't
miss any dependency libs. the only problem that on FreeBSD it doesn't work
OOTB, as it unconditionally adds -ldl to the list of libraries when FreeBSD
doesn't have it and doesn't need it.

This small patch fixes the problem for FreeBSD and, I hope, still valid
for othe systems, where -ldl is required. Has to be tested there though.

With regards,
Timur Bakeyev.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agoSmall fix to SMB_LIBRARY macro
Timur I. Bakeyev [Sun, 7 Jun 2009 14:16:51 +0000 (14:16 +0000)]
Small fix to SMB_LIBRARY macro

It seems, that SMB_LIBRARY macro has small bug in the logic, when showing
if shall the SHARED version of the library be build.

If the default value is given as a parameter, it reports "yes" when library
is going to be build(?).

This small patch makes report consistent.

With regards,
Timur Bakeyev.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agoSIGRTMIN additions
Timur I. Bakeyev [Sun, 7 Jun 2009 15:46:07 +0000 (15:46 +0000)]
SIGRTMIN additions

In addition to [FreeBSD 14] there is another place, where we (re)define
SIGRTMIN - in SMB_IF_RTSIGNAL_BUG macro in /source3/m4/aclocal.m4.

Here is another small patch.

With regards,
Timur Bakeyev.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agoSet SIGRTMIN to NSIG
Timur I. Bakeyev [Sun, 7 Jun 2009 13:58:38 +0000 (13:58 +0000)]
Set SIGRTMIN to NSIG

In the includes we define SIGRTMIN to 32 if it's not defined already. This
value could be fairly low and it's better to use NSIG(number of defined
signals) as the lower mark for the available signals.

We have similar defenition in the source3/smbd/aio.c, which can be safely
removed, as it comes from includes.h then.

With regards,
Timur Bakeyev.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agoCheck for dmalloc at the end of the configure
Timur I. Bakeyev [Sun, 7 Jun 2009 12:50:15 +0000 (12:50 +0000)]
Check for dmalloc at the end of the configure

Enabling dmalloc in Samba3 build leads to the wrong detection of the
strndup() function - there isn't one in FreeBSD prior to 7.2, but
dmalloc defines it, so, farther tests with -ldmalloc added wrongly
find it. the cheapest fix is to move dmalloc detection and inclusion
to the bottom of configure, so it can't affect detection of the system
capabilities.

Here is the patch.

With regards,
Timur Bakeyev.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agoAdd langinfo.h to the system/locale.h
Timur I. Bakeyev [Sun, 7 Jun 2009 12:39:22 +0000 (12:39 +0000)]
Add langinfo.h to the system/locale.h

This patch for Samba4. It's not really inspired by any real need, just
for the consistency. We define replace/system/locale.h as a generic
header, that includes all locale related headers and we are using
nl_langinfo at least in Samba3. So, it would be consistent to add yet
another locale-related header to the set of locale.h headers.

Here is the patch.

With regards,
Timur Bakeyev.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agoMake tunable for modulesdir
Timur I. Bakeyev [Sun, 7 Jun 2009 12:34:54 +0000 (12:34 +0000)]
Make tunable for modulesdir

This patch is for Samba4. It adds configure tunable for modulesdir -
location, where modules should be installed. In the case, when no
FHS compliance is used and libdir is redefined, modulesdir still
points to $PREFIX/modules. In some installations it may be not desired.
I'd rather set it myself :)

So, here is the patch.

With regards,
Timur Bakeyev.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agorl_event_hook detection
Timur I. Bakeyev [Sun, 7 Jun 2009 12:00:22 +0000 (12:00 +0000)]
rl_event_hook detection

This patch is relevant for Samba4 source mostly. The way, how readline
compiled under FreeBSD makes it require stdio.h to get all the necessary
declarations. Without this addition rl_event_hook is not properly detected.

With regards,
Timur Bakeyev.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos3-test: finally enable RPC-SAMR against samba3.
Günther Deschner [Mon, 8 Jun 2009 08:52:05 +0000 (10:52 +0200)]
s3-test: finally enable RPC-SAMR against samba3.

We now pass it :-)

Guenther

14 years agos3-winbindd: workaround alias enumeration in expand_groups().
Günther Deschner [Mon, 8 Jun 2009 11:04:47 +0000 (13:04 +0200)]
s3-winbindd: workaround alias enumeration in expand_groups().

alias enumeration in NSS is not done properly done atm and needs to be fixed.

Guenther

14 years agos3-selftest: forward NSS_WRAPPER_WINBIND_SO_PATH env to tests.
Günther Deschner [Fri, 5 Jun 2009 21:21:54 +0000 (23:21 +0200)]
s3-selftest: forward NSS_WRAPPER_WINBIND_SO_PATH env to tests.

Guenther

14 years agotest: add NSS_WRAPPER_WINBIND_SO_PATH to make test.
Günther Deschner [Fri, 5 Jun 2009 14:12:46 +0000 (16:12 +0200)]
test: add NSS_WRAPPER_WINBIND_SO_PATH to make test.

Guenther

14 years agos3-samr: support _samr_SetGroupInfo level 2.
Günther Deschner [Mon, 8 Jun 2009 08:43:17 +0000 (10:43 +0200)]
s3-samr: support _samr_SetGroupInfo level 2.

Guenther

14 years agos4-smbtorture: exclude oem_information checking for s3 in RPC-SAMR.
Günther Deschner [Sun, 7 Jun 2009 00:27:50 +0000 (02:27 +0200)]
s4-smbtorture: exclude oem_information checking for s3 in RPC-SAMR.

Guenther

14 years agos3-charcnv: always talloc_free in convert_string_talloc() error path.
Günther Deschner [Mon, 8 Jun 2009 08:40:57 +0000 (10:40 +0200)]
s3-charcnv: always talloc_free in convert_string_talloc() error path.

Guenther

14 years agos3-charcnv: remove remaining malloc references in convert_string_talloc().
Günther Deschner [Sun, 7 Jun 2009 14:04:07 +0000 (16:04 +0200)]
s3-charcnv: remove remaining malloc references in convert_string_talloc().

Guenther

14 years agonss_wrapper: add my copyright.
Günther Deschner [Sun, 7 Jun 2009 13:59:20 +0000 (15:59 +0200)]
nss_wrapper: add my copyright.

Guenther

14 years agoFurther fix for 6449
Volker Lendecke [Mon, 8 Jun 2009 08:05:11 +0000 (10:05 +0200)]
Further fix for 6449

Thanks to TAKAHASHI Motonobu <monyo@samba.gr.jp> for reporting!

14 years agoFix a valgrind error in "net rap user add"
Volker Lendecke [Mon, 8 Jun 2009 07:46:52 +0000 (09:46 +0200)]
Fix a valgrind error in "net rap user add"

14 years agoFix bug 6449
Volker Lendecke [Mon, 8 Jun 2009 07:45:21 +0000 (09:45 +0200)]
Fix bug 6449

Thanks to TAKAHASHI Motonobu <monyo@samba.gr.jp> for reporting!

14 years agoreplace: add fallback define for IOV_MAX
Stefan Metzmacher [Mon, 8 Jun 2009 07:01:45 +0000 (09:01 +0200)]
replace: add fallback define for IOV_MAX

This hopefully fixes the build on IRIX.

metze

14 years agotalloc: try to fix the source4 build on AIX
Stefan Metzmacher [Mon, 8 Jun 2009 06:20:11 +0000 (08:20 +0200)]
talloc: try to fix the source4 build on AIX

metze

14 years agoasync_sock: try fix the source4 build on FreeBSD, Solaris, SLES8
Stefan Metzmacher [Mon, 8 Jun 2009 06:15:57 +0000 (08:15 +0200)]
async_sock: try fix the source4 build on FreeBSD, Solaris, SLES8

metze

14 years agoUpdate WHATSNEW for an alpha8 release this week.
Andrew Bartlett [Mon, 8 Jun 2009 02:54:15 +0000 (12:54 +1000)]
Update WHATSNEW for an alpha8 release this week.

Please update this file with things you have worked on, if you want
them to be mentioned in the release.

Andrew Bartlett

14 years agoAdd "net sam createdomaingroup"
Volker Lendecke [Sun, 7 Jun 2009 21:11:12 +0000 (23:11 +0200)]
Add "net sam createdomaingroup"

14 years agoMore pdb_ads stuff
Volker Lendecke [Sun, 7 Jun 2009 17:09:41 +0000 (19:09 +0200)]
More pdb_ads stuff

14 years agoAdd tldap_pull_uint32
Volker Lendecke [Sun, 7 Jun 2009 17:08:52 +0000 (19:08 +0200)]
Add tldap_pull_uint32

14 years agomount.cifs: update the mount.cifs manpage
Jeff Layton [Sun, 7 Jun 2009 12:38:25 +0000 (08:38 -0400)]
mount.cifs: update the mount.cifs manpage

Add a new section entitled FILE AND DIRECTORY OWNERSHIP AND PERMISSIONS
that attempts to cover information about this topic. Change the uid=
and gid= options to refer to that section. Add new varlistentries for
forceuid, forcegid and dynperm.

Also update the information about how the program behaves when installed
as a setuid binary.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
14 years agoMake "net sam list" work for groups, aliases and builtins
Volker Lendecke [Sun, 7 Jun 2009 10:30:26 +0000 (12:30 +0200)]
Make "net sam list" work for groups, aliases and builtins

14 years agoReturn full info in pdb_ads_search_users()
Volker Lendecke [Sun, 7 Jun 2009 10:04:56 +0000 (12:04 +0200)]
Return full info in pdb_ads_search_users()

14 years agoFix syntax of sending a delete request
Volker Lendecke [Sun, 7 Jun 2009 09:45:01 +0000 (11:45 +0200)]
Fix syntax of sending a delete request

14 years agoreq_del and req_abandon are ASN1_APPLICATION_SIMPLE
Volker Lendecke [Sun, 7 Jun 2009 09:44:37 +0000 (11:44 +0200)]
req_del and req_abandon are ASN1_APPLICATION_SIMPLE

Ok, ASN1_APPLICATION everywhere was too easy :-)

14 years agoFix after making tldap independent of ldap.h
Volker Lendecke [Sun, 7 Jun 2009 09:26:25 +0000 (11:26 +0200)]
Fix after making tldap independent of ldap.h

14 years agos3-groupdb: fix enum_aliasmem in ldb branch.
Günther Deschner [Sun, 7 Jun 2009 09:23:09 +0000 (11:23 +0200)]
s3-groupdb: fix enum_aliasmem in ldb branch.

It is totally valid to have an alias with no members.

Tridge, please check.

Found by RPC-SAMR torture test.

Guenther

14 years agos3-samr: fix return code of _samr_LookupRids when run with pdb_ldap.
Günther Deschner [Sun, 7 Jun 2009 00:02:26 +0000 (02:02 +0200)]
s3-samr: fix return code of _samr_LookupRids when run with pdb_ldap.

when _samr_LookupRids is called with no rids, it needs to return
NT_STATUS_NONE_MAPPED (not NT_STATUS_NO_MEMORY).

Found by RPC-SAMR torture test.

Guenther

14 years agos3-samr: SetGroupInfo level 1 should not return NT_STATUS_INVALID_INFO_CLASS.
Günther Deschner [Sun, 7 Jun 2009 00:01:13 +0000 (02:01 +0200)]
s3-samr: SetGroupInfo level 1 should not return NT_STATUS_INVALID_INFO_CLASS.

Found by RPC-SAMR torture test.

Guenther

14 years agomount.cifs: properly check for mount being in fstab when running setuid root (try#3)
Jeff Layton [Sat, 6 Jun 2009 23:46:24 +0000 (19:46 -0400)]
mount.cifs: properly check for mount being in fstab when running setuid root (try#3)

This is the third attempt to clean up the checks when a setuid
mount.cifs is run by an unprivileged user. The main difference in this
patch from the last one is that it fixes a bug where the mount might
have failed if unnecessarily if CIFS_LEGACY_SETUID_CHECK was set.

When mount.cifs is installed setuid root and run as an unprivileged
user, it does some checks to limit how the mount is used. It checks that
the mountpoint is owned by the user doing the mount.

These checks however do not match those that /bin/mount does when it is
called by an unprivileged user. When /bin/mount is called by an
unprivileged user to do a mount, it checks that the mount in question is
in /etc/fstab, that it has the "user" option set, etc.

This means that it's currently not possible to set up user mounts the
standard way (by the admin, in /etc/fstab) and simultaneously protect
from an unprivileged user calling mount.cifs directly to mount a share
on any directory that that user owns.

Fix this by making the checks in mount.cifs match those of /bin/mount
itself. This is a necessary step to make mount.cifs safe to be installed
as a setuid binary, but not sufficient. For that, we'd need to give
mount.cifs a proper security audit.

Since some users may be depending on the legacy behavior, this patch
also adds the ability to build mount.cifs with the older behavior.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
14 years agos3-samr: fix _QueryDisplayInformation r->out.returned_size.
Günther Deschner [Sat, 6 Jun 2009 22:47:03 +0000 (00:47 +0200)]
s3-samr: fix _QueryDisplayInformation r->out.returned_size.

*r->out.returned_size needs to be 0 if nothing was enumerated.

Found by RPC-SAMR torture test.

Guenther

14 years agos3-samr: remove total_data_size variable in _samr_QueryDisplayInfo.
Günther Deschner [Sat, 6 Jun 2009 22:44:51 +0000 (00:44 +0200)]
s3-samr: remove total_data_size variable in _samr_QueryDisplayInfo.

Guenther

14 years agos3-samr: let _samr_SetGroupInfo level 3 just pass with success.
Günther Deschner [Sat, 6 Jun 2009 22:42:06 +0000 (00:42 +0200)]
s3-samr: let _samr_SetGroupInfo level 3 just pass with success.

Guenther

14 years agos3-samr: _samr_EnumDomain{Users,Groups} need to return an emtpy array even for builti...
Günther Deschner [Sat, 6 Jun 2009 22:40:46 +0000 (00:40 +0200)]
s3-samr: _samr_EnumDomain{Users,Groups} need to return an emtpy array even for builtin domain.

Found by RPC-SAMR torture test.

Guenther

14 years agos4-smbtorture: skip samr MultipleMember alias tests for 3 as well as we do already...
Günther Deschner [Sat, 6 Jun 2009 22:39:32 +0000 (00:39 +0200)]
s4-smbtorture: skip samr MultipleMember alias tests for 3 as well as we do already for s4.

Guenther

14 years agos3-samr: cosmetic fixes for _samr_QueryDisplayInfo.
Günther Deschner [Sat, 6 Jun 2009 21:40:22 +0000 (23:40 +0200)]
s3-samr: cosmetic fixes for _samr_QueryDisplayInfo.

use the variables of the struct samr_QueryDisplayInfo directly to make
it easier to track where variables are defined from.

Guenther

14 years agotestsuite/nsswitch/get{gr,pw}ent_r.c(dump_{gr,pw}ent): fixed wrong condition.
Slava Semushin [Sat, 6 Jun 2009 14:53:38 +0000 (21:53 +0700)]
testsuite/nsswitch/get{gr,pw}ent_r.c(dump_{gr,pw}ent): fixed wrong condition.

When fopen() fails it return NULL, so condition where return value
less than zero never evaluated to truth.

Found by cppcheck.

14 years agolib/tdb/tools/tdbtorture.c: fixed memory leak.
Slava Semushin [Sat, 6 Jun 2009 17:06:04 +0000 (00:06 +0700)]
lib/tdb/tools/tdbtorture.c: fixed memory leak.

Found by cppcheck:
[lib/tdb/tools/tdbtorture.c:326]: (error) Memory leak: pids

14 years agos3/docs: Fix example.
Karolin Seeger [Sat, 6 Jun 2009 13:56:47 +0000 (15:56 +0200)]
s3/docs: Fix example.

The 'ldap suffix' is not added automatically to the 'ldap admin dn'.
This fixes bug #5584.
Thanks to Stefan Bauer <stefan.bauer [at] plzk.de> for reporting!

Karolin

14 years agoAttempt to fix the build without system-ldap.
Volker Lendecke [Sat, 6 Jun 2009 13:32:22 +0000 (15:32 +0200)]
Attempt to fix the build without system-ldap.

I really tried, but I knew I would miss something... :-)

14 years agos3/passdb: Fix debug message: 'net setmaxrid' does not exist.
Karolin Seeger [Sat, 6 Jun 2009 13:10:08 +0000 (15:10 +0200)]
s3/passdb: Fix debug message: 'net setmaxrid' does not exist.

This is aiming bug #6351.

Karolin

14 years agoAdd an early prototyp of pdb_ads.c.
Volker Lendecke [Sat, 6 Jun 2009 09:25:02 +0000 (11:25 +0200)]
Add an early prototyp of pdb_ads.c.

The purpose of this module is to connect to a locally running samba4 ldap
server for an alternative "Franky" setup. Right now it contains a couple of
gross hacks: For example it just takes the s4-chosed RID directly as uid/gid...

Checking in tldap and pdb_ads now, I think 3777 insertions are enough for a
start...

14 years agoAllow access as SYSTEM on a privileged ldapi connection
Volker Lendecke [Fri, 29 May 2009 08:48:54 +0000 (10:48 +0200)]
Allow access as SYSTEM on a privileged ldapi connection

This patch creates ldap_priv/ as a subdirectory under the private dir with the
appropriate permissions to only allow the same access as the privileged winbind
socket allows. Connecting to ldap_priv/ldapi gives SYSTEM access to the ldap
database.

14 years agoAdd some samba-style tldap utility functions
Volker Lendecke [Sat, 6 Jun 2009 10:32:46 +0000 (12:32 +0200)]
Add some samba-style tldap utility functions

14 years agoAdd the early start of an async ldap library
Volker Lendecke [Sat, 6 Jun 2009 10:30:57 +0000 (12:30 +0200)]
Add the early start of an async ldap library

There's a lot of things this does not do yet: For example it does not parse the
reply blob in the sasl bind, it does not do anything with controls yet, a lot
of the ldap requests are not covered yet. But it provides a basis for me to
play with a pdb_ads passdb module.

14 years agos3:smbd: FSCTL_PIPE_TRANSCEIVE on a none IPC$ share should give NOT_SUPPORTED
Stefan Metzmacher [Sat, 6 Jun 2009 08:36:42 +0000 (10:36 +0200)]
s3:smbd: FSCTL_PIPE_TRANSCEIVE on a none IPC$ share should give NOT_SUPPORTED

metze

14 years agos3:smbd: return the same things as Windows 7 for SMB2 Ioctl responses
Stefan Metzmacher [Sat, 6 Jun 2009 08:25:10 +0000 (10:25 +0200)]
s3:smbd: return the same things as Windows 7 for SMB2 Ioctl responses

metze

14 years agoFix some nonempty blank lines
Volker Lendecke [Sun, 31 May 2009 14:19:11 +0000 (16:19 +0200)]
Fix some nonempty blank lines

14 years agoUse data_blob_null instead of data_blob(NULL, 0)
Volker Lendecke [Mon, 1 Jun 2009 22:20:48 +0000 (00:20 +0200)]
Use data_blob_null instead of data_blob(NULL, 0)

14 years agoFix an uninitialized variable read in async_connect_send
Volker Lendecke [Fri, 5 Jun 2009 22:46:38 +0000 (00:46 +0200)]
Fix an uninitialized variable read in async_connect_send

14 years agoAllow AF_UNIX for open_socket_out
Volker Lendecke [Fri, 5 Jun 2009 22:47:53 +0000 (00:47 +0200)]
Allow AF_UNIX for open_socket_out

14 years agos3-winbindd: add some debug statements while tracking down a bug.
Günther Deschner [Fri, 5 Jun 2009 23:50:17 +0000 (01:50 +0200)]
s3-winbindd: add some debug statements while tracking down a bug.

Guenther

14 years agonss_wrapper: rename nwrap_cache_{re,un}load as per metzes request.
Günther Deschner [Fri, 5 Jun 2009 23:14:04 +0000 (01:14 +0200)]
nss_wrapper: rename nwrap_cache_{re,un}load as per metzes request.

Guenther

14 years agoMake cli_ftruncate async. Also add a simple test.
Jeremy Allison [Fri, 5 Jun 2009 23:06:05 +0000 (16:06 -0700)]
Make cli_ftruncate async. Also add a simple test.
Jeremy.

14 years agonss_wrapper: add support for loading nss_winbind.so via WINBIND_SO_PATH env.
Günther Deschner [Thu, 4 Jun 2009 10:26:55 +0000 (12:26 +0200)]
nss_wrapper: add support for loading nss_winbind.so via WINBIND_SO_PATH env.

Guenther

14 years agonss_wrapper: fill in module nwrap_backend.
Günther Deschner [Thu, 4 Jun 2009 10:25:14 +0000 (12:25 +0200)]
nss_wrapper: fill in module nwrap_backend.

Guenther

14 years agonss_wrapper: add missing return in nwrap_module_init().
Günther Deschner [Fri, 5 Jun 2009 21:10:58 +0000 (23:10 +0200)]
nss_wrapper: add missing return in nwrap_module_init().

Guenther

14 years agonss_wrapper: add skeleton for module nwrap_backend.
Günther Deschner [Thu, 4 Jun 2009 10:17:39 +0000 (12:17 +0200)]
nss_wrapper: add skeleton for module nwrap_backend.

Guenther

14 years agonss_wrapper: add capability to load nss modules.
Günther Deschner [Thu, 4 Jun 2009 09:59:32 +0000 (11:59 +0200)]
nss_wrapper: add capability to load nss modules.

Guenther

14 years agonss_wrapper: add struct nwrap_backend.
Günther Deschner [Wed, 3 Jun 2009 09:10:13 +0000 (11:10 +0200)]
nss_wrapper: add struct nwrap_backend.

Guenther

14 years agos3:smbd: split smbd_smb2_flush() into a tevent_req based _send()/_recv() pair
Stefan Metzmacher [Fri, 5 Jun 2009 19:38:10 +0000 (21:38 +0200)]
s3:smbd: split smbd_smb2_flush() into a tevent_req based _send()/_recv() pair

metze

14 years agos3:smbd: split smbd_smb2_create() into a tevent_req based _send()/_recv() pair
Stefan Metzmacher [Fri, 5 Jun 2009 19:06:27 +0000 (21:06 +0200)]
s3:smbd: split smbd_smb2_create() into a tevent_req based _send()/_recv() pair

metze

14 years agos3:smbd: fix the build in smb2_ioctl.c
Stefan Metzmacher [Fri, 5 Jun 2009 19:04:37 +0000 (21:04 +0200)]
s3:smbd: fix the build in smb2_ioctl.c

metze

14 years agos3:smbd: add support for SMB2 Ioctl FSCTL_DFS_GET_REFERRALS
Stefan Metzmacher [Fri, 5 Jun 2009 16:38:20 +0000 (18:38 +0200)]
s3:smbd: add support for SMB2 Ioctl FSCTL_DFS_GET_REFERRALS

metze

14 years agos3:smbd: add support for STATUS_BUFFER_OVERFLOW to SMB2 Ioctl
Stefan Metzmacher [Fri, 5 Jun 2009 18:14:17 +0000 (20:14 +0200)]
s3:smbd: add support for STATUS_BUFFER_OVERFLOW to SMB2 Ioctl

metze

14 years agos3:smbd: keep the chain_fsp for SMB2 requests
Stefan Metzmacher [Fri, 5 Jun 2009 18:02:21 +0000 (20:02 +0200)]
s3:smbd: keep the chain_fsp for SMB2 requests

metze

14 years agos3:smbd: fix the logic for compounded requests
Stefan Metzmacher [Fri, 5 Jun 2009 17:49:40 +0000 (19:49 +0200)]
s3:smbd: fix the logic for compounded requests

metze

14 years agos3:smbd: only setup the dyn iovec if a a dyn blob is given
Stefan Metzmacher [Fri, 5 Jun 2009 17:46:27 +0000 (19:46 +0200)]
s3:smbd: only setup the dyn iovec if a a dyn blob is given

Otherwise leave the default in there, which takes care of
padding for compounded requests.

metze

14 years agos3:smbd: add support for SMB2 Ioctl FSCTL_PIPE_TRANSCEIVE on IPC$
Stefan Metzmacher [Fri, 5 Jun 2009 15:48:28 +0000 (17:48 +0200)]
s3:smbd: add support for SMB2 Ioctl FSCTL_PIPE_TRANSCEIVE on IPC$

metze

14 years agos3:smbd: add support for SMB2 Read on IPC$
Stefan Metzmacher [Fri, 5 Jun 2009 10:58:26 +0000 (12:58 +0200)]
s3:smbd: add support for SMB2 Read on IPC$

metze

14 years agos3:smbd: add support for SMB2 Write on IPC$
Stefan Metzmacher [Fri, 5 Jun 2009 10:54:22 +0000 (12:54 +0200)]
s3:smbd: add support for SMB2 Write on IPC$

metze

14 years agos3:smbd: add support for SMB2 Create on IPC$
Stefan Metzmacher [Fri, 5 Jun 2009 08:46:30 +0000 (10:46 +0200)]
s3:smbd: add support for SMB2 Create on IPC$

metze

14 years agos3:smbd: add support for SMB2 Ioctl
Stefan Metzmacher [Fri, 5 Jun 2009 15:32:58 +0000 (17:32 +0200)]
s3:smbd: add support for SMB2 Ioctl

We don't implement any level yet.

metze

14 years agonss_wrapper: add cross checking test to testsuite.
Günther Deschner [Thu, 4 Jun 2009 22:33:14 +0000 (00:33 +0200)]
nss_wrapper: add cross checking test to testsuite.

Guenther

14 years agonss_wrapper: add tests for getgrent_r to testsuite.
Günther Deschner [Thu, 4 Jun 2009 21:57:43 +0000 (23:57 +0200)]
nss_wrapper: add tests for getgrent_r to testsuite.

Guenther

14 years agonss_wrapper: add tests for getpwent_r to testsuite.
Günther Deschner [Thu, 4 Jun 2009 20:52:03 +0000 (22:52 +0200)]
nss_wrapper: add tests for getpwent_r to testsuite.

Guenther

14 years agonss_wrapper: fix segfault in nwrap_gr_copy_r()
Stefan Metzmacher [Fri, 5 Jun 2009 13:41:46 +0000 (15:41 +0200)]
nss_wrapper: fix segfault in nwrap_gr_copy_r()

metze

14 years agos3/docs: Fix typo.
Karolin Seeger [Fri, 5 Jun 2009 13:35:05 +0000 (15:35 +0200)]
s3/docs: Fix typo.

Karolin

14 years agos3:smbd: add missing return statements to the SMB2 write error cases
Stefan Metzmacher [Fri, 5 Jun 2009 12:32:27 +0000 (14:32 +0200)]
s3:smbd: add missing return statements to the SMB2 write error cases

metze

14 years agos3:smbd: add missing return statements to the SMB2 read error cases
Stefan Metzmacher [Fri, 5 Jun 2009 12:31:41 +0000 (14:31 +0200)]
s3:smbd: add missing return statements to the SMB2 read error cases

metze

14 years agonss_wrapper: rename test_nwrap_env to test_nwrap_enumeration in testsuite.
Günther Deschner [Fri, 5 Jun 2009 10:13:25 +0000 (12:13 +0200)]
nss_wrapper: rename test_nwrap_env to test_nwrap_enumeration in testsuite.

Guenther

14 years agonss_wrapper: add more coherency checks for user and group enumeration.
Günther Deschner [Thu, 4 Jun 2009 21:49:02 +0000 (23:49 +0200)]
nss_wrapper: add more coherency checks for user and group enumeration.

Guenther

14 years agos3:smbd: split smbd_smb2_write() into tevent_req based *_send()/_recv() functions
Stefan Metzmacher [Tue, 2 Jun 2009 15:34:46 +0000 (17:34 +0200)]
s3:smbd: split smbd_smb2_write() into tevent_req based *_send()/_recv() functions

metze

14 years agos3:smbd: split smbd_smb2_read() into tevent_req based *_send()/_recv() functions
Stefan Metzmacher [Fri, 5 Jun 2009 10:26:19 +0000 (12:26 +0200)]
s3:smbd: split smbd_smb2_read() into tevent_req based *_send()/_recv() functions

metze

14 years agos3:smbd: make smbd_server_connection_terminate() a macro
Stefan Metzmacher [Tue, 2 Jun 2009 14:07:08 +0000 (16:07 +0200)]
s3:smbd: make smbd_server_connection_terminate() a macro

metze

14 years agos3:smbd: implement smbd_smb2_request_error/done() as macros on top of the _ex() function
Stefan Metzmacher [Fri, 5 Jun 2009 09:05:03 +0000 (11:05 +0200)]
s3:smbd: implement smbd_smb2_request_error/done() as macros on top of the _ex() function

metze

14 years agos3:smbd: add support for printers to SMB2 Create
Stefan Metzmacher [Tue, 2 Jun 2009 14:07:53 +0000 (16:07 +0200)]
s3:smbd: add support for printers to SMB2 Create

This is not tested, but the code looks like the
for SMB1, so it's likely to work:-)

metze

14 years agosource3/torture/vfstest.c(process_file): fixed file descriptor leak.
Slava Semushin [Mon, 25 May 2009 16:59:05 +0000 (23:59 +0700)]
source3/torture/vfstest.c(process_file): fixed file descriptor leak.

Found by cppcheck:
[./source3/torture/vfstest.c:400]: (error) Resource leak: file