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

15720 Commits

Author SHA1 Message Date
Gerald Carter
659d6a2b61 BUG 692: patch from SATOH Fumiyasu <fumiya@miraclelinux.com> to correct truncation of share names and workgroup names
(This used to be commit 822e31d841e720d48f4feeec673b75575caa8fac)
2004-03-01 17:40:40 +00:00
Gerald Carter
1fe6e29637 BUG 1147; bad pointer case in get_stored_queue_info() causing seg fault
(This used to be commit 91af1fb73a2e86a343c085128aaed2ef0c26de57)
2004-03-01 17:03:05 +00:00
Volker Lendecke
c4877403a0 net_rpc.c: Don't complain if [add|del]mem was successful.
srv_samr_nt.c: Correctly report that a user is not member of an alias.

Volker
(This used to be commit 540f625036871e7facd094fce49d7317f65f4ffd)
2004-02-29 16:34:33 +00:00
Volker Lendecke
efd357b732 Print an informative error message if trying to add/remove members from
something not a group.

Volker
(This used to be commit 73f26de5c0b6a6b9b78c22016986f3106bce7bfa)
2004-02-29 12:47:45 +00:00
Volker Lendecke
a92de03d9e Add 'net rpc group [add|del]mem' for domain groups and aliases.
Volker
(This used to be commit e597420421e085b17dcdc062c5900518d0d4e685)
2004-02-28 18:41:16 +00:00
Volker Lendecke
0e2de3d27e Fix my fix to net rpc group list. We can certainly have more than a single
set of groups.

Volker
(This used to be commit e77fe4a77a6b0b8d92014edb073b36d01a1a5169)
2004-02-28 08:18:09 +00:00
Jeremy Allison
3fb52e5cc0 Can't set allocation size on directories, return correct error code on
fail if file exists and target is a directory. gentest.
Jeremy.
(This used to be commit f4a7ea6dc2b9f379a9c735670a49ac63818754c7)
2004-02-28 01:53:30 +00:00
Jeremy Allison
3c1d00d12a More gentest fixes. Fix up regression in IS_NAME_VALID and renames.
Jeremy.
(This used to be commit 367f5c3bc27aafb04f7589b3d4ac5b58189909fb)
2004-02-28 00:56:42 +00:00
Rafal Szczesniak
c0b23c6c8c Added copyrights I forgot about looong ago...
rafal
(This used to be commit 33d1e2dd63e3dbf592a666ae48bc013a8198d008)
2004-02-27 22:15:38 +00:00
Tim Potter
9d3529105e Fix for writable printerdata problem - bugzilla #1112.
(This used to be commit a05b9f0cc55300e2a25c87849a4417afea0cd867)
2004-02-26 23:04:11 +00:00
Volker Lendecke
e1190848a1 That const was one too many
(This used to be commit 005d92d57ea912b68dd107152d478fae2162511a)
2004-02-26 14:34:44 +00:00
Volker Lendecke
d9819ec090 Implement 'net groupmap set' and 'net groupmap cleanup'.
I was rather annoyed by the net groupmap syntax, I could never get it
right.

net groupmap set "domain admins" domadm

creates a mapping,

net groupmap set "domain admins" -C "Comment" -N "newntname"

should also do what you expect. I'd like to have some feedback on the usability
of this.

net groupmap cleanup

solves a problem I've had two times now: Our SID changed, and a user's primary
group was mapped to a SID that is not ours. net groupmap cleanup removes all
mappings that are not from our domain sid.

Volker
(This used to be commit eb4d4faff8c14e999f414ca5b6e8c25a558859c8)
2004-02-26 11:29:56 +00:00
Volker Lendecke
e692b991d1 And another little const
(This used to be commit f6bb3304fc5ef298a921b9ee5ad2f6444b0e72bc)
2004-02-26 11:07:06 +00:00
Volker Lendecke
0689a2630d Apply some const
Volker
(This used to be commit 0b29d83d33153dc0e49406efa6735b6664d88ce7)
2004-02-26 10:55:43 +00:00
Steve French
a3425dad72 Fixes to minor security bug pointed out by AB in the mount helper
(This used to be commit b83802c5a14800554d30c32c12ae3a86e3136bdf)
2004-02-26 06:42:51 +00:00
Andrew Tridgell
79d5739893 fixed compilation with --enable-dmalloc
the macro redefinition of free() means we cannot have a structure
element called "free"
(This used to be commit d2d653a1a6db9d0407e99affb317a0045e56168a)
2004-02-26 02:11:31 +00:00
Jeremy Allison
863c784ef4 Merging Richard's rename test.
Jeremy.
(This used to be commit 5646b6c989c6f13fe1149cf24bf8af87fa95b759)
2004-02-26 01:33:35 +00:00
Jeremy Allison
fa81d1d7e7 Interesting fact found by IFSTEST /t LockOverlappedTest...
Even if it's our own lock context, we need to wait here as
there may be an unlock on the way.
So I removed a "&& !my_lock_ctx" from the following
if statement.

