1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

8007 Commits

Author SHA1 Message Date
Jim McDonough
e5e7132e80 One more fix to get popt to work for some compilers...this is the downside to popt. Every option has to be in fixed storage. -
Jeremy Allison
d31d2dcd22 Turns out an Admin user shouldn't always have access on a handle.
Jeremy.
-
Jeremy Allison
39fca711a5 Fix for machines that have their time changed forward, then back. Ensure
that any cached lpq information gathered during that time doesn't
stay around for longer than 1 hour.
Jeremy.
-
Jim McDonough
4b4430f1c5 Update Makefile.in for rpcclient build on machines without libpopt or requested build of included popt. -
Andrew Tridgell
f619330082 added a tdb backup utility
when complete, this will be used to backup critical tdbs at samba
startup and possibly periodically while Samba is running so that if
tdb corruption is caused by a power failure Samba can restore from the
backup.
-
Jim McDonough
cd34897749 Convert rpcclient to use popt instead of getopt. Includes changing of got_pass from BOOL to int. Also includes long option names...anyone want those different before I update the doc? Please try this out. I've tried to test all the flags, but the more times we kick the tires... -
Andrew Tridgell
91fc5b2de5 get the right return code for batch vs exclusive oplocks -
Tim Potter
bb0ef8bc30 Cosmetic fixup for enum_printers -
Tim Potter
d9df00e2b1 Fixed a bunch of crash bugs for enumprinters at various info levels. -
Jeremy Allison
25dd73be29 Fixed delete on close semantics - preparing for share mode rewrite.
Jeremy.
-
Jeremy Allison
bda1c31da6 Added another 2 delete on close tests. Now 10. Had to fix smbd to match...
Jeremy.
-
Tim Potter
5b195f8bf1 argc == 0 is an impossible condition. -
Jeremy Allison
5ba4ba3633 Change xcopy test to use defined constants rather than magic hex
values so we can see what's going on.
Jeremy.
-
Jeremy Allison
2b3609a7dd Merge in the change to do per-handle access checks on setdata/setform etc.
Should allow the buggy spoolss code on NT to work against us.
Jeremy.
-
Tim Potter
d4d2f3bd89 Compile fixes for the pdb nisplus module. -
Tim Potter
252da94ebb Removed duplicate \n from debug message.
Small tidyups.
-
Herb Lewis
d3c593b120 fixed NBENCH test on IRIX (tridge) -
Herb Lewis
e5d80779a3 fixed the upper/lower case table generation on big-endian machines
(tridge, using Herbs console)
-
Andrew Tridgell
233e8b7d44 nicer message for --sequence when the server is disconnected -
Jim McDonough
2fdd601f2e Fix SIGSEGV on error message when trying to add a user to smbpasswd file without a unix account. -
Herb Lewis
c644ca6a66 make error codes match W2k advanced server sp2 -
Jeremy Allison
b56df25d48 Reformat preparing for changes to come...
Jeremy.
-
Jeremy Allison
439839be99 Added Herb's fix to override log level from command line.
Jeremy.
-
Andrew Tridgell
8f7bf38de1 accept the 0/0 lock but don't treat it in any sort of special way -
Andrew Tridgell
c2c8c4e713 show a progress bar during the deny tests -
Andrew Tridgell
6acd98cbb9 added -M option for minimum lock size -
Andrew Tridgell
b71a729e14 fixed NBENCH code for NT4 server ntcreatex semantics -
Jeremy Allison
509ac24525 Found the mp3 problem - it's a generic class bug w.r.t. renaming.
Added a rename torture test to illustrate the problem.
Jeremy.
-
Jeremy Allison
3bec83cbe9 Fix error return.
Jeremy.
-
Jeremy Allison
2b85d3570c Fix the NTSTATUS -> WERROR for srvsvc pipe.
Jeremy.
-
Jeremy Allison
d9cb1bf20a Mask off the aDIR on setfileinfo.
Jeremy.
-
Tim Potter
a7fa0733ba Spelling fixes. -
Tim Potter
472acd89b2 Removed unused static function. -
Tim Potter
7bb0dda8ee Fixed compiler warning about unused variables. -
Jeremy Allison
4aaa4f52b8 Canonicalise pathnames returned to Windows directory separators.
Found by Andrew at connectathon with some new tests
Jeremy.
-
Jeremy Allison
d2af6382b4 dos2unix not used in HEAD anymore.
Jeremy.
-
Herb Lewis
2d620909f9 fix for IRIX compile error -
Andrew Tridgell
97993630ad allow setting of lock range and base in locktest -
Andrew Tridgell
46b89bc997 added -k options for kerberos to smbtorture and locktest -
Tim Potter
fd172ec603 Fixed typo for winbind on solaris and hpux.
I have to say that having to link in winbind_nss_solaris.o for hpux is
slightly dodgy...
-
Andrew Tridgell
54a3f37449 make default unix charset UTF8
this means that we at least support all unicode chars by default
-
Andrew Tridgell
64c0a5c4a0 handle clock skew in getatr test -
Andrew Tridgell
f9e3b91f58 fixed -c option to NBENCH test -
Andrew Bartlett
ffa6c61f0b Some more fixes to enusre we execute the same code pathes as before this
change, just in different packets.
-
Andrew Bartlett
a9edcc1cb7 Matching header files for the last netlogon cleanup.
Andrew Bartlett
-
Andrew Bartlett
542673fcd6 This patch allows NT4 domains to trust Samba.
Simply add an account (smbpasswd -a -i REMOTEDOM) and join with 'user manager'
on the remote domain.

The only issue (at the auth level at least) that prevented NT4 domains from
trusting Samba was that our netlogon code was based on what appear to be
invalid assumptions.

The netlogon code appears to assume that the 'client name' specified
corrosponds to an account of the same form.  This doesn't apply in trusted
domains, becouse the account is in the form domain$

Now that we use the supplied account name, and no longer make our access
control checks at the challange stage (where this info is unavailable) we
match the Win2k behaviour for invalid machine logins, and don't need to know
the names of PDCs/BDCs in trusting domains.

We also kill off the 'you logged on with a machine account, use your user
account' error message, becouse the previous NT_STATUS return was compleatly
bogus.  (The ACCESS_DENIED we now return matches Win2k, and gives snane error
messages on the client).

TNG doesn't use this and has to do magic password syncs between the various
accounts for domain/pdc/bdc.  This patch feels like the much more natural way
of doing things, and has been mildly tested.

Andrew Bartlett
-
Simo Sorce
b6d62b8b2e compile fix from vance -
Andrew Bartlett
75f72f0b6a Move these inside the #ifdef to fix the compile on non-LDAPsam systems. -
Andrew Bartlett
6c5052a1a9 This is now unused -
Andrew Bartlett
cd5234d7dd This patch merges my private LDAP tree into HEAD.
The main change here is to move ldap into the new pluggable passdb subsystem
and to take the LDAP location as a 'location' paramter on the 'passdb backend'
line in the smb.conf.  This is an LDAP URL, parsed by OpenLDAP where supported,
and by hand where it isn't.

It also adds the ldap user suffix and ldap machine suffix smb.conf options,
so that machines added to the LDAP dir don't get mixed in with people.

Non-unix account support is also added.  This means that machines don't need to
be in /etc/passwd or in nss_ldap's scope.

This code has stood up well under my production environment, so it relitivly
well tested.

I'm commiting this now becouse others have shown interest in using it, and
there is no point 'hording' the code :-).

Andrew Bartlett
-