samba.git
15 years agoTurn on SHORTNAME-TEST in torture.
Jeremy Allison [Thu, 14 May 2009 23:50:50 +0000 (16:50 -0700)]
Turn on SHORTNAME-TEST in torture.
Jeremy.
(cherry picked from commit 99771d2e23b476d1a7becd9f394421363dd0dffe)

15 years agoMake us pass SHORTNAME-TEST.
Jeremy Allison [Thu, 14 May 2009 23:49:18 +0000 (16:49 -0700)]
Make us pass SHORTNAME-TEST.
Jeremy
(cherry picked from commit 82d9d7b2136a236d3f2b7b1255a920a1ef394ffe)

15 years agoMake error message clearer on fail.
Jeremy Allison [Thu, 14 May 2009 23:30:11 +0000 (16:30 -0700)]
Make error message clearer on fail.
Jeremy.
(cherry picked from commit f81698c70e2513c4699048263c0d6d57a5a9bc64)

15 years agoAdd a test showing what ascii values cause an NTFS volume to
Jeremy Allison [Thu, 14 May 2009 22:56:13 +0000 (15:56 -0700)]
Add a test showing what ascii values cause an NTFS volume to
create a mangled name. We don't pass this yet, but it's not
run by default.
Jeremy.
(cherry picked from commit 18d9e7074635c80052e8bb8d85ad5605663e2695)

15 years agoRemove one use of mangle_is_8_3(), not needed.
Jeremy Allison [Thu, 14 May 2009 19:34:28 +0000 (12:34 -0700)]
Remove one use of mangle_is_8_3(), not needed.
Jeremy.
(cherry picked from commit 0e7f37336ec2d7e1158342fb855af3dff84a7d1e)

15 years agos3-printing: no need to define struct table_node 4 times.
Günther Deschner [Tue, 12 May 2009 12:15:01 +0000 (14:15 +0200)]
s3-printing: no need to define struct table_node 4 times.

Guenther
(cherry picked from commit 652251701df7dec1401eab9b1dbc7e3ac5c7e7ad)
(cherry picked from commit e6b6027218b96bf3357837d051ca5d2df0d88561)

15 years agos3-net: Fix bug 6340: don't segfault when cleartext trustdom pwd could not be retrieved.
Günther Deschner [Wed, 13 May 2009 13:17:46 +0000 (15:17 +0200)]
s3-net: Fix bug 6340: don't segfault when cleartext trustdom pwd could not be retrieved.

Guenther
(cherry picked from commit e88de848c0228cd515b4e356aafe5d7207e49d75)

15 years agos4-selftest: match new name of RPC-SAMR-ACCESSMASK.
Günther Deschner [Wed, 13 May 2009 13:15:30 +0000 (15:15 +0200)]
s4-selftest: match new name of RPC-SAMR-ACCESSMASK.

Guenther
(cherry picked from commit c3e61b54606175858d2221e5f4a75f2fcf149631)
(cherry picked from commit 198fd3f89c2ce60523c755c1917b7bca25436bf1)

15 years agos4-smbtorture: split RPC-SAMR-ACCESSMASK into several tests.
Günther Deschner [Wed, 13 May 2009 13:14:20 +0000 (15:14 +0200)]
s4-smbtorture: split RPC-SAMR-ACCESSMASK into several tests.

Guenther
(cherry picked from commit 675e52cde78906a63fe96e6d34aab92eb710c6b2)
(cherry picked from commit 7c44471f567dc1775f5b4ebf216475b1f348c42a)

15 years agos4-smbtorture: cosmetic cleanup for RPC-SAMR-ACCESSMASK.
Günther Deschner [Wed, 13 May 2009 01:18:07 +0000 (03:18 +0200)]
s4-smbtorture: cosmetic cleanup for RPC-SAMR-ACCESSMASK.

Guenther
(cherry picked from commit 2abdfab613b9487138612bf4ad0422ce4771d7cc)
(cherry picked from commit 737ac891e0be2fafbbc1e2c60f081268b7c0c3a1)

15 years agoRevert "s3: checkin .po for pam_winbind" because of license issue.
Bo Yang [Wed, 13 May 2009 13:54:06 +0000 (21:54 +0800)]
Revert "s3: checkin .po for pam_winbind" because of license issue.

This reverts commit 43388521b8f31757309fb8bec71ad9ee0f3b21de.
(cherry picked from commit 0c54e8b3e4f9d7efe1974fa39a039997196b6309)

15 years agos3: checkin .po for pam_winbind
Bo Yang [Wed, 13 May 2009 10:59:55 +0000 (18:59 +0800)]
s3: checkin .po for pam_winbind

Signed-off-by: Bo Yang <boyang@samba.org>
(cherry picked from commit 8611f03dbb0c45d8755725232508cff258b426d5)
(cherry picked from commit 43388521b8f31757309fb8bec71ad9ee0f3b21de)

15 years agos3 onefs: Self-contend level2 oplocks on BRL
Zack Kirsch [Mon, 11 May 2009 17:10:43 +0000 (17:10 +0000)]
s3 onefs: Self-contend level2 oplocks on BRL
(cherry picked from commit 3627ceb5e25cdecd1a8113a5028cc898a1424349)
(cherry picked from commit de68d52c8b7b101ad37d3eb09456bcb31e687906)

15 years agos3 onefs: Fix ignore sacl parameter
Tim Prouty [Wed, 13 May 2009 00:38:10 +0000 (17:38 -0700)]
s3 onefs: Fix ignore sacl parameter
(cherry picked from commit c2482d6b23f769d8a5fa4141f9540a25c985d7cc)
(cherry picked from commit b2ba00adc91d18e7356dd0375cf7c24cefe21ed0)

15 years agos3: Fix strict locking with chained reads
Tim Prouty [Tue, 12 May 2009 23:32:32 +0000 (16:32 -0700)]
s3: Fix strict locking with chained reads