if ((lock_timeout != 0) && lp_blocking_locks(SNUM(conn)) && ERROR_WAS_LOCK_DENIED(status)) {

Jeremy.
(This used to be commit 3f35e3975f1c46daad1456bc82163acd049d7be8)
2004-02-26 01:31:10 +00:00
Andrew Bartlett
9e2a098a0a Fix bug in previous global_sam_sid() commit. I broke the 'read from
MACHINE.SID' file functionality.

Also, before we print out the results of 'net getlocalsid' and 'net
getdomainsid', ensure we have tried to read that file, or have
generated one.

Andrew Bartlett
(This used to be commit 191b43159e7358541be9a3deac8c447885145442)
2004-02-25 23:12:29 +00:00
Andrew Bartlett
56bd63b1cd I *hate* global variables...
OK, what was happening here was that we would invalidate global_sam_sid
when we set the sid into secrets.tdb, to force a re-read.

The problem was, we would do *two* writes into the TDB, and the second one
(in the PDC/BDC case) would be of a NULL pointer.  This caused smbd startups
to fail, on a blank TDB.

By using a local variable in the pdb_generate_sam_sid() code, we avoid this
particular trap.

I've also added better debugging for the case where this all matters, which
is particularly for LDAP, where it finds out a domain SID from the sambaDomain
object.

Andrew Bartlett
(This used to be commit 86ad04d26d3065a99b08afaaf2914968a9e701c5)
2004-02-25 22:01:02 +00:00
Jeremy Allison
fd6b9c02b9 Fixup strange rename error case (gentest).
Jeremy.
(This used to be commit d448fb801e175e11cfc0118325043eef836103f0)
2004-02-25 21:37:22 +00:00
Jim McDonough
af6f7254a9 Do the query part of the previous fix...reset time and duration are set in minutes, not seconds. Works from usrmgr.
(This used to be commit 98833a82facb0bc25d9ba6f4d4c1200627e98d6d)
2004-02-25 20:02:47 +00:00
Jim McDonough
8ccdcb3f1c reset time and duration are set in minutes, not seconds. Works from usrmgr.
(This used to be commit 700049d9efefc7f8952cc60bc46ba8aa790a28ba)
2004-02-25 15:02:55 +00:00
Jeremy Allison
a45d29049b Figured out a new flags bit with gentest and ethereal....
Jeremy.
(This used to be commit b4b684f1155b1abccb69cca7bca9819625dbfead)
2004-02-25 02:15:34 +00:00
Jeremy Allison
1d9f07735c More gentest fun :-). NB. I'm not fixing OpenX breakage 'cos if you look
at what W2K3 accepts here it's COMPLETELY BROKEN ! :-).
Jeremy.
(This used to be commit 5107f6ee70a9300678ccb7b3c812e23ddf795c22)
2004-02-25 01:35:14 +00:00
Jeremy Allison
01cb68643c More gentest fixes.
Jeremy.
(This used to be commit d34785194cbd7132fc3ca1f4d5561c2eee6009ab)
2004-02-25 00:48:35 +00:00
Volker Lendecke
f934f5d7df Add 'net rpc group add'. For this parse_samr.c had to be changed: The
group_info4 in set_dom_group_info also has the level in the record
itself. This seems not to be an align. Tested with NT4 usrmgr.exe. It can
still create a domain group on a samba machine.

Volker
(This used to be commit 76c75bb8a7ad2a2e719dbbe997abf8aefe2fbbb4)
2004-02-24 18:00:41 +00:00
Volker Lendecke
6d3e45579e Remove unused variable.
Volker
(This used to be commit eece7ff000a9589d56130e93a6105ad1052e9a14)
2004-02-24 17:28:17 +00:00
Volker Lendecke
2afb1b60d7 'net idmap restore' is too useful to be left broken :-)
Set the HWM values correctly after having manipulated the tdb.

Volker
(This used to be commit b1eba2188b1be183f37219a722903adc14b91369)
2004-02-24 15:45:10 +00:00
Jeremy Allison
f96e84c682 Ensure '.' and '..' don't match in delete requests.
Jeremy.
(This used to be commit 1b0d54170a2e3e61fc9bdedec6b10c8b7728a395)
2004-02-24 01:46:24 +00:00
Jeremy Allison
5447f1f467 More gentest error fixups.
Jeremy.
(This used to be commit 00f71fc8361919b87b62389ada8bd9a73f9f98b5)
2004-02-24 00:55:05 +00:00
Jeremy Allison
69058407ef Fixup bad-path error found by gentest.
Jeremy.
(This used to be commit 63d47f336464080e20e68f21d826e82786b9719e)
2004-02-24 00:38:39 +00:00
Jeremy Allison
b88f446352 Added NTrename SMB (0xA5) - how did we miss this.... ?
Jeremy.
(This used to be commit dfd7d1c2b7b577a084a94926abfce82c91f20b7e)
2004-02-24 00:06:08 +00:00
Jeremy Allison
13dd3e60bd Fixup correct timeout values for blocking lock timeouts (tested at connectathon
by Herb).
Jeremy.
(This used to be commit b38b3a554221a234127c740e6432048e69b7f5a3)
2004-02-24 00:03:18 +00:00
Andrew Bartlett
06549b8886 Found by Fabien Chevalier <fabien.chevalier@supelec.fr> and
JustFillBug <mozbugbox@yahoo.com.au> on the Samba lists - a 'max
password age' of zero should be considered as 'never expire'.

