summaryrefslogtreecommitdiff
path: root/source3/utils
AgeCommit message (Collapse)AuthorFilesLines
2003-03-16Changes to help the kerberos change password code work on systems thatAndrew Bartlett1-0/+9
have some of the labels 'duplicated' (ie, the defines double-up). Also, to an ads_connect() to try and find our KDC. (So we don't segfualt *every* time) Andrew Bartlett (This used to be commit 56dce7ddad118051c93c62507234efca3920bc9b)
2003-03-15Minor fixes.Andrew Bartlett1-1/+1
- signed/unsigned - quieten warning about assignment as truth value - whitespace Andrew Bartlett (This used to be commit a13ce0df4b4a776fa635a1fb804dd00d195f58d0)
2003-03-15Fix signed/unsigned issues - mostly 'i' counters.Andrew Bartlett1-4/+4
Fix an inconpatible poitner type that caused the IA64 not to build Andrew Bartlett (This used to be commit 37436b0aae108fceace3049d3868510e1ba592ac)
2003-03-15Fix off-by-one bug in safe_strcpy size paramater.Andrew Bartlett1-1/+1
(This used to be commit 9af30c9aae3623c4db1edca39a91973f0279acb4)
2003-03-15Truncate the machinename manually, so as not to generate level 0 debugs forAndrew Bartlett1-10/+12
an expected situation. Andrew Bartlett (This used to be commit a07fccb7ae169c0b5089e3f7d2c5d6465b2e4686)
2003-03-12Patch from Ken Cross <kcross@nssolutions.com> to take a username in the formAndrew Bartlett1-0/+11
of user@realm for kerberos logins. Andrew Bartlett (This used to be commit ce013dc13e9e77b5cb9b2d5a4b76d54f91614e6c)
2003-03-08Testparm needs the extra arg to set_local_machine_name() too.Andrew Bartlett1-1/+1
(This used to be commit 30ba31e6355b5dfb902e42d2b5edc71630db2923)
2003-03-06More safe_strcpy() off-by-one bug fixes. (mostly moves to pstrcpy()/fstrcpy())Andrew Bartlett2-3/+3
Andrew Bartlett (This used to be commit 42b5514404bc7e33306c11344c6c934a1f83d295)
2003-03-03Try the PASSWD environment variable if we don't have one from the command line.Andrew Bartlett1-0/+4
(This used to be commit 14d7d8b22993ca7f1c273a7baaccb09c8fa04ef9)
2003-02-28- added help on -P optionAndrew Tridgell1-0/+2
- added general options to 'net -h' help (This used to be commit ee8a7fdab7f5aa6f4a64f2eea90f0d44ae0f388a)
2003-02-28cleanup some compiler warningsJim McDonough1-3/+3
(This used to be commit 87cebe797f06fab4a5d0077fd78b2183ff7333a5)
2003-02-28Improve net ads lookup:Jim McDonough1-61/+142
- More info is printed - (grand)child domains handled properly Thanks to Anthony Liguori (aliguori@us.ibm.com) (This used to be commit 3dbcb4d93f7c192eb2ccea5941a3843b5de1190e)
2003-02-27- Rename 'modules = ' to 'preload modules = 'Jelmer Vernooij2-2/+7
- Add smb_probe_module() - Add init_modules() - Call these functions (This used to be commit f8f21653225792c0001d183c6efe8b7d89a0785d)
2003-02-25Fix compiler warning.Tim Potter1-1/+1
(This used to be commit 0308f24ad209a28799b36d041be2dc2be2b2dac8)
2003-02-25For some reason some attributes in ADS do not appear (and are not available)Andrew Bartlett1-1/+63
in general searches, but only if searching for the DN only. In my case, it was the tokenGroups attribute that caused me trouble, hence this patch. Andrew Bartlett (This used to be commit 8a0cc4c2beb5d6ad7e44bf47bf0f9ec4a3ffdb96)
2003-02-24Whenever we have a password, use the in-memory ccache. This fixes a bug whereAndrew Bartlett1-2/+3
we were overwriting the user's ccache with the machine password (the -P option). Andrew Bartlett (This used to be commit 231d2f84ef36b30be98baf3b56ebf4a5cd8dad11)
2003-02-22Add staticAndrew Bartlett1-7/+7
(This used to be commit d0365f20c242bcfc4f5d8286c6c5654e310a9d45)
2003-02-22With assuptions about unixsam gone, we can forget about looking upAndrew Bartlett1-4/+1
the user a second time now. Andrew Bartlett (This used to be commit a1e27a02f52315df0dd05ab8a94ae5a2bf398655)
2003-02-21Fixed another compiler warning.Tim Potter1-1/+1
(This used to be commit d15b7425d408f17505c4f3a91ec68bcfc4472c16)
2003-02-20Added Volkers "print server role" patch.Jeremy Allison1-0/+22
Jeremy. (This used to be commit e81d72ac221023ded9e0932be7dd303ad5280665)
2003-02-18Add -V option (to print out version) to utilities where possibleJelmer Vernooij3-0/+3
(pdbedit already has a -V option..) (This used to be commit 5de622968d95c1436dbd34edc8d0a9bbff68916b)
2003-02-16Add the 'session key' output of the NTLMSSP exchange to the cli struct, soAndrew Bartlett1-7/+1
it can be used for 'net rpc join'. Also fix a bug in our server-side NTLMSSP code - a client without any domain trust links to us may calculate the NTLMv2 response with "" as the domain. Andrew Bartlett (This used to be commit ddaa42423bc952e59b95362f5f5aa7cca10d1ad4)
2003-02-16Recover much of my changes to editreg.c. Add some const and start codingRichard Sharpe1-8/+203
the regedit file parser etc. (This used to be commit 5040b498675b91cd18bc7fe4456c94df0a8fa41d)
2003-02-15Antti Andreimann <Antti.Andreimann@mail.ee> has done some changes to enableAndrew Bartlett1-2/+14
users w/o full administrative access on computer accounts to join a computer into AD domain. The patch and detailed changelog is available at: http://www.itcollege.ee/~aandreim/samba This is a list of changes in general: 1. When creating machine account do not fail if SD cannot be changed. setting SD is not mandatory and join will work perfectly without it. 2. Implement KPASSWD CHANGEPW protocol for changing trust password so machine account does not need to have reset password right for itself. 3. Command line utilities no longer interfere with user's existing kerberos ticket cache. 4. Command line utilities can do kerberos authentication even if username is specified (-U). Initial TGT will be requested in this case. I've modified the patch to share the kinit code, rather than copying it, and updated it to current CVS. The other change included in the original patch (local realms) has been left out for now. Andrew Bartlett (This used to be commit ce52f1c2ed4d3ddafe8ae6258c90b90fa434fe43)
2003-02-07Revert Flag testing upon abartlet's request ;-)Volker Lendecke1-3/+5
Volker (This used to be commit e8f751fe84cbd20934116d5213f9bb1850aa9dfa)
2003-02-06Make account flags editable with pdbedit.Volker Lendecke1-4/+22
Volker (This used to be commit 597c50550955c5bdc0c646d5b751d377b40f3485)
2003-02-03Grrr. Kill all BSD-isms... Spotted by Paul Green <paulg@sw.stratus.com>.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 77737b498d0c1c3efb23891465623f44c03d1801)
2003-02-01Always escape ldap filter strings. Escaping code was from pam_ldap, but I'm toAndrew Bartlett1-1/+7
blame for the realloc() stuff. Plus a couple of minor updates to libads. Andrew Bartlett (This used to be commit 34b2e558a4b3cfd753339bb228a9799e27ed8170)
2003-01-30Add 3 second timeout when terminating server and sending print notifyJeremy Allison1-1/+1
messages. Stops build-up of large numbers of smbd's waiting to terminate on large print throughput. Jeremy. (This used to be commit 4ae130bfa82be60de6a6f357f65207fcb24f45fb)
2003-01-30The REQ_DEBUGLEVEL message returns a string not a list of integers.Tim Potter1-4/+1
(This used to be commit 08050a93d9c5b2276c4eaf933974607cf11a1876)
2003-01-29Make the vampire code use just pdb calls - allowing better operation on systemsAndrew Bartlett1-22/+15
that are not configured with an add user script, and have an _nua backend for storage. We really need to get the PDB backends out of the IDMAP game... Andrew Bartlett (This used to be commit dceb7820d71ce624de60ce8f729d5d3711b64152)
2003-01-29Use new interface for cli_samr_query_dispinfo().Tim Potter1-2/+9
(This used to be commit d3962da61a5717dda7e99996bbeb4735d4373041)
2003-01-21Properly display popt errors. Also fix debug to be -d for consistency with ↵Jim McDonough1-2/+3
other progs. (This used to be commit 97133f7168852dc185dbf4492afcaf4b68180f65)
2003-01-21Deleted arguments to help output - they didn't work.Tim Potter1-1/+1
(This used to be commit 8b167a45a6ae041cd35dbf2a25d7a300f86440a2)
2003-01-17the 'static' keyword here is useless as we are not declaring aAndrew Tridgell1-1/+1
variable or function (This used to be commit f2c9c64900c4da24f73b188deb0f57271e3bf3e7)
2003-01-16Fix an error where the SK Offset was truncated to 16 bits. Variables neededRichard Sharpe1-1/+1
to be unsigned int (DWORD) not unsigned int (WORD). (This used to be commit e1e9c29c4095405d7031cfd618e06dd841075aad)
2003-01-16Updates to the NTLMSSP code again - moving the base64 decode fuctionality outAndrew Bartlett1-29/+150
of the SWAT code, and adding a base64 encoder. The main purpose of this patch is to add NTLMSSP support to 'ntlm_auth', for use with Squid. Unfortunetly the squid side doesn't quite support what we need yet. Changes to winbind to get us the info we need, and a couple of consequential changes/cleanups in the rest of the code. Andrew Bartlett (This used to be commit fe50ca8f54ded2e119bde08831785fbe0db2ee99)
2003-01-15* removed unused variable from rpcclient codeGerald Carter4-8/+11
* added container option to net command (patch from SuSE) * Makefile patch for examples/VFS from SuSE (This used to be commit 4a6d8280ea27ca7a6998219aacc4b15b1227a659)
2003-01-14add help text for 'net ads lookup'Andrew Tridgell1-0/+2
(This used to be commit 2a642a1169a3c09988daa9623dcb4f21b0a2ad1f)
2003-01-13Patch from metze to to make testparm show values for 'workgroup', 'netbiosAndrew Bartlett1-1/+2
name' and 'netbios scope'. Probably has a similar effect on SWAT. Also adds '-V' to testparm. Andrew Bartlett (This used to be commit 71f4d8efd36351ddb2180103c160a6d737da62b1)
2003-01-11Fix a number of client-side fstring/pstring mixups.Andrew Bartlett2-4/+4
Andrew Bartlett (This used to be commit fe1cc779d5ea77e87dbc0e2edf7c34a354fee6e0)
2003-01-08Some fixes to editreg. Clientgen should not be touched, and an update to ↵Richard Sharpe1-3/+0
configure that Herb needs. (This used to be commit 490ff93bbfe38d92746693d5f9902f985de6bc12)
2003-01-07Fix memory leak. Thanks, Herb!Volker Lendecke1-0/+1
Volker (This used to be commit 8915d59a5939b78a177dcd3e075a122e68e8c64a)
2003-01-07this makes it compile, but I'm not sure if it is correct. Are we reallyHerb Lewis1-1/+1
testing a pointer value to be equal to 0x19 ??? (This used to be commit 15b2b91f4b77a62163c0f79592111d4809317b9f)
2003-01-07Create a machine account correctly if the unix account exists.Volker Lendecke1-4/+14
With this, my test for W2kSP3 join after pdbedit -a -m works fine. Volker (This used to be commit c9d0c5254c7d4ddb343f405652c609a0128e60f9)
2003-01-07'index' is the name of a libc function. Rename to 'ndx' to avoid compilerTim Potter1-4/+4
warnings. (This used to be commit 431ac28b5b7ea688ec342b5834c25eca059e7a16)
2003-01-02WITH_SENDFILE #ifdef merged from SAMBA_2_2Gerald Carter1-1/+1
(This used to be commit 5023aec5ada4a0d84878440ed67411b6a6b97ca2)
2003-01-02Add a dash of static.Andrew Bartlett1-3/+3
(This used to be commit 6d201c9616c5c30234c0d0d6cd9e2ca60bf736c5)
2003-01-02BIG patch...Andrew Bartlett15-86/+83
This patch makes Samba compile cleanly with -Wwrite-strings. - That is, all string literals are marked as 'const'. These strings are always read only, this just marks them as such for passing to other functions. What is most supprising is that I didn't need to change more than a few lines of code (all in 'net', which got a small cleanup of net.h and extern variables). The rest is just adding a lot of 'const'. As far as I can tell, I have not added any new warnings - apart from making all of tdbutil.c's function const (so they warn for adding that const string to struct). Andrew Bartlett (This used to be commit 92a777d0eaa4fb3a1c7835816f93c6bdd456816d)
2002-12-30fix also net rpc shutdownSimo Sorce1-10/+1
sorry (This used to be commit 1eff36ff2fd20ff1844800acefb31972ad865527)