1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-29 11:21:54 +03:00
Commit Graph

6975 Commits

Author SHA1 Message Date
Jim McDonough
f3df73c0cf 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.
(This used to be commit e5e7132e80)
2002-03-08 03:31:01 +00:00
Jeremy Allison
194e39b179 Turns out an Admin user shouldn't always have access on a handle.
Jeremy.
(This used to be commit d31d2dcd22)
2002-03-08 00:26:18 +00:00
Jeremy Allison
024e69da0b 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.
(This used to be commit 39fca711a5)
2002-03-07 21:51:59 +00:00
Jim McDonough
f920d9e3c5 Update Makefile.in for rpcclient build on machines without libpopt or requested build of included popt.
(This used to be commit 4b4430f1c5)
2002-03-07 19:55:35 +00:00
Andrew Tridgell
cb6c9ef475 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.
(This used to be commit f619330082)
2002-03-07 18:58:33 +00:00
Jim McDonough
6e6318525a 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...
(This used to be commit cd34897749)
2002-03-07 18:56:51 +00:00
Andrew Tridgell
39e14916e4 get the right return code for batch vs exclusive oplocks
(This used to be commit 91fc5b2de5)
2002-03-07 18:53:37 +00:00
Tim Potter
fd7cdf6da4 Cosmetic fixup for enum_printers
(This used to be commit bb0ef8bc30)
2002-03-07 04:29:13 +00:00
Tim Potter
6fbd44c77a Fixed a bunch of crash bugs for enumprinters at various info levels.
(This used to be commit d9df00e2b1)
2002-03-07 04:22:16 +00:00
Jeremy Allison
11c0e88d9e Fixed delete on close semantics - preparing for share mode rewrite.
Jeremy.
(This used to be commit 25dd73be29)
2002-03-07 04:21:12 +00:00
Jeremy Allison
c960578ba0 Added another 2 delete on close tests. Now 10. Had to fix smbd to match...
Jeremy.
(This used to be commit bda1c31da6)
2002-03-07 04:15:40 +00:00
Tim Potter
b89b7d4d12 argc == 0 is an impossible condition.
(This used to be commit 5b195f8bf1)
2002-03-07 04:03:21 +00:00
Jeremy Allison
0876fb4113 Change xcopy test to use defined constants rather than magic hex
values so we can see what's going on.
Jeremy.
(This used to be commit 5ba4ba3633)
2002-03-07 02:16:25 +00:00
Jeremy Allison
43ca6e3ef8 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.
(This used to be commit 2b3609a7dd)
2002-03-07 01:02:48 +00:00
Tim Potter
ede95f0b57 Compile fixes for the pdb nisplus module.
(This used to be commit d4d2f3bd89)
2002-03-07 00:55:43 +00:00
Tim Potter
87a3a0952c Removed duplicate \n from debug message.
Small tidyups.
(This used to be commit 252da94ebb)
2002-03-06 22:55:45 +00:00
Herb Lewis
86a9be69d3 fixed NBENCH test on IRIX (tridge)
(This used to be commit d3c593b120)
2002-03-06 21:05:26 +00:00
Herb Lewis
99c4646a19 fixed the upper/lower case table generation on big-endian machines
(tridge, using Herbs console)
(This used to be commit e5d80779a3)
2002-03-06 20:38:51 +00:00
Andrew Tridgell
8e7e1fe9f8 nicer message for --sequence when the server is disconnected
(This used to be commit 233e8b7d44)
2002-03-06 19:48:09 +00:00
Jim McDonough
37a9d2a9c2 Fix SIGSEGV on error message when trying to add a user to smbpasswd file without a unix account.
(This used to be commit 2fdd601f2e)
2002-03-06 19:14:37 +00:00
Herb Lewis
b9998ace1f make error codes match W2k advanced server sp2
(This used to be commit c644ca6a66)
2002-03-06 18:55:01 +00:00
Jeremy Allison
9361708b20 Reformat preparing for changes to come...
Jeremy.
(This used to be commit b56df25d48)
2002-03-06 03:50:09 +00:00
Jeremy Allison
095b903325 Added Herb's fix to override log level from command line.
Jeremy.
(This used to be commit 439839be99)
2002-03-05 21:37:50 +00:00
Andrew Tridgell
d160b35240 accept the 0/0 lock but don't treat it in any sort of special way
(This used to be commit 8f7bf38de1)
2002-03-05 19:54:45 +00:00
Andrew Tridgell
457112e9e4 show a progress bar during the deny tests
(This used to be commit c2c8c4e713)
2002-03-05 19:52:14 +00:00
Andrew Tridgell
7f35a045fc added -M option for minimum lock size
(This used to be commit 6acd98cbb9)
2002-03-05 19:51:37 +00:00
Andrew Tridgell
ced46b906b fixed NBENCH code for NT4 server ntcreatex semantics
(This used to be commit b71a729e14)
2002-03-05 19:51:05 +00:00
Jeremy Allison
a4ff0924d6 Found the mp3 problem - it's a generic class bug w.r.t. renaming.
Added a rename torture test to illustrate the problem.
Jeremy.
(This used to be commit 509ac24525)
2002-03-05 19:45:16 +00:00
Jeremy Allison
7b07ecb750 Fix error return.
Jeremy.
(This used to be commit 3bec83cbe9)
2002-03-05 02:54:02 +00:00
Jeremy Allison
aa78524943 Fix the NTSTATUS -> WERROR for srvsvc pipe.
Jeremy.
(This used to be commit 2b85d3570c)
2002-03-05 02:12:00 +00:00
Jeremy Allison
5d1db25abd Mask off the aDIR on setfileinfo.
Jeremy.
(This used to be commit d9cb1bf20a)
2002-03-05 01:43:50 +00:00
Tim Potter
308b222ffd Spelling fixes.
(This used to be commit a7fa0733ba)
2002-03-05 00:53:46 +00:00
Tim Potter
db4dd16d8d Removed unused static function.
(This used to be commit 472acd89b2)
2002-03-05 00:46:41 +00:00
Tim Potter
1d5fb7865d Fixed compiler warning about unused variables.
(This used to be commit 7bb0dda8ee)
2002-03-05 00:41:01 +00:00
Jeremy Allison
076e879ac1 Canonicalise pathnames returned to Windows directory separators.
Found by Andrew at connectathon with some new tests
Jeremy.
(This used to be commit 4aaa4f52b8)
2002-03-04 22:56:37 +00:00
Jeremy Allison
a2b95edf7f dos2unix not used in HEAD anymore.
Jeremy.
(This used to be commit d2af6382b4)
2002-03-04 18:06:54 +00:00
Herb Lewis
23e6fc25e2 fix for IRIX compile error
(This used to be commit 2d620909f9)
2002-03-04 01:07:02 +00:00
Andrew Tridgell
1315c8c4cf allow setting of lock range and base in locktest
(This used to be commit 97993630ad)
2002-03-04 00:35:28 +00:00
Andrew Tridgell
c40d0d5783 added -k options for kerberos to smbtorture and locktest
(This used to be commit 46b89bc997)
2002-03-04 00:24:24 +00:00
Tim Potter
52b3390ca6 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...
(This used to be commit fd172ec603)
2002-03-03 22:49:08 +00:00
Andrew Tridgell
14b1ec7ccd make default unix charset UTF8
this means that we at least support all unicode chars by default
(This used to be commit 54a3f37449)
2002-03-03 21:38:56 +00:00
Andrew Tridgell
7e9553c168 handle clock skew in getatr test
(This used to be commit 64c0a5c4a0)
2002-03-03 20:47:44 +00:00
Andrew Tridgell
a59893fc4b fixed -c option to NBENCH test
(This used to be commit f9e3b91f58)
2002-03-03 20:31:35 +00:00
Andrew Bartlett
309818b2a1 Some more fixes to enusre we execute the same code pathes as before this
change, just in different packets.
(This used to be commit ffa6c61f0b)
2002-03-03 04:25:29 +00:00
Andrew Bartlett
670f78f501 Matching header files for the last netlogon cleanup.
Andrew Bartlett
(This used to be commit a9edcc1cb7)
2002-03-03 04:01:49 +00:00
Andrew Bartlett
4941e64fe0 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
(This used to be commit 542673fcd6)
2002-03-03 03:56:53 +00:00
Simo Sorce
81f66464b0 compile fix from vance
(This used to be commit b6d62b8b2e)
2002-03-02 19:06:15 +00:00
Andrew Bartlett
f0765f4efe Move these inside the #ifdef to fix the compile on non-LDAPsam systems.
(This used to be commit 75f72f0b6a)
2002-03-02 12:30:06 +00:00
Andrew Bartlett
72c49d2c09 This is now unused
(This used to be commit 6c5052a1a9)
2002-03-02 10:54:56 +00:00
Andrew Bartlett
2ef9be9a99 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
(This used to be commit cd5234d7dd)
2002-03-02 10:16:28 +00:00