1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

2151 Commits

Author SHA1 Message Date
Andrew Bartlett
3924f97eac No need for fstring manipulation here (Tcon&X), just use string pointers.
Andrew Bartlett
(This used to be commit b072bb9c8469799734507bcdffd4be29211e2610)
2002-12-01 03:16:59 +00:00
Andrew Bartlett
65643516d7 Having waited for *way* too long, this is mimir's namecache and trusted domain
cache code.

This uses gencache, mimir's new caching code that stores at text-based cache
of various data.

Mimir has done a *lot* of work on this patch, and it is finally time to
get it in CVS.

Andrew Bartlett
(This used to be commit 47f3bfe9564e7f3aff60cefaefd599e0abb30a31)
2002-11-26 11:57:30 +00:00
Andrew Tridgell
18e55a69ff a better for for using %U in smb.conf
this follows the method used for remote_machine and also fixes the
problem of anonymous connections clobbering the string
(This used to be commit 9ead4fc3c3f8b83f03c762a4dab77a64aabccbf9)
2002-11-19 23:44:24 +00:00
Jeremy Allison
cbecefb1b2 Very curious. It turns out attribute matching on truncate only matters
when opening truncate with current SYSTEM|HIDDEN -> NONE. It's fine to
truncate on open with current NONE -> SYSTEM | HIDDEN.
Jeremy.
(This used to be commit 801b87e0f7c92553dc52b44d669a1795e2b9429f)
2002-11-19 01:45:55 +00:00
Andrew Tridgell
1000b717a8 the change in the way %U is handled to use current_user has broken
some basic usages like 'include = smb.conf.%U'

This changes fixes things again, by checking for reload after we setup
current_user in tconx.
(This used to be commit d664e6b4d20d545b31910666d9cea7384fd40a73)
2002-11-18 03:11:59 +00:00
Andrew Bartlett
171f345282 Add const to PACKS()
(This used to be commit 0e87408eb0e2786589e23cf4435a0d3223cf55cc)
2002-11-15 21:27:55 +00:00
Jelmer Vernooij
2aaf85730a small patch to makesure we fallback to <xfs/xqm.h> if <linux/xqm.h> doesn't exist (e.g. in SuSE 8.1) (by metze)
(This used to be commit 5f16343e0d7c8120a7a5786097b8920a5b7d047b)
2002-11-13 21:51:08 +00:00
Jelmer Vernooij
ba7056a842 Load modules in lp_modules() after fork()
(This used to be commit 77afa4f1679c22cde88ecc5bc7ed37951c822221)
2002-11-13 19:04:17 +00:00
Jeremy Allison
250c980119 Removed global_myworkgroup, global_myname, global_myscope. Added liberal
dashes of const. This is a rather large check-in, some things may break.
It does compile though :-).
Jeremy.
(This used to be commit 82b8f749a36b42e22186297482aad2abb04fab8a)
2002-11-12 23:15:52 +00:00
Andrew Bartlett
c501ac2bfa Compleatly remove support for logfile truncation. All logs are opened for
append writes.

(blessed by jra)

