| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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".
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| | |
source/include/proto.h
- make proto
source/rpc_server/srv_spoolss_nt.c
- clean up incorrect debug statement
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
source/include/proto.h
source/include/rpc_spoolss.h
source/rpc_parse/parse_spoolss.c
source/rpc_server/srv_spoolss.c
source/rpc_server/srv_spoolss_nt.c
- speedups in printer queue enumeration - still room for
improvement. The construct_dev_mode() still creates and destroys
a printer info_2 structure every time it is called.
- fixed job->devmode memory leak
- converted printer job notification routines to use tallocated
memory rather than a fixed 2K buffer. This reduces the memory
requirements of a 4500 job queue enumeration from 90MB to about
16MB.
|
| | |
|
| |
| |
| |
| |
| |
| | |
both tested ...
More later.
|
| |
| |
| |
| |
| |
| |
| | |
- an implementation of smbc_readdir
- extensions to tree.c to show files in a second window
- changes to auth_fn to provide buffers for username, password, etc
from caller rather than callee
|
| |
| |
| |
| |
| | |
Ensure HAVE_NO_ACLS is set in configure if ACL support not selected.
Jeremy
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Now the debugging starts.... :-).
Jeremy.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| | |
source/include/proto.h
source/param/loadparm.c
source/passdb/passdb.c
source/rpc_server/srv_samr.c
- add support for "hide local users" option to HEAD.
|
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
Here is an updated one.
|
| |
| |
| |
| |
| |
| |
| |
| | |
It can now do a directory listing for workgroups, servers, and shares, and,
with a bit more effort, it will be able to list directories and files.
I also does not request a username and password for the IPC$ share, but it
should if the first attempt to connect fails.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This code handles the basic stuff and compiles and links under Linux, but
I do not know about any other operating systems. Now onto directory
listing routines, including those that list workgroups, servers, etc.
Nothing is built automatically yet, you have to make client/testsmbc to build
the library and test program. Also, no make install targets are defined for
libsmbclient.so as yet, either.
Would be good if people test on operating systems other than Linux.
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
list of structures rather than the dodgy parsing code we had before
this also gets smbw working correctly with no initial workgroup (using
name_status_find on __MSBROWSE__ returns)
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| | |
easier wrapping of non-POSIX ACL interfaces.
Jeremy.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When chaining together long lines of bloody "if" statements, which should
logically be separated, and one of them allocates memory, remember to
*free* it *WHETHER OR NOT THE IF STATEMENTS SUCCEEDED* !!!!
Yes I do consider this a bug in the coding style of Tridge, Rusty, Tim et al. :-).
I'm just pissed 'cos this took 4 hours to track down even with an insure error report
stating me in the face and also Ben Woodward looking over the code with me :-).
Jeremy.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
RPCs
|
| |
| |
| |
| |
| | |
setACL.
Jeremy.
|
| |
| |
| |
| |
| | |
from smbd rather than going through an lpq parse.
Jeremy.
|
| |
| |
| |
| | |
Jeremy.
|
| |
| |
| |
| | |
Jeremy.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
that unistrs are correctly converted from bigendian->littlendian on
unmarshalling from a bigendian client. Many thanks to Herb for tracking
this one down.
nmbd/nmbd_processlogon.c: Fix from Herb to return netlogon reply to
the correct NBT logon name (AS/U showed this was needed - NT4 does the
same).
Jeremy.
|
| |
| |
| |
| |
| | |
pipe. Reference count so we destroy on shutdown of the last open pipe.
Jeremy.
|
| |
| |
| |
| |
| |
| | |
when talking to a big-endian RPC client (AS/U on Solaris). Added rpc_unistrnXX
functions to do this.
Jeremy.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
now in pipe struct (where used) rather than user_struct.
Secured machine account password changing in srv_netlog_nt.c - ensure
that only the given machine can change its own password. May need to
free this up later for NT admin tools, but this is a fail-safe secure
position for now.
Jeremy.
|
| |
| |
| |
| | |
Jeremy.
|
| |
| |
| |
| |
| |
| | |
Jim !
Jeremy.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We were reading the endainness in the RPC header and then never propagating
it to the internal parse_structs used to parse the data.
Also removed the "align" argument to prs_init as it was *always* set to
4, and if needed can be set differently on a case by case basis.
Now ready for AS/U testing when Herb gets it set up :-).
Jeremy.
|
| |
| |
| |
| | |
Jeremy.
|
| |
| |
| |
| | |
Jeremy.
|
| |
| |
| |
| |
| |
| |
| | |
W2K clients from joining a Samba domain the "old" way (editing /etc/passwd
and adding the machine manually in smbpasswd).
Vectored the ms_fnmatch function - preparing to make this DOS client specific.
Jeremy.
|
| |
| |
| |
| | |
for details
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
passdb/passdb.c: small band aid to reply correctly to domain group RID
(dom adm, dom users, ...). that's an interim fix for usrmgr.
J.F.
I'm gonna miss my plane !
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
All policy handles will be destroyed on pipe close. No bitmap
used, and all handles allocated/deleted in the same way.
The ugly, handle specific code in srv_lsa_hnd.c has been removed,
now each handle type can store a private data field along with
a function that will free the private data on handle close.
This means the linked list of printer handles has been removed,
as all the info has been added into the pipes_struct.
The only issue was enumerating all printers across all open
pipes on a change message receipt. This was acheived by adding
an enumerate pipes function. This will be a little difficult to
move to HEAD due to the samr changes, and probably needs a little
more testing with insure.
However, even if it turns out that handles are persistent between
NT pipes in the same smbd I can fix this by transferring the handle
linked list to another pipe of the same type on handle close if this
turns out to be the case.
Jeremy.
|
| |
| |
| |
| | |
Jeremy.
|
| |
| |
| |
| | |
Jeremy.
|