summaryrefslogtreecommitdiff
path: root/source3/utils
Commit message (Collapse)AuthorAgeFilesLines
* s3-net: Fix Bug #7417. 'net rpc user password' can set the wrong password.Günther Deschner2010-05-171-1/+4
| | | | | | Guenther (cherry picked from commit 7887d99a60387e93ce5ce4a3bfe9117939d1e4c8) (cherry picked from commit b4b36e1a486296d049c96ea66e201d9c01e7165d)
* s3-net_conf: Display an error on net conf import failures.Jim McDonough2010-05-171-0/+4
| | | | | | | | | When something goes wrong, such as a typo in a parameter name, we'll now display the failure instead of just returning with -1 and no message. Fix bug #7378 ("net conf import" fails silently on parameter typo). (cherry picked from commit c1ae6d36d09569732408fdd6c079a1db7a5a65a5)
* s3:make "net conf addshare" atomic by wrapping all writes in one transactionMichael Adam2010-04-011-6/+36
| | | | | | | | Michael (cherry picked from commit 09f3ed102472304d6b4446a6fab9cf6f05c9176a) Fix bug #7313 (Net conf addshare is not atomic). (cherry picked from commit 3ab90b2897cd4e05b21ce46e91e93609e596c80e)
* s3: Add "g_lock_do" as a convenience wrapper function (cherry picked from ↵Volker Lendecke2010-04-011-27/+22
| | | | | | commit 79100c242153ea174a4405afd45cbf635da313aa) (cherry picked from commit 5423a2cc8138db852fefa133a7da53dc5abf1961)
* s3: Implement global locks in a g_lock tdbVolker Lendecke2010-04-013-0/+223
| | | | | | | | This is the basis to implement global locks in ctdb without depending on a shared file system. The initial goal is to make ctdb persistent transactions deterministic without too many timeouts. (cherry picked from commit 4c1c3f2549f32fd069e0e7bf3aec299213f1e85b) (cherry picked from commit 98873e0d6a38abdcaed48af6504a9a39a23ae027)
* s3 ntlm_auth: Don't malloc data that will be talloc_free()dKai Blin2010-03-291-12/+12
| | | | | | This fixes bug #7290 Thanks to Mohan <mohann@silver-peak.com> for the bug report. (cherry picked from commit 66565a364afe6336773acab35b96b8e74da078b3)
* s3-net: fix net after spoolss_EnumPrinterDataEx IDL change.Günther Deschner2010-03-291-9/+2
| | | | | | Guenther (cherry picked from commit a99ac4f236d9a93d4ca8bd874cbab89b155c644a) (cherry picked from commit 35b5b6f214efde97ae0412676ef0ea47501a780d)
* s3-net: fix net after spoolss_SetPrinterData{Ex} IDL change.Günther Deschner2010-03-291-24/+6
| | | | | | Guenther (cherry picked from commit 37ca9288d2631b48a8eb50c01d6c0cc462d8ee31) (cherry picked from commit cbc766eb1fff67ba01cf57e1da215299c5927d0b)
* s3: Fix the build of net_afs.c with --fake-kaserver=yes, bug 7216Volker Lendecke2010-03-291-1/+1
| | | | | | Thanks to Geza Gemes <geza@kzsdabas.hu> for filing this bug (cherry picked from commit 5a3633faf12cdec41dc18064d5364a3fd067a22d) (cherry picked from commit cb627d3628da1da3c167de3b319cd92948e862eb)
* s3: net_share.c: fix argc handlingHolger Hetterich2010-03-291-3/+1
| | | | | | | | The "net share" command was no longer possible because it enters the net_share function with argc == 0. Fix bug #7203 (net share doesn't work anymore). (cherry picked from commit cc5e6e62acc75699951e1860acde4af82646f747)
* s3-net: fix net ads dns usage calls.Günther Deschner2010-03-011-3/+8
| | | | | | | | | Bjoern, please check. Guenther Fix bug #7181 (buildwarnings in net_ads.c). (cherry picked from commit 7d5575fefe29a00c757dab0013c9d45b84f0be47)
* Fix bug #7069 - smbget does not return an error status after some errorsJeremy Allison2010-02-101-38/+45
| | | | | | | | | A combination patch from Johannes Poehlmann <johannes@lst.de> and Jeremy. Fix the return codes from smb_download_file() and smb_download_dir(). Jeremy. (cherry picked from commit f387ed88e8b5b32eb121724d99d73d8ce55e745e) (cherry picked from commit 23408bb31b0ca690a5e7a3dffa798075cab265ad)
* s3: Add --use-ccache to netVolker Lendecke2010-01-264-0/+9
| | | | (cherry picked from commit af32a49c7d8803f597e184f1361e795f179b809f)
* s3: Fix a bug in net's use of poptVolker Lendecke2010-01-261-1/+1
| | | | | | | | | | | | | In order to add --use-ccache to net, I added another "bool opt_ccache;" to struct net_context. popt did not like this, it took a while to figure out why. Popt has the lines /* XXX Check alignment, may fail on funky platforms. */ if (arg == NULL || (((unsigned long)arg) & (sizeof(*arg)-1))) return POPT_ERROR_NULLARG; The "bool opt_ccache;" was not aligned anymore... (cherry picked from commit 340277382518c62e23faae4af69a9c5c32b96af2)
* s3 net: Fix compile warningsKai Blin2010-01-2524-380/+676
| | | | | | | (cherry picked from commit 66de52c4f4527ef43cfaf11c55616ec7602cce85) Part 8/9 of a fix for bug #7039 (German translation of net is not complete). (cherry picked from commit c9ffceedfd1bb8a21ade44e33eebc7e7426b1e84)
* s3 net/i18n: Use only one spelling for "Usage:"Kai Blin2010-01-2511-57/+57
| | | | | | | (cherry picked from commit 09bc13728fc76cf784914a4066c793c297e50cff) Part 6/9 of a fix for bug #7039 (German translation of net is not complete). (cherry picked from commit 611df88507ca2d69f258ea804e2b4fc4ebe420e3)
* s3 net: Fix compile error with WITH_DNS_UPDATESKai Blin2010-01-251-2/+2
| | | | | | | | | bd3c922e2bc1a163efc1d8c9cb59578bebb79616 introduced a compile-time error when building with WITH_DNS_UPDATES. (cherry picked from commit 28b512f904cee5a79aefd0aca2d839dbe37e5519) Part 5/9 of a fix for bug #7039 (German translation of net is not complete). (cherry picked from commit a00de540e13afe4772ccc4756364f91f31cc8951)
* s3/net: split up some printable stings to ease i18nBjörn Jacke2010-01-2525-344/+347
| | | | | | | | | | If we put strings like "Usage:" into separate _() macros and not the whole "Usage:..." string we can cover much more messages by only one single translation. The drawback is that the message in the sources looks less pretty. (cherry picked from commit bd3c922e2bc1a163efc1d8c9cb59578bebb79616) Part 4/9 of a fix for bug #7039 (German translation of net is not complete). (cherry picked from commit f70106f13a2722b958f95c6d6209788d06c69a07)
* Fix bug #7036 - net rpc getsid fails in hardened windows environments.Jeremy Allison2010-01-251-1/+7
| | | | | | Fix suggested by Dave.Daugherty@Centrify.com. (cherry picked from commit 6653cc43233381a941cdd85550f04b087fe880ff) (cherry picked from commit d1f67394ce70342a35fba280e533c76bc9775f9d)
* s3-net: use generated krb5.conf in 'net ads testjoin'Günther Deschner2010-01-071-0/+4
| | | | | | Guenther (cherry picked from commit 475d296065d57f9b38b109203b40ed0b47a2ac7e) (cherry picked from commit f5af157fc004d210e9740491fcce84bbd1b1ebfa)
* s3 net: Add a few missing gettext calls.Kai Blin2010-01-062-6/+6
| | | | | | | Many many thanks to Adi Roiban from #ubuntu-translators for helping me find and fix my problems with the translations. (cherry picked from commit 9a9d737070bfde62f2d5a35ad25606da578f9f7e) (cherry picked from commit dda309191e8927ffcea8724db1a65c422f90e6b9)
* s3-pdbedit: allow to call "pdbedit -N description -u user" without ↵Günther Deschner2009-12-211-2/+4
| | | | | | | | specifiyng "-r". Guenther (cherry picked from commit d9f93224bdd2b02a8c96667009e43406b47d4c35) (cherry picked from commit 2f947224076315ebc983e38f993c452c52beb5a7)
* s3: fix net and rpcclient after setprinterdataex changes.Günther Deschner2009-12-081-2/+11
| | | | | | Guenther (cherry picked from commit c85ed0054e67413ffcd169c405ee4feda3555628) (cherry picked from commit 3f3c04e963d5532340b306ea4e875df2b03985d4)
* Fix bug 6546: Avoid accessing buf[-1] if NUL byte comes from fgetsVolker Lendecke2009-12-083-3/+9
| | | | (cherry picked from commit c0282f8f7d40b893610fdc235cb130f1fedbeb13)
* s3-kerberos: only use krb5 headers where required.Günther Deschner2009-12-081-0/+1
| | | | | | | | | This seems to be the only way to deal with mixed heimdal/MIT setups during merged build. Guenther (cherry picked from commit 04f8c229de7ffad5f4ec1a0bb68c2c8b4ccf4e15) (cherry picked from commit da926c1249705b95344730539c64111876955151)
* s3: Move directory_exist_stat to testparm.c, it only looks at the modeVolker Lendecke2009-12-081-0/+21
| | | | (cherry picked from commit f216509a4004cc3d7920e9ef25160222166299a6)
* s3: "net_conf_addshare" only looks at the modeVolker Lendecke2009-12-081-1/+1
| | | | (cherry picked from commit 04435d7439270f6abac1803aac066543925b3538)
* s3: "net_usershare_add" only looks at the mode, device and inodeVolker Lendecke2009-12-081-1/+1
| | | | (cherry picked from commit 4cc0045a4ea748299da892ce21283b9ec864053d)
* s3: "net_usershare_add" only looks at the device and inodeVolker Lendecke2009-12-081-2/+1
| | | | (cherry picked from commit 50a3344ac87669de665d5ac7a5a9ad63d14f7e38)
* s3: "net_usershare_add" only looks at the mode and uidVolker Lendecke2009-12-081-1/+1
| | | | (cherry picked from commit ad2be463bc386128075331b3695655c997e7aea7)
* s3: "count_num_usershares" only looks at the modeVolker Lendecke2009-12-081-2/+1
| | | | (cherry picked from commit d51a8d2717c9cd83b530a5d75893bba90c044e84)
* s3: "info_fn" only looks at the mode and uidVolker Lendecke2009-12-081-1/+1
| | | | (cherry picked from commit 1a38e0fa633e273d17e876926601ce2a3f3f1bb8)
* s3: "get_share_list" only looks at the mode and uidVolker Lendecke2009-12-081-2/+1
| | | | (cherry picked from commit 2db05665032f927698adadedebb21eb83289140d)
* s3: Pass the "fake dir create times" parameter to sys_*statVolker Lendecke2009-12-082-7/+10
| | | | | Step 0 to restore it as a per-share paramter (cherry picked from commit 572b1f7d7fbfd7719b51033f34f139497cda0f00)
* s3-rpc: Avoid including every pipe's client and server stubs everywhere in ↵Günther Deschner2009-12-0812-1/+20
| | | | | | | | samba. Guenther (cherry picked from commit 3d679a3b5fc208d8521217f6a4b4d9037b609b9b) (cherry picked from commit 5b051c7accf5f88e46d86e9afa4da0e4152f0fd3)
* s3: Fix bug 6338 -- net rpc trustdom list always display "none"Volker Lendecke2009-11-261-10/+23
| | | | (cherry picked from commit 3fcf1a8f9c369f1181f749d2ec9f214df493e3ab)
* ntlm_auth: use data_blob_talloc() to allocate session keyKai Blin2009-11-261-2/+2
| | | | | | | Thanks to Shibu Piriyath <shibunair80@ymail.com> for spotting the issue. (cherry picked from commit 43ed7a413dec10adc8cc4ede09132441b5ba2267) (cherry picked from commit 7301c6deef3241dd9d0a03cfcd1153a958908c19)
* Ensure all callers to the rpc_client/cli_pipe functions correctlyJeremy Allison2009-11-265-6/+6
| | | | | | | initialize return variables. Jeremy. (cherry picked from commit 5363d6e62c2d4d3275e78d04c48835524c54f620) (cherry picked from commit 3e0add7c118cff14c3ed8f619920f4938e4795c3)
* Revert "s3: Make run_rpc_command take strings instead of a ndr_interface_table"Volker Lendecke2009-11-2611-261/+176
| | | | | This reverts commit 53f2a1595e76db9fe1b42db65b51895b73365993. (cherry picked from commit 2a04d2e34b6ab2858c5730b66977ef5a4f3c1678)
* s3: Make run_rpc_command take strings instead of a ndr_interface_tableVolker Lendecke2009-11-2611-176/+261
| | | | (cherry picked from commit a458f26d336d3859dcc848491df5ef6c6d627c82)
* s3: get_pipe_name_from_iface -> get_pipe_name_from_syntaxVolker Lendecke2009-11-261-1/+2
| | | | (cherry picked from commit 1f26287bf36b164fe1f8e46d9c6d7c91bd4ff662)
* s3-kerberos: modify cli_krb5_get_ticket to take a new impersonate_princ_s arg.Günther Deschner2009-11-261-2/+2
| | | | | | Guenther (cherry picked from commit 60bf0eb60788a5d4dc5de24997c5efda64f2bd73) (cherry picked from commit ae4175e8a13e88fe7495af745d384b48f4f02784)
* s3-net: better use memory credential cache in net_ads_kerberos_pac().Günther Deschner2009-11-261-1/+1
| | | | | | Guenther (cherry picked from commit 6ca8a40976f86f66713ba9a7b957f97a1c271016) (cherry picked from commit a1d21fcfc5f7efed93b79155efe8d2a666da773e)
* s3-net: allow to call "net ads kerberos pac <impersonation principal> -P".Günther Deschner2009-11-261-1/+7
| | | | | | Guenther (cherry picked from commit 58184b5fd4e95bc7ad2179237808126411509eea) (cherry picked from commit 05a8ecea99d2e056d20d31d8e15d016220a3d405)
* s3-net: acct_flags are uint32_t in net_sam_set_userflag().Günther Deschner2009-11-261-1/+1
| | | | | Guenther (cherry picked from commit 50b1a41bc19c6ca8a9364fe5a95e8bd6ba4f9894)
* s3:net: simplify padding to single printf callBjörn Jacke2009-11-261-9/+1
| | | | (cherry picked from commit 53c6c535cde05d4c102381d782f235f0339cf6f0)
* s3:net simplify padding to single printf callBjörn Jacke2009-11-261-8/+2
| | | | (cherry picked from commit 37ddb05a94342fbb84058c03685c87903e787c48)
* s3:net: fix output of net rpc trustdom listBjörn Jacke2009-11-261-3/+5
| | | | | | Move some messages from stderr to stdout. When some trusting DCs were unreachable we lacked \n's on stdout which screwed up whole the output. (cherry picked from commit 83344b34d16e431ca8030585b383db1414154981)
* s3: pdbedit: add option --kickoff-time/-K to set the user's kickoff timeMichael Adam2009-11-261-4/+28
| | | | | | | | Use "never" as argument to set this to unlimited. Michael (cherry picked from commit 8fdef14305ae1e32d61c80cb10859d41c5754023) (cherry picked from commit 058019838f10833c6023e63233edfbb38f9ee71f)
* s3-net: fix build warning (missing default in switch).Günther Deschner2009-11-261-0/+4
| | | | | | Guenther (cherry picked from commit 8b247f35389a899c805d018adb92f372e562a378) (cherry picked from commit c2281ae03020144da20e49cfd2cde09ee542cf34)