summaryrefslogtreecommitdiffstats
path: root/source/smbd
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixes from appliance-head for pdc searches.Jeremy Allison2001-01-251-1/+16
| | | | Jeremy.
* Sync up with POSIX ACL code from 2.2.Jeremy Allison2001-01-242-11/+54
| | | | Jeremy.
* smbd/process.c: & type with 0xff for paranioa sake...Jeremy Allison2001-01-243-34/+45
| | | | | | smbd/reply.c smbd/service.c: cause all "add home service" calls to go through a winbindd aware function. Jeremy.
* smbd/lanman.c: Fix for calling qsort with 0 number.Jeremy Allison2001-01-243-200/+344
| | | | | | | smbd/nttrans.c: Realloc mem fixes based on those that went into trans2.c smbd/process.c: Move to a table based dispatch, based on a comment from Andrew about Antons work. Jeremy.
* Fix from Kenichi Okuyama for memory leak on Realloc fail.Jeremy Allison2001-01-231-21/+51
| | | | Jeremy.
* only add the service name and client machine name to list of users namesGerald Carter2001-01-232-3/+11
| | | | | | | for a session when in share mode security --jerry
* include/vfs.h:Jeremy Allison2001-01-238-32/+389
| | | | | | | | | | | | | smbd/vfs-wrap.c: smbd/vfs.c: Added fchmod_acl and chmod_acl. lib/substitute.c: smbd/lanman.c: smbd/open.c: smbd/process.c: smbd/reply.c: smbd/service.c: Removed sessetup_user variable. Added current_user_info struct which conatins domain info etc. Added '%D' for client domain parameter. Jeremy.
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-221-3/+4
| | | | | | | | | | source/smbd/lanman.c - cleanup and bug fix for win9x print queue purge. source/printing/printing.c - cleanup and bug fix for win9x print queue purge. - print_job_end() changed to cleanup spool file in the event of a failure returned from the print_run_command()
* Get the logic right thistime :-(.Jeremy Allison2001-01-171-2/+3
| | | | Jeremy.
* Typo in new file_chmod code caused file attribute changes to fail.Jeremy Allison2001-01-171-1/+1
| | | | | THIS NEEDS TO BE ADDED TO APPLIANCE-HEAD. Jeremy.
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-171-3/+4
| | | | | source/smbd/lanman.c - Change fill_printq_info() to fix corrupted 9X/ME printer comment
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | source/rpc_server/srv_spoolss_nt.c - Unrolled construct_notify_jobs_info() loop to only fetch printer info_2 structure once rather than num_print_jobs times. - convert command to unix codepage. - remove lp_remove_service() call as it prevents lp_killservice() from working. - Modified some DEBUG and DEBUGADD statements. source/param/loadparm.c source/param/params.c - change printer, preload, auto services to FLAG_DOS_STRING, reverted earlier changes to szPrintername et al, add comments. source/printing/load.c - fix bug with lp_auto_services() and strtok() source/printing/nt_printing.c source/printing/printing.c - remove redundant test that used SERVICE(snum) source/printing/pcap.c - add unix_to_dos() calls, add notes wrt FIXMEs for xxx_printer_fn() functions. source/web/swat.c - added FIXME comment. source/smbd/service.c - added comment re: dos codepage
* Fixes for POSIX ACLS. ACL merge code.Jeremy Allison2001-01-151-25/+108
| | | | Jeremy.
* Updated from 2.2.Jeremy Allison2001-01-151-3/+40
| | | | Jeremy.
* Fixed typo with acl_set_fd() not needing an ACL_TYPE_T parameter.Jeremy Allison2001-01-111-2/+2
| | | | | Ensure HAVE_NO_ACLS is set in configure if ACL support not selected. Jeremy
* First compiling version of code that sets NT ACLs as POSIX ACLs.Jeremy Allison2001-01-111-97/+493
| | | | | Now the debugging starts.... :-). Jeremy.
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-112-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | testsuite/printing/psec.c - Use lock directory from smb.conf parameter when peeking at the ntdrivers.tdb file. source/rpc_parse/parse_sec.c - fix typo in debug message source/script/installbin.sh - create private directory as part of 'make install'. source/nsswitch/winbindd_cache.c source/nsswitch/winbindd_idmap.c source/passdb/secrets.c source/smbd/connection.c - always convert tdb key to unix code-page when generating. source/printing/nt_printing.c - always convert tdb key to unix code-page when generating. - don't prepend path to a filename that is NULL in add_a_printer_driver_3(). source/rpc_server/srv_spoolss_nt.c - always convert tdb key to unix code-page when generating. - don't prepend server name to a path/filename that is NULL in the fill_printer_driver_info functions. source/printing/printing.c - always convert tdb key to unix code-page when generating. - move access check for print_queue_purge() outside of job delete loop. source/smbd/unix_acls.c - fix for setting ACLs (this got missed earlier) source/lib/messages.c - trivial sync with appliance_head
* rpc_server/srv_samr.c:Jeremy Allison2001-01-112-6/+38
| | | | | | | | | | | | smbd/reply.c: Added fix needed for appliances. When using winbindd - a new user may exist (from winbind) but have no home directory. Extend add user script so it is called with a %H substitution when a user exists but their home directory does not. Thanks to Alex Win at VA Linux for finding this one and testing the fix. libsmb/clidgram.c: Fixed missing return statements. smbd/uid.c: Fixed typo in debug. Jeremy.
* Fix from "B.V.Dean" <B.V.Dean@ukc.ac.uk> to add "dos filemode" parameterJeremy Allison2001-01-091-36/+70
| | | | | | to allow a chmod to be done if the user has write access to a file, just like Windows allows. Off by default (compare with "dos filetimes" parameter). Jeremy.
* Patch from Richard Bollinger for dead entries being left in connections tdb.Jeremy Allison2001-01-082-1/+6
| | | | Jeremy.
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-043-2/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | source/Makefile.in - changes to ctags and etags rules that somehow got lost along the way. source/include/proto.h - make proto source/smbd/sec_ctx.c source/smbd/password.c - merge debugs for debugging user groups and NT token stuff. source/lib/util_str.c - capitalise domain name returned from parse_domain_user() source/nsswitch/wb_client.c - fix broken conditional in debug statement. source/include/rpc_secdes.h source/include/rpc_spoolss.h source/printing/nt_printing.c source/lib/util_seaccess.c - fix printer permission bugs related to ACE masks for printers. This adds mapping of generic access rights to object specific rights for NT printers. Still need to work out whether or not to ignore ACEs with certain flags set, though. See comments in util_seaccess.c:check_ace() for details. source/printing/nt_printing.c source/printing/printing.c - use PRINTER_ACCESS_ADMINISTER instead of JOB_ACCESS_ADMINISTER until we sort out printer/printjob permission stuff.
* Fixed bug found by Gerald. If a Samba server joins a domain and is setJeremy Allison2000-12-191-4/+18
| | | | | | | | to search for a DC to authenticate to using the "*" syntax than ensure that for the first hour after the password change is searches for the PDC using the 1B name not the 1C name as domain replication may not have occured. Jeremy.
* Split set_nt_acls into owner set (which uses chown) and permission setJeremy Allison2000-12-191-94/+109
| | | | | (which currently uses chmod) in preparation for ACL creation. Jeremy.
* Split the one sys_acl_free call into sys_acl_free_TYPE calls, to allowJeremy Allison2000-12-191-3/+3
| | | | | easier wrapping of non-POSIX ACL interfaces. Jeremy.
* Fix typos in new group sid check.Jeremy Allison2000-12-181-2/+2
| | | | Jeremy.
* Fixed chown/chgrp setting from smbcacls.Jeremy Allison2000-12-161-0/+2
| | | | Jeremy.
* Fixed memory leaks in lsa_XX calls. Fixed memory leaks in smbcacls. MergedJeremy Allison2000-12-151-0/+9
| | | | | | in fixes from appliance-head and 2.2. Fixed multiple connection.tdb open problem. Jeremy.
* Fixed bug noticed by JF. se_access_check needs user SID as first in token.Jeremy Allison2000-12-121-10/+23
| | | | Jeremy.
* Fixed processing of dfree script (was truncating).Jeremy Allison2000-12-121-2/+0
| | | | Jeremy.
* Compile fix for new arg to create_nt_token()Tim Potter2000-12-121-1/+3
|
* Removed the special casing of SIDs in se_access_check. This is now done ↵Jeremy Allison2000-12-122-10/+34
| | | | | | | (correctly) when the NT_USER_TOKEN is *created*. Jeremy.
* Sorry Gerald, I think the original code was better (plus safer as I'm sureJeremy Allison2000-12-121-7/+10
| | | | | it's working :-). Jeremy.
* Extra part of fix that Gerald missed (sorry).Jeremy Allison2000-12-121-1/+1
| | | | Jeremy.
* subtle bug where files which missed the stat_cache but were addedGerald Carter2000-12-111-10/+7
| | | | | | | | | | | | to the cache during the look returned a blank stat struct. Made weird occurrences such as... $ smbclient //pogo/print$ smb:\ > cd w32x86 ERROR: Invalid path smb:\ > cd w32x86 smb:\w32x86\ >
* Fix for short names not being returned correctly with non-mangled shares.Jeremy Allison2000-12-111-1/+2
| | | | Jeremy.
* Fixed very subtle bug returning correct error on an open, when we haveJeremy Allison2000-12-111-8/+22
| | | | | | | a choice of invalid share mode and access denied. We must return the access denied by preference, but also remember to break the oplocks... This is needed for multi-user MS-Access. Jeremy.
* Fixed compiler warning.Jeremy Allison2000-12-081-2/+2
| | | | Jeremy.
* Added OLD_NTDOMAIN to remove warnings about undefined functions.Jeremy Allison2000-12-083-0/+6
| | | | Jeremy.
* Removed unused auto (IRIX compiler warning).Jeremy Allison2000-12-081-2/+1
| | | | Jeremy.
* Fixed *very* subtle statcache bug where invalid stat state could beJeremy Allison2000-12-081-1/+2
| | | | | | being used if last component lookup failed, but was found in the directory scan. Jeremy.
* Fixed bug with Win9x/ME where drivername was being returned incorrectly inJeremy Allison2000-12-071-36/+46
| | | | | one printq case. Now goes though common function. Jeremy.
* file_lines_load/file_lines_pload can now optionally convert unix_to_dos()Jeremy Allison2000-12-074-6/+6
| | | | | on read. Jeremy.
* Working code to read POSIX ACLs on a Linux system using the bestbitsJeremy Allison2000-12-071-38/+61
| | | | | | | ACL patch from http://acl.bestbits.at/. configure support needs more work (just assumes correct headers at the moment). ACL writing needs adding. Jeremy.
* Cause smbd to use the new posix_acls code, not the old unix_acls code.Jeremy Allison2000-12-061-61/+47
| | | | | | | | | | | Currently does exactly the same thing (returns ACLs the same way). This code is written to try and get a POSIX ACL via the abstract sys_XX interface, then fall back to providing a UNIX based ACL if the calls fail. Seems to work. Next step is to add a --with-posix-acls to configure.in and then check on a POSIX ACL system that a complex ACL is returned correctly as an NT ACL. Note that the ACL set (a more complex problem) is not addressed yet. Jeremy.
* Print debug if domain_client_validate() cannot fetch the trust accountTim Potter2000-12-061-1/+2
| | | | password (say for example if the tdb file format has changed). (-:
* Make smbd/posix_acls.c use abstract interface.Jeremy Allison2000-12-061-11/+10
| | | | | include/smb_acls.h lib/sysacls.c: Added as interface definitions. Jeremy.
* Fixed compiler warning.Tim Potter2000-12-061-2/+2
|
* Moving to abstract API interface (sys_get_acl() etc.) to allow systemJeremy Allison2000-12-061-42/+42
| | | | | | specific ACL calls to be dealt with elsewhere. This file will eventually be able to replace the old UNIX acl interface. Jeremy.
* Remove C++ style commentsDavid O'Neill2000-12-041-1/+1
|
* Code to read & return POSIX ACLs as NT ACLs. Close to test on Linux.Jeremy Allison2000-12-011-74/+95
| | | | Jeremy.