summaryrefslogtreecommitdiffstats
path: root/source/utils
Commit message (Collapse)AuthorAgeFilesLines
* smb-agent improvements. added -D (daemon) option. smb agent isLuke Leighton1999-12-031-16/+72
| | | | | restricted to connections from the current user (socket is created with current user uid).
* cool! a unix socket smb redirector. code based on smbfilter andLuke Leighton1999-12-031-0/+347
| | | | | | | | ideas from ssh-agent. the intent is to be able to share smb sessions using cli_net_use_add() across multiple processes, where one process knows the target server name, user name and domain, but not the smb password.
* fixing joining to domain plus something weird going down with nt logins...Luke Leighton1999-12-011-33/+0
|
* sys_select added one more argument (read, write selectors).Luke Leighton1999-12-011-2/+2
|
* first stages of removing struct cli_state* and uint16 fnum from allLuke Leighton1999-11-241-11/+3
| | | | | | | | | msrpc client code. the intent is to hide / abstract / associate connection info behind policy handles. this makes the msrpc functions look more and more like their nt equivalents. who-hou!
* attempting to establish inter-domain trust relationships. modifiedLuke Leighton1999-11-201-28/+115
| | | | smbpasswd so it can be used to set up inter-domain trust account.
* event log update, netsessenum, netconnenum update.Luke Leighton1999-08-181-2/+2
|
* patch from Michael Glauche to call get_status_connections() instead ofLuke Leighton1999-08-181-52/+52
| | | | reading STATUS..LCK direct.
* BDC support.Matthew Chapman1999-07-221-32/+38
| | | | Added -S (Synchronise) option to smbpasswd, which calls synchronise_passdb.
* BDC support.Luke Leighton1999-07-211-5/+21
|
* improving authentication code (tidyup).Luke Leighton1999-06-291-0/+2
|
* safe string error reporting functions (found a potential buffer overflowLuke Leighton1999-06-241-1/+1
| | | | of a pstrcpy into an fstring).
* variation of random SMBtrans2. random delays in between reconnectionsLuke Leighton1999-05-071-10/+12
| | | | | increased. size of large random buffer decreased. number of reconnection attempts increased.
* had to move day display names into lib/util, to get rpctorture to compile.Luke Leighton1999-05-071-3/+5
|
* open_socket_in() takes a different number of parameters in the headAndrew Tridgell1999-04-171-1/+1
| | | | branch. We need that merge soon!
* damn, new files need to be added to the head branch first, I've toldAndrew Tridgell1999-04-171-0/+233
| | | | other people this before then forgot myself :)
* Modification to compile under egcs 2.91.63.Tim Potter1999-04-111-3/+6
|
* Mainly BDC-related changes.Matthew Chapman1999-04-081-10/+26
| | | | | | | | * Added SEC_CHAN_BDC * Added -b switch to smbpasswd (for a BDC (server) trust account). * Propagate sec_chan into the various functions which change trust account passwords, so they can be used for domain control and inter-domain trusts.
* Ken McDonell from SGI was interested in adding some profilingAndrew Tridgell1999-04-011-3/+31
| | | | | | | | | | | | capabilities to Samba so that Samba could talk to the SGI PCP (Performance Co-Pilot) apps. This change adds a profiling shared memory area and uses it to count two fairly trivial things, the number of uid switches and the number of SMB packets processes. To add more just edit include/profile.h and then increment it at the right place. I've also added a -P switch to smbstatus to dump the profile area.
* Beau Kuiper: provided patch so that passwords could only be changed byLuke Leighton1999-03-191-3/+29
| | | | | | root if the ACB_PWLOCK bit is set (on a per-user basis). he also added an extra smbpasswd option so that this bit can be modified from command-line.
* mods to allow inter-domain trust accounts to be added to SAM databaseLuke Leighton1999-03-091-77/+177
| | | | using smbpasswd command.
* refinement of random ipc$ SMBtrans torture test. send requests, andLuke Leighton1999-02-111-4/+58
| | | | don't wait for responses :-)
* use jeremy's versions of the UNICODE routines.Luke Leighton1999-02-101-2/+2
|
* Fuss fuss fuss.Christopher R. Hertel1999-01-271-1/+5
| | | | | | Added missing default: statements to two switch blocks. Chris -)-----
* compilation errors due to addition of smb file handle parameter.Luke Leighton1999-01-271-10/+9
|
* Added load_interfaces in smbpasswd to allow name resolution by broadcast andMatthew Chapman1999-01-181-0/+2
| | | | multiple interfaces. (Jeremy already committed this in SAMBA_2_0).
* While writing the man page, I realized that it was a bit silly not to acceptChristopher R. Hertel1998-12-291-32/+117
| | | | | | | command-line parameters. I've added that capability. Of course, the man page is now wrong. Sigh. Chris -)-----
* Sorry that this is going so slowly.Christopher R. Hertel1998-12-281-2/+2
| | | | | | | | | I've added debug2html to Makefile.in so that it compiles as part of the normal build. Fixed a typo in debug2html.c as well. One problem: I found it necessary to link with both $(PARAM_OBJ) and $(LIB_OBJ). The result is an executable that is much larger than it really needs to be.
* A while back, Andrew and I talked about making the debug parsing code aChristopher R. Hertel1998-12-161-27/+2
| | | | | | | | | | | | | | better "fit" with other Samba code. This is a small first step toward doing what (I think) we agreed to do. I've moved the key function from ubiqx/debugparse.c into lib/debug.c. I have also moved the enum from ubiqx/debugparse.h into the debug section in smb.h. The next thing to do is to get debug2html added into the Makefile.in so that it is always produced when compiling the suite. Chris -)-----
* removed nt_pipe_fnum from struct cli_state. need to be able to callLuke Leighton1998-12-071-9/+14
| | | | | | LsaLookupSids etc from within SamrQueryAliasMembers, for example. fnum is now a parameter to client functions. thanks to mike black for starting the ball rolling.
* rpc_samr.h parse_samr.c srv_samr.c :Luke Leighton1998-12-011-1/+1
| | | | | | | | | | samr_query_aliasmembers (cool!) util_pwdb.c sids.c nmbd.c server.c smbpasswd.c swat.c : pwdb_initialise(BOOL is_server) now creates / reads DOMAIN_NAME.SID if is_server is True, and does LsaQueryInfoPolicy(levels 3 and 5) to obtain member and pdc sids.
* pwdb_initialise() in the wrong place: must load smb.conf first. thanks phil.Luke Leighton1998-11-301-6/+6
|
* weekend work. user / group database API.Luke Leighton1998-11-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - split sam_passwd and smb_passwd into separate higher-order function tables - renamed struct smb_passwd's "smb_user" to "unix_user". added "nt_user" plus user_rid, and added a "wrap" function in both sam_passwd and smb_passwd password databases to fill in the blank entries that are not obtained from whatever password database API instance is being used. NOTE: whenever a struct smb_passwd or struct sam_passwd is used, it MUST be initialised with pwdb_sam_init() or pwd_smb_init(), see chgpasswd.c for the only example outside of the password database APIs i could find. - added query_useraliases code to rpcclient. - dealt with some nasty interdependencies involving non-smbd programs and the password database API. this is still not satisfactorily resolved completelely, but it's the best i can do for now. - #ifdef'd out some password database options so that people don't mistakenly set them unless they recompile to _use_ those options. lots of debugging done, it's still not finished. the unix/NT uid/gid and user-rid/group-rid issues are better, but not perfect. the "BUILTIN" domain is still missing: users cannot be added to "BUILTIN" groups yet, as we only have an "alias" db API and a "group" db API but not "builtin-alias" db API...
* fixing domain join and domain login problemsLuke Leighton1998-11-251-4/+2
|
* update testparm with -s option so it doesn't require a carriage returnHerb Lewis1998-11-191-10/+34
| | | | | also allow specifying [host hostip] without [configfile] updated man page
* Added OSF1 changes to HEAD (-lsecurity etc.)Jeremy Allison1998-11-181-12/+6
| | | | | | groupdb/groupdb.c: Fixed compile error caught by IRIX compiler. utils/smbpasswd.c: Fixed SunOS optind, optarg problem. Jeremy.
* Added the same open()/fopen()/creat()/mmap() -> sys_XXX calls.Jeremy Allison1998-11-174-7/+7
| | | | | | | | | | Tidied up some of the mess (no other word for it). Still doesn't compile cleanly. There are calls with incorrect parameters that don't seem to be doing the right thing. This code still needs surgery :-(. Jeremy.
* - group database API. oops and oh dear, the threat has been carried out:Luke Leighton1998-11-173-205/+721
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the pre-alpha "domain group" etc parameters have disappeared. - interactive debug detection - re-added mem_man (andrew's memory management, detects memory corruption) - american spellings of "initialise" replaced with english spelling of "initialise". - started on "lookup_name()" and "lookup_sid()" functions. proper ones. - moved lots of functions around. created some modules of commonly used code. e.g the password file locking code, which is used in groupfile.c and aliasfile.c and smbpass.c - moved RID_TYPE_MASK up another bit. this is really unfortunate, but there is no other "fast" way to identify users from groups from aliases. i do not believe that this code saves us anything (the multipliers) and puts us at a disadvantage (reduces the useable rid space). the designers of NT aren't silly: if they can get away with a user- interface-speed LsaLookupNames / LsaLookupSids, then so can we. i spoke with isaac at the cifs conference, the only time for example that they do a security context check is on file create. certainly not on individual file reads / writes, which would drastically hit their performance and ours, too. - renamed myworkgroup to global_sam_name, amongst other things, when used in the rpc code. there is also a global_member_name, as we are always responsible for a SAM database, the scope of which is limited by the role of the machine (e.g if a member of a workgroup, your SAM is for _local_ logins only, and its name is the name of your server. you even still have a SID. see LsaQueryInfoPolicy, levels 3 and 5). - updated functionality of groupname.c to be able to cope with names like DOMAIN\group and SERVER\alias. used this code to be able to do aliases as well as groups. this code may actually be better off being used in username mapping, too. - created a connect to serverlist function in clientgen.c and used it in password.c - initialisation in server.c depends on the role of the server. well, it does now. - rpctorture. smbtorture. EXERCISE EXTREME CAUTION.
* Added fixes for machine accounts.Jeremy Allison1998-11-161-10/+32
| | | | Jeremy.
* fixes for OSF1 compilationAndrew Tridgell1998-11-132-5/+8
|
* sids in rpctorture changed from fstrings to DOM_SIDLuke Leighton1998-11-131-2/+2
|
* Removed code that used printf/fprintf in password changin libraries.Herb Lewis1998-11-121-3/+19
| | | | Now passes strings instead.
* Fixed smbpasswd so that enabling a user who already has a passwordJeremy Allison1998-11-121-2/+20
| | | | | | doesn't require a new password entry. Sets the 'enable/disable' code back to being symmetrical. Jeremy.
* extracted the password change code from smbpasswd and used it in swatAndrew Tridgell1998-11-121-218/+0
| | | | instead of opening pipes and other horrible stuff.
* char -> uchar fixAndrew Tridgell1998-11-121-1/+1
|
* largely rewrote smbpasswd so that the code is understandable. ThisAndrew Tridgell1998-11-121-637/+679
| | | | | | | | | | | | | should allow us to call a function in swat rather than piping to smbpasswd. while doing this I also fixed quite a few "const char *" versus "char *" issues that cropped up while using const to track down bugs in the code. This led to changes in several generic functions. The smbpasswd changes should be correct but they have not been extensively tested. At least if I have introduced bugs then we should be able to fix them more easily than before.
* include/local.h:Jeremy Allison1998-11-101-0/+4
| | | | | | | | | | | | | include/smb.h: param/loadparm.c: Made GUEST_SESSSETUP run time selectable. Horror of horrors :-). printing/printing.c: Added J.F.'s latest fix. rpc_parse/parse_misc.c: parse_reg.c: rpcclient/cmd_reg.c: rpcclient/display.c: SGI compiler signed/unsigned issues. smbd/reply.c: Made GUEST_SESSSETUP run time selectable. Horror of horrors :-). utils/testparm.c: Added extra test. Jeremy.
* converted smbclient to use clientgen.c rather than clientutil.cAndrew Tridgell1998-11-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | I did this when I saw yet another bug report complaining about smbclient intermittently missing files. Rather than applying more patches to smbclient it was better to move to the more robust clientgen.c code. The conversion wasn't perfect, I probably lost some features of smbclient while doing it, but at least smbclient should be consistent now. It if fails it should _always_ fail rather than giving people the false impression of a reliable utility. the tar stuff seems to work, but hasn't had much testing as I never use it myself. I'm sure someone will find bugs in my conversion of smbtar.c. It was quite tricky as it did a lot of its own SMB calls. It now uses clientgen.c exclusively. smbclient is still quite messy, but at least it doesn't build its own SMB packets. I haven't touched smbmount as I never use it. Mike, do you want to convert smbmount to use clientgen.c?
* codepages/codepage_def.936: Updated comment.Jeremy Allison1998-11-071-3/+3
| | | | | | | | | param/loadparm.c: Removed "networkstation user login", "domain controller", and "domain sid" parameters. passdb/passdb.c: Removed "networkstation user login" code and changed bug test code to only check once for a bad password server. This will stop the complaints of many "bad login" audit records in NT PDC logs. utils/smbpasswd.c: Removed check for "domain controller". Jeremy.
* lib/charcnv.c: Improved debug comment.Jeremy Allison1998-11-061-8/+10
| | | | | | | | | | | libsmb/namequery.c: Fix to remove 2 second wait is we are doing a unicast and got a reply. smbd/dfree.c: smbd/noquotas.c: smbd/quotas.c: Fixes from Dejan Ilic <svedja@lysator.liu.se> for the quota code. utils/smbpasswd.c: Fixes to allow smbpasswd to be called from swat. Jeremy.