1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

49478 Commits

Author SHA1 Message Date
Volker Lendecke
2bb90b7a88 Remove "conn" parameter from np_open, smb_request contains it 2008-11-28 10:06:32 +01:00
Volker Lendecke
a790dcbc4e Remove inbuf references from the trans2ioctl code 2008-11-28 10:06:24 +01:00
Volker Lendecke
2719216d60 Consolidate the buffer checks for the reply_trans style functions
This is the one where I found the problem that led to 3.2.5. So if there is one
checkin in the last year that I would like others to review and *understand*,
it is this one :-)

Volker
2008-11-28 09:22:34 +01:00
Volker Lendecke
9a3be6f0f8 Move cli_trans_oob to lib/util.c
Rename it to trans_oob, it will be used in the server routines.
2008-11-28 08:24:37 +01:00
Volker Lendecke
738271fc20 Remove the variable "size" from reply_nttrans
This converts the range checks for the setup[] array to rely on req->wct being
set correctly in init_smb_request. As that already verifies the vwv array to be
in the range of the smb_request inbuf, we don't have to do overflow checks here
anymore.

Jeremy, please check thoroughly! :-)

Thanks,

Volker
2008-11-28 08:24:28 +01:00
Volker Lendecke
9da3101e44 Remove the variable "size" from reply_trans
This converts the range checks for the setup[] array to rely on req->wct being
set correctly in init_smb_request. As that already verifies the vwv array to be
in the range of the smb_request inbuf, we don't have to do overflow checks here
anymore.

Jeremy, please check thoroughly! :-)

Thanks,

Volker
2008-11-28 08:23:46 +01:00
Volker Lendecke
4a322398c5 Remove an unused variable 2008-11-28 08:23:20 +01:00
Volker Lendecke
599707c87a Remove two direct inbuf references from reply_sesssetup_and_X_spnego() 2008-11-28 08:23:12 +01:00
Günther Deschner
6a627b440e s3-samr: never allow to alter pwdlastset directly.
Guenther
2008-11-27 18:29:10 +01:00
Günther Deschner
257d99d0cd s3-samr: fix return code for invalid password sets in SetUserInfo.
Guenther
2008-11-27 18:28:59 +01:00
Günther Deschner
e398eed15a s3-samr: fix return code for invalid name in _samr_LookupDomain.
Guenther
2008-11-27 18:28:51 +01:00
Günther Deschner
d94f3e3db3 s3-samr: avoid enumeration and user creation on builtin domain handle.
Guenther
2008-11-27 18:28:43 +01:00
Günther Deschner
5f9524a956 s3-samr: support samr_CreateUser as well.
Guenther
2008-11-27 18:28:34 +01:00
Günther Deschner
9c2ed82d07 s3-samr: support samr_QueryUserInfo2 as well.
Guenther
2008-11-27 18:28:25 +01:00
Günther Deschner
bed91c0e46 s3-samr: add support for _samr_QueryUserInfo level 5.
Guenther
2008-11-27 18:27:36 +01:00
Günther Deschner
e09f658be7 s3-samr: add init_samr_user_info5.
Guenther
2008-11-27 18:27:26 +01:00
Günther Deschner
5aebfd9086 s4-smbtorture: fix some build warnings.
Guenther
2008-11-27 18:19:44 +01:00
Volker Lendecke
114f519233 Fix the offset checks in the trans routines
This fixes a potential crash bug, a client can make us read memory we
should not read. Luckily I got the disp checks right...

Volker
(cherry picked from commit 64a1d80851da5b05e70ec6c96f6e9bd473748369)
(cherry picked from commit f04c5650a3aeca23591ddc781c4b297caaf9bb3f)
2008-11-27 17:19:01 +01:00
Jelmer Vernooij
58db2befbd Move netr_SamDatabaseID8Bit to netlogon.idl to prevent problems with
forward enum declarations when compiled with C++.
2008-11-26 18:20:51 +01:00
Jelmer Vernooij
8e9c5f8c00 Don't filter out any variables for config.pm, only for config.mk. 2008-11-26 16:55:32 +01:00
Andreas Schneider
b39611c36b Fix circular dependency error with autoconf 2.6.3.
Signed-off-by: Andreas Schneider <anschneider@suse.de>
2008-11-26 16:44:50 +01:00
Jelmer Vernooij
f1d887251d Use a simple shell loop instead of _AC_SUBST_VARS.
Autoconf has removed _AC_SUBST_VARS in newer versions.
2008-11-26 16:22:11 +01:00
Jeremy Allison
d3fa3c080f Fix bug #5914 - Build failure: redefinition of struct name_list
Jeremy.
2008-11-25 15:53:56 -08:00
Jelmer Vernooij
fc0985dbc5 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2008-11-25 15:42:47 +01:00
Sam Liddicott
f5a87e35d2 Make sure dom_sid.h is installed. 2008-11-25 15:41:07 +01:00
Günther Deschner
948218643a s3-samr: fix _samr_LookupNames return code.
Guenther
2008-11-25 15:39:51 +01:00
Michael Adam
03304c5152 Revert "UNFINISHED - s3:idmap_ad: multi-domain"
This reverts commit 6a4957d35d50e6508917aca62b282ae4904187c8.