Move the strict lock/unlock code down a level for reads to avoid
calling chain_reply before the unlock.
(cherry picked from commit c60bb39df355c2ef36e4cfdff69cc348adc6dae1)
(cherry picked from commit 4fe9f5e1204fd5578a6043ad314614dc541decda)

15 years agos3: Fallback to the legacy sid_to_(uid|gid) instead of returning NULL.
Aravind Srinivasan [Thu, 16 Apr 2009 20:42:40 +0000 (20:42 +0000)]
s3: Fallback to the legacy sid_to_(uid|gid) instead of returning NULL.

This is very similar to be1dfff02d562e42a7847bd02fed8538630d3f41
(cherry picked from commit 5aefb44bf04becc6b80e7c3bf038d79851c5b0f9)
(cherry picked from commit d07c3437aa9f6262abab87bc298c74fd953ebcfc)

15 years agos3-spoolss: move SPL_ARCH_X defines to IDL.
Günther Deschner [Tue, 12 May 2009 12:12:31 +0000 (14:12 +0200)]
s3-spoolss: move SPL_ARCH_X defines to IDL.

Guenther
(cherry picked from commit 7403dd39d608e07f107530819277738ebd20a320)
(cherry picked from commit 37d0afc095e43d707ff3b86c9ebda22e8a10f77f)

15 years agospoolss: add SPOOLSS_ARCHITECTURE_ALL to IDL.
Günther Deschner [Tue, 12 May 2009 12:11:03 +0000 (14:11 +0200)]
spoolss: add SPOOLSS_ARCHITECTURE_ALL to IDL.

Guenther
(cherry picked from commit a4f558da79e5746124b79583ca608b394e635ad3)
(cherry picked from commit 295035c7cf353a4e1ba5e6e8737ef78329acee8b)

15 years agos3-build: re-run make samba3-idl.
Günther Deschner [Tue, 12 May 2009 23:38:06 +0000 (01:38 +0200)]
s3-build: re-run make samba3-idl.

Guenther
(cherry picked from commit b716e57bef3b42c4be24b5d41c05dbc0665f5191)
(cherry picked from commit 6c06db0bfb0a88c1a85f559bdda16156e1722cbc)

15 years agoinitshutdown: add shutdown reason codes.
Günther Deschner [Tue, 12 May 2009 23:37:30 +0000 (01:37 +0200)]
initshutdown: add shutdown reason codes.

Guenther
(cherry picked from commit c07f4a1299700cf6d530aee390972d3324ba0566)
(cherry picked from commit ce9dcd96497aec1c66ce3df9bb4e83e3346b724a)

15 years agos3-netdomjoin-gui: prepare to call out for NetRenameMachineInDomain() to rename computers
Günther Deschner [Tue, 12 May 2009 20:46:36 +0000 (22:46 +0200)]
s3-netdomjoin-gui: prepare to call out for NetRenameMachineInDomain() to rename computers
in domains.

Guenther
(cherry picked from commit 6154b031f4521fad4b5c460643da59dd918b240a)
(cherry picked from commit a53f9e695bd09b166085d8c714f323ff1d0ce1c6)

15 years agoerror-codes: add some more WERRORs to table.
Günther Deschner [Tue, 12 May 2009 21:50:37 +0000 (23:50 +0200)]
error-codes: add some more WERRORs to table.

These tables really should be auto-generated at some point...

Guenther
(cherry picked from commit aa84ca6e6ba66536ca32dc5792d27e2169589a14)
(cherry picked from commit 35d03a151606f2971b171370af19fd227748213f)

15 years agos3-netdomjoin-gui: Fix join prompt dialog test.
Günther Deschner [Tue, 12 May 2009 21:47:21 +0000 (23:47 +0200)]
s3-netdomjoin-gui: Fix join prompt dialog test.

Guenther
(cherry picked from commit d3a9ee689d636f13f7935d1ddfccfdd4f4e8527a)
(cherry picked from commit 7533e32075ac8b162c230ed112974f421e0d1569)

15 years agos3-netdomjoin-gui: use NetServerGetInfo() level 101 to get hostname.
Günther Deschner [Tue, 12 May 2009 20:15:04 +0000 (22:15 +0200)]
s3-netdomjoin-gui: use NetServerGetInfo() level 101 to get hostname.

Guenther
(cherry picked from commit 3e2975b3bdd247d1e3e7c74bada2f85a1936acaf)
(cherry picked from commit 4298e296f02a4df182d5d2ee2623bc869b321c53)

15 years agos3-netdomjoin-gui: inspect the correct computername string before
Günther Deschner [Tue, 12 May 2009 20:12:47 +0000 (22:12 +0200)]
s3-netdomjoin-gui: inspect the correct computername string before
enabling/disabling the change button.

Guenther
(cherry picked from commit 20b5fc02d2e97dbd51d84cc05ac887e274b14866)
(cherry picked from commit c7ca84fd4a4c58771b47252248b00e6bb5c411a1)

15 years agos3:loadparm: free the file_list at the start of loadparm
Michael Adam [Wed, 6 May 2009 00:25:08 +0000 (02:25 +0200)]
s3:loadparm: free the file_list at the start of loadparm

This should reduce the waste of memory when using "config file"
or "config backend". It also reduces the risk of triggering
reloads due to some old unused files being checked.

Michael
(cherry picked from commit 6708b926a47b53a2984de6af9bb9d319ed6efe58)
(cherry picked from commit 25b0c51c8db62b5e7b12cab19b4dd2fa699ed67e)

15 years agos3:loadparm: refactor freeing of file_list out into free_file_lists()
Michael Adam [Wed, 6 May 2009 00:09:56 +0000 (02:09 +0200)]
s3:loadparm: refactor freeing of file_list out into free_file_lists()

Michael
(cherry picked from commit 6aef9bbbf7160cf9e79c50e13632bf29efaedb65)
(cherry picked from commit 2f63ee84f29f15b6173ffc20b7debad2b91eafe6)

