summaryrefslogtreecommitdiffstats
path: root/source/include
Commit message (Collapse)AuthorAgeFilesLines
...
* | Roll back the 2.2 code using talloc_realloc to the HEAD code (whichJeremy Allison2001-03-061-4/+4
| | | | | | | | | | is more efficient although less elegant). Jeremy.
* | Added a simple talloc_realloc and changed some code in spoolss to use it.Jeremy Allison2001-03-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | It works by adding a TALLOC_ALIGN_SIZE (32 byte) prefix to each talloc area, and storing the current size and back pointer to the talloc_chunk area that points to the current chunk we're in. We check if we're the last area at the end of the chunk (which we commonly are when doing a Realloc loop) and there's free space then we just adjust the length and return the same value, otherwise we talloc the new size, and then memcpy. Checked out and seems to be fine, and the maximum TALLOC size returned is 24k (although I intend to check with a 10,000 print job list output). Jeremy.
* | Move to talloc based NT forms return.Jeremy Allison2001-03-021-2/+2
| | | | | | | | Jeremy.
* | Removed unused code.Jeremy Allison2001-03-011-4/+0
| | | | | | | | Jeremy.
* | Finished conversion of spoolss to canonical format. Now to fix the alloc/freeJeremy Allison2001-02-281-49/+15
| | | | | | | | | | problem in the backend PRINT_XX structs. Jeremy.
* | More converted to canonical format. Home now - do the rest tomorrow...Jeremy Allison2001-02-281-23/+9
| | | | | | | | Jeremy.
* | Converted more to canonical format... save as I go.Jeremy Allison2001-02-281-9/+4
| | | | | | | | Jeremy.
* | Oops - forgot to check rpc_client compiled. Also did a few more spoolssJeremy Allison2001-02-281-2/+1
| | | | | | | | | | functions. Jeremy.
* | Partial conversion of SPOOLSS code to canonical format. More to follow.Jeremy Allison2001-02-281-22/+9
| | | | | | | | | | | | Once complete then the PRINTER_XX functions and structures will be converted to talloc control. Jeremy.
* | Partial move of spoolss interface to new format. All SPOOLSS_XXX structs areJeremy Allison2001-02-281-27/+10
| | | | | | | | | | talloc managed, now to move to talloc management for the PRINTER_XXX structs. Jeremy.
* | Added total memory allocated counter to talloc, so we can tell if a tallocJeremy Allison2001-02-272-0/+3
| | | | | | | | | | | | | | pool is getting bloated. Also added a talloc_zero function to return zeroed memory. Added debug in rpc_server/srv_pipe_hnd.c so we know when a talloc pool is being freed. Jeremy.
* | Separated dfs pipe into implementation and interface modules.Jeremy Allison2001-02-272-22/+27
| | | | | | | | | | | | rpc_parse/parse_dfs.c: Had to add buffer overrun checking ! HOW DID THIS GET IN HERE ! rpc_parse/parse_prs.c: Ensure prs_alloc_mem does a memset of zero before returning. Jeremy.
* | Split netlog into interface and implementation modules.Jeremy Allison2001-02-271-0/+24
| | | | | | | | Jeremy.
* | Separated lsa code into interface and implementation modules.Jeremy Allison2001-02-261-0/+11
| | | | | | | | | | rpc_server/srv_samr_nt.c: acb_info is 16 bits, not int. Jeremy.
* | Started converion of the lsa code to canonical RPC format (as srv_reg, andJeremy Allison2001-02-262-0/+21
| | | | | | | | | | srv_samr have been). Jeremy.
* | Serparated reg code into interface and implementation.Jeremy Allison2001-02-252-4/+29
| | | | | | | | Jeremy.
* | rpc_client/cli_netlogon.c: Fixed incorrect printf format.Jeremy Allison2001-02-252-0/+38
| | | | | | | | | | Adding Solaris ACL code - fixed up configure to select it. Jeremy.
* | This patch (donated by Marc Jacobsen of HP) should make Sun and HP very ↵Jeremy Allison2001-02-241-14/+45
| | | | | | | | | | | | | | | | | | | | | | happy :-). Probably Veritas too... :-). It allows Samba as a domain member to authenticate against an AS/U server such as the older HP PDC product or PD Netlink. It does this by trying a netlogon with info level 3 and then falling back to info level 2 if the PDC returns invalid info level. Jeremy.
* | Makefile.in: Build smbcacls by default.Jeremy Allison2001-02-232-1/+3
| | | | | | | | | | | | | | | | utils/smbcacls.c: Andrew's fixes from HEAD. include/rpc_secdes.h: rpc_parse/parse_sec.c: Change undoc to ptr 'cos that's what it is. lib/util_sid.c: Andrew's fixes from HEAD. Jeremy.
* | passdb/smbpass.c: do substitution of account's info.Jean-François Micouleau2001-02-231-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | rpc_parse/parse_samr.c: remove tons of prs_align(). Correctly parse the user_info_21 and 23 struct. Funny, even after 4 years, it's still incorrect ! rpc_server/srv_samr_nt.c: clean up, and remove one wrong JRA comment :-) after that most of the samr code works. The file's security tab works, usrmgr is back working. At least it doesn't dr watson anymore. J.F.
* | include/rpc_spoolss.h: Added JOB_STATUS_XXX defines.Jeremy Allison2001-02-232-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | include/smb.h: Added LPQ_xx enums to correspond with the NT JOB_STATUS_XXX. We need these to be different as we're storing LPQ_xx enums in the tdb already. rpc_server/srv_spoolss_nt.c: Don't need to return status strings as we're now returning status codes. smbd/lanman.c: Change the RAP status codes to have "RAP" in the name. printing/printing.c: Keep track of the status of a job. Allow a job to be deleted from one smbd when being submitted by another. Made logic in mutex clearer. Jeremy.
* | Removal of unused code - always a good thing :-).Jeremy Allison2001-02-211-1315/+0
| | | | | | | | Jeremy.
* | But Doctor, I had to kill the patient in order to save him....Jeremy Allison2001-02-216-327/+541
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will probably break 2.2 for a while. Do *NOT* checkout unless you like core dumps. This is the first merge of the TNG SAMR code into 2.2. It will eventually give us a wonderful PDC, but maybe painful in the short term. It had to be done however, and this touches almost every file (mostly just removing the OLD_NT_DOMAIN) stuff. I removed some SAMR functionality from rpcclient that would no longer compile. Also changed fstring to 256 bytes to better match an NT pathname. Jeremy.
* | Allow names to be looked up in the domain when acting as a PDC for W2K clients.Jeremy Allison2001-02-161-1/+0
| | | | | | | | Jeremy.
* | Expunge snprintf, *always* use slprintf. Ensure snprintf cannot be used inJeremy Allison2001-02-162-1/+28
| | | | | | | | | | Samba (in the same way we disallow sprintf). Jeremy.
* | Patch to add UnixWare ACLs from Michael Davidson <md@sco.COM>. With someJeremy Allison2001-02-151-0/+39
| | | | | | | | | | | | | | 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.
* | lib/debug.c: name clashJean-François Micouleau2001-02-101-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lib/msrpc_use.c,rpc_client/cli_spoolss.c: remove const param/loadparm.c: changed show add printer wizard to true. If you don't want the add printer wizard to display, you can't change the forms nor add/delete/update drivers from an NT box !!! printing/nt_printing.c: more checking and debug in unused code ! rpc_server/srv_spoolss_nt.c: don't save the per-user devmode and explain why. A bit long but I hope it clears confusion. smbd/process.c, smbd/server.c: picky compiler J.F.
* | include/debug.h:Jeremy Allison2001-02-092-23/+114
| | | | | | | | | | | | | | | | | | | | | | lib/debug.c: Fixes from JohnR to implement debug classes. smbd/process.c: smbd/server.c: param/loadparm.c: "max smbd processes" parameter from JohnR. rpc_parse/parse_spoolss.c: Drivername fix from JohnR. rpc_server/srv_spoolss_nt.c: Update from JF. smbd/trans2.c: Revert incorrect wildcard fix. Jeremy.
* | removed const for PRINTER_DEFAULTS* in open_printer_ex callGerald Carter2001-02-061-1/+1
| | | | | | | | | | | | | | | | | | so we can map 0x0 to PRINTER_ACCESS_USE in the access_required mask. Thought I check this in before.....oh well.... jerry
* | smbencrypt.c: rewrote decode_pw_buffer() to generate the NT and LM hashes.Jean-François Micouleau2001-02-031-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | That way the NT hash is not converted back and forth between unicode and ascii. srv_reg.c: added checks for the netlogon parameter key. Send a reply like NT4. Should fix the "unknown RPC call" error with a W2K joining a samba domain. srv_samr.c: don't check if smb_create_user() succed ot not. Explanation in the code. nttrans.c: changed checking of W2K in get_filename_transact(). added check on the SD. That fix the incorrect perms set on W2K profiles. J.F.
* | correct checking of access_required in openprinterex as talked with JohnJean-François Micouleau2001-01-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | R. and Jerry. You can only do server stuff (adding printers, changing forms, ..) if you're root or if user is in printer admin list. Printers options are grayed if you don't have the PRINTER_ADMINISTER flag in the secdesc. J.F.
* | lib/system.c: Fix for pw caching.Jeremy Allison2001-01-312-0/+5
| | | | | | | | | | | | srv_samr.c: Fix for pw caching. smbd/nttrans2.c: Allow create call to set ACLs. Jeremy.
* | Fix inspited by Alan Romeril. 50% speedup in domain logins with thisJeremy Allison2001-01-301-1/+1
| | | | | | | | | | change to default break response time of 10ms -> 0ms. Jeremy.
* | Mega-merge for fixes made in appliance-head.Jeremy Allison2001-01-271-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | nmbd/nmbd.c: smbd/server.c: Inherited signal fix from John Reilly. printing/nt_printing.c: printing/printing.c: rpc_server/srv_spoolss_nt.c: Fix for PCL drivers not being able to save printer properties. printing/printfsp.c: smbd/close.c: Fix to allow cleanup of spool files on connection drop. tdb/tdb.c: malloc fix from Tim Potter. tdb/tdbtool.c: Free list viewer from John. smbd/lanman.c: Fix to stop a buffer overrun in Win9x from corrupting it's own parameter list. Sigh.... buffer overruns are-us (MS). Jeremy.
* | Fixed "object picker can't determine if object in domain" bug seen from W2KJeremy Allison2001-01-252-9/+27
| | | | | | | | | | | | | | clients. Did this by importing Samba-TNG code that correctly handles LSA lookups. *MANY* thanks to Luke, Sander, Elrond and the rest of the TNG gang ! Jeremy
* | smbd/process.c: & type with 0xff for paranioa sake...Jeremy Allison2001-01-241-0/+1
| | | | | | | | | | | | smbd/reply.c smbd/service.c: cause all "add home service" calls to go through a winbindd aware function. Jeremy.
* | Merges from appliance-head. Added max print jobs parameter that limits totalJeremy Allison2001-01-232-0/+2
| | | | | | | | | | number of print jobs in the system. Tidyups for messages.c. Jeremy.
* | include/vfs.h:Jeremy Allison2001-01-232-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge with fixes from appliance-head.Jeremy Allison2001-01-182-2/+3
| | | | | | | | Jeremy.
* | Sync up with appliance-head.Jeremy Allison2001-01-153-15/+16
| | | | | | | | Jeremy.
* | Added configure stuff needed to compile POSIX ACL code correctly (oops :-).Jeremy Allison2001-01-131-0/+5
| | | | | | | | Jeremy.
* | sys_acl proto.Jeremy Allison2001-01-131-0/+43
| | | | | | | | Jeremy.
* | Moving over of posix_acl code into 2.2. Needs testing !Jeremy Allison2001-01-122-7/+8
| | | | | | | | Jeremy.
* | Fixes for smbcacls to allow ACL testing.Jeremy Allison2001-01-122-29/+45
| | | | | | | | Jeremy.
* | Sync up with appliance-head printer and other changes. Makes merges easier.Jeremy Allison2001-01-121-7/+9
| | | | | | | | Jeremy.
* | Added fix needed for appliances. When using winbindd - a new user mayJeremy Allison2001-01-111-1/+1
| | | | | | | | | | | | | | | | 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. Jeremy.
* | Fix from "B.V.Dean" <B.V.Dean@ukc.ac.uk> to add "dos filemode" parameterJeremy Allison2001-01-091-0/+1
| | | | | | | | | | | | 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.
* | Big merge to sync up appliance-head and 2.2.Jeremy Allison2001-01-084-16/+36
| | | | | | | | Jeremy.
* | Fixed bug found by Gerald. If a Samba server joins a domain and is setJeremy Allison2000-12-201-1/+1
| | | | | | | | | | | | | | | | 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.
* | lib/util_unistr.c: A couple more uninitialised memory read fixes.Jeremy Allison2000-12-181-0/+18
| | | | | | | | | | libsmb/cli_lsarpc.c: Merge for Tim's fixes from HEAD. Jeremy.