1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
Commit Graph

76405 Commits

Author SHA1 Message Date
Christian Ambach
ec0c1f2c34 s3:smb2_create: fix allocation size return value when opening existing files
at least on GPFS, using the stat information gave wrong results
example: FileInfo gave 12582912000, Create Response gave 25769803776000

This makes the create part use the same method as fileinfo,
matching up the replies of both calls

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Oct 10 21:49:53 CEST 2011 on sn-devel-104
2011-10-10 21:49:53 +02:00
Günther Deschner
795aefec0c s3-passdb: split out passdb/pdb_smbpasswd.h.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Oct 10 20:14:46 CEST 2011 on sn-devel-104
2011-10-10 20:14:46 +02:00
Günther Deschner
8c2f72d6b8 s3-passdb: split out passdb/pdb_wbc_sam.h.
Guenther
2011-10-10 18:40:40 +02:00
Günther Deschner
efab0086ba s3-passdb: split out passdb/pdb_tdb.h.
Guenther
2011-10-10 18:40:33 +02:00
Günther Deschner
7119c8ba14 s3-net: when all DNS servers fail to operate, the overal DNS registration result
must be a failure.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Oct 10 15:59:20 CEST 2011 on sn-devel-104
2011-10-10 15:59:20 +02:00
Stefan Metzmacher
f47b4055e8 ldb: change version to 1.1.3 after pyldb changes
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Oct 10 14:24:25 CEST 2011 on sn-devel-104
2011-10-10 14:24:25 +02:00
Jelmer Vernooij
1417ea1eed Remove pointless exception catching in tests.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Oct  9 00:00:26 CEST 2011 on sn-devel-104
2011-10-09 00:00:25 +02:00
Jelmer Vernooij
d7d5858b74 netcmd/domain: Remove unused imports. 2011-10-08 22:28:25 +02:00
Karolin Seeger
851d6625d5 s3-docs: Fix typo.
Karolin

Autobuild-User: Karolin Seeger <kseeger@samba.org>
Autobuild-Date: Sat Oct  8 22:27:07 CEST 2011 on sn-devel-104
2011-10-08 22:27:07 +02:00
Karolin Seeger
8aaa277546 s3-docs: Fix bug #7908.
Fix typo.

Thanks to John Bradshaw for reporting!

Karolin
2011-10-08 20:53:18 +02:00
Jelmer Vernooij
8111001977 netcmd: Avoid catching all exceptions, avoid using ';' at the end of lines.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Oct  8 15:46:46 CEST 2011 on sn-devel-104
2011-10-08 15:46:46 +02:00
Jelmer Vernooij
dc3df567be upgrade: Avoid catching all exceptions, just catch the ones we care about. 2011-10-08 14:15:11 +02:00
Matthias Dieter Wallnöfer
9c979e88dc s4:findprovisionusnranges - the default python path is detected over "env"
Reviewed-by: Jelmer

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Oct  8 13:06:20 CEST 2011 on sn-devel-104
2011-10-08 13:06:20 +02:00
Matthias Dieter Wallnöfer
7447acded1 s4:upgrading-samba4.txt - fix mistakes reported by bug #8504
Reviewed-by: Jelmer
2011-10-08 11:30:29 +02:00
Stefan Metzmacher
ce5b4b3fd9 examples/VFS: add skel_get_dfs_referrals()
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Oct  8 11:29:18 CEST 2011 on sn-devel-104
2011-10-08 11:29:18 +02:00
Stefan Metzmacher
9ca88eb10b examples/VFS: fix names in skel_opaque.c
metze
2011-10-08 09:52:23 +02:00
Stefan Metzmacher
10fdc9ad68 s4:torture/smb2: avoid '//' comments
The compiler on openindiana doesn't like them.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Oct  8 08:56:10 CEST 2011 on sn-devel-104
2011-10-08 08:56:10 +02:00
Stefan Metzmacher
627f930100 s4:torture/drs: avoid '//' comments
The compiler on openindiana doesn't like them.

metze
2011-10-08 07:24:15 +02:00
Stefan Metzmacher
f007f68f70 s4:lib/wmi: avoid '//' comments
The compiler on openindiana doesn't like them.

metze
2011-10-08 07:24:14 +02:00
Stefan Metzmacher
2a6c5c8edb s3:utils: avoid '//' comments
The compiler on openindiana doesn't like them.

metze
2011-10-08 07:24:14 +02:00
Stefan Metzmacher
4ebd510abe s3:lib/netapi: avoid '//' comments
The compiler on openindiana doesn't like them.

metze
2011-10-08 07:24:13 +02:00
Stefan Metzmacher
ee4f418288 dnsserver.idl: avoid '//' comments
The compiler on openindiana doesn't like them.

metze
2011-10-08 07:24:13 +02:00
Andrew Bartlett
078db8f6c9 build: build wbinfo only once in the waf build
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sat Oct  8 04:52:03 CEST 2011 on sn-devel-104
2011-10-08 04:52:03 +02:00
Andrew Bartlett
820fe8acca build: remove double-setting of build_public_headers
The top level build already sets this, so we do not need to set it twice.

Andrew Bartlett
2011-10-08 03:19:25 +02:00
Andrew Bartlett
50c8d3813c build: s3 public headers appear to be correct now
The build now passes without this setting, so remove it to ensure we
do this check in future.

Andrew Bartlett
2011-10-08 03:19:25 +02:00
Stefan Metzmacher
f0cd3f62d0 selftest: run dfs tests on plugin_s4_dc
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Oct  8 03:18:54 CEST 2011 on sn-devel-104
2011-10-08 03:18:54 +02:00
Stefan Metzmacher
29dbda56b5 s3:modules: add vfs_dfs_samba4
This module overloads the SMB_VFS_GET_DFS_REFERRAL() hooks,
in order to support the domain, dc and sysvol referrals
for a AD DC.

