summaryrefslogtreecommitdiffstats
path: root/source
Commit message (Collapse)AuthorAgeFilesLines
...
* These don't compile yet - but they are the core code in whatJeremy Allison1998-04-233-1086/+1004
| | | | | will be DOMAIN_CLIENT called code. Jeremy.
* We will need this new nterr.c for the DOMAIN_CLIENT code.Jeremy Allison1998-04-231-3/+30
| | | | Jeremy.
* clientgen.c: Added rap error codes to cli_error, moved from smbpasswd.cJeremy Allison1998-04-234-124/+233
| | | | | | | password.c: Changed global cli -> pw_cli, removed strtok (bad strtok, bad :-) use in security=server, started to extend security=domain code. smbpasswd.c: Removed rap error code functions. Jeremy.
* genrand.c: Changed SMB_PASSWD_FILE to lp_smb_passwd_file().Jeremy Allison1998-04-235-90/+359
| | | | | | | | | | password.c: Started the initial code for domain_client_validate(). All bracketed with #ifdef DOMAIN_CLIENT for now. reply.c: Call to domain_client_validate(). All bracketed with #ifdef DOMAIN_CLIENT for now. smbpass.c: New code to get/set machine passwords. Tidied up nesting of lock calls. Jeremy.
* Fixed bug found by Gerald Carter <cartegw@Eng.Auburn.EDU> whereJeremy Allison1998-04-223-4/+0
| | | | | global myname was being overwritten incorrectly. Jeremy.
* genrand.c: Improved generation of random values, more secure.Jeremy Allison1998-04-226-13/+93
| | | | | | | | | loadparm.c: Started add of 'security=domain' code. password.c: Fix for security=server NT bugs. reply.c: Started add of 'security=domain' code. server.c: Started add of 'security=domain' code. smb.h: Started add of 'security=domain' code. Jeremy.
* many systems don't have /etc/shadow but do have another system forAndrew Tridgell1998-04-211-0/+12
| | | | | | | | | | making encrypted passwords secret. For example, with secure NIS+ only root can get the encrypted password. hash in the encrypted password of "root" to provide a nice source of secret on such systems. On systems that don't have this (ie. any user can get roots encrypted password) then the security is so slack that it probably doesn't matter what we do to generate the secret.
* improved the secret buffer generation a bit. It now uses /etc/shadowAndrew Tridgell1998-04-211-22/+39
| | | | | and smbpasswd if possible, and doesn't put it all through a 32 bit bottleneck.
* put server-side long dce/rpc code in main branch.Luke Leighton1998-04-214-119/+167
|
* Added cli_ulogoff() calls to all the exit code paths in security=server.Jeremy Allison1998-04-211-0/+5
| | | | Jeremy.
* clientgen.c: Added cli_ulogoff() call.Jeremy Allison1998-04-213-0/+21
| | | | | password.c: Added call to cli_ulogoff on successfull sessionsetup. Jeremy.
* genrand.c: Improved filename based random seed generation.Jeremy Allison1998-04-202-22/+58
| | | | | lib/rpc/server/srv_netlog.c: Changed to use generate_random_buffer(). Jeremy.
* Added 'passwd chat debug' parameter to allow admins to debug theirJeremy Allison1998-04-203-6/+9
| | | | | Samba passwd chat scripts. Jeremy.
* Makefile: Added genrand.oJeremy Allison1998-04-206-2/+160
| | | | | | | | | | | | | | | clientgen.c: Changed to fill change password buffer with random stuff. password.c: Changed to get challenge from genrand.c server.c: Added #ifdef around O_SYNC. version.h: Changed to 1.9.19prealpha. genrand.c: New code to generate (hopefully) good random numbers for use in crypto challenges/session keys etc. PLEASE REVIEW THIS CODE AND SUGGEST IMPROVEMENTS !!!!!! Jeremy.
* Fixed bug that John found in WINS server code. When nmbd as a WINSJeremy Allison1998-04-204-9/+111
| | | | | | | | | | | | | server is sending out a name_query after a WACK, it needs to send a packet with recursion_desired = 0 (yes Luke, you were right all along :-). If it doesn't then if it's talking to itself then the query packet ends up back in the WINS server instead of in the client side code. Makefile: Changed proto generation to stop including NMBDOBJ twice. nmbd_namequery.c nmbd_packets.c nmbd_winsserver.c: Added extra query_name_from_wins_server() code. Jeremy.
* includes.h: Added John's redhat fix for QSORT_CAST.Jeremy Allison1998-04-184-558/+120
| | | | | | | | | | | | | smbpass.c: Added lock depth code so calls to pw_file_lock() can be nested. Fixed codedump problems in add_smbpwd_entry(). smbpasswd.c: Removed all the code that manipulated the password file directly. Now *all* smbpasswd file changes are done through the interfaces defined in smbpass.c This should make the life of people adding alternate backend databases *much* easier. lib/rpc/server/srv_netlog.c: Removed debug messages used to debug machine password changing. Jeremy.
* clientgen.c: Changes 'cli_xxx_' calls to use the followingJeremy Allison1998-04-173-58/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | regularized parameter syntax: setup, setup_count, max_setup_count, params, params_count, max_params_count, data, data_count, max_data_count, (and if a reply is needed) *reply_params, *reply_data_len *reply_data, *reply_data_len This allows the pointers and the lengths that relate to these pointers to be next to each other in the parameter list. This makes seeing what you are passing to these functions much easier to see. Getting ready for adding the lib/rpc/client functions needed to do security=domain. torture.c: Fixed it so it uses / rather than \\ internally for the //machine/share syntax. Jeremy.
* Changing of machine passwords now works !!!!!!Jeremy Allison1998-04-174-43/+58
| | | | | | | | smbdes.c: Added cred_hash3. smbpasswd.c: Fixes for adding a machine account (needs more work). lib/rpc/server/srv_netlog.c: Turn on the machine password changing code by default (calls cred_hash3). Jeremy.
* Just changed the date.Christopher R. Hertel1998-04-171-1/+1
|
* reply.c: Fix bugs where debug statements were accessing the fd_ptr structJeremy Allison1998-04-162-20/+20
| | | | | | | internals after Andrews' code had memset it to zero (this was causing core dumps). charcnv.c: Fixes for ISO8859-2 from Petr Hubeny <psh@capitol.cz>. Jeremy.
* Minor change to the wording. It used to say "files with the prefix 'ubi_'"Christopher R. Hertel1998-04-161-6/+6
| | | | or some such. Some future files won't have the ubi_ prefix. -)----- Chris
* ipc.c: Fix for printer queue spinning with Win95.Jeremy Allison1998-04-157-51/+187
| | | | | | | | | nmbd.c: Fix for always overwriting log despite append setting. smb.h: Addition of last time password changed entry to account info. smbpass.c: Changes to support last time changed field in smbpasswd file. smbpasswd.c: Changes to support last time changed field in smbpasswd file. util.c: Fix for always overwriting log despite append setting. Jeremy.
* Fixed some typecast and function pointer problems pointed out by aChristopher R. Hertel1998-04-142-10/+21
| | | | | | programmer in Finland. Chris -)-----
* Modified interfaces to getting smb password entries fromJeremy Allison1998-04-1410-38/+83
| | | | | | | | | | | | | | | | | | | | get_smbpwd_entry (now an internal function to smbpass.c) to a more UNIX-like : getsmbpwnam() - get entry by name. getsmbpwuid() - get entry by uid. Changed the type returned by the smbpasswd enumeration functions to be a void * so that people don't come to depend on it being a FILE *. These abstractions should make it much easier to replace the smbpasswd file with a better backend in future. Other files changed are to match the above changes. Jeremy.
* Fixed aggregate initializer problem for gcc.Jeremy Allison1998-04-131-1/+1
| | | | Jeremy.
* Changes include:Christopher R. Hertel1998-04-134-421/+706
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | proto.h: The unusual. ;) reply.c: I changes some function names, and updated reply.c to match. See mangle.c below for more. server.c: Changed function names and parameters in file mangle.c, so changed server.c calls to match. See mangle.c below for more. mangle.c: I replaced the caching mechanism used for caching reverse mangled name maps. The old method was a large array of 256-byte strings. Movement in the stack (including push and pop) was done by memcpy()ing whole chunks of memory around. The new system uses the ubi_Cache module which, in turn, uses a splay tree. Entries are dynamically allocated using a minimum amount of memory. Searches are non-linear, which should speed things up a bit, too. Overall, this should save memory and be faster. Other changes: I streamlined the is_mangled() test and made other speed enhancements including replacing some static functions with macros. Added comments, etc. Note: Per an E'mail conversation with Andrew, the 'mangled stack' parameter in smb.conf doesn't do anything anymore. The cache is now set for 16K bytes maximum memory usage. The mangle stack parameter is silently ignored. This can easily be changed, but I'd rather introduce a 'mangled cache memory' parameter and remove 'mangled stack'. Remaining problems: While testing the module, I noticed that something is calling name_map_mangle() twice. The result is that names which contain illegal characters are getting mangled twice. Also, the entire module works by overwriting the input string. This has a variety of nasty side effects. Summary: There's a lot still to be done, but the changes I have in place *should* work in exactly the same way (except for the mangle stack parameter). The rest of the bugs and other issues are separate. Chris -)-----
* Changes to allow Samba to be compiled with -Wstrict-prototypesJeremy Allison1998-04-1333-265/+243
| | | | | | with gcc. (Not a big change although it looks like it :-). Jeremy.
* fixed a memory leak in close_file(). Each time a file was openedAndrew Tridgell1998-04-131-1/+7
| | | | we leaked memory equal to the length of the filename.
* minor reformatting of debug messages (so people don't think there is aAndrew Tridgell1998-04-121-3/+3
| | | | . on the end of their host names)
* some hacks to the torture codeAndrew Tridgell1998-04-121-1/+10
|
* support O_SYNC at open time in files (previously we only supported itAndrew Tridgell1998-04-121-0/+4
| | | | on individual writes)
* if the resolve order is blank then assume "host"Andrew Tridgell1998-04-121-0/+2
|
* support O_SYNC in opens for smbtortureAndrew Tridgell1998-04-121-0/+4
|
* Fix heaps of warnings when compiling with gcc under Digital UNIX. Include ↵Richard Sharpe1998-04-111-0/+4
| | | | | | | route.h and mbuf.h at a strategic point ... Wierd stuff really, because the Digital compiler does not complain either way, but GCC does.
* Oops, fogot proto.h. It needs to be updated for changes to client.cRichard Sharpe1998-04-111-1/+1
|
* Changes to client.c support the need for directories to be processed by whateverRichard Sharpe1998-04-112-68/+298
| | | | | | | | | | | | action is passed to do_dir. Changes to clitar.c as requested by Canon Information Systems Research Australia: 1. Support restoring long file names 2. Write directory entries to TAR files as first part of setting directory create times 3. Ensure zero length files get correct mtime 4. Allow DOS and UNIX pathnames in command line parameters.
* includes.h: Moved HPUX undefine of SEMMSL to where it actually does something.Jeremy Allison1998-04-1012-38/+137
| | | | | | | | | | | | | | | ipc.c: Added Luke's debug statement. locking_slow.c: Added FTRUNCATE_NEEDS_ROOT code for broken systems that need it (not sure what these are yet). membuffer.c ntdomain.h proto.h lib/rpc/include/rpc_dce.h lib/rpc/include/rpc_srvsvc.h lib/rpc/parse/parse_prs.c lib/rpc/parse/parse_rpc.c lib/rpc/server/srv_pipe_hnd.c lib/rpc/server/srv_util.c: Re-merge of Luke's NTDOM changes 'cos he's a lazy git with carpel tunnel syndrome :-). Jeremy.
* Fix for [homes] problem with security=share. We were still relyingJeremy Allison1998-04-101-5/+19
| | | | | | on a valid vuid to get the connecting username - this is *never* true (anymore) with security=share. Jeremy.
* Makefile, loadparm.c, server.c, smb.h, util.c: Patch fromJeremy Allison1998-04-096-12/+70
| | | | | | | stn@techfak.uni-kiel.de (Stefan Nehlsen) to get homes from the NIS+ map. smbpasswd.c: Tidy up of cli_state structure. Jeremy.
* I removed a static string that was in there because I planned to doChristopher R. Hertel1998-04-091-6/+0
| | | | | | something with it some day. It was causing gcc to cough up warnings (not serious ones, mind you). Don't worry... It will be back! Chris -)-----
* Added const cast to struct args to get rid of compile time warning.John Terpstra1998-04-091-1/+1
|
* Removed unneeded proto symbol.Jeremy Allison1998-04-091-1/+1
| | | | Jeremy.
* Missed compile error when compiling with KANJI=true.Jeremy Allison1998-04-091-1/+1
| | | | Jeremy.
* Added codepage 936 (simplified Chineses).Jeremy Allison1998-04-094-132/+123
| | | | | | | | | | | In doing so I realized that much code was being duplicated between Hangul, Big5 and Simplified Chinese - so I re-arranged kanji.[ch] to go through generic functions for all multibyte characters that can be identified by a single code range (not Kanji - but all the others). Jeremy.
* Fix to stop Windows 95 spinning on print queue requests when itJeremy Allison1998-04-081-1/+1
| | | | | gets an error message it doesn't understand. Jeremy.
* Added check for getpwnam returning NULL.Jeremy Allison1998-04-071-3/+7
| | | | Jeremy.
* want all of data in show_msg at log levels > 50.Luke Leighton1998-04-071-27/+33
|
* loadparm.c: Cause IPC$ comment to be evaluated at runtime, rather thanJeremy Allison1998-04-062-3/+11
| | | | | | | load time (patch from "Marty Leisner" <leisner@sdsp.mc.xerox.com>. server.c: Patch from Josef Hinteregger <joehtg@joehtg.co.at> - string could be overwritten when find_service() called recursively. Jeremy.
* Fix from Josef Hinteregger <joehtg@joehtg.co.at> for usingJeremy Allison1998-04-032-2/+2
| | | | | | character set = iso8859-1 with the new multibyte char code. Was always using sj_to_sj conversion in error. Jeremy.
* We were missing a case switch in announcement processing - weJeremy Allison1998-04-021-0/+17
| | | | | | | | were loggin a become backup request with debug log level of 0 - thus producing lots of annoying error messages. Now handle this explicitly. Jeremy.