summaryrefslogtreecommitdiff
path: root/source3/utils
AgeCommit message (Collapse)AuthorFilesLines
2002-05-15merges from SAMBA_2_2Gerald Carter1-3/+3
(This used to be commit 91f569a691be893e1a02c659a8f0753970fadbae)
2002-05-15Added ability to lookup ldap server, kdc, dc, and master browser. PleaseJim McDonough1-2/+171
review especially the methods for finding kdc and ldap server when they're not specified. This is a first attempt... (This used to be commit 5edccb51b94a80bbb3ecd59602393887286c8074)
2002-05-13Add auto-detect of time server. Uses master browser.Jim McDonough1-2/+4
(This used to be commit c2a6b0b1269b2e2abcf675538869dfba3cab8894)
2002-05-11merge from SAMBA_2_2Gerald Carter1-0/+8
(This used to be commit b41cefb4c0670b06564ac79fa10aff8d60069f10)
2002-05-10Allow -c to specify the location of the config file, and fix up some handlingAndrew Bartlett1-13/+15
of non-existant passdb cases. (This used to be commit e56de32f5ce5cb301137497451b0ccd633f09f54)
2002-05-09Converged net group command.Jim McDonough1-3/+13
(This used to be commit 95cc3fa4d3e566f540090ed499e80d86eb55e895)
2002-05-09Add ads group add and delete, allowing converged net group command.Jim McDonough1-16/+106
Also update some of the help info. (This used to be commit fde62de7a1735b2ef2d9593b38ffa5c7ea2e0d67)
2002-05-09Start of net rpc group command. List only right now. Add and delete haveJim McDonough1-1/+153
not been implemented...is it worth the effort? (This used to be commit 45ac4f4c29d0d8d1b0b1535b2ab500e38ac5b978)
2002-05-09Converged help on net group command.Jim McDonough2-12/+18
(This used to be commit 9de5e0dc73f57e8c8b878da803452b86e6ce8fca)
2002-05-09pidfile merge from SAMBA_2_2 (including --with-fhs) and a few other minor ↵Gerald Carter1-0/+6
things; compiles and shouldnt break, but needs testing (This used to be commit 19b9b50d9039afe614284aaf379f9f1078e2e307)
2002-04-26fix compile errorHerb Lewis1-1/+6
(This used to be commit c64a57a6106bfd766679ac89837881ed9592409b)
2002-04-18fixed the fallback to a BDC for ADS connectionsAndrew Tridgell1-5/+4
(This used to be commit 3e58a1ee83ea0b4347ce24e566445cc6cb67bb3a)
2002-04-16we did not initialise global_myname and global_myworkgroup which lead toJean-François Micouleau1-1/+14
duplicate entries in secrets.tdb and false SID generated. took me *hours* to understand. J.F. (This used to be commit bfc3a25b776a5a66e1bd0e2c60c101cea87ef4d5)
2002-04-15Another patch from jelmer:Andrew Bartlett1-31/+37
Doco for pdbedit and (ugly, but the best we could come up with) fix for compiling pdbedit on some non-gcc compilers. Andrew Bartlett (This used to be commit 80adf1dbb56cf8bdbfbcc2c8c7b670c0a23c97f8)
2002-04-14Merge from 2_2.Volker Lendecke1-0/+9
Volker (This used to be commit 8973a01f5efa547ed356e27fe1660da732b24cdd)
2002-04-14The cli_lsa_lookup_{names,sids} functions were returning uselessTim Potter1-7/+5
information when one or more of the names/sids being queried were not resolvable. We now return a list the same length as the parameters passed instead of an array of just the resolvable names/sids. (This used to be commit 245468dbabb7c849ce423cc3cb586fa913d0adfe)
2002-04-14Partly based on the work by mimir (Rafal SzczesniakAndrew Bartlett1-18/+22
<mimir@diament.ists.pwr.wroc.pl>) this patch allows samba to correctly enumerate its trusted domains - by exaimining the keys in the secrets.tdb file. This patch has been tested with both NT4 and rpcclient/wbinfo, and adds some extra functionality to talloc and rpc_parse to allow it to deal with already unicode strings. Finally, this cleans up some const warnings that were in net_rpc.c by pushing another dash of const into the rpc client code. Andrew Bartlett (This used to be commit 0bdd94cb992b40942aaf2e5e0efd2868b4686296)
2002-04-14Fixed debugs.Tim Potter1-2/+2
(This used to be commit 6d9336f3b9b205e5916424ee844658b445439fdb)
2002-04-13More updates from ctrlsoft. (Jelmer Vernooij <jelmer@nl.linux.org>)Andrew Bartlett1-8/+32
Andrew Bartlett (This used to be commit 012b3326c40ca0f8f4c7673310d73f695cc4f79b)
2002-04-13This is the 'multiple pdb backends' patch from ctrlsoft, aka Jelmer VernooijAndrew Bartlett1-318/+110
<jelmer@nl.linux.org>. This patch also includes major rework of pdbedit to use popt, and the addition of -i paramter (allowing the user to specify which PDBs is being operated on) and -e to export a pdb - useful for backup and testing etc. Use of -i and -e gets us pdb2pdb functionality for transition between backends, much like the sam2sam in TNG. Andrew Bartlett (This used to be commit c10def37f506d3f2bab442418ac08fdb62659b02)
2002-04-10Rename of ads_do_search_all2() to ads_do_search_all() and removal ofJim McDonough1-23/+11
server sort controls. Also put option externs in the net.h include. (This used to be commit b69f11170c2b27016c44a98bc603d1c94ad7d4c2)
2002-04-10Add a few option externs for net_ads.cJim McDonough1-0/+4
(This used to be commit 4e3265c3c94583ac7ee48017d195ad98ecdfbc47)
2002-04-10fixed a return value for a help functionAndrew Tridgell1-0/+1
(This used to be commit da794d3bbd919e4a909f219d98b1411c1c2d60fd)
2002-04-07Spelling.Tim Potter1-1/+1
(This used to be commit 423985ed569ac9692f3cb5872a15c74f983121b6)
2002-04-05Use the new ads_do_search_all2 function. It provides sorted results. We nowJim McDonough1-30/+18
also filter out users that end in '$', which gives us the same results as the net rpc user and net rap user. (This used to be commit e3a813831276ec2aafa0caa4f4fed0785dcdb749)
2002-04-05Lots more net consistency work:Jim McDonough5-117/+470
- Added net_help.c for unified help when possible - Added net rpc user listing, delete, info commands - Unified net user command to autodetect ads/rpc/rap (try in that order) - Added generic routine for detecting rpc (protocol > PROTOCOL_NT1) - I'm sure I forgot something. (This used to be commit 9daa5788c822cf1ad20dc703e7f03b9ee82987bf)
2002-04-04Multiple changes:Jim McDonough1-11/+16
- Get rid of improper "Invalid option: d (100)" message when setting debug from commandline. - Eliminate got_pass global and only use opt_password. This enables re-use of password that may have been enetered in failed ads connect. - Auto-detect method for net user command - use new net_ads_check rather than lp_security==ADS test on net join - Get rid of annoying debug level 0's (This used to be commit 1280968000595c28ed62d9e74acecfdc84e33710)
2002-04-04Cleanups to make auto-detection of method on net user smoother.Jim McDonough1-5/+10
(This used to be commit 84ab1042a65e3c41a76f4726914140d505ef4625)
2002-04-04More updates for auto-detecting server connection method. Added net_ads_check()Jim McDonough1-5/+38
to make a connection (which stores the password in a global so it can be used by rpc or rap function if ads fails) and close it to verify if ads method should be used. (This used to be commit 093297a27db9834cf8aea34302246af8997d9c66)
2002-04-04Add non-ads version of net_ads_help for build on non-ads machines.Jim McDonough1-0/+6
(This used to be commit dd7c20e5331116fd8cf9656a0f2406957b812bbb)
2002-04-04Correct error string function call to ads_errstr()Jim McDonough1-3/+3
(This used to be commit d7317ca8da4b04804f4d01752cef56ec5a9c3418)
2002-04-04Add ability to get specific net ads subcommand help. Not all have beenJim McDonough1-1/+1
implemented yet... (This used to be commit 24c6bf4e8b6d519340d5f9f3353ffc6b5f7520b3)
2002-04-04Add net ads user subcommands: add delete info. Also make user listing formatJim McDonough1-12/+169
consistent with rap version. (This used to be commit f6eb7c0c7ec83a3674d56f0e222b900887327319)
2002-04-03reorder useage message a little. -L is not a root-only or local mode option.Herb Lewis1-7/+8
(This used to be commit 020d6fa2f780099d662de1a456838ec0ac4d3ca7)
2002-04-02readd -c config file change from 2.2 - works with -L mode now as well.Herb Lewis1-180/+178
(This used to be commit af4c3734b5d617352597b1b964745f5b0d334b2d)
2002-04-01reverted Herbs smbpasswd commit as it completely broke setting aAndrew Tridgell1-178/+181
password (This used to be commit a5807d5784dc903f1ea38a9825240a505688b7be)
2002-03-30merge from 2.2 - allow -c option to specify smb.conf fileHerb Lewis1-181/+178
(This used to be commit fc15b56d29b4474032f4d9136313afee60e70cbf)
2002-03-29Re-implemented net ads user and net ads group to use the newJim McDonough2-22/+54
ads_process_results function. Also made sure net rap user and net ads user display the same thing, to make auto-transport-detection smoother. (This used to be commit 4cf42c07ec5deb14921fabfbd52a8a3345a730c9)
2002-03-29added a shutdown command to smbcontrol.Jean-François Micouleau1-0/+6
have to add the server side now. J.F. (This used to be commit b83f87d6811dbad2c254cd5add4bbedb3196c629)
2002-03-27merge from 2.2 - don't check local passdb if -r option usedHerb Lewis1-1/+3
(This used to be commit 15df51e8def01009f2ec1e2d08c3129ac39dabdf)
2002-03-23Join as a server trust account if the server role is either PDC or BDC.Andrew Bartlett1-1/+1
(This used to be commit 0784ab67addb3422a2d17363b4c3328d2e4b1008)
2002-03-23Fix the mp3 rename bug - also tidy up our open code and remove the specialJeremy Allison1-2/+3
cases for rename and unlink. Had to add desired_access into the share mode record. Jeremy. (This used to be commit 3b1b8ac43535fb0839c5474fa55bf7150f6cde31)
2002-03-21There is no reason we can't join a domain with secuirty=user. In fact weAndrew Bartlett1-5/+0
need to when we are a BDC or a PDC doing a self-join. Andrew Bartlett (This used to be commit 996cd3a0979a92b087003982bc61796a8090a787)
2002-03-21make net ads info work with -SAndrew Tridgell1-4/+5
(This used to be commit 57645fd85b7789d7807a5ffb5b2572c6d5f9e3de)
2002-03-19make "net ads user" and "net ads group" also use the new paged interfaceAndrew Tridgell1-30/+16
(This used to be commit 98769f08e723c616a98a2f0c427e9b0e22b28be9)
2002-03-19second step to gain free uid<->rid mappingSimo Sorce1-0/+2
we still need to free gid<->rid mapping and few other stuff (This used to be commit aa4b6f8181f34196a28951264dd8b631a5deef7f)
2002-03-18more verbose checking in talloc and util_pwSimo Sorce1-9/+10
fixed tdbsam memory corruption (and segfault) reducing calls to pdb_uid_to_user_rid and countrary to 0 to move to a non alghoritmic rid allocation with some passdb modules. (This used to be commit 9836af7cd623357feaec07bc49cfb78f0aa01fc3)
2002-03-17Renamed get_nt_error_msg() to nt_errstr().Tim Potter3-13/+13
(This used to be commit 1f007d3ed41c1b71a89fa6be7d173e67e927c302)
2002-03-16Fix build for non-ads caseJim McDonough1-0/+5
(This used to be commit 7ba235c0fb4755092605743d575357602fd1ce05)
2002-03-16Don't use // even temporarily, lest ye forget it and check it in...Jim McDonough1-3/+3
(This used to be commit 936df31df5bad9d457d3775d11b4e96a58093282)