1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

80214 Commits

Author SHA1 Message Date
Andrew Bartlett
2b5ee3491a s3-passdb: Add extra debug on ID mapping failures
Signed-off-by: Michael Adam <obnox@samba.org>

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed May  2 15:34:13 CEST 2012 on sn-devel-104
2012-05-02 15:34:09 +02:00
Andrew Bartlett
bb1d541da1 s3-idmap: remove (now) unused function idmap_cache_set_sid2both()
Signed-off-by: Michael Adam <obnox@samba.org>
2012-05-02 13:18:05 +02:00
Andrew Bartlett
c844f65779 s3-idmap: convert most idmap_cache callers to unixid API
This will eventually allow the struct unixid to be passed all the way up
and down the stack.

Andrew Bartlett

Signed-off-by: Michael Adam <obnox@samba.org>
2012-05-02 13:18:03 +02:00
Andrew Bartlett
583b104d4b s3-idmap: Rework idmap_cache to store ID_TYPE_BOTH values
This required that the lower level cache store a UID/GID and a type, and that
we operate on struct unixid rather than just uid/gid.

The ID_TYPE_BOTH is then handled as being a positive mapping for both
a UID and GID value.  Wrapper functions are provided so that callers are not
changed in this patch.

Andrew Bartlett

Signed-off-by: Michael Adam <obnox@samba.org>
2012-05-02 13:18:02 +02:00
Andrew Bartlett
0cad493412 s3-winbindd: Do not use WBC_ types internally in winbindd
Use the types from idmap.idl instead

Signed-off-by: Michael Adam <obnox@samba.org>
2012-05-02 13:18:02 +02:00
Michael Adam
6e1f6e4956 s3:passdb: remove a forward declaration of wbcSidToUnixId that has become unnecessary 2012-05-02 13:17:54 +02:00
Michael Adam
f9c9c49c51 s3:passdb: rename sids_to_unix_ids() --> sids_to_unixids() for consistency 2012-05-02 12:45:30 +02:00
Andrew Bartlett
ac97f151ed s3-passdb: Use struct unixid in sids_to_unix_ids
This avoids the union in the struct wbcUnixId and moves us to using only struct unixid
internally.

Andrew Bartlett

Signed-off-by: Michael Adam <obnox@samba.org>
2012-05-02 12:45:30 +02:00
Andrew Bartlett
2d5df933f4 s3-passdb: Rename legacy_sid_to_id -> legacy_sid_to_unixid for clarity
Signed-off-by: Michael Adam <obnox@samba.org>
2012-05-02 12:45:29 +02:00
Andrew Bartlett
a6e29f23f0 s3-passdb: Change pdb_sid_to_id() to return struct unixid
This will make it easier to consistantly pass a struct unixid all the way up and
down the idmap stack, and allow ID_TYPE_BOTH to be handled correctly.

Andrew Bartlett

Signed-off-by: Michael Adam <obnox@samba.org>
2012-05-02 12:45:29 +02:00
Michael Adam
8026550115 selftest: make the knownfail patterns for the driver_info_winreg more specific
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed May  2 11:23:26 CEST 2012 on sn-devel-104
2012-05-02 11:23:25 +02:00
Andrew Bartlett
7b55ec290e s4-provision: Fix up --use-s3fs to create the directory for xattr.tdb
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed May  2 04:45:05 CEST 2012 on sn-devel-104
2012-05-02 04:45:03 +02:00
Andrew Bartlett
b6b4364a3d s4-wintest: --use-s3fs in wintest 2012-05-02 10:53:51 +10:00
Andrew Bartlett
63f2d1060e s4-provision: Fix --use-s3fs to parse correctly 2012-05-02 10:53:51 +10:00
Andrew Bartlett
9712912dfc testsuite/libsmbclient: Remove unused and expensive-to-link testsuite
This testsuite never got off the ground, and unlike the other
libsmbclient tests, it is not integrated into make test, has no driver
script we could integrate.

As it has been in this state for 10 years, and adding it to the compile
did not find any link-time issues (particularly in comparison to the
link-time cost for so many individual binaries), I am now removing them.

The libsmbclient examples are seperate to this, and remain in
examples/libsmbclient.

Andrew Bartlett
2012-05-02 10:53:51 +10:00
Andrew Bartlett
3408c1ce6c selftest: 'store dos attributes = yes' is now set in fileserver.conf
As such, there is no need to set it or the permissions-based mappings here as well.

Andrew Bartlett
2012-05-02 10:53:51 +10:00
Andrew Bartlett
051042229d s4-provision: set 'dcerpc endpoint servers' but not 'vfs objects'
The VFS objects are now set in the fileserver.conf, but this is only read by smbd, so
the provision-time smb.conf needs to turn off the extra Samba4 DCE/RPC services.

Andrew Bartlett
2012-05-02 10:53:50 +10:00
Andrew Bartlett
692b3bfd7f file_server: set 'store dos attributes = yes'
This means we do not need the old permissions-based mappings.

Andrew Bartlett
2012-05-02 10:53:50 +10:00
Andrew Bartlett
5763301e26 selftest: run more raw.samba3 against secshare simple file server
This allows these tests to run in an environment where they can pass,
as they fail when ACL support is turned on in smbd.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed May  2 02:51:27 CEST 2012 on sn-devel-104
2012-05-02 02:51:27 +02:00
Andrew Bartlett
6d87df2ac3 selftest: Run smbtorture tests being run against s3dc against plugin_s4_dc as well 2012-05-02 01:00:13 +02:00
Andrew Bartlett
53c70be468 selftest: Do not start samba4 srvsvc in plugin_s4_dc mode 2012-05-02 01:00:13 +02:00
Andrew Bartlett
45125a459a selftest: add hooks required for printing to Samba4.pm 2012-05-02 01:00:13 +02:00
Andrew Bartlett
c65bc4aa92 selftest: mark samba3.raw.samba3checkfsp as flapping on plugin_s4_dc
This fails on my Fedora 16 workstation, but passes on sn-devel.

