1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-05 20:58:40 +03:00

5334 Commits

Author SHA1 Message Date
Jeremy Allison
9dd77c4fb1 Restrict dfs add and dfs remote to root at Shirish's advice.
Jeremy.
-
Jeremy Allison
8ecf6c3367 Merged in missing break fix from Shirish.
Jeremy.
-
Jeremy Allison
7cdd879546 Fixed missing HAVE_STDARG_H.
Jeremy.
-
Jeremy Allison
ab916199f5 Fixed --with-automount compile error.
Jeremy.
-
Jeremy Allison
e404e00199 Added HAVE_STDARG_H to tdbutil.c
Jeremy.
-
Jeremy Allison
3c4c649951 passdb/pass_check.c: Ensure second check is done only if given username is all in caps.
rpc_server/srv_srvsvc_nt.c: Added "CONFIGFILE" arg to scripts so path to smb.conf is given.
Jeremy.
-
Jeremy Allison
ecd00e258c Added JohnT and Andrew Bartlett's PAM changes.
Jeremy.
-
Jeremy Allison
ae9eda5c3c Use message system to notify when smb.conf is updated.
Jeremy.
-
Gerald Carter
442605c6bc looking towards abstracting the passdb and uidmapping interfaces.
This is more of a note to myself.  In not used anywhere yet.
-
Jeremy Allison
7ee448d832 Fixup warnings about extra ';' from SGI compiler.
Jeremy.
-
Jeremy Allison
6b75d79c4b Removed "read only" arg as it isn't useful.
Jeremy.
-
Jeremy Allison
b4cbdcb644 Tidy up return codes for server manager.
Jeremy.
-
Jeremy Allison
aae44ee41f Get/Set of SD's on shares now works. Correctly ensure scripts exist before
calling.
Jeremy.
-
Jeremy Allison
04976c32f3 Set SD's for share. Added level 1501. Map GENERIC file bits to specific bits.
Jeremy.
-
Jeremy Allison
2f34e144c5 Ensure Everyone/All access is mapped correctly to file generic perms to allow
anonymous IPC access.
Jeremy.
-
Jeremy Allison
036b1a8b09 Added set/get SD's on shares. Check before tcon.
Jeremy.
-
Jeremy Allison
61723c18f9 HEAD specific slprintf paranoia fixes.
Jeremy.
-
Jeremy Allison
94747b4639 Got "medieval on our ass" about adding the -1 to slprintf.
Jeremy.
-
Jeremy Allison
d786191bc1 Added per-share security tdb. Tidied up many slprintfs (need -1 on length).
Jeremy.
-
Jeremy Allison
bdec63bedb Fixed up the "add" command - although not SD's yet. Now for the SD db and
the "change" command.
Jeremy.
-
Jeremy Allison
2e6b1759e1 Added 3 params to manipulate shares. "add share command/change share command/
delete share command". Implemented "delete" - more work to come on add and
change.
Jeremy.
-
Jeremy Allison
f50ea32dd0 Fix from Ed Boraas for not core dumping when out of connection structs.
Jeremy.
-
Herb Lewis
2097298565 keep cflags from being duplicated if defined in environment -
Jeremy Allison
3512ba1f65 Implemented stub function for NET_SHARE_DELETE. Now to implement the real
internals to support server manager.
Jeremy
-
Jeremy Allison
a2cd5f2ba1 Added stub function for NET_SHARE_ADD. Once this is implemented to call a hook
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.
-
Jeremy Allison
abf436153a If we can't open the username map file, at least print the strerror.
Jeremy.
-
Jeremy Allison
cb66e78c18 NT sucks ! :-). We have to prefix the UNIX path with a C: in order to pass the
server manager tests :-). Ensure we don't set a return level on set as
server manager barfs....
Jeremy.
-
Jeremy Allison
a152c2c59a We can now use server manager to look at Samba shares. NT still expects a ":"
in the path though.... I'm looking into it.
Jeremy.
-
Jeremy Allison
ffd9bf1922 Setup syslog correctly in swat. Patch from Andrew Bartlett.
Jeremy.
-
Jeremy Allison
ffa800e980 Fix from Michael Davidson <md@sco.COM> to merge Solaris and UnixWare ACLs.
Jeremy.
-
Jeremy Allison
bd2fe239db Fix from "Romeril, Alan" <a.romeril@ic.ac.uk> to get his NFS quota code
to work on Solaris 2.6.
Jeremy.
-
Jeremy Allison
1751a6316a Tidy up tmp file handling.
Jeremy.
-
Jeremy Allison
3bfd155ba7 I know we're supposed to be feature frozen, but I couldn't resist this... :-).
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 Allison
6808ec0d47 Fix for broken RelientUNIX.
Jeremy.
-
Jeremy Allison
06dee89860 Missed forms update - my CVS mistake.
Jeremy.
-
Andrew Tridgell
d747ab8ab3 test commit for jeremy -
Jeremy Allison
63ce316d87 Sync up with new NT forms code.
Jeremy.
-
Jeremy Allison
0865366f6b Added XFS ACLs on Linux. Code from John Trostel <jtrostel@connex.com>.
Jeremy.
-
Jeremy Allison
2f2365e938 IRIX ACLs from Herb.
Jeremy.
-
Jeremy Allison
887ef3e12d include/ntdomain.h:
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.
-
Jeremy Allison
181d41572c Integrated solaris nfs quota code from Alan Romeril <a.romeril@ic.ac.uk>
Jeremy
-
Jeremy Allison
13765eca71 configure configure.in include/config.h.in lib/replace.c: Added test and 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.
-
Andrew Tridgell
8b0e3679a6 started converting some of the only-ascii code to use srvstr_*
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
-
Jeremy Allison
f952380c5d utils/torture.c: Added one more delete on close test.
smbd/notify_kernel.c: This code was wrong I believe. It was structured to only
return a changenotify event on being called from timeout processing (t != 0).
The kernel changenotify events should fire on *asynchronous* processing (EINTR
return from select caused by the realtime signal delivery) with t == 0.
Reported by Juergen Hasch (Hasch@t-online.de).
ANDREW PLEASE CHECK THIS !
Currently the hash style changenotify is done on async processing as well
as timeout processing. As this is expensive we may want to revisit doing this
and maybe set it to fire only on timeout processing.
Jeremy.
-
Jeremy Allison
fe38692643 Fixed extern ref typo for file generic perms. 2am coding strikes again :-).
Jeremy.
-
Jeremy Allison
51987684bd This is a big, rather ugly patch. Whilst investigating the files not truncated
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 Allison
54960b9c8d Added one more test - just to make sure flag can be unset.
Jeremy.
-
Jeremy Allison
a55ed1a91d Expanded delete on close test to 6 cases. I now understand the semantics of
this and the FILE_SHARE_DELETE flag exactly. The bad news is it means our
share mode handling is broken (again :-).
Jeremy.
-
Jeremy Allison
cb5963af0e Changed to using GENERIC_XX constants instead of hex values to make
delete test explicit.
Jeremy.
-
Jeremy Allison
b0266fe0a8 Added delete on close test that has allowed me to determine how w2k
behaves in this situation.
Jeremy.
-