| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
exist for printer. Rather than using pid for suffix, use a 16 byte random
string. Created generate_random_str() function in genrand.c. Still needs
more testing but this is the way to go.
Jeremy.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Thanks
to Andrew for all this code. Fixed extra line in lib/sysacls.c that broke
XFS ACL code.
Jeremy.
|
| | |
| | |
| | |
| | | |
Jeremy.
|
| | |
| | |
| | |
| | | |
Jeremy.
|
| | |
| | |
| | |
| | | |
Jeremy.
|
| | |
| | |
| | |
| | | |
This is more of a note to myself. In not used anywhere yet.
|
| | |
| | |
| | |
| | | |
Jeremy.
|
| | |
| | |
| | |
| | | |
Jeremy.
|
| | |
| | |
| | |
| | | |
Jeremy.
|
| | |
| | |
| | |
| | |
| | |
| | | |
delete share command". Implemented "delete" - more work to come on add and
change.
Jeremy.
|
| | |
| | |
| | |
| | |
| | | |
internals to support server manager.
Jeremy
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
function (same for NET_SHARE_DELETE and NET_SHARE_SET) we will be able to manage
the shares section in smb.conf via NT server manager........
This should enhance the friendliness of Samba in NT-only shops by an order of
magnitude.
Jeremy.
|
| | |
| | |
| | |
| | |
| | | |
in the path though.... I'm looking into it.
Jeremy.
|
| | |
| | |
| | |
| | | |
Jeremy.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
I worked out and added the per-share get/set RPCs for security descriptors.
Currently this code returns Everyone, full access on get and permission denied
on set, but backending this with a tdb and checking it on tconX (to give full NT
semantics for security on shares) is now an excersise for the reader... :-).
Jeremy.
|
| | |
| | |
| | |
| | | |
Jeremy.
|
| | |
| | |
| | |
| | | |
Jeremy.
|
| | |
| | |
| | |
| | | |
Jeremy.
|
| | |
| | |
| | |
| | | |
Jeremy.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
rpc_server/srv_lsa_hnd.c: Remove back pointer from policy handle list as the pipe
that opened the handle may have been closed. We were dereferencing
into something that had been closed.
rpc_parse/parse_spoolss.c: Sync up with Gerald's changes in 2.2.
lib/replace.c: Don't do proto on setlinebuf as it differs between systems.
Jeremy.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
replacement
for setlinebuf which apparantly doesn't exist on HPUX 11.
include/byteorder.h:
rpc_parse/parse_prs.c:
Ding Dong the witch is dead ! :-). Ok, I'm happy 'cos I've finally deleted
all the *HORRIBLE* DBG_RW_XXX and RW_XXX macros from include/byteorder.h.
They were macros that included macros that had conditional macros included.
No one understood them (they were the cause of most of the bigendian issue
bugs). Finally, I went into parse_prs.c and inlined all of that stuff with
regular function calls. They're understandable, they're easy to edit and
they don't include macros !
JF - please look at the one comment I added (JF PLEASE CHECK). I have
tested this partly with IRIX (a bigendian system) running with AS/U on
a Solaris box in SGI's lab, and I've also confirmed these new changes
work with W2K (vmware) but there may be the odd bug lurking. Herb, if
you could re-checkout and test again with this code that would help.
Extra. Fixed bug spotted by the sharp eyes of JF - big endian unicode
packet would cause a early truncate of string parsing as we were checking for a char *
0, not a uint16 * 0.
Jeremy.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
added srvstr_push_ascii() and srvstr_pull_ascii() as convenience
routines to replace the current usage of strncpy() like fns
for packet pull/push. We need to do this in *lots* of places
in Samba in order to get our codepage handling right
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
when copying to a full disk problem, I discovered that we were not allowing
the delete on close flag to be set properly, this led to other things, and
after investigation of the proper delete on close semantics and their relationship
to the file_share_delete flag I discovered there were some cases where we
weren't doing the deny modes properly. And this after only 5 years working
on them..... :-) :-).
So here's the latest attempt. I realised the delete on close flag needs to
be set across all smbds with a dev/ino pair open - in addition, the delete
on close flag, allow share delete and delete access requested all need to
be stored in the share mode tdb.
The "delete_on_close" entry in the fsp struct is now redundant and should
really be removed. This may also mean we can get rid of the "iterate_fsp"
calls that I didn't like adding in the first place. Whilst doing this patch,
I also discovered we needed to do the se_map_generic() call for file opens
and POSIX ACL mapping, so I added that also.
This code, although ugly, now passes the deny mode torture tests plus the
delete on close tests I added. I do need to add one more multiple connection
delete on close test to make sure I got the semantics exactly right, plus we
should also (as Andrew suggested) move to random testing here.
The good news is that NT should now correctly delete the file on disk
full error when copying to a disk :-).
Jeremy.
|
| | |
| | |
| | |
| | | |
Jeremy.
|
| | |
| | |
| | |
| | |
| | | |
Used in smbtorture mods. Re-cast cli_nt_create() as a call to cli_nt_create_full().
Jeremy.
|
| | |
| | |
| | |
| | | |
(merge from 2.2)
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
problems with smbd failing to create a log file. If we can't create a log
file keep using the old file.
Jeremy.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
smb.conf
file in utf8.
Jeremy.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
advantages:
- memory is trackable by insure
- a very simple talloc_realloc() is possible (I've added it)
It is slower than the previous talloc code, but I don't think that
is going to be a problem. If it is a problem then there are
some ways we can make it faster but I'd like to leave those
until we have tested this a bit and can see what performance
problems might show up in profiling
|
| | |
| | |
| | |
| | | |
Jeremy.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
First one adds a new info level into the lanman printing and an ioctl to the trans2 code.
Andrew - this uses ASCII only. It looks ok to me but please check !
Second one adds a parameter "os2 driver map" that allows OS/2 driver names to be mapped.
Jeremy.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
include/proto.h: Fix missing (void) in proto.
rpc_server/srv_samr_nt.c: Fix user private group problem by filtering out groups that
clash with users.
smbd/posix_acls.c: Ensure default ACE's are sensible.
utils/pdbedit.c: Fix from Simo Sorce.
Jeremy.
|
| | |
| | |
| | |
| | | |
J.F.
|
| | |
| | |
| | |
| | | |
Jeremy.
|
| | |
| | |
| | |
| | |
| | |
| | | |
this allows users to disable the cross-subnet browse extensions that I
added to Samba a couple of years ago. This may be useful for getting
rid of empty workgroups.
|
| | |
| | |
| | |
| | |
| | | |
is still valid before setting prev and next to null.
Jeremy.
|
| | |
| | |
| | |
| | |
| | |
| | | |
lookup_name was expecting to be able to write to the string. Changed
lookup_name to use const.
Jeremy.
|
| | |
| | |
| | |
| | | |
doco in the include file.
|
| | |
| | |
| | |
| | |
| | | |
statcache.c: Head sync.
Jeremy.
|
| | |
| | |
| | |
| | |
| | | |
RPC. Need to fill in the code to actually delete the driver information
from the TDB.
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
no effect.
Jeremy.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
about it to stop account lockouts with "security=server" mode. Sorry for
the delay David.
Jeremy.
|