Andrew Bartlett
2012-05-02 01:00:13 +02:00
Andrew Bartlett
c350422bfe selftest: mark samba3.raw.acls.inheritance(plugin_s4_dc) as flapping
This seems to succeed on sn-devel, but fails in a local make test on
my workstation.

Andrew Bartlett
2012-05-02 01:00:13 +02:00
Andrew Bartlett
ecc0ac5103 selftest: add knownfail entries for plugin_s4_dc tests 2012-05-02 01:00:13 +02:00
Andrew Bartlett
7905f97494 selftest: change knownfail to cope with running plugin_s4_dc as well 2012-05-02 01:00:13 +02:00
Andrew Bartlett
33bf3efe37 file_server: use embedded srvsvc 2012-05-02 01:00:12 +02:00
Andrew Bartlett
2e1a4f63eb file_server: Use the embedded winreg server 2012-05-02 01:00:12 +02:00
Andrew Bartlett
c3be5240e9 file_server: use embedded ntsvcs server 2012-05-02 01:00:12 +02:00
Andrew Bartlett
cb5c456d47 file_server: use embedded eventlog server 2012-05-02 01:00:12 +02:00
Andrew Bartlett
f956f04dd1 file_server: forward dssetup, but use embedded svcctl for s3fs 2012-05-02 01:00:12 +02:00
Andrew Bartlett
c0db57e748 selftest: Use same pattern for path to share as Samba3.pm
This helps as we declare tests that were previously targetted at Samba3 only.

Andrew Bartlett
2012-05-02 01:00:12 +02:00
Andrew Bartlett
154518a719 selftest: Add hideunread share to plugin_s4_dc 2012-05-02 01:00:12 +02:00
Andrew Bartlett
99ce5626dc selftest: run plugin_s4_dc with 'acl_xattr xattr_tdb streams_depot' VFS modules 2012-05-02 01:00:12 +02:00
Andrew Bartlett
546318b879 selftest: prepare to run smbtorture tests against plugin_s4_dc 2012-05-02 01:00:12 +02:00
Andrew Bartlett
5baf11307f selftest: attempt to test samba3hide in a different environment
This should ensure that the samba3hide test is still run and passes,
in a non-ACLed environment.

Andrew Bartlett
2012-05-02 01:00:12 +02:00
Andrew Bartlett
5f0707801a selftest: Enable ACL testing against the s3dc environment
Previously, ACL tests were skipped and the correct modules for ACL
testing were not loaded.

The addition of a knownfail entry for raw.samba3* tests is due to an
inconsitancy between the behaviour with and without ACL modules loaded
- posix chown calls appear to be ignored in this mode.

Andrew Bartlett
2012-05-02 01:00:12 +02:00
Andrew Bartlett
221c0e479d s3-smbd: Use security_session_user_level() rather than nt_token_check_sid()
This allows the unix.whoami test to pass when configured as part of the AD DC.

The struct auth_session_info is slightly different in the AD DC configuration
when using auth_samba4.  In particular, there is a distinction between Guest
and Anonymous logins.

Andrew Bartlett
2012-05-02 01:00:12 +02:00
Christian Ambach
d7f3c00b85 s3:torture fix flakey testcase
don't put database into /tmp, use lp_private_dir() to put
it into the selftest prefix

Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Wed May  2 00:57:05 CEST 2012 on sn-devel-104
2012-05-02 00:57:04 +02:00
Christian Ambach
b985c672bf s3:selftest run LOCAL-IDMAP-TDB-COMMON in make test
Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Tue May  1 11:07:08 CEST 2012 on sn-devel-104
2012-05-01 11:07:08 +02:00
Christian Ambach
55870b0bf9 s3:torture: add idmap_tdb_common test code 2012-05-01 09:32:11 +02:00
Christian Ambach
0e06d944bc s3:winbindd/idmap_tdb: use idmap_tdb_common code 2012-05-01 09:32:11 +02:00
Christian Ambach
15b12cbc8a s3:winbindd/idmap_tdb2: fix logic error in set_mapping_action
fix an endless loop
2012-05-01 09:32:11 +02:00
Christian Ambach
627f46cf1f s3:winbindd/idmap_tdb2: use idmap_tdb_common code 2012-05-01 09:32:11 +02:00
Christian Ambach
e7576e85c9 s3:winbindd/autorid use idmap_tdb_common code in autorid
- use common logic for the allocation pool
- add a idmap_tdb style 1on1 mapping for non-domain SIDs
  like Everyone (S-1-1-0)
2012-05-01 09:32:11 +02:00
Christian Ambach
c673237785 s3:winbindd add idmap_tdb_common file to store common code of TDB idmap backends 2012-05-01 09:32:11 +02:00
Christian Ambach
7a07ce2680 s3:util add sid_check_is_wellknown_builtin() 2012-05-01 09:32:11 +02:00
Andrew Bartlett
9705a706bc move VERSION to alpha21
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue May  1 08:16:38 CEST 2012 on sn-devel-104
2012-05-01 08:16:38 +02:00
Andrew Bartlett
edb15ffef2 prepare WHATSNEW for alpha20 and mark as release samba-4.0.0alpha20 2012-05-01 06:44:09 +02:00
Amitay Isaacs
813557629f s4-upgradedns: Update serverdn with only the attributes that have changed
This fixes the issue of ldb 'Operations Error' when trying to modify
hasPartialReplicaNCs attribute.

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Tue May  1 05:28:04 CEST 2012 on sn-devel-104
2012-05-01 05:28:03 +02:00