Andrew Bartlett
(This used to be commit 81633064dd196c40541ecece8def51745f514646)
2002-11-08 23:05:34 +00:00
Jelmer Vernooij
4d70634685 Make append_log work again
(This used to be commit 2fd496b49f76e3b593fb60fb2523a044a3814125)
2002-11-07 21:39:51 +00:00
Jim McDonough
9df2283b0c Stop using hardcoded transact commands
(This used to be commit ec0d94b4dd8409e6bf114d013f23a52f0fc11a69)
2002-11-07 14:39:49 +00:00
Tim Potter
ea24bb2da8 Merge of get_dc_list() api change. This was slightly more intrusive
than the version in APPLIANCE so watch out for boogs.
(This used to be commit 1e054e3db654801fbb5580211529cdfdea9ed686)
2002-11-06 01:29:07 +00:00
Jeremy Allison
29546f160c Ensure can_delete returns correct error code.
Jeremy.
(This used to be commit 44db20f9f63d72c2e6e1f4ffedf72d75563369fb)
2002-11-05 22:49:54 +00:00
Jeremy Allison
6c5e0cce56 Fix to correctly return NT_STATUS_DELETE_PENDING.
Jeremy.
(This used to be commit 075987f1db4de5e21ebf205a16a847ce0b2a926e)
2002-11-05 21:46:33 +00:00
Tim Potter
ced085b0d2 Remove DRIVERFILE constant. It was removed with the old win95
printer driver stuff.
(This used to be commit cf6d2d9d9e2adbbb7a547784cb11d05ed624e410)
2002-11-05 03:05:29 +00:00
Jelmer Vernooij
5883bc73c1 Handle -p correctly
(This used to be commit b69d5fffd97890f80df6675fb71bc230aacc8234)
2002-11-04 14:50:08 +00:00
Jelmer Vernooij
7da7b4a464 Make IRIX happy
(This used to be commit aeb94bb0d7ad84b52a5f729a3e83f4fb00005771)
2002-11-04 14:08:11 +00:00
Jelmer Vernooij
670764e38c Remove obsolete function usage and some unused variables
(This used to be commit 162431a88ccb0811ae9873ce4ceda11d2f1de8b7)
2002-11-02 18:58:55 +00:00
Jelmer Vernooij
25e9b03738 Convert to popt.
Removed -o and -a options - these have been broken since 2.2 without complaints from users
(This used to be commit c8589a567b96dacc0b6c88c91b34f8211532bbfa)
2002-11-02 16:36:39 +00:00
Jeremy Allison
5593892caf Fix slowdown because of enumerating all print queues on every smbd startup.
Jeremy.
(This used to be commit d05b147fb3f32031a202cf61703dc2fd969f4617)
2002-10-31 23:41:02 +00:00
Andrew Bartlett
7c9923c9f6 Fix a nice little memory leak in our uid changing code.
Andrew Bartlett
(This used to be commit 5c4967c70dfab78733ef21e3a5eaf252a5958613)
2002-10-29 08:21:40 +00:00
Jeremy Allison
608985f7ea Fix fd leak with kernel change notify.
Jeremy.
(This used to be commit 78df2c916ae3940f0124912f99b1e0ca3914fff5)
2002-10-28 22:04:47 +00:00
Jeremy Allison
7689a9c969 First cut of new ACL mapping code from Andreas Gruenbacher <agruen@suse.de>.
This is not 100% the same as what SuSE shipped in their Samba, there is
a crash bug fix, a race condition fix, and a few logic changes I'd like to
discuss with Andreas. Added Andreas to (C) notices for posix_acls.c
Jeremy.
(This used to be commit a81d700ae9c82d4b7ea631ab7862162a2ed3d512)
2002-10-23 01:22:45 +00:00
Jeremy Allison
9b323a3c0d Fix for systems that allow more than 65536 open files per process.
Jeremy.
(This used to be commit ff537f10a0c0b6b1d9055eb776d1e8a9864e8363)
2002-10-22 22:17:06 +00:00
Gerald Carter
534220da60 merge from samba_3_0
removed the following parameters

  * postscript
  * printer driver
  * printer driver location
  * printer driver file

also removed the get_a_printer_driver_9x_compatible() function
(This used to be commit e7dd8cf903144393b1362719d75430a2ee7e5f27)
2002-10-21 20:28:11 +00:00
Volker Lendecke
5dbf435408 This moves the group mapping API into the passdb backend.
Currently this calls back to mapping.c, but we have the framework
to get the information into LDAP and the passdb.tdb (should we? I
think so..).

This has received moderate testing with net rpc vampire and
usrmgr. I found the add_groupmem segfault in add_aliasmem as
well, but that will be another checkin.

