1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

2000 Commits

Author SHA1 Message Date
Andrew Bartlett
47f3bfe956 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
-
Andrew Tridgell
9ead4fc3c3 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
-
Jeremy Allison
801b87e0f7 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.
-
Andrew Tridgell
d664e6b4d2 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.
-
Andrew Bartlett
0e87408eb0 Add const to PACKS() -
Jelmer Vernooij
5f16343e0d 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) -
Jelmer Vernooij
77afa4f167 Load modules in lp_modules() after fork() -
Jeremy Allison
82b8f749a3 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.
-
Andrew Bartlett
81633064dd Compleatly remove support for logfile truncation. All logs are opened for
append writes.

(blessed by jra)

Andrew Bartlett
-
Jelmer Vernooij
2fd496b49f Make append_log work again -
Jim McDonough
ec0d94b4dd Stop using hardcoded transact commands -
Tim Potter
1e054e3db6 Merge of get_dc_list() api change. This was slightly more intrusive
than the version in APPLIANCE so watch out for boogs.
-
Jeremy Allison
44db20f9f6 Ensure can_delete returns correct error code.
Jeremy.
-
Jeremy Allison
075987f1db Fix to correctly return NT_STATUS_DELETE_PENDING.
Jeremy.
-
Tim Potter
cf6d2d9d9e Remove DRIVERFILE constant. It was removed with the old win95
printer driver stuff.
-
Jelmer Vernooij
b69d5fffd9 Handle -p correctly -
Jelmer Vernooij
aeb94bb0d7 Make IRIX happy -
Jelmer Vernooij
162431a88c Remove obsolete function usage and some unused variables -
Jelmer Vernooij
c8589a567b Convert to popt.
Removed -o and -a options - these have been broken since 2.2 without complaints from users
-
Jeremy Allison
d05b147fb3 Fix slowdown because of enumerating all print queues on every smbd startup.
Jeremy.
-
Andrew Bartlett
5c4967c70d Fix a nice little memory leak in our uid changing code.
Andrew Bartlett
-
Jeremy Allison
78df2c916a Fix fd leak with kernel change notify.
Jeremy.
-
Jeremy Allison
a81d700ae9 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.
-
Jeremy Allison
ff537f10a0 Fix for systems that allow more than 65536 open files per process.
Jeremy.
-
Gerald Carter
e7dd8cf903 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
-
Volker Lendecke
f30095852f 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
-
Andrew Tridgell
3ca3cc838e 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 :)
-
Jeremy Allison
b521abd86b Added new error codes. Fix up connection code to retry in the same way
that app-head does.
Jeremy.
-
Jeremy Allison
e5fbfbcc9d Change default of max_xmit to match W2K. Ensure NT negprot uses it.
Jeremy.
-
Andrew Tridgell
4ba8608020 fixed a crash bug on 64 bit systems. Thanks to Anton Blanchard for
finding this.
-
Andrew Bartlett
7f237bde21 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
-
Jeremy Allison
e23210e473 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.
-
Jeremy Allison
a6b3acfc7b Fix based on Jim McDonough's code for ACL inheritance problem.
Jeremy.
-
Jeremy Allison
80d30dbfec Fix from Andreas Gruenbacher <agruen@suse.de> to prevent ACL set on read-only
share.
Jeremy.
-
Richard Sharpe
0325b938f5 Push Steve Langasek's fix ... -
Gerald Carter
38c9e42998 merge of new client side support the Win2k LSARPC UUID in rpcbind
from APP_HEAD
-
Jeremy Allison
96e9ff9054 Added ASCII art to make this clearer.
Jeremy.
-
Jeremy Allison
971b82beb7 Write cache bugfix from Rasmus Borup Hansen, system adm. Email: rbh@math.ku.dk
Jeremy.
-
Andrew Bartlett
0e6babc306 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
-
Andrew Bartlett
760c0740ca 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
-
Andrew Bartlett
a3882a1925 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
-
Jeremy Allison
cfd1bf250b Merge of "profile acls" code.
Jeremy.
-
Jeremy Allison
5c4857d8e0 "@" is valid in NetBIOS domain names.
Jeremy.
-
Andrew Tridgell
e8ff1c0819 change ADS negprot to match more closely the options used by w2k. This
affects the principal used and the order of SPNEGO OIDs
-
Jeremy Allison
a77966645a Use sendfile in readbraw.
Jeremy.
-
Jeremy Allison
28466ff42c Added "use sendfile" per share option.
Jeremy.
-
Jeremy Allison
660dafcbb2 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.
-
Jeremy Allison
5881f0a226 Actually use sendfile if selected.
Jeremy.
-
Andrew Tridgell
3401c3616b disable stat cache when case sensitive -
Jeremy Allison
f956a4d29d Attempt to make broken Linux sendfile work.... Still in progress.
Jeremy.
-