15 years agos3:build: extend the support fo Debian GNU/kFooBar to kOpenSolaris
Michael Adam [Fri, 8 May 2009 22:10:51 +0000 (00:10 +0200)]
s3:build: extend the support fo Debian GNU/kFooBar to kOpenSolaris

As suggested by Robert Millan.

Michael
(cherry picked from commit 66dff4073d0013bfd11ac29e341765141393ea23)
(cherry picked from commit aca044014a7c20b1e4d9babc8710865b9b7610ce)

15 years agos3:build: support non-linux gnu ports
Michael Adam [Thu, 30 Apr 2009 19:59:07 +0000 (21:59 +0200)]
s3:build: support non-linux gnu ports

This is based on a patch by the debian package maintainers,
adapted for the merged branch.

Michael
(cherry picked from commit 5fba1e938c59492872d026c452cbbf8d2239c95f)
(cherry picked from commit dd699425f80a1b1fa158b2386c2b10338b656298)

15 years agos3:proto.h: remove old param/params.c prototype
Michael Adam [Mon, 11 May 2009 05:43:07 +0000 (07:43 +0200)]
s3:proto.h: remove old param/params.c prototype

Michael
(cherry picked from commit a04bac71356139c62d786f6254d33bd247fb7692)
(cherry picked from commit b0a46b6abd265e484e89912eb7b9e1feb1b917c2)

15 years agos3:smbd: fix the fix for mapped IPv4 address handling in release_ip().
Michael Adam [Fri, 8 May 2009 13:13:21 +0000 (15:13 +0200)]
s3:smbd: fix the fix for mapped IPv4 address handling in release_ip().

It was too late... Thanks Metze for noticing.

Michael
(cherry picked from commit 7d6e4c7e950592112d09f7d98393c41e8097bba8)
(cherry picked from commit af5adfbd402a8d4fe31b7de5d13aa82287e88e57)

15 years agos3: make release_ip() call (ctdb) cope with IPv4 mapped addresses
Michael Adam [Thu, 7 May 2009 23:11:43 +0000 (01:11 +0200)]
s3: make release_ip() call (ctdb) cope with IPv4 mapped addresses

Michael
(cherry picked from commit e86a534fa707b44baec87060745dd8a557622721)
(cherry picked from commit acf13609039a0cd321fdfe7ce75e508036f91e5d)

15 years agoFix the last few format arg missmatches I missed.
Jeremy Allison [Tue, 12 May 2009 17:38:00 +0000 (10:38 -0700)]
Fix the last few format arg missmatches I missed.
Jeremy.
(cherry picked from commit d2ce16043ba7a0ee7368a611eacddc010d3935e0)

15 years agoFix bug 6157
Volker Lendecke [Thu, 12 Mar 2009 16:23:17 +0000 (17:23 +0100)]
Fix bug 6157

This patch picks the alphabetically smallest one of the multi-value attribute
"uid". This fixes a regression against 3.0 and also becomes deterministic.
(cherry picked from commit b1d864d1006aab53a1692175adf2c64897eeffd9)

15 years agos3-printing: Fix vlp testprinter application.
Günther Deschner [Tue, 12 May 2009 09:41:14 +0000 (11:41 +0200)]
s3-printing: Fix vlp testprinter application.

Jeremy, we cannot just access cache_path() here without calling lp_load and
friends as well as parsing configfile from the commandline in order to make
"make test/selftest" find the correct conffile with path, etc.

I just changed it to pass the target tdbfilename as an argument, ok ?

Guenther
(cherry picked from commit 94665adb484c25534b756012e9b55f01737b7713)
(cherry picked from commit 502d9ec5d1f37cd5d992324025b88756b6a475ec)

15 years agoFix warning about unused label with no sendfile.
Jeremy Allison [Tue, 12 May 2009 06:23:17 +0000 (23:23 -0700)]
Fix warning about unused label with no sendfile.
Jeremy.
(cherry picked from commit 6c5450d9010b83e4acdd359279102ceda9bf0318)

15 years agoFix a bunch of compiler warnings about wrong format types.
Jeremy Allison [Tue, 12 May 2009 04:56:57 +0000 (21:56 -0700)]
Fix a bunch of compiler warnings about wrong format types.
Should make Solaris 10 builds look cleaner.
Jeremy.
(cherry picked from commit b5947b876f3c777e075879d305b6672a6c8d8abd)

15 years agoHopefully fix the buildfarm. Add some debug level 10 messages
Jeremy Allison [Tue, 12 May 2009 00:29:48 +0000 (17:29 -0700)]
Hopefully fix the buildfarm. Add some debug level 10 messages
I used to track down the vlp problem, change the vlp test printer
not to use a static path of /tmp/vlp.tdb for the virtual print
database (as this will eventually fill up). Cause it to use
a virtual print database inside the cachepath.
Jeremy.
(cherry picked from commit dcf314874e90ec9debf1582fc3f6b07f2d4d30ca)

15 years agoEnsure documentation matches the tdb_util function usage.
Jeremy Allison [Tue, 12 May 2009 00:29:16 +0000 (17:29 -0700)]
Ensure documentation matches the tdb_util function usage.
Jeremy.
(cherry picked from commit a63e966ce64d262ae9a032c73915a398a5c174f8)

15 years agos3-samr: Fix rid2sid call, 3-4-test does not have policy_handle_find() yet.
Günther Deschner [Mon, 11 May 2009 23:16:52 +0000 (01:16 +0200)]
s3-samr: Fix rid2sid call, 3-4-test does not have policy_handle_find() yet.

Guenther
(cherry picked from commit 99ae1159fe885cf57ec5cd964febca2eca5def61)

15 years agos3-samr: implement _samr_RidToSid().
Günther Deschner [Fri, 8 May 2009 09:25:56 +0000 (11:25 +0200)]
s3-samr: implement _samr_RidToSid().

Guenther
(cherry picked from commit 0dc1b239eb48ac81797720a8ff23c810321ad5c3)
(cherry picked from commit a26ac9ce2708e8d959500da418daefcb3ca94bd6)