Volker
(This used to be commit f30095852fea19421ac8e25dfe9c5cd4b2206f84)
2002-10-21 19:28:56 +00:00
Andrew Tridgell
48a56c12e2 add a 'mangle prefix' option to allow people to tune the number of
characters used in the prefix for 8.3 names in the hash2
algorithm. The longer the prefix the more readable the 8.3 names will
be, but the weaker the hash.

this was added because of someone complaining that the new hashing
algorithm was unreadable but the old one was broken :)
(This used to be commit 3ca3cc838e5b957c7244b21947daddc4ee4c3099)
2002-10-21 04:30:51 +00:00
Jeremy Allison
389a16d9d5 Added new error codes. Fix up connection code to retry in the same way
that app-head does.
Jeremy.
(This used to be commit b521abd86b10573ca8f9116907c81e6deb55f049)
2002-10-17 17:10:29 +00:00
Jeremy Allison
909ac9ed0d Change default of max_xmit to match W2K. Ensure NT negprot uses it.
Jeremy.
(This used to be commit e5fbfbcc9dc995b23eb0b46c6f59b03cfe9c02b5)
2002-10-15 21:35:41 +00:00
Andrew Tridgell
5139da0bc6 fixed a crash bug on 64 bit systems. Thanks to Anton Blanchard for
finding this.
(This used to be commit 4ba8608020123a52432e5afaa914e290e4ce8cbf)
2002-10-15 05:40:24 +00:00
Andrew Bartlett
4ac9ccfde4 Nice *big* patch from metze.
The actual design change is relitivly small however:

It all goes back to jerry's 'BOOL store', added to many of the elements in a
SAM_ACCOUNT.  This ensured that smb.conf defaults did not get 'fixed' into
ldap.  This was a great win for admins, and this patch follows in the same way.

This patch extends the concept - we don't store values back into LDAP unless
they have been changed.  So if we read a value, but don't update it, or we
read a value, find it's not there and use a default, we will not update
ldap with that value.  This reduced clutter in our LDAP DB, and makes it
easier to change defaults later on.

Metze's particular problem was that when we 'write back' an unchanged value,
we would clear any muliple values in that feild.  Now he can still have his
mulitivalued 'uid' feild, without Samba changing it for *every* other
operation.

This also applies to many other attributes, and helps to eliminate a nasty
race condition.  (Time between get and set)

This patch is big, and needs more testing, but metze has tested usrmgr, and
I've fixed some pdbedit bugs, and tested domain joins, so it isn't compleatly
flawed ;-).

The same system will be introduced into the SAM code shortly, but this fixes
bugs that people were coming across in production uses of Samba 3.0/HEAD, hence
it's inclusion here.

Andrew Bartlett
(This used to be commit 7f237bde212eb188df84a5d8adb598a93fba8155)
2002-10-12 03:38:07 +00:00
Jeremy Allison
24d8333c72 Turns out with Win9x, we could occasionally return from unix_convert() given
a mangled name without a valid stat struct if the file existed. This would
then cause open_file_shared1() to erroneously think the file open was new,
thus not check for oplock break, thus causing a spurious EAGAIN reply to
the open on a file we already had kernel oplocked.... (phew - that was fun
to track down :-).
Jeremy.
(This used to be commit e23210e4732163e7f005b320235c20c814b41972)
2002-10-11 01:17:41 +00:00
Jeremy Allison
9727da3260 Fix based on Jim McDonough's code for ACL inheritance problem.
Jeremy.
(This used to be commit a6b3acfc7b98066de6f4b0b6044772a4d56795cd)
2002-10-08 00:19:56 +00:00
Jeremy Allison
c983424abb Fix from Andreas Gruenbacher <agruen@suse.de> to prevent ACL set on read-only
share.
Jeremy.
(This used to be commit 80d30dbfec03d1d1e82c9e177ff66aa44b4ea993)
2002-10-07 18:06:17 +00:00
Richard Sharpe
4506f260fb Push Steve Langasek's fix ...
(This used to be commit 0325b938f5b3d1c592da666b43c7b20dcc7ba5eb)
2002-10-05 06:50:43 +00:00
Gerald Carter
83e58265b5 merge of new client side support the Win2k LSARPC UUID in rpcbind
from APP_HEAD
(This used to be commit 38c9e4299845fd77cc8629945ce2d259489f7437)
2002-10-04 03:51:43 +00:00
Jeremy Allison
a237fb349a Added ASCII art to make this clearer.
Jeremy.
(This used to be commit 96e9ff905426f4754685a140674934cf2f6cb11c)
2002-10-03 19:04:46 +00:00
Jeremy Allison
1252fda04f Write cache bugfix from Rasmus Borup Hansen, system adm. Email: rbh@math.ku.dk
Jeremy.
(This used to be commit 971b82beb7b99a3ae692ca147cce9ce4b5bce39c)
2002-10-03 18:11:12 +00:00
Andrew Bartlett
d386b71d32 Metze claims that without this his win2k server gets horribly confused looking
for all sorts of AD things in lp_realm().  We need to get some non-Win2k
NTLMSSP and chase this up a bit, but this will do for now.

