summaryrefslogtreecommitdiffstats
path: root/source/utils
Commit message (Collapse)AuthorAgeFilesLines
* merge changes from 2.2 branch to prevent smb.conf from changing debug levelHerb Lewis2002-01-076-0/+23
| | | | of commands when specified on command line.
* sync getopt() args with 2.2Gerald Carter2002-01-071-1/+1
|
* print the timezone in the same format as 'date +%z' - much better for scriptingAndrew Tridgell2002-01-041-5/+8
|
* Cleanup format.Martin Pool2002-01-031-1/+1
|
* smbd now sends a reply to MSG_REQ_POOL_USAGE, though it's prettyMartin Pool2002-01-031-1/+2
| | | | boring so far.
* smbd should register to receive MSG_REQ_POOL_USAGE. Response shouldMartin Pool2002-01-031-2/+0
| | | | be information about memory usage, but this is not done yet.
* Actually enforce the passdb API.Andrew Bartlett2002-01-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Thou shalt not reference SAM_ACCOUNT members directly - always use pdb_get/pdb_set. This is achived by making the whole of SAM_ACCOUNT have a .private member, where the real members live. This caught a pile of examples, and these have beeen fixed. The pdb_get..() functions are 'const' (have been for some time) and this required a few small changes to constify other functions. I've also added some debugs to the pdb get and set, they can be removed if requested. I've rewritten the copy_id2x_to_sam_pass() functions to use the new passdb interface, but I need the flags info to do it properly. The pdb_free_sam() funciton now blanks out the LM and NT hashes, and as such I have removed many extra 'samr_clear_sam_passwd(smbpass)' calls as a result. Finally, any and all testing is always appriciated - but the basics seem to work. Andrew Bartlett
* reverted to 1.24 and manually merged in changes from 2.2Gerald Carter2001-12-311-194/+71
|
* Add 'net rpc shutdown' and 'net rpc abortshutdown'.Andrew Bartlett2001-12-313-7/+177
| | | | | | | | These two little features are very useful, but the passing of options about needs some serious work. The popt stuff in the shutdown code is #ifdef'ed out until the main popt loop can be convinced not to chew on the options :-( Andrew Bartlett
* fix compile errorGerald Carter2001-12-311-1/+3
|
* some merges from 2.2. Still need to merge in changes from pdb_tdb.cGerald Carter2001-12-311-74/+199
| | | | | but it will take more time as I don't want to loose any fixes that are only in HEAD.
* Add a pile of doxygen style comments to various parts of Samba. Many of theseAndrew Bartlett2001-12-302-50/+236
| | | | | | | | | probably will never actually be genearted, but I like the style in any case. Also fix a segfault in 'net rpc' when the login failed and a small memory leak on failure in the auth_info.c code. Andrew Bartlett
* moving SAM_ACCOUNT to include a bit field for initializedGerald Carter2001-12-271-9/+9
| | | | | | | | | | | | | | | | | | | | members (such as uid and gid). This way we will be able to keep ourselves from writing out default smb.conf settings when the admin doesn't want to, That part is not done yet. Tested compiles with ldap/tdb/smbpasswd. Tested connection with smbpasswd backend. oh...and smbpasswd doesn'y automatically expire accounts after 21 days from the last password change either now. Just ifdef'd out that code in build_sam_account(). Will merge updates into 2.2 as they are necessary. jerry
* smbcontrol in non-interactive mode was returning True for success --Martin Pool2001-12-211-1/+4
| | | | need to invert this to give the shell 0.
* Add option to pass NULL max_replies to wait_for_replies in case youMartin Pool2001-12-211-4/+7
| | | | don't know how many to expect.
* Add code to send MSG_REQ_POOL_USAGE. (smbd doesn't respond yet.)Martin Pool2001-12-211-15/+57
| | | | | | | Factor out common code to wait until replies are received or timeout expires. Show debug message when messages are sent.
* make sure we store the domain sid when joining a ADS domainAndrew Tridgell2001-12-201-0/+12
|
* added net lookup commandAndrew Tridgell2001-12-202-1/+65
|
* net now sends its debug to stderr so its output can be relied upon inAndrew Tridgell2001-12-201-1/+1
| | | | scripts
* net ads password and net ads chostpass commands from Remus KoosAndrew Tridgell2001-12-201-0/+91
|
* much better ADS error handling systemAndrew Tridgell2001-12-191-24/+20
|
* - added initial support for trusted domains in winbindd_adsAndrew Tridgell2001-12-191-3/+6
| | | | | | - gss error code patch from a.bokovoy@sam-solutions.net - better sid dumping in ads_dump - fixed help in wbinfo
* Fixup JF's weird SID return :-).Jeremy Allison2001-12-181-1/+1
| | | | Jeremy
* allow selection of the organisational unit when joining a realmAndrew Tridgell2001-12-171-6/+28
|
* Rafal (mimir) patch for trusts r.Jean-François Micouleau2001-12-141-1/+21
|
* Display a nice error message if the user%password specified for net rpcTim Potter2001-12-141-2/+8
| | | | join does not have administrator privileges.
* Display a nice error message for NT_STATUS_LOGON_FAILURE in connect_to_ipc()Tim Potter2001-12-141-0/+7
|
* More help/messages/formatting cleanup.Jim McDonough2001-12-141-37/+40
|
* Merge from 2.2 to allow net rpc join -U to complete even if the workstationTim Potter2001-12-141-2/+5
| | | | | | | | | account already exists. # net rpc join --user=Administrator%password It's kind of weird seeing the mix of NET.EXE style of options (net command subcommand /arg:value) with the GNU-style long options. I think it works.
* Restoration of at least some help function and format. First round of ↵Jim McDonough2001-12-141-259/+221
| | | | cleanup. Printq function cannot exactly mimic windows output using d_printf...oh well. Add some more command-specific options back into help.
* Set the debuglevel after the call to lp_load() so the change sticks.Tim Potter2001-12-141-2/+2
|
* don't use -u switch to /bin/date - too many systems don't honor itAndrew Tridgell2001-12-141-4/+4
|
* update the ldap support code. it compiles.Jean-François Micouleau2001-12-131-1/+41
| | | | | | | | Ignacio you can update your howto ;-) samsync: a small patch to try chaning challenges. J.F.
* added "net ads info" to fetch basic ADS info without any authAndrew Tridgell2001-12-131-0/+26
|
* improved error message from failed connectAndrew Tridgell2001-12-131-6/+3
|
* added "net time zone" command to show the timezone on a computerAndrew Tridgell2001-12-121-6/+30
|
* allow join of already joined domainAndrew Tridgell2001-12-111-60/+35
|
* prevent double freeAndrew Tridgell2001-12-111-2/+0
|
* better error handlingAndrew Tridgell2001-12-111-11/+17
|
* added a comment about /bin/dateAndrew Tridgell2001-12-111-1/+4
|
* added a net time command. Allow display or set of system time based onAndrew Tridgell2001-12-113-13/+166
| | | | | | | | | | a SMB server particularly useful for ADS is: net time set -S DOMAIN#1B this makes kerberos clock skew problems go away :)
* Removed unreferenced getopt() externals.Tim Potter2001-12-111-2/+0
|
* reinstated all the rap commands as top level commands until we get theAndrew Tridgell2001-12-102-81/+114
| | | | protocol switch mechanism in place
* added internal sasl/gssapi code. This means we are no longer dependent on ↵Andrew Tridgell2001-12-081-0/+16
| | | | cyrus-sasl which makes the code much less fragile. Also added code to auto-determine the server name or realm
* OK. Smbpasswd -j is DEAD.Andrew Bartlett2001-12-056-153/+112
| | | | | | | | | | | | | | | | | | | This moves the rest of the functionality into the 'net rpc join' code. Futhermore, this moves that entire area over to the libsmb codebase, rather than the crufty old rpc_client stuff. I have also fixed up the smbpasswd -a -m bug in the process. We also have a new 'net rpc changetrustpw' that can be called from a cron-job to regularly change the trust account password, for sites that run winbind but not smbd. With a little more work, we can kill rpc_client from smbd entirly! (It is mostly the domain auth stuff - which I can rework - and the spoolss stuff that sombody else will need to look over). Andrew Bartlett
* added a REALLY gross hack into kerberos_kinit_password so thatAndrew Tridgell2001-12-051-1/+1
| | | | | | winbindd can do a kinit this will be removed once we have code that gets a tgt and puts it in a place where cyrus-sasl can see it
* Add a new flag for anonymous connectionsAndrew Bartlett2001-12-051-0/+3
|
* Make it easier to construct anonymous connections with a new flag and helperAndrew Bartlett2001-12-051-2/+28
| | | | function.
* Split out the name resolution code into a seperate functionAndrew Bartlett2001-12-051-27/+38
|
* Follow herb's suggestion and don't strdup a string to itselfAndrew Bartlett2001-12-051-3/+6
|