15 years agos3-samr: Let _samr_TestPrivateFunctionsDomain() return NT_STATUS_NOT_SUPPORTED to...
Günther Deschner [Mon, 11 May 2009 21:47:37 +0000 (23:47 +0200)]
s3-samr: Let _samr_TestPrivateFunctionsDomain() return NT_STATUS_NOT_SUPPORTED to make RPC-SAMR happy.

Guenther
(cherry picked from commit 4beb4395eb032a290bf0d29e0d50e4d823e5f20c)
(cherry picked from commit 93ba45468e1aaff625f1f8aad35ccaed598209ef)

15 years agos4-smbtorture: skip SetMemberAttributesOfGroup in RPC-SAMR for s3 as well.
Günther Deschner [Mon, 11 May 2009 22:19:56 +0000 (00:19 +0200)]
s4-smbtorture: skip SetMemberAttributesOfGroup in RPC-SAMR for s3 as well.

Guenther
(cherry picked from commit 54d925a30469f9318717b8e6da7b433efd4efd70)
(cherry picked from commit f70e7de8e1b015f790325c51cff9dc804c8b95ad)

15 years agos4-smbtorture: Skip secdesc set calls for non-user objects in RPC-SAMR for Samba3.
Günther Deschner [Mon, 11 May 2009 21:46:45 +0000 (23:46 +0200)]
s4-smbtorture: Skip secdesc set calls for non-user objects in RPC-SAMR for Samba3.

Note that they are skipped for all objects while testing Samba4.

Guenther
(cherry picked from commit 59cb8fd58d03953ea53eed70da35dd94fe10d9c4)
(cherry picked from commit 9d89c70a7dfb065e0246f251e410dc96e493b03f)

15 years agos4-smbtorture: Fix order of assert args in test_TestPrivateFunctionsDomain() in RPC...
Günther Deschner [Mon, 11 May 2009 21:46:11 +0000 (23:46 +0200)]
s4-smbtorture: Fix order of assert args in test_TestPrivateFunctionsDomain() in RPC-SAMR.

Guenther
(cherry picked from commit 1fb9b65921b617962dd72bf64c62fd95bfdcf326)
(cherry picked from commit 4f6b20feda1940af05840ce4a46a133e628a5f06)

15 years agos4-smbtorture: switch to use torture_context in RPC-SAMR.
Günther Deschner [Mon, 11 May 2009 21:13:26 +0000 (23:13 +0200)]
s4-smbtorture: switch to use torture_context in RPC-SAMR.

Guenther
(cherry picked from commit ff7ebdf317979f54fba257afb1dbfb589b33885f)
(cherry picked from commit 847b21133669fb618398611bbf6ac855ee41ea2e)

15 years agos4-smbtorture: remove trailing whitespace in RPC-SAMR.
Günther Deschner [Mon, 11 May 2009 20:44:58 +0000 (22:44 +0200)]
s4-smbtorture: remove trailing whitespace in RPC-SAMR.

Guenther
(cherry picked from commit 0f88b3cc94edd716894ce86c0e7125298b5b6338)
(cherry picked from commit 80541bd941ea52e9f97a30301c39736f53ea4a4f)

15 years agos3-samr: Fix Bug #5859, renaming of samr objects failed due to samr setuserinfo acces...
Günther Deschner [Mon, 11 May 2009 16:45:46 +0000 (18:45 +0200)]
s3-samr: Fix Bug #5859, renaming of samr objects failed due to samr setuserinfo access checks.

Torture test to follow...

Guenther
(cherry picked from commit 6d1e21bd1b38e8a3c7df3f7fdb8a17fcdd997d42)
(cherry picked from commit e89bc8dcfd15dd0deef587edf9aceb1073d78312)

15 years agoAdd checks for non_root mode to help buildfarm spoolss tests.
Jeremy Allison [Mon, 11 May 2009 16:42:08 +0000 (09:42 -0700)]
Add checks for non_root mode to help buildfarm spoolss tests.
Reviewed by Guenther.
Jeremy.
(cherry picked from commit 11041fe1c24575c25d3ac82e61d9fb2b651db3aa)

15 years agos3-lsa: Fix _lsa_LookupNames2() server implementation which always returned a NULL...
Günther Deschner [Mon, 11 May 2009 16:27:40 +0000 (18:27 +0200)]
s3-lsa: Fix _lsa_LookupNames2() server implementation which always returned a NULL sid_array since 3.2.0.

Found by torture test.

This makes it possible to search for users while adding them to groups via
windows usermanager.

Guenther
(cherry picked from commit a82bb4bd516e6a8e50c0272b79df8e506ea0cc91)
(cherry picked from commit 7d1e25a885637b65c75b4ddd78949c4a2091bb6d)

15 years agos3/ldap: also handle DirX return codes
Björn Jacke [Thu, 7 May 2009 15:50:34 +0000 (17:50 +0200)]
s3/ldap: also handle DirX return codes
(cherry picked from commit 5616abe2e8fb6a95fa82b80e8e97090e956b98ff)

15 years agos3-selftest: enable RPC-LSA-LOOKUPNAMES against Samba 3.
Günther Deschner [Mon, 11 May 2009 14:29:39 +0000 (16:29 +0200)]
s3-selftest: enable RPC-LSA-LOOKUPNAMES against Samba 3.

Guenther
(cherry picked from commit f5cab8913b77c37dc24188b9093b80a0b4d42749)
(cherry picked from commit 69551b562a575c300d14bd1691fe5213db71d6bc)

15 years agos4-smbtorture: add very basic RPC-LSA-LOOKUPNAMES test.
Günther Deschner [Mon, 11 May 2009 14:28:42 +0000 (16:28 +0200)]
s4-smbtorture: add very basic RPC-LSA-LOOKUPNAMES test.

Guenther
(cherry picked from commit 5f015920a80a22f5486e0679f017db3a5ff9d798)
(cherry picked from commit ac5adbc294eb96db658151a9d278cae0e63ff3a1)

