summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
...
* s3-pypassdb: remove unused variableAndrew Bartlett2012-05-031-2/+0
|
* s3-passdb: Add extra debug on ID mapping failuresAndrew Bartlett2012-05-021-0/+7
| | | | | | | 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
* s3-idmap: remove (now) unused function idmap_cache_set_sid2both()Andrew Bartlett2012-05-022-25/+0
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3-idmap: convert most idmap_cache callers to unixid APIAndrew Bartlett2012-05-024-55/+52
| | | | | | | | | 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>
* s3-idmap: Rework idmap_cache to store ID_TYPE_BOTH valuesAndrew Bartlett2012-05-022-176/+240
| | | | | | | | | | | | | 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>
* s3-winbindd: Do not use WBC_ types internally in winbinddAndrew Bartlett2012-05-021-3/+5
| | | | | | Use the types from idmap.idl instead Signed-off-by: Michael Adam <obnox@samba.org>
* s3:passdb: remove a forward declaration of wbcSidToUnixId that has become ↵Michael Adam2012-05-021-1/+0
| | | | unnecessary
* s3:passdb: rename sids_to_unix_ids() --> sids_to_unixids() for consistencyMichael Adam2012-05-023-4/+4
|
* s3-passdb: Use struct unixid in sids_to_unix_idsAndrew Bartlett2012-05-023-24/+39
| | | | | | | | | 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>
* s3-passdb: Rename legacy_sid_to_id -> legacy_sid_to_unixid for clarityAndrew Bartlett2012-05-021-3/+3
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3-passdb: Change pdb_sid_to_id() to return struct unixidAndrew Bartlett2012-05-029-161/+147
| | | | | | | | | 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>
* selftest: run more raw.samba3 against secshare simple file serverAndrew Bartlett2012-05-021-1/+1
| | | | | | | | | | 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
* selftest: Run smbtorture tests being run against s3dc against plugin_s4_dc ↵Andrew Bartlett2012-05-021-3/+7
| | | | as well
* selftest: attempt to test samba3hide in a different environmentAndrew Bartlett2012-05-021-0/+3
| | | | | | | This should ensure that the samba3hide test is still run and passes, in a non-ACLed environment. Andrew Bartlett
* s3-smbd: Use security_session_user_level() rather than nt_token_check_sid()Andrew Bartlett2012-05-021-13/+1
| | | | | | | | | | 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
* s3:torture fix flakey testcaseChristian Ambach2012-05-021-6/+20
| | | | | | | | 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
* s3:selftest run LOCAL-IDMAP-TDB-COMMON in make testChristian Ambach2012-05-011-0/+1
| | | | | Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Tue May 1 11:07:08 CEST 2012 on sn-devel-104
* s3:torture: add idmap_tdb_common test codeChristian Ambach2012-05-015-3/+1038
|
* s3:winbindd/idmap_tdb: use idmap_tdb_common codeChristian Ambach2012-05-011-558/+18
|
* s3:winbindd/idmap_tdb2: fix logic error in set_mapping_actionChristian Ambach2012-05-011-1/+1
| | | | fix an endless loop
* s3:winbindd/idmap_tdb2: use idmap_tdb_common codeChristian Ambach2012-05-011-357/+91
|
* s3:winbindd/autorid use idmap_tdb_common code in autoridChristian Ambach2012-05-011-86/+227
| | | | | | - use common logic for the allocation pool - add a idmap_tdb style 1on1 mapping for non-domain SIDs like Everyone (S-1-1-0)
* s3:winbindd add idmap_tdb_common file to store common code of TDB idmap backendsChristian Ambach2012-05-014-2/+796
|
* s3:util add sid_check_is_wellknown_builtin()Christian Ambach2012-05-012-0/+28
|
* Fix bug #8873 - self granting privileges in security=ads.Jeremy Allison2012-05-011-4/+12
| | | | | Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue May 1 01:04:46 CEST 2012 on sn-devel-104
* Fix the loop unrolling inside resolve_ads(). If we don't getJeremy Allison2012-04-301-34/+73
| | | | | | | | | an IP list don't use interpret_string_addr(), as this only returns one address, use interpret_string_addr_internal() instead. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Apr 30 23:21:16 CEST 2012 on sn-devel-104
* Protect all of the name resolution methods from returning null addrs. Ensure ↵Jeremy Allison2012-04-301-9/+19
| | | | all returns go through remove_duplicate_addrs2().
* Fix convert_ss2service() to filter out zero addresses.Jeremy Allison2012-04-301-12/+33
|
* Fix remove_duplicate_addrs2 to do exactly what it says. Previously it could ↵Jeremy Allison2012-04-301-10/+9
| | | | leave zero addresses in the list.
* net: Let get*sid return error from passdb initChristof Schmitt2012-04-301-6/+4
| | | | | | | | | When initialize_password_db returns an error this means that the SID stored in the backend cannot be read. Return this error directly instead of creating a random SID through get_global_sam_sid. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon Apr 30 13:07:20 CEST 2012 on sn-devel-104
* passdb: Do not panic in initialize_password_dbChristof Schmitt2012-04-301-17/+17
| | | | | | | | | | | | A call to initialize_password_db leads to smb_panic in case the backend returns an error. All callers to initialize_password_db check the return value, so this code path should return the status instead of calling smb_panic. Move the call to smb_panic from pdb_get_methods_reload pdb_get_methods to get it out of the initialize code path. This allows printing the proper error message for 'net getlocalsid' which is much nicer than printing the panic stack trace.
* s3-auth_samba4: use new_server_id_task() to allocate server id valuesAndrew Bartlett2012-04-301-6/+27
| | | | | | | | | This is rather than just picking a random number out of the air. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Apr 30 11:29:34 CEST 2012 on sn-devel-104
* s3-lib Add a way to allocate the task_id value in server_idAndrew Bartlett2012-04-303-2/+44
| | | | | | | | This safely allocates the task_id so that when we have multiple event contexts, they can each have their own messaging context, particularly for the imessaging subsystem under source4. Andrew Bartlett
* s4-messaging: Fill in the whole server_id in all use casesAndrew Bartlett2012-04-301-3/+0
| | | | | | | | | | | | This started per https://bugzilla.samba.org/show_bug.cgi?id=8872#c4 and avoids any possible collision with a different process. We also need to ensure that across a Samba installation on a single node that id.vnn is the same. Samba4 previously used 0, while Samba3 used NONCLUSTER_VNN. When a message is sent between these 'different' nodes, the error NT_STATUS_INVALID_DEVICE_REQUEST is raised. Andrew Bartlett
* s3: Remove a SMB_ASSERTVolker Lendecke2012-04-281-1/+5
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Sat Apr 28 23:38:45 CEST 2012 on sn-devel-104
* s3: Fix bug 8904 -- wbinfo --lookup-sids "" crashes winbindVolker Lendecke2012-04-281-5/+5
| | | | | | Much of the code further down and up the call chain expects the structures wb_lookupsids returns to be allocated. Do that despite we have nothing to look up.
* Add an audit file VFS routine so we can handle auditing with SACLs.Richard Sharpe2012-04-284-0/+35
| | | | | Autobuild-User: Richard Sharpe <sharpe@samba.org> Autobuild-Date: Sat Apr 28 08:05:00 CEST 2012 on sn-devel-104
* selftest: Add test to ensure that bug #8872 does not come backAndrew Bartlett2012-04-271-0/+3
| | | | | | | | | The raw.composite test checks that we handle mutliple concurrent connections. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Apr 27 16:25:37 CEST 2012 on sn-devel-104
* selftest: Remove silly space before unit test nameAndrew Bartlett2012-04-271-1/+5
| | | | | | When we have no description, there is no need for a leading space here Andrew Bartlett
* s3:winbindd: also try SMB2 when connecting to "IPC$"Stefan Metzmacher2012-04-271-7/+20
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Apr 27 13:10:15 CEST 2012 on sn-devel-104
* s3:libsmb/cli_np_tstream: add support for SMB2Stefan Metzmacher2012-04-271-41/+190
| | | | metze
* s3:libsmb/cli_np_tstream: remove unused tstream_cli_np_existing()Stefan Metzmacher2012-04-272-34/+0
| | | | metze
* s3:libsmb: add smb2cli_ioctl*Stefan Metzmacher2012-04-274-0/+360
| | | | metze
* s3: oplock_timeout is a talloc child of fspVolker Lendecke2012-04-261-3/+0
| | | | | | | | | Jeremy, I know you like it explicit, but I stumbled across this explicit TALLOC_FREE and asked myself about a potentially wrong talloc hierarchy. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Thu Apr 26 23:00:03 CEST 2012 on sn-devel-104
* s3: Remove code TALLOC_FREE already doesVolker Lendecke2012-04-261-5/+1
|
* s3: Remove an unused variableVolker Lendecke2012-04-261-1/+0
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Thu Apr 26 12:17:14 CEST 2012 on sn-devel-104
* selftest: push --target selection into plansmbtorturetestsuiteAndrew Bartlett2012-04-261-3/+4
|
* s3:registry: replace call to reg_openkey() in reg_createkey() by accesscheck.Michael Adam2012-04-251-8/+10
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: remove a superfluous fill_subkey_cache() in reg_createkey()Michael Adam2012-04-251-5/+0
| | | | | | Pair-Programmed-With: Gregor Beck <gbeck@sernet.de> Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: use fill_subkey_cache to check exsistence in ↵Michael Adam2012-04-251-11/+2
| | | | | | | | regkey_open_onelevel(). Pair-Programmed-With: Gregor Beck <gbeck@sernet.de> Signed-off-by: Andreas Schneider <asn@samba.org>