summaryrefslogtreecommitdiffstats
path: root/source/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* Enable all net rpc share subcommands and autoselect transport.Jim McDonough2002-05-313-6/+58
|
* Enable net rpc share and net rpc file commands (list subcommands only), andJim McDonough2002-05-315-53/+271
| | | | autoselect for this subcommand when appropriate.
* Some of the updates from ctrlsoft's 'Various' patch:Andrew Bartlett2002-05-243-21/+25
| | | | | | | | | | | - convert net to popt - convert status to popt - adapt examples/pdb/ to multiple passdb system - add dynamic debug class example to examples/pdb/ and some reformatting to better match the samba coding style. Andrew Bartlett
* Remove the password length paramater from cli_full_connection - it reallyAndrew Bartlett2002-05-242-3/+3
| | | | | | | | didn't make any sense, and its was always just strlen(password) anyway. This fixes it to be strlen(password)+1 Andrew Bartlett
* Allow initial password set on net ads user add. I need to do this onJim McDonough2002-05-231-3/+30
| | | | | rpc and rap too. Anyone know what key I'm supposed to use to encrypt it for the rap one?
* Given Jeremy's positive response, and a lack of one from tpot, I'll commitAndrew Bartlett2002-05-231-76/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this: More code cleanup - this lot a bit more dodgy than the last: The aim is to trim pwd_cache down to size. Its overly complex, and a pain to deal with. With a header comment like this: 'obfusticaion is planned' I think it deserved to die (at least partly). This was being done to allow 'cli_establish_connection' to die - its functionality has been replaced by cli_full_connection(), which does not duplicate code everywhere for creating names etc. This also removes the little 'init' fucntions for the various pipes, becouse they were only used in one place, and even then it was dodgy. (I've reworked smbcacls not to use anonymous connections any more, as this will (should) fail with a 'restrict anonymous' PDC). This allowed me to remove cli_pipe_util.c, which was calling cli_establish_connection. tpot: I'm not sure what direction you were going with the client stuff, and you may well have been wanting the init functions. If thats the case, give me a yell and I'll reimplement them against cli_full_connection. Andrew Bartlett
* Add a bit more const, and kill of (finally!) sys_getpwnam and sys_getpwuid.Andrew Bartlett2002-05-222-4/+6
| | | | | | | | | | | | | | These might be reimplmented as simple pass-through functions, but all users really should be doing 'getpwnam_alloc' or 'getpwuid_alloc' to ensure that there are not shared static buffers. I don't beleive we actually need a getpw*() cache inside samba - if we do then I think we should look at our code design first. (some of these changes are for platforms I don't have access to, but they look sane) Andrew Bartlett
* Keep the compiler happyAndrew Bartlett2002-05-191-1/+0
|
* so here it is the code to introduce seriously debugggging classes.Simo Sorce2002-05-182-16/+33
| | | | | | | | | | | | | | | | | | this is a first step only passdb stuff has beein "classized". - so what can you do? set debug level to: 1 poasdb:10 that will make all the code run at debug level 1 except the code in passdb/* files that will run at level 10 TODO: fix the man page - also smbcontrol has this nice feature so smbcontrol smbd debug 3 passdb:5 will set every smbd to have a default log level of 3 while passdb stuff will be at level 5 and so no.. minor cosmetic fix to pdbedit is there too
* Make smbpasswd at least slightly sane. This kills off some of theAndrew Bartlett2002-05-181-43/+43
| | | | | | | | | | | | | silly global variables, and makes it come closer to a clean compile. I'm still not convinced what was wrong with the previous code, at least it didn't cause a gush of warnings... In any case, we now don't need to spegetti code gotos etc. This should really be redone with popt. Andrew Bartlett
* A few things in this commit:Andrew Bartlett2002-05-181-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cleanup some of the code in net_rpc_join re const warnings and fstrings. Passdb: Make the %u and %U substituions in passdb work. This is done by declaring these paramters to be 'const' and doing the substitution manually. I'm told this is us going full circle, but I can't really see a better way. Finally these things actually seem to work properly... Make the lanman code use the pdb's recorded values for homedir etc rather than the values from lp_*() Add code to set the plaintext password in the passdb, where it can decide how to store/set it. For use with a future 'ldap password change' option, or somthing like that... Add pdb_unix, so as to remove the 'not in passdb' special cases from the local_lookup_*() code. Quite small, as it uses the new 'struct passwd -> SAM_ACCOUNT' code that is now in just one place. (also used by pdb_smbpasswd) Other: Fix up the adding of [homes] at session setup time to actually pass the right string, that is the unix homedir, not the UNC path. Fix up [homes] so that for winbind users is picks the correct name. (bad interactions with the default domain code previously) Change the rpc_server/srv_lsa_nt.c code to match NT when for the SATUS_NONE_MAPPED reply: This was only being triggered on no queries, now it is on the 'no mappings' (ie all mappings failed). Checked against Win2k. Policy Question: Should SID -> unix_user.234/unix_group.364 be considered a mapping or not? Currently it isn't. Andrew Bartlett
* Make --with-ldapsam 'go away'. This is now a standard, stable, featureAndrew Bartlett2002-05-171-13/+0
| | | | | and there is no real reason for it to depend on more than the abilty to compile the code.
* Changes to allow head to translate NMB flags ...Richard Sharpe2002-05-171-4/+30
|
* merges from SAMBA_2_2Gerald Carter2002-05-151-3/+3
|
* Added ability to lookup ldap server, kdc, dc, and master browser. PleaseJim McDonough2002-05-151-2/+171
| | | | | review especially the methods for finding kdc and ldap server when they're not specified. This is a first attempt...
* Add auto-detect of time server. Uses master browser.Jim McDonough2002-05-131-2/+4
|
* merge from SAMBA_2_2Gerald Carter2002-05-111-0/+8
|
* Allow -c to specify the location of the config file, and fix up some handlingAndrew Bartlett2002-05-101-13/+15
| | | | of non-existant passdb cases.
* Converged net group command.Jim McDonough2002-05-091-3/+13
|
* Add ads group add and delete, allowing converged net group command.Jim McDonough2002-05-091-16/+106
| | | | Also update some of the help info.
* Start of net rpc group command. List only right now. Add and delete haveJim McDonough2002-05-091-1/+153
| | | | not been implemented...is it worth the effort?
* Converged help on net group command.Jim McDonough2002-05-092-12/+18
|
* pidfile merge from SAMBA_2_2 (including --with-fhs) and a few other minor ↵Gerald Carter2002-05-091-0/+6
| | | | things; compiles and shouldnt break, but needs testing
* fix compile errorHerb Lewis2002-04-261-1/+6
|
* fixed the fallback to a BDC for ADS connectionsAndrew Tridgell2002-04-181-5/+4
|
* we did not initialise global_myname and global_myworkgroup which lead toJean-François Micouleau2002-04-161-1/+14
| | | | | | | | duplicate entries in secrets.tdb and false SID generated. took me *hours* to understand. J.F.
* Another patch from jelmer:Andrew Bartlett2002-04-151-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
* Merge from 2_2.Volker Lendecke2002-04-141-0/+9
| | | | Volker
* The cli_lsa_lookup_{names,sids} functions were returning uselessTim Potter2002-04-141-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.
* Partly based on the work by mimir (Rafal SzczesniakAndrew Bartlett2002-04-141-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
* Fixed debugs.Tim Potter2002-04-141-2/+2
|
* More updates from ctrlsoft. (Jelmer Vernooij <jelmer@nl.linux.org>)Andrew Bartlett2002-04-131-8/+32
| | | | Andrew Bartlett
* This is the 'multiple pdb backends' patch from ctrlsoft, aka Jelmer VernooijAndrew Bartlett2002-04-131-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
* Rename of ads_do_search_all2() to ads_do_search_all() and removal ofJim McDonough2002-04-101-23/+11
| | | | server sort controls. Also put option externs in the net.h include.
* Add a few option externs for net_ads.cJim McDonough2002-04-101-0/+4
|
* fixed a return value for a help functionAndrew Tridgell2002-04-101-0/+1
|
* Spelling.Tim Potter2002-04-071-1/+1
|
* Use the new ads_do_search_all2 function. It provides sorted results. We nowJim McDonough2002-04-051-30/+18
| | | | | also filter out users that end in '$', which gives us the same results as the net rpc user and net rap user.
* Lots more net consistency work:Jim McDonough2002-04-055-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.
* Multiple changes:Jim McDonough2002-04-041-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
* Cleanups to make auto-detection of method on net user smoother.Jim McDonough2002-04-041-5/+10
|
* More updates for auto-detecting server connection method. Added net_ads_check()Jim McDonough2002-04-041-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.
* Add non-ads version of net_ads_help for build on non-ads machines.Jim McDonough2002-04-041-0/+6
|
* Correct error string function call to ads_errstr()Jim McDonough2002-04-041-3/+3
|
* Add ability to get specific net ads subcommand help. Not all have beenJim McDonough2002-04-041-1/+1
| | | | implemented yet...
* Add net ads user subcommands: add delete info. Also make user listing formatJim McDonough2002-04-041-12/+169
| | | | consistent with rap version.
* reorder useage message a little. -L is not a root-only or local mode option.Herb Lewis2002-04-031-7/+8
|
* readd -c config file change from 2.2 - works with -L mode now as well.Herb Lewis2002-04-021-180/+178
|
* reverted Herbs smbpasswd commit as it completely broke setting aAndrew Tridgell2002-04-011-178/+181
| | | | password
* merge from 2.2 - allow -c option to specify smb.conf fileHerb Lewis2002-03-301-181/+178
|