15 years agos4-smbtorture: add optional very simple reply checks to lsa lookup name tests.
Günther Deschner [Mon, 11 May 2009 14:40:26 +0000 (16:40 +0200)]
s4-smbtorture: add optional very simple reply checks to lsa lookup name tests.

Guenther
(cherry picked from commit 7347373e7cb814d683c603ed958583ff70552a2b)
(cherry picked from commit 90aac31a2db75895a1b75b8c5e4a8259938ff74b)

15 years agos4-smbtorture: remove trailing whitespace in RPC-LSA test.
Günther Deschner [Mon, 11 May 2009 12:54:04 +0000 (14:54 +0200)]
s4-smbtorture: remove trailing whitespace in RPC-LSA test.

Guenther
(cherry picked from commit 7672a033eff9db1203c69de422fb906504a54f77)
(cherry picked from commit 983d92188dcc5ac4bc31365cea195532e40d1144)

15 years agos4-smbtorture: use struct torture_context in RPC-LSA.
Günther Deschner [Mon, 11 May 2009 12:51:41 +0000 (14:51 +0200)]
s4-smbtorture: use struct torture_context in RPC-LSA.

Guenther
(cherry picked from commit 410f17cdebab929c68cd6d68b6e1a29ffe64e8d4)
(cherry picked from commit bada15c31123c0a7c2716620c19f3a073e7c0067)

15 years agos3-docs: document "net dom renamecomputer".
Günther Deschner [Mon, 11 May 2009 08:30:05 +0000 (10:30 +0200)]
s3-docs: document "net dom renamecomputer".

Guenther
(cherry picked from commit fe474861f87dc02081acf34d756329c66cc5c805)
(cherry picked from commit 92117cd56692303b2018299cd43f229b0db59066)

15 years agos3-net: add "net dom renamecomputer" to rename machines in a domain.
Günther Deschner [Fri, 8 May 2009 19:56:17 +0000 (21:56 +0200)]
s3-net: add "net dom renamecomputer" to rename machines in a domain.

dmarkey, please test :)

Guenther
(cherry picked from commit b1a4649438e5f27722c8dae629037df2543871c7)
(cherry picked from commit 0f3c2e2e0c47d1f774f4265fb60498483c27840d)

15 years agoDo not call SMB_VFS_GET_REAL_FILENAME if the name is mangled
Volker Lendecke [Sat, 9 May 2009 09:12:52 +0000 (11:12 +0200)]
Do not call SMB_VFS_GET_REAL_FILENAME if the name is mangled

The GPFS get_real_file name does not know about mangled names. Tim, if onefs
does not either, you need this bugfix :-)

In case onefs does 8.3 names, we need to pass the mangled flag down to
SMB_VFS_GET_REAL_FILENAME to give GPFS a chance say ENOTSUPP and do the
fallback.
(cherry picked from commit 97c668276d24743065f16dccaf29704b6f3857f4)

15 years agos3: Fix chained sesssetupAndX/tconn messages
Tim Prouty [Wed, 25 Mar 2009 00:24:55 +0000 (00:24 +0000)]
s3: Fix chained sesssetupAndX/tconn messages

A sesssetupAndX chained with a tconn will not correctly set the TID in
the response header.  I'm seeing an XP client send this chained
sesssetup/tconn when samba has security = share.  Samba's current
behavior is to return a TID of 0 in the smb header rather than the
actual TID.  This patch also updates the UID in the header as well.
(cherry picked from commit b6c86e1ef28d9008eec1d39ad714a475dc735c38)

15 years agos4-smbtorture: avoid secdesc test on connect handle in RPC-SAMR-USERS for Samba3.
Günther Deschner [Fri, 8 May 2009 22:46:17 +0000 (00:46 +0200)]
s4-smbtorture: avoid secdesc test on connect handle in RPC-SAMR-USERS for Samba3.

With this, I think, we pass RPC-SAMR-USERS.

Guenther
(cherry picked from commit a3873bca516e0f89302409c89910561707360d14)
(cherry picked from commit 3f55201564afae5681b3530cb767da7f2b64794c)

15 years agos3-samr: Fix SetUserInfo level 16 and 21 w.r.t. ACB_AUTOLOCK acct_flag.
Günther Deschner [Fri, 8 May 2009 22:03:50 +0000 (00:03 +0200)]
s3-samr: Fix SetUserInfo level 16 and 21 w.r.t. ACB_AUTOLOCK acct_flag.

It is not allowed to *set* this flag remotely if it has been not set already.

Found by torture test.

Guenther
(cherry picked from commit a21bfc4daff9e67750021d96ffa0c1e6e4cd3472)
(cherry picked from commit d8b37fe08e9e833c466c82e07599356b746020fa)

15 years agos3-samr: Fix SetUserInfo level 7 when there has been no name change.
Günther Deschner [Fri, 8 May 2009 22:02:00 +0000 (00:02 +0200)]
s3-samr: Fix SetUserInfo level 7 when there has been no name change.

Found by torture test.

Guenther
(cherry picked from commit 705f36b804093f656498f7963768a418672cd422)
(cherry picked from commit 863b568624ef908c9454ed28d64a82e5afddd79a)

15 years agos3-selftest: enable running RPC-SAMR-USERS against Samba3.
Günther Deschner [Fri, 8 May 2009 20:23:51 +0000 (22:23 +0200)]
s3-selftest: enable running RPC-SAMR-USERS against Samba3.

Guenther
(cherry picked from commit d0100947002a892dff22aefd2491e3a66aaf3a07)
(cherry picked from commit 1c5c537f449f2f808a7be2b11ef19c8a979d3b81)

15 years agos4-smbtorture: skip unsupported ACB bits for Samba3 in RPC-SAMR-USER.
Günther Deschner [Fri, 8 May 2009 20:20:38 +0000 (22:20 +0200)]
s4-smbtorture: skip unsupported ACB bits for Samba3 in RPC-SAMR-USER.

Guenther
(cherry picked from commit 4f3bfb6261dfb9836404399db57373ef91a411bf)
(cherry picked from commit 85ee8f36029deba69959aeacd68b55e676348d5f)