For the timebeing we just set it like -1, but we might revisit this
for closer-to-ms behaviour.

Andrew Bartlett
(This used to be commit 9ffc490fce215dcaed8ebfc1db85f5017a692ca4)
2004-02-23 21:09:09 +00:00
Jeremy Allison
aa4abfb3b5 Fix "unable to initialize" bug when smbd hasn't been run with
new system and a user is being added via pdbedit/smbpasswd.
Found at Connectathon setup.
Jeremy.
(This used to be commit f9c7a42e895f50e15d2f5079bfb2cb389fdf2df4)
2004-02-23 20:12:31 +00:00
Jim McDonough
24df38dbc6 Janitor for tpot...bugzilla #1098, msleep already exists on aix
(This used to be commit 4319df7fdc2d878c509381923cc1db4d731620ba)
2004-02-23 02:54:03 +00:00
Jim McDonough
401959b7d7 Add bad password count/time attributes
(This used to be commit 003318939f7e476f5f2a5f345e8a81a228fc89a7)
2004-02-23 02:47:33 +00:00
Jim McDonough
b9c35e961d Add bad password count/time attributes
(This used to be commit 184bef8413b17a0e42d1c5bce3d08ae1533818ca)
2004-02-22 20:25:43 +00:00
Jim McDonough
ee5dd175e5 Add calls to password lockout functions. Should now work against tdbsam only.
(This used to be commit 3e8a9c3584ff2a3c2e120c97569676ac45ec8e59)
2004-02-21 17:41:28 +00:00
Tim Potter
37d0cb0b70 printf -> d_printf
Bugzilla #1066.
(This used to be commit 2285ec9737d7d1767e60cf43c3a55f10643371be)
2004-02-21 00:28:48 +00:00
Jeremy Allison
ef8f827449 Make SMB_FILE_ACCESS_INFORMATION call work correctly.
Jeremy.
(This used to be commit 0ea0ada6c609e1bb0fb4aace24e1beb7197495b5)
2004-02-20 23:19:39 +00:00
Jeremy Allison
7d7849b18a Make us bug-for-bug compatible with W2K3 - to get delete on close semantics
on an initial open the desired_access field *must* contain DELETE_ACCESS,
simply having it map from a GENERIC_ALL won't do. Fixes delete on close test.
Jeremy.
(This used to be commit 5c6f8b1053fd1f170fbb76640649653f8aa80f18)
2004-02-20 22:45:53 +00:00
Jim McDonough
9264194340 handle both 0 and -1 as disabling reset count and lockout duration
(This used to be commit 84fe24e64ee405bb25878c1e5fdf50592eb75f73)
2004-02-20 16:00:25 +00:00
Jim McDonough
4a7d90424f Make default lockout duration and reset count time 30 minutes, to match windows, and also be valid (0 was invalid)
(This used to be commit 7ff42fffb2b207aea1dba306c914c7e09994d608)
2004-02-20 15:59:05 +00:00
Gerald Carter
8adb394ee6 just say no to crack
(This used to be commit 66be4492aade625417a6cd727bbe8c6bfb224368)
2004-02-20 15:52:14 +00:00
Gerald Carter
11bf157469 <attr/xattr.h> & <sys/xattr.h> are mutually exclusive it seems; fix build on SuSE 8.2
(This used to be commit 34e6c5f8f3829e9ff6dd3f1377170fb150bfcec1)
2004-02-20 15:50:18 +00:00
Jeremy Allison
1bfc09c51c Fixup correct (as per W2K3) returns for lookupsids as well as lookupnames.
Inspired by Volkers patch.
Jeremy.
(This used to be commit a47127e90e7d0928b772ba45bd843eeeacc9ef8a)
2004-02-19 23:00:01 +00:00
Gerald Carter
95bc32e93c sys/xattr.h merge from HEAD
(This used to be commit 798dd7299e3ba5cd7e829f48bb42eb9cbfc71dd4)
2004-02-19 22:17:54 +00:00
Jim McDonough
5fc9dd0be6 Enable checking/resetting of account lockout and bad password based on policy
(This used to be commit bd2e55399c21707d40199e4b519daefd897aadc7)
2004-02-19 21:40:22 +00:00