summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Always increment even if the read fails (otherwise we spin if we hit the ↵Jeremy Allison2001-02-231-1/+4
| | | | | | kernel bug...). Jeremy
* lib/select.c: Fix for Linux 2.0.x kernel that causes select to return true ↵Jeremy Allison2001-02-221-0/+15
| | | | | | | | | | | on a pipe and then a blocking read to fail. Make the pipe read/write non blocking. printing/printing.c: Added a mutex around the code that enumerates all the jobs in a print queue. Allows only one smbd to be doing this at any one time. This fixes a capacity problem discovered at HP with <10,000 jobs in a print queue. Jeremy.
* make ascii_to_unistr always use little-endian. This fn is never usedAndrew Tridgell2001-02-211-2/+5
| | | | | | except in my code so I know this is safe. otherwise unicode client lib doesn't work on big-endian hosts
* - neater setting of bccAndrew Tridgell2001-02-201-6/+16
| | | | - converted cli_rename and cli_unlink
* up the debug level of the debug level change msgAndrew Tridgell2001-02-201-2/+2
|
* initial client side unicode support (needed for netapp filer)Andrew Tridgell2001-02-201-1/+1
| | | | | | | | | | | | | | | I've currently got this code disabled by default as it is incomplete. You enable it by setting a USE_UNICODE environment variable. Once the support is complete this check will be removed and the CAP_UNICODE capability bit will be the sole determination of whether the client library code uses unicode right now I have converted session_setup and tconx. I will do more fns over the next few days. see clistr.c for the new client side string interface. Luckily it tends to make the code smaller and neater while adding unicode support.
* Excise snprintf -> slprintf.Jeremy Allison2001-02-162-7/+8
| | | | | | | srv_samr.c: duplicate gid fix. srv_spoolss_nt.c: Merge of JF's work. uid.c: Fix for returning names when a PDC. Jeremy.
* Patch to add UnixWare ACLs from Michael Davidson <md@sco.COM>. With someJeremy Allison2001-02-151-0/+559
| | | | | | | small modifications, this code may also work on Solaris, as they are derived from the same SVR4 codebase. When the Samba Solaris box is up and running again I will test this. Jeremy.
* samba/source/nmbd/nmbd.c change remote_machine name to nmbd insteadHerb Lewis2001-02-151-5/+7
| | | | | | | | | | | | of nmb so we write to same log file that was originally created as log.nmbd samba/source/smbd/server.c change remote_machine name to smbd instead of smb so we write to same log file that was originally created as log.smbd samba/source/lib/interface.c allow binding to all interface IP addresses even if on same subnet. This allows you to specify which IP's you want in interfaces line and use bind interfaces only
* Baltic codepage fixes from Toomas Soome <tsoome@ut.ee>Tim Potter2001-02-141-0/+62
|
* It compiles for me now :-). rpc_server/srv_lsa.c - added fix to allow w2kJeremy Allison2001-02-131-6/+6
| | | | | clients to join a Samba domain - odd or even domain name length. Needs more testing. Jeremy.
* change pstrcpy() in setup_pwret() to fstrcpy() since we areGerald Carter2001-02-131-2/+2
| | | | | | | | | using fstrings. Spotted by Elrond. Thanks :-) jerry
* Merge of JohnR's changes to appliance-head, JF's changes to 2.2,Jeremy Allison2001-02-123-10/+125
| | | | | updated the POSIX_ACL code to be in sync. Jeremy.
* Merge from 2.2 - with connection fix.Jeremy Allison2001-02-031-1/+15
| | | | Jeremy.
* lib/system.c: Fix for pw caching.Jeremy Allison2001-01-311-12/+37
| | | | | | srv_samr.c: Fix for pw caching. smbd/nttrans.c: Fix to allow trans create to set ACL on open. Jeremy.
* Fix insure problems with passwd caching code.Jeremy Allison2001-01-241-6/+10
| | | | Jeremy.
* Added modification to Richard Bollinger getpw[nam|uid] cache patch. OnlyJeremy Allison2001-01-241-2/+14
| | | | | uses cache max 100 times. Jeremy.
* getpw[nam|uid] caching patch from "Richard Bollinger"Gerald Carter2001-01-241-7/+37
| | | | | | | | <rabollinger@home.com> jerry
* fixed typo in debug statementGerald Carter2001-01-241-2/+2
| | | | jerry
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-231-4/+7
| | | | | | | | | | | | | | | | | | | | source/rpc_server/srv_spoolss_nt.c - add an access check to _spoolss_deleteprinter() to stop random users and passers by from deleting printers. source/lib/messages.c - converted global msg_all struct to a local in message_send_all() function. source/include/smb.h - added a success error code to the spoolss return codes. source/include/proto.h source/param/loadparm.c source/printing/printing.c - Added new parameter "total print jobs" to limit the total number of print jobs across all queues. Currently individual queues are limited by "max print jobs".
* include/vfs.h:Jeremy Allison2001-01-231-2/+3
| | | | | | | | | | | | | 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-191-28/+119
| | | | | | | | | | | | | | | | source/lib/util_seaccess.c - added se_create_child_secdesc() function which takes a parent (container) security descriptor and creates a security descriptor which has the inheritance flags for each ACE applied. In NT a print job is a child object of a printer so deleting and pausing/resuming jobs requires a check against the child security descriptor, not the parent. The values seen in NT printer security descriptors now all fit together in a natural and elegant way which is always nice. - Removed #ifdef'ed out portion of check_ace() when the INHERIT_ONLY flag is set as the se_create_child_secdesc() function now creates a security descriptor which can be used without this hack.
* Cleanup of Get_Pwnam(). Adds debugging, cleans up the allow_changeDavid O'Neill2001-01-171-48/+45
| | | | codepath.
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-151-4/+9
| | | | | | | | | | | | | | | | | | | | | source/rpc_parse/parse_lsa.c - off by one unistr length bug in init_lsa_trans_name() source/lib/util_sid.c - resolve more BUILTIN sid values to names. source/nsswitch/wb_client.c - fix typo in debug message - set errno on error so we don't get bogus value from last failure. source/rpc_server/srv_spoolss_nt.c - add debug to track number of open printer handles for ease of tracking handle leaks in the future. source/rpc_server/srv_lsa.c - fix off-by-one string bug. This was preventing NT from displaying names for well-know SIDs in printer permissions dialog.
* removed unnecessary process_exists() call in message_send_pid()Andrew Tridgell2001-01-151-11/+0
| | | | it slows us down and doesn't gain anything
* Fixed typo with acl_set_fd() not needing an ACL_TYPE_T parameter.Jeremy Allison2001-01-111-5/+5
| | | | | 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-2/+90
| | | | | Now the debugging starts.... :-). Jeremy.
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix from John for growing messages.tdb.Jeremy Allison2001-01-111-0/+1
| | | | Jeremy.
* Codepages and stuff for Turkish language support. Contributed byTim Potter2001-01-071-0/+25
| | | | Deniz Akkus <akkus@alum.mit.edu>
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-042-5/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 -d option for rpcclient.Tim Potter2001-01-021-2/+7
|
* Removed uninitialised variable.Jeremy Allison2000-12-201-1/+0
| | | | Jeremy.
* Split the one sys_acl_free call into sys_acl_free_TYPE calls, to allowJeremy Allison2000-12-191-11/+32
| | | | | easier wrapping of non-POSIX ACL interfaces. Jeremy.
* A couple more UMR fixes.Jeremy Allison2000-12-181-2/+2
| | | | Jeremy.
* Never free anything in the rpc_parse/prs_XXX functions. Do it in the enclosingJeremy Allison2000-12-151-5/+5
| | | | | | | function. lib/util_unistr.c: Check lengths *before* reading source - prevent uninitialised memory reads. Jeremy.
* lib/util_unistr.c:Jean-François Micouleau2000-12-151-22/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | rewrote unistr2_to_ascii() to correct a bug seen on SGI boxes. rpc_parse/parse_misc.c: rpc_parse/parse_prs.c: rewrote of BUFFER5 handling to NOT byteswap when it was already in network byte order. rpc_parse/parse_samr.c: cleanup of samr_io_q_lookup_domain(), remove the over-parsing by 2 bytes. rpc_server/srv_lsa.c: UNISTR2 strings need to be NULL terminated to pleased W2K. rpc_server/srv_spoolss_nt.c: use snprintf instead of safe_strcpy as we want the string truncated at 32 chars. That should fix SUN and SGI box not able to act as printserver and the problem with joining from a W2K wks. J.F.
* Fixed memory leaks in lsa_XX calls. Fixed memory leaks in smbcacls. MergedJeremy Allison2000-12-152-11/+7
| | | | | | in fixes from appliance-head and 2.2. Fixed multiple connection.tdb open problem. Jeremy.
* Renamed parameters and variables called acl to the_acl as it conflictsTim Potter2000-12-141-6/+6
| | | | with a Solaris system call.
* Removed the special casing of SIDs in se_access_check. This is now done ↵Jeremy Allison2000-12-122-41/+45
| | | | | | | (correctly) when the NT_USER_TOKEN is *created*. Jeremy.
* Owner always has READ_CONTROL and WRITE_DAC access.Jeremy Allison2000-12-121-1/+3
| | | | Jeremy.
* code review of rpcclientGerald Carter2000-12-111-159/+140
| | | | | | | | | | o added some comments o abstracted a few code bits o cleaned up some code by removing unused code paths -- jerry
* new version of Get_Pwnam()Gerald Carter2000-12-111-52/+50
| | | | | | | | | o check the username in all lowercase o check the username as transmitted if this would be a different case o check the username in all upper case if this is a new version -- jerry
* Fixed typo causing coredump in file_lines_parse.Jeremy Allison2000-12-091-1/+1
| | | | Jeremy.
* Modified argc passed to rpc_client cmd_* functions to include argv[0].Tim Potter2000-12-081-3/+3
| | | | | Gerald, could you check to see I haven't introduced any bugs into rpcclient/cmd_spoolss.c?
* file_lines_load/file_lines_pload can now optionally convert unix_to_dos()Jeremy Allison2000-12-071-7/+14
| | | | | on read. Jeremy.
* Added better configure test for POSIX ACLs. Fixed stupid typo in sysacls.cJeremy Allison2000-12-071-1/+1
| | | | Jeremy.
* Working code to read POSIX ACLs on a Linux system using the bestbitsJeremy Allison2000-12-071-2/+49
| | | | | | | 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-0/+12
| | | | | | | | | | | 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.
* Fixed compiler warning.Tim Potter2000-12-061-1/+1
|