15 years agos3-samr: more accurateness in _samr_SetDomainInfo().
Günther Deschner [Fri, 8 May 2009 09:24:35 +0000 (11:24 +0200)]
s3-samr: more accurateness in _samr_SetDomainInfo().

Guenther
(cherry picked from commit b7925cb3f219b0502bb7d5ffff2dbda7bb4c2bda)
(cherry picked from commit 1136037b814472d09b98c7a276d4041603953a45)

15 years agos4-smbtorture: Support timestamp handling for Samba3 in RPC-SAMR-USERS.
Günther Deschner [Fri, 8 May 2009 20:01:55 +0000 (22:01 +0200)]
s4-smbtorture: Support timestamp handling for Samba3 in RPC-SAMR-USERS.

Timestamps in passdb (currently) only have second granularity.

Guenther
(cherry picked from commit 67df4489e20f17c334544818227e905136b6f5aa)
(cherry picked from commit a9c907bbc7fb6af7616e990eb1feb02bf3e844f8)

15 years agoFix bug #6330 - DFS doesn't work on AIX. Jeremy.
Jeremy Allison [Fri, 8 May 2009 18:31:34 +0000 (11:31 -0700)]
Fix bug #6330 - DFS doesn't work on AIX. Jeremy.
(cherry picked from commit c6bf4cb7e611c4acd3df2e8a52ed535ec3210c24)

15 years agoExpand the comment explaining why user_in_group_sid is
Jeremy Allison [Fri, 8 May 2009 17:11:38 +0000 (10:11 -0700)]
Expand the comment explaining why user_in_group_sid is
not reliable for winbindd users from foreign domains.
Jeremy.
(cherry picked from commit 32eaef7d2f2e9be171f835b8f440b7c78ee22bd8)

15 years agos3:smbd: fix posix acls when setting an ACL without explicit ACE for the owner (bug...
Stefan Metzmacher [Fri, 8 May 2009 12:33:49 +0000 (14:33 +0200)]
s3:smbd: fix posix acls when setting an ACL without explicit ACE for the owner (bug#2346)

The problem of bug #2346 remains for users exported by
winbindd, because create_token_from_username() just fakes
the token when the user is not in the local sam domain. This causes
user_in_group_sid() to give totally wrong results.
In uid_entry_in_group() we need to check if we already
have the full unix token in the current_user struct.
If so we should use the current_user unix token,
instead of doing a very complex user_in_group_sid()
which doesn't give reliable results anyway.

metze
(cherry picked from commit b79eff843be392f3065e912edca1434081d93c44)
(cherry picked from commit 369c52cc8c3042dab5b60c25c03218a761ffd3ef)

15 years agos3-samr: Fix the build of _samr_QueryDomainInfo, sorry :)
Günther Deschner [Fri, 8 May 2009 10:14:02 +0000 (12:14 +0200)]
s3-samr: Fix the build of _samr_QueryDomainInfo, sorry :)

Guenther
(cherry picked from commit 891e677a97f90383803cd6203515ec9a98b1a430)

15 years agos3-selftest: run RPC-LSA-GETUSER against Samba 3.
Günther Deschner [Fri, 8 May 2009 09:26:57 +0000 (11:26 +0200)]
s3-selftest: run RPC-LSA-GETUSER against Samba 3.

Guenther
(cherry picked from commit 66cf7e1835d5d711c91d0541b05eb11b61267ba8)
(cherry picked from commit 921cd4b58f31e2ab821172b79ece8fb34d6b5cee)

15 years agos4-smbtorture: Fix printf info-level mismatch in RPC-SAMR.
Günther Deschner [Fri, 8 May 2009 07:56:40 +0000 (09:56 +0200)]
s4-smbtorture: Fix printf info-level mismatch in RPC-SAMR.

Guenther
(cherry picked from commit c2498d133db4dcb76e636661110b6432d017d13c)
(cherry picked from commit aa569ecfcf9d9f6084ab171afb64fb918870958b)

15 years agos3-samr: implement more info levels in _samr_QueryDomainInfo().
Günther Deschner [Fri, 8 May 2009 07:55:10 +0000 (09:55 +0200)]
s3-samr: implement more info levels in _samr_QueryDomainInfo().

Gets us closer to pass RPC-SAMR.

Guenther
(cherry picked from commit 266b79e004470ae1859085ca018fd6aff6836059)
(cherry picked from commit 21d7315fcf08836dfc6f5584bc018f9e46a81a26)

15 years agos3-samr: Fix potential memory leak in _samr_ChangePasswordUser().
Günther Deschner [Thu, 7 May 2009 23:23:54 +0000 (01:23 +0200)]
s3-samr: Fix potential memory leak in _samr_ChangePasswordUser().

Guenther
(cherry picked from commit d7b32b51f840d34e0ecb62dd8b7df862974d6271)
(cherry picked from commit 2d52c7c605d92356211aa11c31ce9c8392952557)

15 years agos3-selftest: finally enable RPC-SAMR-PASSWORDS which samba3 now passes.
Günther Deschner [Thu, 7 May 2009 22:31:11 +0000 (00:31 +0200)]
s3-selftest: finally enable RPC-SAMR-PASSWORDS which samba3 now passes.

Guenther
(cherry picked from commit 53713be2cbc1156769b8b82d3df9da02459232ce)
(cherry picked from commit 5fc5c808962ee87e618ab9661f449cd587dce361)

15 years agos4-smbtorture: avoid acct_flags check at the end of RPC-SAMR-PASSWORDS for Samba3.
Günther Deschner [Thu, 7 May 2009 22:30:11 +0000 (00:30 +0200)]
s4-smbtorture: avoid acct_flags check at the end of RPC-SAMR-PASSWORDS for Samba3.

I don't get this, why would the account suddenly get ACB_PWNOTREQ ?

Guenther
(cherry picked from commit 310031274d8b0fdf15a5e33fccfd7b6cb81c8a50)
(cherry picked from commit 7dee64aa3544057bc4d436974441052bc863fb3e)

