| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| |
| | |
is more efficient although less elegant).
Jeremy.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
Jeremy.
|
| |
| |
| |
| | |
Jeremy.
|
| |
| |
| |
| |
| | |
problem in the backend PRINT_XX structs.
Jeremy.
|
| |
| |
| |
| | |
Jeremy.
|
| |
| |
| |
| | |
Jeremy.
|
| |
| |
| |
| |
| | |
functions.
Jeremy.
|
| |
| |
| |
| |
| |
| | |
Once complete then the PRINTER_XX functions and structures will be converted
to talloc control.
Jeremy.
|
| |
| |
| |
| |
| | |
talloc managed, now to move to talloc management for the PRINTER_XXX structs.
Jeremy.
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
Jeremy.
|
| |
| |
| |
| |
| | |
rpc_server/srv_samr_nt.c: acb_info is 16 bits, not int.
Jeremy.
|
| |
| |
| |
| |
| | |
srv_samr have been).
Jeremy.
|
| |
| |
| |
| | |
Jeremy.
|
| |
| |
| |
| |
| | |
Adding Solaris ACL code - fixed up configure to select it.
Jeremy.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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/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.
|
| |
| |
| |
| | |
Jeremy.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
Jeremy.
|
| |
| |
| |
| |
| | |
Samba (in the same way we disallow sprintf).
Jeremy.
|
| |
| |
| |
| |
| |
| |
| | |
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/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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
so we can map 0x0 to PRINTER_ACCESS_USE in the access_required mask.
Thought I check this in before.....oh well....
jerry
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| | |
srv_samr.c: Fix for pw caching.
smbd/nttrans2.c: Allow create call to set ACLs.
Jeremy.
|
| |
| |
| |
| |
| | |
change to default break response time of 10ms -> 0ms.
Jeremy.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| | |
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/reply.c smbd/service.c: cause all "add home service" calls to go through a
winbindd aware function.
Jeremy.
|
| |
| |
| |
| |
| | |
number of print jobs in the system. Tidyups for messages.c.
Jeremy.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
Jeremy.
|
| |
| |
| |
| | |
Jeremy.
|
| |
| |
| |
| | |
Jeremy.
|
| |
| |
| |
| | |
Jeremy.
|
| |
| |
| |
| | |
Jeremy.
|
| |
| |
| |
| | |
Jeremy.
|
| |
| |
| |
| | |
Jeremy.
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
Jeremy.
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| | |
libsmb/cli_lsarpc.c: Merge for Tim's fixes from HEAD.
Jeremy.
|