summaryrefslogtreecommitdiffstats
path: root/source/include
Commit message (Collapse)AuthorAgeFilesLines
...
* Converted the browser database to a ubi_dLinkList. This should reduce codeChristopher R. Hertel1998-07-242-17/+14
| | | | | size, etc. Also did a bit of work to add comments. Chris -)-----
* locking.c: Added lock type to is_locked() and do_lock()Jeremy Allison1998-07-231-2/+4
| | | | | | | | | | | | as the code in reply_lockingX wasn't taking account of the difference between read and write locks ! How did this ever work :-) ! reply.c: server.c: Add lock type to is_locked() and do_lock(). util.c: Also added code from klausr@ITAP.Physik.Uni-Stuttgart.De to fix problem with log files growing too large if an smbd writes less than 100 debug messages. Jeremy.
* Fixed bug found by Richard Sharpe. After increasing files_struct size byJeremy Allison1998-07-222-1/+3
| | | | | | | | | MAX_OPEN_DIRECTORIES for nttrans I forgot to update the code that enumerates the array. Created new MAX_FNUMS in local.h, changed all code that iterates through the files_struct array to use this. (sorry Richard). Jeremy.
* includes.h: Added feature type USE_GRANTPT for pty code.Jeremy Allison1998-07-221-1/+5
| | | | | chgpasswd.c: Updated to use USE_GRANTPT feature definition. Jeremy.
* Code added to fix the renaming of a directory under NT SMB calls.Jeremy Allison1998-07-173-15/+18
| | | | | | | | | | | | | | | | local.h: Changed MAXDIR to MAX_OPEN_DIRECTORIES - shmem size also tuned by this. dir.c: Use MAX_OPEN_DIRECTORIES. nttrans.c: Allow opening of a directory to succeed. Doesn't actually open a file descriptor but takes a files_struct slot marked as an fd. reply.c: Changed to close any outstanding is_directory files. reply_close changed to understand directory files. server.c: Added open_directory(), close_directory() calls. smb.h: Added is_directory to files_struct. Changed OPEN_FNUM to check that target is !is_directory (this prevents the normal file calls from processing a directory files_struct. Jeremy.
* local.h: Added NTFS define if HAVE_NT_SMBS is defined.Jeremy Allison1998-07-171-1/+4
| | | | | nttrans.c: Fixed issue with access DELETE on renaming files. Jeremy.
* Makefile: Added nttrans.oJeremy Allison1998-07-163-5/+29
| | | | | | | | | includes.h: Added termios.h for AIX. nttrans.c: Working NT SMB calls ! pipes.c: Use strequal instead of strcmp. server.c: Use #defines rather than numbers. smb.h: Updated NT SMB #defines. Jeremy.
* Makefile: Added CC=gcc to DGUX on Intel. Comment from ross@filmworks.com.Jeremy Allison1998-07-162-11/+3
| | | | | | | | | | | | ipc.c: loadparm.c: printing.c: Added code from <Dirk.DeWachter@rug.ac.be> to implement print queue pausing. New parameters are "queuepause command" and "queueresume command". util.c: Added fix for mount options in autmount map. lib/rpc/include/rpc_misc.h: Removed duplicate pipe names for Jean-Francois. Jeremy.
* util.c: I've added a function called mem_dup(). Similar to strdup(),Christopher R. Hertel1998-07-151-1/+2
| | | | | | | mem_dup() allocates the required memory before copying the source data. It returns NULL if memory could not be allcoated, else a pointer to the newly allocated memory. proto.h: Rebuilt to add the prototype for mem_dup().
* nntrans.c: Fully implemented transact rename.Jeremy Allison1998-07-112-1/+4
| | | | | | reply.c: Added NT specific rename if exists flag to rename_internals(). smb.h: Added NT rename flag. Jeremy.
* nttrans.c: More NT SMB stuff.Jeremy Allison1998-07-111-0/+1
| | | | | | | | reply.c: Broke out the internals of reply_mv so that they may be called externally from the NT transact rename. server.c: Changed stat calls to sys_stat - found in code review of bugfix. Jeremy.
* NT SMB trans reply code.Jeremy Allison1998-07-091-0/+10
| | | | Jeremy.
* includes.h: Fixes for QNX 4.x.Jeremy Allison1998-07-071-1/+6
| | | | Jeremy.
* Fix for pidfile startup message.Jeremy Allison1998-07-021-1/+1
| | | | Jeremy.
* chgpasswd.c: Fix from Peter Debus <pdebus@turing.une.edu.au> for Digital UNIXJeremy Allison1998-07-021-1/+0
| | | | | | | password change core dump bug. nmbd_subnetdb.c: Make namelist_entry_compare() static. nttrans.c: More NT SMB stuff. Jeremy.
* includes.h: AIX fix.Jeremy Allison1998-07-012-0/+10
| | | | | | | | | nttrans.c: More NT SMB work. smb.h: More NT SMB defines. trans2.c: Change call response as I now have docs on what the flags mean. #ifdef it with JRATEST until I'm sure it's ok though. Jeremy.
* nttrans.c: More code towards NT protocol.Jeremy Allison1998-06-301-6/+12
| | | | | | smb.h: More code towards NT protocol. time.c: Fix for sco bug. Jeremy.
* nisppass.c: Fixed incorrect parameter usage.Jeremy Allison1998-06-271-4/+2
| | | | | | | | | | | | | | | | | | | | nmbd_become_lmb.c: Add 'force_new_election' parameter to some functions. This allows the start of the election to be done *after* the demotion from local master browser is done. Also changed code so release of 1d name is done immediately to allow other local master to gain it. nmbd_elections.c: Ensured no elections are run until we have registered the WORKGROUP<1e> name that we must listen on to participate in elections. nmbd_incomingdgrams.c: Use force_new_election code. nmbd_namelistdb.c: Make update_name_in_namelist static. nmbd_subnetdb.c: Fix bug in comparison function. We cannot use memcmp as structure packing may make this fail. nmbd_packets.c: Ensure that we only send one release packet when sending a broadcast packet. nmbd_workgroupdb.c: Ensure we put the correct value in the ElectionCriterion field. nmblib.c: Ensure make_nmb_name zero's the struct nmb_name. Jeremy.
* Remove the copyright to Canon Information Systems Australia, as we don'tRichard Sharpe1998-06-211-0/+1
| | | | | | | | | | | | | | want them to have the copyright. Added a new DOSERR response code that Win95 returns, unimp, unimplemented. Added code to ignore errors on setting remote time, as Win 95 does not like the time being changed on a directory. Win NT and Samba are OK at this. This is the next to last clean-ups here. Next is to properly handle restore times on directories (except for Win95--see above). Now have Jay's changes in and have fixed a bug reported by Tim Lee.
* clientgen: Added USE_SSL for client shutdown.Jeremy Allison1998-06-161-1/+0
| | | | | | | | | | | | clitar.c: Added 'Samba style' comments before string_create_s(). loadparm.c: Fixed missing comma in SSL code. util.c: Removed string_create_s(). Currently it's only called from clitar.c and having it here as well as a static in clitar causes the compile to break (Richard, please decide where you want this function). lib/rpc/parse/parse_net.c: Fix from <anders.blomdell@control.lth.se> to stop coredump on missing parameter. Jeremy.
* Damn, forgot the proto file againRichard Sharpe1998-06-161-0/+1
|
* Added SSL support from Christian Starkjohann <cs@obdev.at>Jeremy Allison1998-06-162-0/+18
| | | | | | | This patch may not yet compile with -DUSE_SSL enabled, further Makefile changes may be needed. But it was important to get this code in place before I go off to USENIX. Jeremy.
* client.c: Made -L do a null-session share unless -U user is specified.Jeremy Allison1998-06-151-0/+1
| | | | | | clientutil.c: Fixed NT session to add NT password. groupname.c: Added lookup function. Jeremy.
* Makefile:Jeremy Allison1998-06-151-0/+3
| | | | | | | smbumount.c: Added fixes to compile under Linux. includes.h: Added SunOS 4.x QSORT_CAST fix. reply.c: Fixed user name mapping function for security=server, security=domain. Jeremy.
* Makefile: Added ubi_sLinkList.o as the groupname.o file needs it. Added ↵Jeremy Allison1998-06-132-1/+7
| | | | | | | | | | | | | | | groupname.o includes.h: Added ubi_sLinkList.h include. loadparm.c: Added groupname map parameter. password.c: Fix HPUX big_crypt. username.c: New user_in_list() code. Moved groupname map code to groupname.c lib/rpc/server/srv_util.c: Added lookup_wellknown_sid_from_name(). New groupname map stuff. Note that nothing currently uses this but at compiles ok. Jeremy.
* This is the first, small step toward some tweaks that Jeremy and I haveChristopher R. Hertel1998-06-121-0/+2
| | | | | | | | | | | | | | | been discussing regarding the debug mechanism. With this, I've added a macro that allows syntax like: if( DEBUGLVL( 3 ) ) { Debug1( "message" ); Debug2( "message" ); } The next step is to incorporate timestamps. Chris -)-----
* ipc.c: map_username is now a BOOL function.Jeremy Allison1998-06-121-1/+2
| | | | | | | | | | | reply.c: map_username is now a BOOL function. server.c: Added capability to do map_username on service names when looking for a home directory. That's what the original code would do. lib/rpc/server/srv_util.c: Changed domain_ to builtin_ for BUILTIN aliases. username.c: Work in progress on groupname map parameter. Jeremy
* Removed directory-relative include references. This required that I addChristopher R. Hertel1998-06-111-2/+2
| | | | | | | a -I$(srcdir)ubiqx to CFLAGS in the Makefile. It might be better to create a UBIDIR value. What would people like to see? Chris -)-----
* Minor changes as I've now discovered gcc -pedantic-errors. ThisJeremy Allison1998-06-101-9/+19
| | | | | does the signed/unsigned warnings I've been missing. Jeremy
* I've replaced the linked list used to manage the subnet namelists with aChristopher R. Hertel1998-06-101-9/+9
| | | | | | | | | | | | | | splay tree. For short lists, this will have no noticable effect. As lists (eg. the WINS database) grow longer, the speed improvements should be quite dramatic. This change is an incremental step toward replacing the in-memory namelists with a back-end database. This change is going into the 1.9.19pre-alpha code because...well...it's pre-alpha. Please let me know if there are any problems. (Oh, as a side-effect, the wins.dat will be in sorted order. :) Chris -)-----
* loadparm.c: Removed 'domain other sids' parameter.Jeremy Allison1998-06-092-17/+17
| | | | | | | | | | | lib/rpc/include/rpc_lsa.h: Changed #defines for RPC calls - moved some, made LSA_LOOKUPNAMES correct. lib/rpc/include/rpc_misc.h: Changed DOMAIN_ALIAS_xxx to BUILTIN_ALIAS_xxx. Changed bitmasks for uid to rid to be 1 bit. lib/rpc/parse/parse_misc.c: Changed make_unistr2 to put length as given, max length as one more. lib/rpc/server/srv_netlog.c: Removed 'domain other sids' parameter. lib/rpc/server/srv_samr.c: Changed DOMAIN_ALIAS_xxx to BUILTIN_ALIAS_xxx. lib/rpc/server/srv_util.c: Changed DOMAIN_ALIAS_xxx to BUILTIN_ALIAS_xxx. Jeremy.
* Fixed compile problem after make proto.Jeremy Allison1998-06-091-14/+17
| | | | | | | Chris's reformating of the (rather long named function) find_name_for_remote_broadcast_subnet (moving the function name onto a line on it's own) caused the proto awk script to miss it. Jeremy.
* This is a first step toward moving long namelists into a database. IChristopher R. Hertel1998-06-091-19/+22
| | | | | | | | | | | split the name_record structure into pieces. The goal is that the key (the name) be separate from the data associated with the key. Databases such as gdbm store information in [key,content] pairs. There is no functional change in with this update. It's just a step in the direction that Jeremy and I have been discussing. Chris -)-----
* Moved the ubiqx stuff above nameserv.h so that ubiqx typedefs could beChristopher R. Hertel1998-06-081-12/+6
| | | | seen by the nameserve.h header.
* proto.hChristopher R. Hertel1998-06-081-0/+3
| | | | | | | | | | | | | | | *Not* the usual. I did make proto to add the #ifndef..#endif block. Just to be safe, I did a cvs diff and found no prototype changes. ubiqx/sys_includes.h More fudging. I want to use binary tree typdefs in nameserv.h, but nameserv.h is included in includes.h which is included by all of the ubiqx modules. The result is that the types are referenced before they are declared. My solution is to prevent nameserv.h and proto.h from being included in the ubiqx modules (where they are not needed anyway). Chris -)-----
* had what would be a compile error if it wasn't #if 0'd out in passdb_opsLuke Leighton1998-06-041-1/+1
|
* added "domain admin group" and "domain guest group" parameters. this isLuke Leighton1998-06-042-0/+11
| | | | | | because "domain admin users" and "domain guest users" was overloaded. incorrectly.
* includes.h: Fixes for NetBSD and BSDI.Jeremy Allison1998-06-041-0/+3
| | | | | smbpass.c: Fixed irix warnings. Jeremy.
* It occurred to me that the samba includes.h file should be included in theChristopher R. Hertel1998-06-031-1/+4
| | | | | | | | | | header files used by the ubiqx modules, instead of being hidden in the .c files. This would ensure that anything in includes.h would be "seen" by the ubiqx headers. I also had to put an #ifdef around the includes for ubi_SplayTree.h and ubi_Cache.h in includes.h to prevent the header of the descendant type from being included before its parent type. Chris -)-----
* ipc.c: Fix bug where we don't return the correct error code when clientJeremy Allison1998-06-031-0/+2
| | | | | | | | | | gives a too-small buffer for share info. Fix from Gil Kloepfer <gil@arlut.utexas.edu> smb.h: server.c: Fix for a nastly little security problem with multi-user Windows NT servers and Samba where the contents of the open-file cache can end up being served out to users who shouldn't have access. This is some *seriously* ugly code. Jeremy.
* clientutil.c: Don't core dump if no controlling terminal available for password.Jeremy Allison1998-06-012-0/+14
| | | | | | | passdb.c: lib/rpc/include/rpc_misc.h: First cut at automatic uid/gid to rid mapping. We can change this at a later date to make more bits available if neccessary. Jeremy.
* Ooops - fixed Win95 crash bugs with earlier code.Jeremy Allison1998-05-271-1/+0
| | | | Jeremy
* Newly re-written do_match and mask_match functions, with theJeremy Allison1998-05-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | help of Ums Harald <Harald.Ums@pro-sieben.de>, who has been testing our 8.3 wildcards with a test suite. With his new code for 8.3 matching, this is the test done (I'm quoting from his email) "I tested it by generating a directory with about 7600 Files and run automatc tests with about 4000 patterns. The result from Win95 -> WinNT and Win95 -> Samba where identical according to diff." I have also re-written the long filename wildcard code, so that doing DIR a*z now matches files : AAA.BBB.CCCC....ZZZZ correctly, and other fixes besides. I sincerely hope I can lay this (horrid) issue to rest now :-). Jeremy.
* loadparm.c: Added machine password timeout parameter - set to 7 days be default.Jeremy Allison1998-05-271-0/+2
| | | | | | | | | password.c: Added code to tell server.c when machine password needs changing. server.c: Change machine password in idle cycles if it needs it. smbpassfile.c: Fixed up length calculations for machine password file. smbpasswd.c: Moved domain joining code/machine password changing code. lib/rpc/client/cli_netlogon.c: And this is where it now lives. Jeremy.
* smb.h: More NT SMB stuff (just defines).Jeremy Allison1998-05-262-5/+9
| | | | | | | | | | | smbpass.c: Do *NOT* make this function static. It breaks the compile on gcc util.c: Getting closer to MS wildcard semantics. A trailing '*' matches any trailing dot-separated components. trans2.c: Removed hacks that change multiple '?' -> '*' as this breaks things now. trans2.h: Removed NT_FILE_ATTRIBUTE_NORMAL - now FILE_ATTRIBUTE_NORMAL is defined in smb.h. Jeremy.
* added set logon, logoff, kickoff etc time functions.Luke Leighton1998-05-251-0/+5
|
* - created pdb_sethexpwd(), to be called from all pwd apis that need toLuke Leighton1998-05-241-1/+2
| | | | | | store passwords in ascii format - dealt with lots of signed/unsigned char thingies spotted by Tim Winders.
* Added more NT definitions, getting ready for nttrans code.Jeremy Allison1998-05-231-0/+57
| | | | Jeremy.
* I've put the ubiqx headers back into includes.h, and removed them fromChristopher R. Hertel1998-05-221-1/+9
| | | | | | | | | dir.c & mangle.c. This was possible after I checked the tree code to make sure that the tree code did not reference functions by macro name. Also, note that the AVL module has been removed to prevent conflict with the SplayTree macro defines. Chris -)-----
* Removed all ubiqx includes from includes.h. So far, this was only a problemChristopher R. Hertel1998-05-221-1/+0
| | | | | | | | | | | | | | | | | | | | for dir.h, which I've fixed. Andrew did not add includes.h to the ubiqx headers, which is good because it would cause internal conflicts within the ubiqx tree modules. It's also bad because the definitions and includes that are part of includes.h are now in the ubiqx C files, but not in the header files. So, if includes.h were to redefine int, for example, the new definition would be in the ubiqx C files, but not in the headers. So, until Andrew and I can work something out that we both agree upon, there are three basic rules: 1) Don't include includes.h in the ubiqx headers. Problems may arise. 2) The ubiqx headers must follow includes.h in any Samba module that uses them. This can and should all be worked out. We just have to talk about it. Chris -)-----