15 years agos3-selftest: need to enable lanman auth in order make RPC-SAMR-PASSWORDS pass.
Günther Deschner [Thu, 7 May 2009 22:18:28 +0000 (00:18 +0200)]
s3-selftest: need to enable lanman auth in order make RPC-SAMR-PASSWORDS pass.

Guenther
(cherry picked from commit 6f4b5798c96ed69d965d6c3c005518f87afda8d6)
(cherry picked from commit 664cc387c18aafdf481ce468127dfba05009ea94)

15 years agos3-samr: Do not leak information whether a user exist or not in pwd change calls.
Günther Deschner [Thu, 7 May 2009 21:56:22 +0000 (23:56 +0200)]
s3-samr: Do not leak information whether a user exist or not in pwd change calls.

Found by torture test.

Guenther
(cherry picked from commit 227b61d7ea9895240e0e7f554fbb10d3e78feaae)
(cherry picked from commit d0ab51ff71c726af483cc71ac721b624087d54d7)

15 years agos3-samr: implement _samr_ChangePasswordUser().
Günther Deschner [Thu, 7 May 2009 22:16:43 +0000 (00:16 +0200)]
s3-samr: implement _samr_ChangePasswordUser().

This is vastly copied from samba4 samr server.

Guenther
(cherry picked from commit 5773d7d10253f6f53a9ae96e9979a87393b242a6)
(cherry picked from commit 8e0390378ab8afed728bdd76d977fd8207b5defc)

15 years agos3-samr: implement _samr_OemChangePasswordUser2().
Günther Deschner [Thu, 7 May 2009 21:26:54 +0000 (23:26 +0200)]
s3-samr: implement _samr_OemChangePasswordUser2().

Guenther
(cherry picked from commit d17c6af57c6e5ec10d71a9fcbffc6ce4d34a553f)
(cherry picked from commit ae7d88941121190ef999c281a0ddd972e2661321)

15 years agos3-samr: disable check for ACB_DISABLED in check_oem_password().
Günther Deschner [Thu, 7 May 2009 21:54:58 +0000 (23:54 +0200)]
s3-samr: disable check for ACB_DISABLED in check_oem_password().

It is a bad idea to just tell everyone that an account is disabled without
really having checked the password first.

Found by torture test.

Guenther
(cherry picked from commit c400fc1e1e9a0c3db82c9a96e9684c8debfb3b74)
(cherry picked from commit e754be3e03f96952ab1d8a4af1762a9f68562fa3)

15 years agos3-samr: rework check_oem_password() to take a struct samu, not to return one.
Günther Deschner [Thu, 7 May 2009 21:22:26 +0000 (23:22 +0200)]
s3-samr: rework check_oem_password() to take a struct samu, not to return one.

Guenther
(cherry picked from commit 2c0238226e95101b193615fd122e0494480b746a)

15 years agos4-smbtorture: prepare for running RPC-SAMR-USERS against samba3.
Günther Deschner [Thu, 7 May 2009 19:47:47 +0000 (21:47 +0200)]
s4-smbtorture: prepare for running RPC-SAMR-USERS against samba3.

In Samba 3 there are no pdb calls to store comments, codepages and countrycodes
(yet).

Guenther
(cherry picked from commit 41cb06fba7126c79fe536321f2dc461e87e83076)
(cherry picked from commit bcf7dbdcfde8704e8990871706904c31c008d651)

15 years agos3-samr: Let _samr_TestPrivateFunctionsUser() return not supported.
Günther Deschner [Thu, 7 May 2009 16:42:28 +0000 (18:42 +0200)]
s3-samr: Let _samr_TestPrivateFunctionsUser() return not supported.

This is to get us closer to pass RPC-SAMR-USERS.

Guenther
(cherry picked from commit 6aca5fca8dd73ff33cfac5000480520def04e7fa)
(cherry picked from commit e43120ebef1d3e4c9710d4d913fda41f9b727bb9)

15 years agos3-samr: let set_user_info_16 and 20 follow the same pattern as all other levels.
Günther Deschner [Thu, 7 May 2009 19:45:51 +0000 (21:45 +0200)]
s3-samr: let set_user_info_16 and 20 follow the same pattern as all other levels.

Guenther
(cherry picked from commit f05d888d7ab910b3ed39e4d36eeb52cb86bd990e)
(cherry picked from commit 970ccd28f32e4b67188629b99a0a1a2d6762b897)

15 years agos3-samr: support some more info levels in samr_SetUserInfo calls.
Günther Deschner [Thu, 7 May 2009 15:06:26 +0000 (17:06 +0200)]
s3-samr: support some more info levels in samr_SetUserInfo calls.

Guenther
(cherry picked from commit f93f713898f2208fda51f24121b060ee09f5fe3a)
(cherry picked from commit 07f33f9d7d9401390eb304866e5e1010b6d5ff13)

15 years agos3-samr: support some more info levels in samr_QueryUser calls.
Günther Deschner [Thu, 7 May 2009 15:05:49 +0000 (17:05 +0200)]
s3-samr: support some more info levels in samr_QueryUser calls.

Guenther
(cherry picked from commit b0df0e8cc76e67a977129aca8b254fe38de85ebd)
(cherry picked from commit 281d035ab2ca526dc7772a1124d2c612ea2a6e6c)

15 years agos3-samr: Fix _samr_Connect5(). In error case it still needs to return empty info1.
Günther Deschner [Thu, 7 May 2009 12:19:43 +0000 (14:19 +0200)]
s3-samr: Fix _samr_Connect5(). In error case it still needs to return empty info1.

Guenther
(cherry picked from commit 599b9fe86eba932171bb4ec13347ed28ea5edebd)
(cherry picked from commit 48818f8e5ebd64efa9fd26508422db7feba7dc25)