The config would look like this:

[IPC$]
    vfs objects = dfs_samba4

metze
2011-10-08 01:43:38 +02:00
Stefan Metzmacher
09731c7687 s3:msdfs: removed unused variables
metze
2011-10-08 01:43:38 +02:00
Stefan Metzmacher
f6eb85c952 s3:msdfs: implement setup_dfs_referral() on top of SMB_VFS_GET_DFS_REFERRALS()
metze
2011-10-08 01:43:38 +02:00
Stefan Metzmacher
9bd26d8190 s3:vfs: add SMB_VFS_GET_DFS_REFERRAL() hooks
metze
2011-10-08 01:43:38 +02:00
Stefan Metzmacher
37a17a4917 s3:param: add lp_host_msdfs to loadparm_s3_context
metze
2011-10-08 01:43:38 +02:00
Stefan Metzmacher
cc17ac9bba s4:smb_server: implement dfs referral handing on top of dfs_server_ad_get_referrals()
metze
2011-10-08 01:43:38 +02:00
Stefan Metzmacher
f697956dcb dfs_server: add generic dfs_server_ad_get_referrals() call
This is a generic function to implement the domain, dc and sysvol
DFS referrals.

metze
2011-10-08 01:43:38 +02:00
Michael Adam
de912e783b examples/VFS: fix a typo in the README
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Sat Oct  8 01:42:33 CEST 2011 on sn-devel-104
2011-10-08 01:42:33 +02:00
Jeremy Allison
c80ba57169 Fix bug #8509 - Read-only handles on SAMR allow SAMR_DOMAIN_ACCESS_CREATE_USER.
Not a security issue as we also check inside _samr_CreateUser2.
Thanks to Andreas Schneider <asn@samba.org> for finding and testing this.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Oct  7 21:51:27 CEST 2011 on sn-devel-104
2011-10-07 21:51:27 +02:00
Stefan Metzmacher
bcb02129c3 s4:dsdb/password_hash: add DSDB_CONTROL_PASSWORD_BYPASS_LAST_SET_OID
Which allows the caller to pass a given 'pwdLastSet' value
(every useful for migrations).

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Oct  7 15:28:13 CEST 2011 on sn-devel-104
2011-10-07 15:28:13 +02:00
Stefan Metzmacher
94899cd83c Revert "ldb: support raw OIDs in control string parsing"
This reverts commit ea41860d32.

This is not needed, because we already have the 'local_oid' magic.

metze
2011-10-07 12:20:49 +02:00
Stefan Metzmacher
c180feb16c s4:dbchecker: make use of local_oid controls for dsdb.DSDB_CONTROL_DBCHECK
metze
2011-10-07 12:20:49 +02:00
Stefan Metzmacher
ec910d94d3 ldb/ldb_controls: allow oid up to 255 chars
We have char oid[256], so allow sscanf() to consume 255 chars.

metze
2011-10-07 12:20:48 +02:00
Stefan Metzmacher
ff1ce6521b s4:dsdb: fix the order of DSDB_CONTROL_* defines in samdb.h
This makes clear that struct dsdb_control_password_change
belongs to DSDB_CONTROL_PASSWORD_CHANGE_OID.

metze
2011-10-07 12:20:45 +02:00
Andreas Schneider
4493c578b0 uid_wrapper: Add uwrap_setresuid().
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Fri Oct  7 12:04:05 CEST 2011 on sn-devel-104
2011-10-07 12:04:04 +02:00
Andreas Schneider
17f1276fea uid_wrapper: Add uwrap_setregid(). 2011-10-07 10:24:08 +02:00
Andreas Schneider
c2b9e9b0ea uid_wrapper: Add uwrap_setreuid(). 2011-10-07 10:24:03 +02:00
Andrew Bartlett
556ef6ac90 s4-param copy print_parameter and equal_parameter in from source3
This will allow these functions to be put into lib/param shortly.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Oct  7 10:17:01 CEST 2011 on sn-devel-104
2011-10-07 10:17:00 +02:00
Andrew Bartlett
6386251621 s3-param Remove odd formatting to allow code merge
This code is very old, and has some code styles that we have not used
in Samba for a very long time.  This fixes up a the extra braces around
return values.

Andrew Bartlett
2011-10-07 17:45:21 +11:00
Andrew Bartlett
0ba60760a3 s3-param: inline octal_string into caller to allow code merge 2011-10-07 17:45:21 +11:00
Andrew Bartlett
80e439453d param: Use a bool to hold boolean parameters
All three-state parameters invoking Auto (2) are already declared as integers, not
booleans.

Andrew Bartlett
2011-10-07 17:45:20 +11:00
Andrew Bartlett
516ee5f0b0 s3-param use Auto define for lm_announce default 2011-10-07 17:45:20 +11:00
Andrew Bartlett
36b2227eca ldb: use ldb directly rather than via a copy
This avoids needing to manually sync the two files, which due to the
top level build must be API compatible at all times anyway.

The most important recent change was:

commit e3b76bd620
Author: Andrew Tridgell <tridge@samba.org>
Date:   Thu Jul 28 15:51:31 2011 +1000

    ldb: fixed a search expression parse bug

However, as we always control the search expression in the callers to
this code, no backport to other releases is required.

Andrew Bartlett
2011-10-07 17:45:20 +11:00
Andrew Bartlett
ed41edddde build: ndrdump is only built with waf
We no longer need an #if (_SAMBA_BUILD >= 4) here.

Andrew Bartlett
2011-10-07 17:45:20 +11:00