(Hmm, this might affect NTLMv2 as well)

Andrew Bartlett
(This used to be commit 0e6babc306f60e88fc28705a8d4ad112bafe92cb)
2002-09-25 12:09:56 +00:00
Andrew Bartlett
8a3bb8b36b Kill of Get_Pwnam_Modify and smb_getpwnam(). The latter assumes some things
that just don't apply any more - now that we always keep username and domain
seperate.  Also, the policy it was trying to permit is now implemented by the
auth code.

Andrew Bartlett
(This used to be commit 760c0740cad948665db4a1d462fbbd99332713ef)
2002-09-25 09:55:41 +00:00
Andrew Bartlett
2bd2b243fc Move to common user token debugging, and ensure we always print both the
NT_TOKEN and the unix credentials - as we incresingly use the NT stuff we want
to make it easy to check they don't get out of wack.

Andrew Bartlett
(This used to be commit a3882a19254811ace2f9545580c14ce3bd588095)
2002-09-25 09:34:43 +00:00
Jeremy Allison
b952ddfbe6 Merge of "profile acls" code.
Jeremy.
(This used to be commit cfd1bf250b417f3ba3ad21ff681ab282311bb7eb)
2002-09-25 05:11:25 +00:00
Jeremy Allison
e633122fae "@" is valid in NetBIOS domain names.
Jeremy.
(This used to be commit 5c4857d8e00162fc43a0f2e3a335b441bad743bd)
2002-09-20 19:09:28 +00:00
Andrew Tridgell
8ea2d8f255 change ADS negprot to match more closely the options used by w2k. This
affects the principal used and the order of SPNEGO OIDs
(This used to be commit e8ff1c0819e02a1fc7234ad0a07d5415936dfbd2)
2002-09-20 09:37:02 +00:00
Jeremy Allison
a5df564e05 Use sendfile in readbraw.
Jeremy.
(This used to be commit a77966645a976d6ae08581c2e92465c48a8e961d)
2002-09-19 18:20:38 +00:00
Jeremy Allison
7af9901fdb Added "use sendfile" per share option.
Jeremy.
(This used to be commit 28466ff42c3328e49d46f7cddfc4bb2fe462d871)
2002-09-18 20:36:50 +00:00
Jeremy Allison
8b4bafc76f We had a race condition when changing a machine acount password as we
were no longer locking the secrets entry. I saw this on a live system.
Jeremy.
(This used to be commit 660dafcbb2d1029831212a32d995891626a0344c)
2002-09-18 00:30:00 +00:00
Jeremy Allison
9bab1d0c1a Actually use sendfile if selected.
Jeremy.
(This used to be commit 5881f0a22633ed9fb73e6cd788d0751c4db6cd32)
2002-09-17 19:48:19 +00:00
Andrew Tridgell
3fefef7a72 disable stat cache when case sensitive
(This used to be commit 3401c3616b3dcb99053f89d88f8e351c986c9096)
2002-09-17 12:09:46 +00:00