15 years agoAfter getting confirmation from Guenther, add 3 changes we'll
Jeremy Allison [Wed, 6 May 2009 23:10:20 +0000 (16:10 -0700)]
After getting confirmation from Guenther, add 3 changes we'll
ultimately need to fix bug #6099 Samba returns incurrate capabilities list.
1). Add a comment to point out that r->in.negotiate_flags is an aliased pointer to
r->out.negotiate_flags.
2). Ensure we return NETLOGON_NEG_STRONG_KEYS in our flags
return if the client requested it.
3). Clean up the error exits so we always return the same
way.
Signed off by Guenther.
Jeremy.
(cherry picked from commit 78fb479325ce7073ab8383ada3903080d12aef91)
(cherry picked from commit 2ea00bf3a65c76211a42d29adfa3f71e06c813e8)

15 years agos3-netlogon: Fix NETLOGON credential chain. Fixes Bug #6099 (Windows 7 joining Samba3...
Günther Deschner [Wed, 6 May 2009 17:29:01 +0000 (19:29 +0200)]
s3-netlogon: Fix NETLOGON credential chain. Fixes Bug #6099 (Windows 7 joining Samba3) and probably many, many more.

Jeremy, with 9a5d5cc1db0ee60486f932e34cd7961b90c70a56 you alter the in negotiate
flags (which are a pointer to the out negotiate flags assigned in the generated
netlogon server code). So, while you wanted to just set the *out* negflags, you
did in fact reset the *in* negflags, effectively eliminating the
NETLOGON_NEG_STRONG_KEYS bit (formerly known as NETLOGON_NEG_128BIT) which then
caused creds_server_init() to generate 64bit creds instead of 128bit, causing
the whole chain to break. *Please* check.

Guenther
(cherry picked from commit 78754ab2c9b28ea8ab09d3fd1f5450abe721a2c1)
(cherry picked from commit e527a1aa73b3fdb86787e9c55f6a01660b4d1a0f)

15 years agos3-rpcclient: rework enumdrivers call a bit to allow queries like win7 does.
Günther Deschner [Thu, 7 May 2009 11:35:00 +0000 (13:35 +0200)]
s3-rpcclient: rework enumdrivers call a bit to allow queries like win7 does.

Guenther
(cherry picked from commit b8ddb8765c6421b595737dac8deaeb88546a847a)
(cherry picked from commit d0854a690d1ce25a0c4f0ed92a3706a90f12305f)

15 years agos3-credentials: protect netlogon_creds_server_step() against NULL creds.
Günther Deschner [Thu, 7 May 2009 11:32:41 +0000 (13:32 +0200)]
s3-credentials: protect netlogon_creds_server_step() against NULL creds.

Found by SCHANNEL torture tests.

Guenther
(cherry picked from commit 8e490d2fa1c52be5da331df0b314508f77ec1f6e)
(cherry picked from commit 80e1a92ae770fbf97b22e6e99103def755294992)

15 years agos3-selftest: run RPC-SCHANNEL, RPC-SCHANNEL2 and RPC-BENCH-SCHANNEL1 against Samba3.
Günther Deschner [Thu, 7 May 2009 11:06:03 +0000 (13:06 +0200)]
s3-selftest: run RPC-SCHANNEL, RPC-SCHANNEL2 and RPC-BENCH-SCHANNEL1 against Samba3.

Guenther
(cherry picked from commit 949cd77ca2529249dc8cd04740c2ca342fb0c283)
(cherry picked from commit 707be96878c5618f42470e10ec68ce859c307678)

15 years agos4-smbtorture: Avoid failing RPC-SCHANNEL when testing lsa_GetUserName behaviour...
Günther Deschner [Thu, 7 May 2009 11:05:13 +0000 (13:05 +0200)]
s4-smbtorture: Avoid failing RPC-SCHANNEL when testing lsa_GetUserName behaviour against Samba 3.

Guenther
(cherry picked from commit 2cdfd67cae1ce4a08c6d42314916959ce6ef99fb)
(cherry picked from commit e88dc4c58226fdbd4d6a67d2260e0b200e0a52e4)

15 years agos3-auth: use full 16byte session key in make_user_info_netlogon_interactive().
Günther Deschner [Thu, 7 May 2009 11:36:52 +0000 (13:36 +0200)]
s3-auth: use full 16byte session key in make_user_info_netlogon_interactive().

Guenther
(cherry picked from commit b5097d54cb74ca0ea328f9e029562f65f4a01134)

15 years agoFix bug 6336: "net groupmap set" segfaults
Volker Lendecke [Thu, 7 May 2009 08:09:32 +0000 (10:09 +0200)]
Fix bug 6336: "net groupmap set" segfaults
(cherry picked from commit 33a53cb98a5f66d56ca1e0633297065f05d12a48)

15 years agos3/docs: Remove unnecessary .sp.
Karolin Seeger [Wed, 6 May 2009 14:06:59 +0000 (16:06 +0200)]
s3/docs: Remove unnecessary .sp.

Karolin
(cherry picked from commit 4a4dc776b2f0ca813abcf4f47f0d5721f75f3e6a)
(cherry picked from commit 6a617a9677da9df8f70cf2039245cfb5ce3d94c3)

15 years agos3-docs: Fix Bug #6331. Document "net dom join/net dom unjoin".
Günther Deschner [Wed, 6 May 2009 13:43:23 +0000 (15:43 +0200)]
s3-docs: Fix Bug #6331. Document "net dom join/net dom unjoin".

Guenther
(cherry picked from commit e398f1e91575909d2a90fab1e6f00804815a0b2f)
(cherry picked from commit 80d32b8bfcc9a7805d864bd60d89d747bbe9ad0d)

15 years agos3-docs: Fix "net eventlog dump" syntax in manpage.
Günther Deschner [Wed, 6 May 2009 13:43:00 +0000 (15:43 +0200)]
s3-docs: Fix "net eventlog dump" syntax in manpage.

Guenther
(cherry picked from commit bf197a9c0ab8a58a775277896d40617d36279288)
(cherry picked from commit 163d0699e83c43f136449a16f539c99320a3eeaa)