summaryrefslogtreecommitdiffstats
path: root/source
Commit message (Collapse)AuthorAgeFilesLines
...
* test: fix net_registry test "set value to different type" to track error countMichael Adam2008-04-041-1/+1
| | | | | | | missing backslash in call... :-} Michael (cherry picked from commit 8f0c25f01f11857d24556346dc2758549919eba3)
* test: some cosmetics to net_registry tests.Michael Adam2008-04-041-2/+3
| | | | | Michael (cherry picked from commit dba9db5ae6581df18591eebd19d3649bed0d9367)
* test: fix net_registry tests to correctly capture output of commands inside ↵Michael Adam2008-04-041-12/+25
| | | | | | | | | | one test so that failure output is not clobbered by output of previous successful commands. Michael (cherry picked from commit cb3dafe5fd8867b000e01979d4232968d994d376)
* test: fix use of printf in net_registry tests.Michael Adam2008-04-041-12/+12
| | | | | | | actually 'printf "%s\n"' is the proper replacement of 'echo -e' Michael (cherry picked from commit 388a40931f1559b134317ef0c85c7cf2598e17fe)
* po/genmsg: be more portable, use 'printf "%s"' instead of 'echo -n'Michael Adam2008-04-041-1/+1
| | | | | Michael (cherry picked from commit 0bd50e450baf633ea9d653341f3ce9d81bfdd83f)
* mkversion: be more portable, use 'print "%s"' instead of 'echo -n'Michael Adam2008-04-041-4/+4
| | | | | Michael (cherry picked from commit 7a23dab1eaf3116079a89cdf348cabc659608031)
* installswat: be more portable, use 'printf "%s"' instead of 'echo -n'Michael Adam2008-04-041-2/+2
| | | | | Michael (cherry picked from commit 8b015c91c9b10c208fe61cefd71ddc9f4fcbec61)
* configure: be more portable, use 'printf "%s"' instead of "echo -n"Michael Adam2008-04-041-1/+1
| | | | | Michael (cherry picked from commit 06dfb0cf7cd39e1072534fc32e79a4b4f6e49cb6)
* test: be more portable. replace 'echo -n' by 'printf "%s"' in test_functions.shMichael Adam2008-04-041-3/+3
| | | | | Michael (cherry picked from commit c0c41184277044eb856f91c025f645c198cac188)
* test: be more portable: replace 'echo -n' by 'printf "%s"' in selftest.shMichael Adam2008-04-041-1/+1
| | | | | Michael (cherry picked from commit b6122406fe938fdaf373ff45214db79de06eb989)
* test: make registry tests more portable: protect some grep patterns in ' '.Michael Adam2008-04-041-4/+4
| | | | | Michael (cherry picked from commit 1cb3b2f065566f981f6cfb8b5efdfad7db49c719)
* test: make registry tests more portable: use 'printf "%s"' instead of 'echo -e'Michael Adam2008-04-041-12/+12
| | | | | Michael (cherry picked from commit 5c1b7ee5c17489da90192309853aa1ecacc15512)
* test: add test script for testing "net registry".Michael Adam2008-04-042-0/+385
| | | | | Michael (cherry picked from commit fa5968a26b552d7f13574a826e506ed2d6630feb)
* test: add (and unify) sectioning output of subtests in tests_all.shMichael Adam2008-04-041-2/+8
| | | | | Michael (cherry picked from commit d775194e9c7b75182c485fba427b20ec2bfcf16c)
* test: add possibility to select tests to run via tests_all.sh (make test)Michael Adam2008-04-041-8/+14
| | | | | | | | | | This allows to select the tests to run with tests_all.sh by setting the environment variable "RUNTESTS". Example: RUNTESTS="smbclient_s3_encrypted wbinfo_s3" make test Michael (cherry picked from commit bf4af79f050cceb6611a8aa3d893b59b816a41ce)
* test: in tests_all.sh, wrap calls to test scripts into shell functions.Michael Adam2008-04-041-20/+63
| | | | | | | | This is in preparation for enabling running only selected test scripts through "make test". Michael (cherry picked from commit ad1fbadf81c915425301ec495744c11f3103169f)
* registry: reg_deletevalue should return error, when the value does not exist.Michael Adam2008-04-041-0/+18
| | | | | Michael (cherry picked from commit 04b48984bbf84c55bb41a74a11cbcc7358377fed)
* net: add a "net registry" subcommand to locally access the registry.Michael Adam2008-04-043-1/+534
| | | | | | | | The interface is like that of net rpc registry. Access is direct local access to the registry tdb through reg_api. Michael (cherry picked from commit 3250068eb980bd0489f814f702401cdc9c925a8d)
* Fix rpccli_lsa_lookup_sids_noalloc.Günther Deschner2008-04-041-3/+11
| | | | | | | | | When looking up e.g. a trusted doamin account, there is just no name. Michael, please check. Guenther (cherry picked from commit ea3cfadc2504c891b4784719bd8e6debcc38c879)
* Add NT_STATUS_RPC_CANNOT_SUPPORT.Günther Deschner2008-04-042-0/+2
| | | | | Guenther (cherry picked from commit 9e15ce03ca66a0b5ffdb39dd2faaad6e0f967e31)
* Fix "net rpc trustdom establish" for win2k8 trusts.Günther Deschner2008-04-041-14/+52
| | | | | | | | | | | When establishing trusts to a windows 2008 dc, the NetServerEnum2 RAP call fails with some exotic RAP failure. Let's just try a netlogon getdcname call in that case to convince ourselve we're talking to a proper machine. Rafael, looks ok? Guenther (cherry picked from commit b12edbeffee1f7d1fd971cde9189e5137ddeb35b)
* Apply some const in clirap.Günther Deschner2008-04-041-1/+1
| | | | | Guenther (cherry picked from commit 8a1a9f967db25d3928f19e46d60af249f934f323)
* Some fixes for netdomjoin-gui and support for browsing/joining OUs.Günther Deschner2008-04-041-157/+390
| | | | | Guenther (cherry picked from commit 4714bae0dbbb2ad010c2929f83de6bca84cfac46)
* Make sure to hand down the domain name in libnetapi NetUnjoinDomain.Günther Deschner2008-04-041-7/+11
| | | | | Guenther (cherry picked from commit 0058ab30de943f134792e3d66051206086987110)
* Fix NETLOGON credential chain with Windows 2008 all over the place.Günther Deschner2008-04-0410-19/+61
| | | | | | | | | | | | In order to avoid receiving NT_STATUS_DOWNGRADE_DETECTED from a w2k8 netr_ServerAuthenticate2 reply, we need to start with the AD netlogon negotiate flags everywhere (not only when running in security=ads). Only for NT4 we need to do a downgrade to the returned negotiate flags. Tested with w2k8, w2ksp4, w2k3r2 and nt4sp6. Guenther (cherry picked from commit 0970369ca0cb9ae465cff40e5c75739824daf1d0)
* Fix trusted users on a DC that uses the old idmap syntax. There was no ↵Simo Sorce2008-04-041-0/+70
| | | | | | default backend therefore on IDs were mapped by default. (cherry picked from commit f6069126e5e6d239b1ae00e897a420227f923e3f)
* Fix MSDFS bug noticed by Ofir Azoulay <Ofir.Azoulay@expand.com>.Jeremy Allison2008-04-041-30/+0
| | | | | | | There is no reason to ensure the target host is ourselves, and this breaks MS clients in some cases. Jeremy. (cherry picked from commit c19fdf43d16ce9fba3e8e12e6192bac31837715e)
* smbd: ignore nttrans renames as w2k3 doesStefan Metzmacher2008-04-031-24/+3
| | | | | | | | | This lets us pass the RAW-RENAME test. metze Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit 2d50a1fef022023588e9963131951f8f3e4c7c23)
* smbd: always close the base_fsp even if the real close returned an errorStefan Metzmacher2008-04-031-4/+0
| | | | | | | | | Otherwise we may end up with share mode entry without an open file. Volker, Jeremy: please check... metze (cherry picked from commit 547eacf6058d2bc5b41b266b70f8f4747aca4eae)
* Ok, final move of this code :-). I think I've found the correctJeremy Allison2008-04-031-9/+9
| | | | | | | | place for it now where it will cause minimal disruption (only call the extra message_dispatch just before reading the next smb off the wire). Jeremy. (cherry picked from commit da2c19c481d0041872b4ce2f5105052077f3d3b8)
* Move the message_dispatch() call after the check for errno onJeremy Allison2008-04-031-11/+11
| | | | | | | the select return. We don't want the call to message_dispatch to mess up the errno value. Jeremy. (cherry picked from commit 26a74d01bb2b53ffa5d296ff1c7d8b2b0d17831a)
* Using Metze's S4 nttrans rename test, the nttrans renameJeremy Allison2008-04-031-1/+1
| | | | | | behaves the same as the trans2 one. Jeremy. (cherry picked from commit c4fa4917dad97c5047f7336c6675739b44da256b)
* Reduce the race condition in Samba4 in RAW-RENAME test. We rename a fileJeremy Allison2008-04-031-0/+9
| | | | | | | | | | | using trans2 setfileinfo on one connection, and then check the file name has changed on the other. In Samba we achieve this by sending a local message to the other process. This change causes us to re-scan for incoming messages after we've woken up from the select (which is cheap if there are no pending messages). This reduces the race significantly. Volker please review. Jeremy. (cherry picked from commit a7499e994aef743ea9c443f9a1618b262f6eda93)
* Allow us to pass RAW-RENAME by testing that the connection structJeremy Allison2008-04-031-1/+1
| | | | | | connection paths are equal, not just the conn structs themselves. Jeremy. (cherry picked from commit 632f3fe66fbcbe3cc25d070c3885177264f5ad65)
* Try and fix bug #5315, as well as S4 torture tests RAW-OPLOCK BATCH19,Jeremy Allison2008-04-033-10/+13
| | | | | | BATCH20 and RAW-RENAME. Jeremy. (cherry picked from commit 9065792d4bc42522f12f9732de3c0ad82c72a2d3)
* Fix missing '&&'.Jeremy Allison2008-04-021-1/+1
| | | | | Jeremy. (cherry picked from commit 251df53811e4272b629575a4b50c29a99715ccf9)
* Only allow sendfile on non-stream fsp's. Should fix make test for streamsJeremy Allison2008-04-021-2/+2
| | | | | | as sendfile isn't implemented in the streams vfs modules yet. Jeremy. (cherry picked from commit eef53e9603d4f3d892ffe00b061def5d717ca481)
* Fix bug #5326 - OS/2 servers give strange "high word" replies for print jobs.Jeremy Allison2008-04-021-1/+3
| | | | | Jeremy. (cherry picked from commit d090d25cb702965b3d5e4635a26a06f2b62d235d)
* Fix enumeration of forest trusts from our root domain.Gerald W. Carter2008-04-011-1/+1
| | | | | | Do not overwrite the domain->domain_flags when setting infomation in set_dc_type_and_flags_connect(). (cherry picked from commit 3414eac439b731ad7204b821ddc4fec54fe4435d)
* DIsplay the short domain name in "wbinfo -m " by default.Gerald W. Carter2008-04-011-10/+16
| | | | | | This fixes wbinfo -m to make preexisting behavior. Also adds the dns domain to the --verbose output. (cherry picked from commit b68caaa81bd75bb882c9363612d11d49dd73cb6f)
* Augmented "wbinfo -m" to list additional information about the type, ↵Steven Danneman2008-04-012-28/+169
| | | | | | | | | | | | | | | | | | | direction, and transitivty of trusts. * added several helper functions to convert the trust_flags field in the winbindd_tdc_domain to more useful administrator ideas of trust type, trust direction, and trust transitivity. * converted winbindd_list_trusted_domains() to enumerate the trusted domain cache, instead of the domain list, and return additional trust information to the calling process * modified wbinfo to pretty print this additional trust information when a new --verbose switch is given with -m. Thus "wbinfo -m" and "wbinfo -all-domains" output as before, but "wbinfo --verbose -m" prints extra trust info. * updated some comments and fixed typos (cherry picked from commit e7827bb6afa264c12ecdc0858f49707ca3d6104f)
* Forest root trust flags won't overwrite child trust flagsSteven Danneman2008-04-012-33/+54
| | | | | | | | | | | | | * changed the behavior of winbind_ads.c:trusted_domains() to not overwrite existing trust information if we're joined to a child domain, and querying the forest root domain. Previously if we were joined to a child domain, we'd request all known trust information from this child domain (our primary domain) and store it in the tdc. We'd then request all trust information from our tree root (to get the forests we transitively trust) and overwrite the existing trust information we already had from the perspective of the tree root. * updated several comments and fixed typos (cherry picked from commit 6aac972d790ad5ca65096cb2e85e6819b60a5413)
* mount.cifs: fix several problems when mounting subdirectories of shares (try 2)Jeff Layton2008-04-011-24/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch is the second patch to attempt to fix up some of the problems with mounting subdirectories of shares. The earlier patch didn't handle this correctly when POSIX extensions were enabled. This one does. This is a bit of a confusing area since the different components of a service string have different rules: 1) hostname: no '/' (slash) or '\' (backslash) is allowed to be embedded within the string 2) sharename: same rules as hostname 3) prefixpath: '\' *is* allowed to be embedded in a path component, iff POSIX extensions are enabled. Otherwise, neither character is allowed. The idea here is to allow either character to act as a delimiter when we know that the character can't be anything but a delimiter (namely everywhere up to the start of the prefixpath). The patch will convert any '\' unconditionally to '/' in the UNC portion of the string. However, inside the prefixpath, we can't make assumptions about what constitutes a delimiter because POSIX allows for embedded '\' characters. So there we don't attempt to do any conversion, and pass the prefixpath to the kernel as is. Once the kernel determines whether POSIX extensions are enabled, it can then convert the path if needed and it's able to do so. A patch to handle this has already been committed to the cifs-2.6 git tree. This patch also fixes an annoyance. When you mount a subdir of a share, mount.cifs munges the device string so that you can't tell what the prefixpath is. So if I mount: //server/share/p1/p2/p3 ..then /proc/mounts and mtab will show only: //server/share Finally, it also tries to apply some consistent rules to the uppercasing of strings. Signed-off-by: Jeff Layton <jlayton@redhat.com> (cherry picked from commit e03d1dfdb80333c071b600245eb749ef5664aa22)
* Fix up the comments on security=share to explain we'reJeremy Allison2008-04-011-1/+5
| | | | | | ignoring passwords. Jeremy. (cherry picked from commit e7b6ea46532a26611dfd9d9e2727d52ba6a9cf50)
* Fix build of rpcclient.Günther Deschner2008-04-011-2/+2
| | | | | Guenther (cherry picked from commit 3cb1cdee9307cafa80ab95233a536f5dd7882ff1)
* Fix build warning.Günther Deschner2008-04-011-1/+1
| | | | | Guenther (cherry picked from commit c40522cfe97c4e5eedccc9c56f47f9d4a8bcdaaf)
* Fix SRVSVC NetShareInfo level 502 client-side.Günther Deschner2008-04-011-2/+2
| | | | | Guenther (cherry picked from commit 8b4eac0ab186c02666693d3f007f0c98d60e0eda)
* Fix SRVSVC ShareInfo level 502 server side handling.Günther Deschner2008-04-012-8/+8
| | | | | Guenther (cherry picked from commit 776facabf6f09f643d6dc526aa83f8db517465f9)
* Re-run make idl.Günther Deschner2008-04-012-39/+6
| | | | | Guenther (cherry picked from commit 3adf82554a6f54878aed99c3e894aef1b7ecfd84)
* Fix IDL for srvsvc_NetShareInfo502. It does indeed contain a sec_desc_buf.Günther Deschner2008-04-011-3/+1
| | | | | Guenther (cherry picked from commit da7f006539219f8ccd525ef1fcd131d5f9558bf1)