summaryrefslogtreecommitdiffstats
path: root/source/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* Added some cli_errstr() calls.Tim Potter2000-12-041-4/+4
|
* Removed lsa lookup warnings (I'll remember).Tim Potter2000-12-041-4/+19
| | | | Print an error if -M refers to a non-existent ACL.
* fixed setting ACLs on directoriesAndrew Tridgell2000-12-041-2/+2
|
* Mask value now displayed as READ/CHANGE/FULL for standard permissions, orTim Potter2000-12-041-27/+66
| | | | | | | | RWXDPO for special permissions. Append 0x to values printed as hex. Spruced up the help message.
* removed SACL support (as it doesn't work with w2k if you ask forAndrew Tridgell2000-12-041-52/+7
| | | | SACLs)
* signed/unsigned warning fixedAndrew Tridgell2000-12-041-2/+3
|
* fixed acls set bugAndrew Tridgell2000-12-041-13/+18
|
* fixed SACL bugAndrew Tridgell2000-12-041-8/+3
|
* - with -D only delete first matchAndrew Tridgell2000-12-041-12/+23
| | | | - fixed delete bug
* - added helpAndrew Tridgell2000-12-031-12/+118
| | | | - added add/modify/delete/set as separate operations
* cleaner parsing and default handlingAndrew Tridgell2000-12-031-17/+22
|
* - better parsingAndrew Tridgell2000-12-031-64/+123
| | | | - started to add non-numeric support
* getting/setting acls now works. The SIDs are still numeric, the nextAndrew Tridgell2000-12-031-9/+155
| | | | step is to support usernames etc
* added basic ability to dump remote file aclsAndrew Tridgell2000-12-031-6/+52
|
* a prootype program for querying/setting a security decsriptor on aAndrew Tridgell2000-12-031-0/+233
| | | | | | remote machine it is by no means complete, expect more commits soon
* support smbcontrol sending messages to itself (for testing purposes)Andrew Tridgell2000-11-171-0/+2
|
* Fix for a problem with the new messaging system. If a sender is using theJeremy Allison2000-11-162-12/+37
| | | | | | | | | | | | | | messaging system as a notification mechanism, and the speed of notification greatly exceeds the speed of message recovery, then you get a massively (>75Mb) growing tdb. If the message is a simple notification, then the message is static, and you only need one of them in transit to a target process at any one time. This patch adds a BOOL "allow_duplicates" to the message_send_XX primitives. If set to False, then before sending a message the sender checks the existing message queue for a target pid for a duplicate of this message, and doesn't add to it if one already exists. Also added code into msgtest.c to test this. Jeremy.
* Ok - fixed a bug in our levelII oplock code. We need to break a level II onJeremy Allison2000-11-161-4/+120
| | | | | | | | | a byte range lock (write lock only, but Win2k breaks on read lock also so I do the same) - if you think about why, this is obvious. Also fixed our client code to do level II oplocks, if requested, and fixed the code where we would assume the client wanted level II if it advertised itself as being level II capable - it may not want that. Jeremy.
* Large commit which restructures the local password storage API.Gerald Carter2000-11-131-12/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently the only backend which works is smbpasswd (tdb, LDAP, and NIS+) are broken, but they were somewhat broken before. :) The following functions implement the storage manipulation interface /*The following definitions come from passdb/pdb_smbpasswd.c */ BOOL pdb_setsampwent (BOOL update); void pdb_endsampwent (void); SAM_ACCOUNT* pdb_getsampwent (void); SAM_ACCOUNT* pdb_getsampwnam (char *username); SAM_ACCOUNT* pdb_getsampwuid (uid_t uid); SAM_ACCOUNT* pdb_getsampwrid (uint32 rid); BOOL pdb_add_sam_account (SAM_ACCOUNT *sampass); BOOL pdb_update_sam_account (SAM_ACCOUNT *sampass, BOOL override); BOOL pdb_delete_sam_account (char* username); There is also a host of pdb_set..() and pdb_get..() functions for manipulating SAM_ACCOUNT struct members. Note that the struct passdb_ops {} has gone away. Also notice that struct smb_passwd (formally in smb.h) has been moved to passdb/pdb_smbpasswd.c and is not accessed outisde of static internal functions in this file. All local password searches should make use of the the SAM_ACCOUNT struct and the previously mentioned functions. I'll write some documentation for this later. The next step is to fix the TDB passdb backend, then work on spliting the backends out into share libraries, and finally get the LDAP backend going. What works and may not: o domain logons from Win9x works o domain logons from WinNT 4 works o user and group enumeration as implemented by Tim works o file and print access works o changing password from Win9x & NT ummm...i'll fix this tonight :) If I broke anything else, just yell and I'll fix it. I think it should be fairly quite. -- jerry
* Merge of Herb's profiling code.Jeremy Allison2000-11-111-0/+49
| | | | Jeremy.
* Merge in Herb's changes from 2.2.Jeremy Allison2000-11-101-2/+14
| | | | Jeremy.
* lib/messages.c add debug print for receipt of PING andHerb Lewis2000-10-121-1/+2
| | | | | | REQ_DEBUGLEVEL messages utils/smbcontrol.c allow "q" to exit interactive mode. Exit on error from message_init.
* print source PID in PONG and debuglevel message. Allow request debuglevelHerb Lewis2000-10-121-10/+30
| | | | | | message to go to any dest. Put timeout for commands that expect a reply. sync with 2.2 branch
* Simple cleanup, but I also changed the value of the dlevel parameter passedChristopher R. Hertel2000-10-111-5/+5
| | | | | | | | | | to open_socket_in() from within the open_sockets() function. This has some effect on the way port numbers are assigned. Basically, if we use the -r switch we are saying 'use port 137'. If we can't do that, there should be an error message and a failure. If we don't use -r then we simply select the first available port. The way it was working, if we selected -r and port 137 was in use, wierd things would happen as open_socket_in() tried to find another port.
* changes to sync with 2.2. treeHerb Lewis2000-10-111-4/+6
| | | | | | | | | | | | | | | | | .cvsignore remove config.h - not in this directory include/profile.h profile changes lib/messages.c added message to return debug level libsmb/clierror.c cast to get rid of compiler warning libsmb/smbencrypt.c cast to get rid of compiler warning profile/profile.c add flush profile stats changes for profile struct rpc_parse/parse_samr.c fix for compiler warning rpc_server/srv_samr.c cast to get rid of compiler warning smbd/ipc.c profile stats message.c profile stats smbd/negprot.c profile stats smbd/nttrans.c profile stats smbd/trans2.c profile stats utils/smbcontrol.c new flush stats command
* don't use gets() !Andrew Tridgell2000-10-101-2/+2
|
* Added Herb's fixes to HEAD.Jeremy Allison2000-10-061-2/+59
| | | | Jeremy.
* utils/smbcontrol.c: Fixes from Herb for interactive use.Jeremy Allison2000-09-291-29/+82
| | | | | printing/nt_printing.c: No C++ comments please :-). Jeremy.
* use the 64 bit locking interface in locktestAndrew Tridgell2000-09-291-19/+19
|
* added NEGNOWAIT. sent to secure@microsoft.comLuke Leighton2000-09-261-2/+35
|
* first cut at smbcontrol program. It currently allows syntax like:Andrew Tridgell2000-09-132-14/+159
| | | | | | | smbcontrol nmbd debug 7 smbcontrol smbd debug 9 smbcontrol 3278 debug 1 smbcontrol nmbd force-election
* - fixed some memory leaks in the messages codeAndrew Tridgell2000-09-121-3/+21
| | | | - added a MSG_PING message for performance testing.
* - changed the msg_type to be an int instead of an enum so that it isAndrew Tridgell2000-09-121-1/+1
| | | | | | | easier to add new message types to messages.h without breaking old binaries - added a MSG_FORCE_ELECTION message to force nmbd to hold an election
* a simple test program I use to test the debug message systemAndrew Tridgell2000-09-111-0/+63
|
* Fix for safe_free freeing static strings. From Robert August Vincent, II.Jeremy Allison2000-08-211-5/+6
| | | | Jeremy.
* fixed help stringAndrew Tridgell2000-08-091-1/+2
|
* Fixed memory leaks in root and non-root password changing.Tim Potter2000-07-261-7/+20
|
* Removed the sanity check on the WINS SERVER parameter because it simplyChristopher R. Hertel2000-07-181-17/+0
| | | | | | checked to see that only one server was listed. As I am working on an enhancement that allows multiple servers to be listed...this was a bit contrary. ;)
* the smbw sample progAndrew Tridgell2000-07-061-0/+93
|
* slightly saner defaultsAndrew Tridgell2000-06-291-3/+3
|
* add -d debuglevel optionAndrew Tridgell2000-06-151-1/+5
|
* If I use nmblookup to search for node ZOOB#1B and there is no such nameChristopher R. Hertel2000-06-131-4/+6
| | | | | | | | | | | | | | | registered within the search space, nmblookup would report name_query failed to find name ZOOB I've changed it to report any non-zero type, so the above message becomes name_query failed to find name ZOOB#1B If the query is for ZOOB or even ZOOB#00 then the old style error message is given. Chris -)-----
* argv parsing fixesAndrew Tridgell2000-06-131-2/+2
|
* allow for lots of connections per serverAndrew Tridgell2000-06-131-75/+76
|
* added -L switch to tell smbtorture to use oplocksAndrew Tridgell2000-06-132-4/+7
|
* Linux kernel oplocks now seem to work, but need a _lot_ of testingAndrew Tridgell2000-06-111-2/+2
| | | | | I had to modify sys_select() to not loop on EINTR. I added a wrapper called sys_select_intr() which gives the old behaviour.
* don't ue nasty /proc/locks hack by defaultAndrew Tridgell2000-06-051-2/+2
|
* added locktest2Andrew Tridgell2000-06-051-0/+626
| | | | | | | | | this uses 16 open file descriptors on 2 servers, with each server accessed both via POSIX call and SMB calls. The idea is to test NFS/SMB locking interaction. Unfortunately the NT NFS locking implementation is so badly broken that we don't have anything to test against
* added -O (use oplocks) option to locktestAndrew Tridgell2000-06-051-1/+8
|
* moved secrets fns into secrets.cAndrew Tridgell2000-06-031-1/+1
|