Sorry - this got accidentially pushed.

Michael
2008-11-25 15:24:43 +01:00
Michael Adam
6a4957d35d UNFINISHED - s3:idmap_ad: multi-domain
Michael
2008-11-25 11:29:42 +01:00
Michael Adam
afbfbd7f4c [s3]zfsacl: "return" is not a function.
Michael
2008-11-25 11:29:41 +01:00
Nils Goroll
bf04324592 [s3]zfsacl: Prevent calling POSIX ACL vfs methods on zfs share.
This is a proposed fix for Bugs #5135 and #5446.

Signed-off-by: Michael Adam <obnox@samba.org>
2008-11-25 11:29:40 +01:00
Kai Blin
9d2c2a7a0e libwbclient: Implement wbcGetgrent and wbcGetgrlist 2008-11-25 09:28:25 +01:00
Kai Blin
5856364af6 libwbclient: Implement wbcGetpwent 2008-11-25 09:28:25 +01:00
Kai Blin
6485c99074 libwbclient: Add placeholder function for WINBINDD_CCACHE_NTLMAUTH 2008-11-25 09:28:25 +01:00
Kai Blin
1fac144703 libwbclient: Fix typo in wbcGetgrent docstring. 2008-11-25 09:28:24 +01:00
Kai Blin
ddf8216854 libwbclient: Add placeholder function for WINBINDD_GETGRLST 2008-11-25 09:28:24 +01:00
Kai Blin
d1d9c06294 libwbclient: Add placeholder functions for wbcQuery[GSU]idTo[GSU]id 2008-11-25 09:28:24 +01:00
Dan Sledz
417f187645 Allow SYSLOG_FACILITY to be modified with a new configure option called --with-syslog-facility 2008-11-24 15:34:33 -08:00
Jeremy Allison
2c45893593 Fix bug #5873 - ACL inheritance cannot be broken. This regresses #4308, but that will have to
be fixed another way.
Jeremy.
2008-11-24 15:28:11 -08:00
Mathias Dietz
51b840a07e Search for gpfs functions in both libgpfs_gpl.so an libgpfs.so
As of GPFS 3.2.1 PTF8 libgpfs will be available as GPL, so we don't need the
special libgpfs_gpl lib anymore. For backwards compatibility with pre-PTF8 GPFS
installations, still look there.
2008-11-24 16:22:05 +01:00
Stefan Metzmacher
26461a72da s3:libads/ldap.c: return an error instead of crashing when no realm is given
The bug was triggered by "net ads info -S 127.8.7.6" (where 127.8.7.6 doesn't ex
and "disable netbios = yes".

metze

Signed-off-by: Michael Adam <obnox@samba.org>
2008-11-24 15:23:50 +01:00
Volker Lendecke
f340ed1348 Fix nonempty blank lines 2008-11-24 11:39:03 +01:00
Volker Lendecke
907f126d3e Get rid of pipes_struct->pipe_user, we have server_info now --- YESSS! 2008-11-24 11:39:03 +01:00
Volker Lendecke
6f840dd678 Remove unused make_connection_with_chdir() 2008-11-24 11:39:03 +01:00
Volker Lendecke
c25f5c778a Convert delete_driver_files to use create_conn_struct
Jerry, please check!
2008-11-24 11:39:03 +01:00
Volker Lendecke
cb4f8573ba Convert get_correct_cversion to use create_conn_struct
Jerry, please check!
2008-11-24 11:39:03 +01:00
Volker Lendecke
783ab0480b Convert move_driver_to_download_area to use create_conn_struct
This removes a use of struct current_user and the vuid

The become_user() here is unnecessary, within the spoolss handling code we have
switched to the authenticated pipe user anyway.

Jerry, please check!
2008-11-24 11:39:03 +01:00
Steven Danneman
798b9e1ad6 Fix to allow setting of NULL DACL/SACL
This is a modification of Jeremy's 7522ef15aca2429ef57c75d8297dd8121e79c9da
commit.

If no DACL/SACL is present in the packet, the SEC_INFO field should still be
passed down as is to the VFS layer to signal the creation of a NULL DACL/SACL.

As seen in metze RAW-ACL test_nttrans_create_null_dacl(), a NULL DACL is set
regardless of the SEC_DESC_DACL_PRESENT bit being set.
2008-11-23 18:30:56 -08:00
Kai Blin
a36415a565 s3-rpcclient; Really fix compile warning.
Screwed up in 526c609d, now the real fix.
2008-11-23 23:54:27 +01:00
Michael Adam
b416135f6b libcli/nbt: fix some extrasemi compile warnings.
Michael
2008-11-23 23:01:04 +01:00
Volker Lendecke
ed27d91068 Add auth_serversupplied_info to create_conn_struct
srvsvc needs it, as will printing
2008-11-23 22:41:59 +01:00