samba.git
16 years agoMention wb_delgrpmem fix
Volker Lendecke [Sun, 7 Mar 2004 08:18:35 +0000 (08:18 +0000)]
Mention wb_delgrpmem fix
(This used to be commit 97a6a67b34201dda7715f5f23b1b9af3bcf3705f)

16 years agoThis might not be used a lot and might not survive for long, but at least it
Volker Lendecke [Sun, 7 Mar 2004 08:16:10 +0000 (08:16 +0000)]
This might not be used a lot and might not survive for long, but at least it
should work as expected :-)

Fix wb_delgrpmember.

Volker
(This used to be commit 9fc0025d12d17b0c68956af481a836eebc32e675)

16 years agoFix typo.
Tim Potter [Sun, 7 Mar 2004 01:14:11 +0000 (01:14 +0000)]
Fix typo.
(This used to be commit e6e8b59f53d5ac618dcec13a46c356f0abe5950a)

16 years agoMerge from HEAD.
Tim Potter [Sun, 7 Mar 2004 00:50:37 +0000 (00:50 +0000)]
Merge from HEAD.
(This used to be commit 89f3173f4f4e9a16f24b25f550065b50577f3f4c)

16 years agoMerge from HEAD.
Tim Potter [Sun, 7 Mar 2004 00:09:36 +0000 (00:09 +0000)]
Merge from HEAD.
(This used to be commit 1bba071126b46032c97154fbf77242e15bcc5fa3)

16 years agoSeveral mb tidyups - getting ready to address the XXX_sub function.
Jeremy Allison [Fri, 5 Mar 2004 22:32:45 +0000 (22:32 +0000)]
Several mb tidyups - getting ready to address the XXX_sub function.
Jeremy.
(This used to be commit 92c3ae3458177ec7f721598311a8ad04b2db5138)

16 years agoBUG 488: fix the 'show client in col 1' button and corrctely enumerate active connections
Gerald Carter [Fri, 5 Mar 2004 18:37:01 +0000 (18:37 +0000)]
BUG 488: fix the 'show client in col 1' button and corrctely enumerate active connections
(This used to be commit d77d38560d1bdc10a58408f449fbc320275bcacc)

16 years agofix compiler warning
Gerald Carter [Fri, 5 Mar 2004 17:39:38 +0000 (17:39 +0000)]
fix compiler warning
(This used to be commit df19b6066e1f4e200adcd80f9526aa1a68509580)

16 years agoAdd -O (for writing downloaded files to standard out) based on patch by
Jelmer Vernooij [Fri, 5 Mar 2004 17:17:31 +0000 (17:17 +0000)]
Add -O (for writing downloaded files to standard out) based on patch by
Bas van Sisseren <bas@dnd.utwente.nl>
(This used to be commit cc164e5afb0f6100bde547674b3de88b7e45f31f)

16 years agobring WHATSNEW back up to date
Gerald Carter [Fri, 5 Mar 2004 15:37:08 +0000 (15:37 +0000)]
bring WHATSNEW back up to date
(This used to be commit 737b3a5a9286777b0ea38bed5f1e20a3c3859304)

16 years agoall_string_sub() is broken as it doesn't handle mb chars correctly (and
Jeremy Allison [Fri, 5 Mar 2004 01:37:12 +0000 (01:37 +0000)]
all_string_sub() is broken as it doesn't handle mb chars correctly (and
so breaks when substitution '/' and '\'). It's used by unix_clean_name(),
which is used by reduce_name, which is used by check_name() (phew!).
Now that we know all filenames passed to check_name() are in a "good"
format (no double slashes, all '\\' chars translated to '/' etc.) due
to the new check_path_syntax() we can avoid calling reduce_name unless
widelinks are denied. After this check-in I can fix all_string_sub() to
handle mb chars correctly as it won't be in the direct path in the
main path handling code.
Jeremy.
(This used to be commit 6080186fc4c2e7c59dd12a177539bfb77eb525cb)

16 years agoFix my breakage of NT pipes from the previous patch (sorry). Use the
Jeremy Allison [Thu, 4 Mar 2004 18:55:37 +0000 (18:55 +0000)]
Fix my breakage of NT pipes from the previous patch (sorry). Use the
original srvstr_pull_buf() function to get the pipename not srvstr_get_path().
Jeremy.
(This used to be commit 2a263873fd6bbbf03a32136981e433dc43374da9)

16 years agoBUG 1015: patch from jmcd to fix statfs redeclaration of statfs struct on ppc
Gerald Carter [Thu, 4 Mar 2004 18:34:45 +0000 (18:34 +0000)]
BUG 1015: patch from jmcd to fix statfs redeclaration of statfs struct on ppc
(This used to be commit fafb243278cd33d696487e477d4685bb79e2e357)

16 years agoBUG 1080: fix declaration of SMB_BIG_UINT
Gerald Carter [Thu, 4 Mar 2004 18:17:01 +0000 (18:17 +0000)]
BUG 1080: fix declaration of SMB_BIG_UINT
(This used to be commit 810bc1e2a02c6ab11ef00bf67b49929c596bee33)

16 years agoThere's a specific error message NT_STATUS_ALIAS_EXISTS.
Volker Lendecke [Thu, 4 Mar 2004 17:57:21 +0000 (17:57 +0000)]
There's a specific error message NT_STATUS_ALIAS_EXISTS.
(This used to be commit f0d99f318c67852ac5bf9b606faa115ad36a5f80)

16 years agoAnother typo, sorry for samba-cvs spam :-)
Volker Lendecke [Thu, 4 Mar 2004 17:51:29 +0000 (17:51 +0000)]
Another typo, sorry for samba-cvs spam :-)
(This used to be commit 3e39d157cb94928a036f0497a9e255f6dbad1771)

16 years agoFix typo.
Volker Lendecke [Thu, 4 Mar 2004 17:47:14 +0000 (17:47 +0000)]
Fix typo.

Volker
(This used to be commit 8ba5bdc330114efbc86c851b71c58ac91ada7f31)

16 years agoFix build farm, older compilers won't let you declare variables
Jim McDonough [Thu, 4 Mar 2004 16:24:13 +0000 (16:24 +0000)]
Fix build farm, older compilers won't let you declare variables
right in the middle of the code.

I just love catching jra on stuff like this, after all the crap
I've done. :-)
(This used to be commit dc7dc5175847243d821dd33c1678af1b785dfaf7)

16 years agoBUG 848: don't create winbind local users/groups that already exist in the tdb
Gerald Carter [Thu, 4 Mar 2004 15:59:11 +0000 (15:59 +0000)]
BUG 848: don't create winbind local users/groups that already exist in the tdb
(This used to be commit 89da3df07b7d90ad19852046d0533673cff8fdc6)

16 years agoanother fix for bug 761; don't default to bsd printing on linux
Gerald Carter [Thu, 4 Mar 2004 15:18:36 +0000 (15:18 +0000)]
another fix for bug 761; don't default to bsd printing on linux
(This used to be commit d58139d64f37fe9fec34492d7857257d9ad4a808)

16 years agoAdded client "hardlink" commant to test doing NT rename with hard links.
Jeremy Allison [Wed, 3 Mar 2004 23:14:23 +0000 (23:14 +0000)]
Added client "hardlink" commant to test doing NT rename with hard links.
Added hardlink_internals() code - UNIX extensions now use this too.
Jeremy.
(This used to be commit aad6eb2240393931940c982e25a981ce32264f38)

16 years agoUse a common function to parse all pathnames from the wire. This allows
Jeremy Allison [Wed, 3 Mar 2004 20:55:59 +0000 (20:55 +0000)]
Use a common function to parse all pathnames from the wire. This allows
much closer emulation of Win2k3 error return codes.
Jeremy.
(This used to be commit c9f31fafeda6ad79e590276f36e03ecd2e93f818)

16 years agoset log file to smbd.log for interaction with logrotate (BUG 503)
Gerald Carter [Wed, 3 Mar 2004 17:56:29 +0000 (17:56 +0000)]
set log file to smbd.log for interaction with logrotate (BUG 503)
(This used to be commit c800b5c2f99c27dd0a3f526dfdac0980412e1694)

16 years agomore usrmgr fixes: display lockout timers in minutes, not seconds, for samr 2e
Jim McDonough [Wed, 3 Mar 2004 17:44:00 +0000 (17:44 +0000)]
more usrmgr fixes: display lockout timers in minutes, not seconds, for samr 2e
(This used to be commit 832674c099a3ff9bb747dba6235e47d40a930abd)

16 years agoquick for for usrmgr. unknown_6 is really max dimension of logon hours array. need...
Jim McDonough [Wed, 3 Mar 2004 04:23:43 +0000 (04:23 +0000)]
quick for for usrmgr.  unknown_6 is really max dimension of logon hours array.  need to update passdb for this.
(This used to be commit fbf909926b7d7b1e92ebeba44469392296c35c1a)

16 years agoMerge fields_present function from HEAD. Now, a field will not be updated
Jim McDonough [Tue, 2 Mar 2004 21:02:09 +0000 (21:02 +0000)]
Merge fields_present function from HEAD.  Now, a field will not be updated
on setuserinfo levels which include this field, unless the corresponding
bit (defined in passdb.h) is turned on.  Without this, newer versions
of usrmgr break us pretty bad.
(This used to be commit 840340bd96d3c6693b451bc61e155b7b426271e4)

16 years agoBUG 1129: patch from shiro@miraclelinux.com (Shiro Yamada) to install image files...
Gerald Carter [Tue, 2 Mar 2004 18:10:12 +0000 (18:10 +0000)]
BUG 1129: patch from shiro@miraclelinux.com (Shiro Yamada) to install image files for SWAT
(This used to be commit a01a7fdbd93997185322d1faaa76c408f0ed2b1d)

16 years agoJanitorial duty for tpot - --with-fhs fix.
Jeremy Allison [Tue, 2 Mar 2004 18:07:06 +0000 (18:07 +0000)]
Janitorial duty for tpot - --with-fhs fix.
Jeremy.
(This used to be commit 64eded518b32a242880b5e85c9032bc212c3f1fb)

16 years agofix typo for callback bit
Jim McDonough [Tue, 2 Mar 2004 18:04:16 +0000 (18:04 +0000)]
fix typo for callback bit
(This used to be commit 31a15164ffb3f551a5f7006e637036dc3b59bd22)

16 years agoallow the 'printing' parameter to be set on a per share basis.
Gerald Carter [Tue, 2 Mar 2004 14:26:45 +0000 (14:26 +0000)]
allow the 'printing' parameter to be set on a per share basis.
The problem was that the current_printif struct was set during
print_backend_init() based on the 'printcap name'.  So you could
not use cups and then override the setting for a specific printer
by setting 'printing = bsd' (a common setup for pdf generation
print services.

There is a subtle change in behavior in that the print
interface functions are selecting on the basis of lp_printing()
and not lp_printcap_name(), but the new behavior seems more
intuitive IMHO.
(This used to be commit 14de9c065787bd1675021a6cd6555f81ea965f17)

16 years agoBUG 761: read the config file before initialized default values for printing options
Gerald Carter [Tue, 2 Mar 2004 04:09:39 +0000 (04:09 +0000)]
BUG 761: read the config file before initialized default values for printing options
(This used to be commit d358f72974ce49bf2007c9b3b7314caa5897b4c1)

16 years agoBUG 692: patch from SATOH Fumiyasu <fumiya@miraclelinux.com> to correct truncation...
Gerald Carter [Mon, 1 Mar 2004 17:40:40 +0000 (17:40 +0000)]
BUG 692: patch from SATOH Fumiyasu <fumiya@miraclelinux.com> to correct truncation of share names and workgroup names
(This used to be commit 822e31d841e720d48f4feeec673b75575caa8fac)

16 years agoBUG 1147; bad pointer case in get_stored_queue_info() causing seg fault
Gerald Carter [Mon, 1 Mar 2004 17:03:05 +0000 (17:03 +0000)]
BUG 1147; bad pointer case in get_stored_queue_info() causing seg fault
(This used to be commit 91af1fb73a2e86a343c085128aaed2ef0c26de57)

16 years agonet_rpc.c: Don't complain if [add|del]mem was successful.
Volker Lendecke [Sun, 29 Feb 2004 16:34:33 +0000 (16:34 +0000)]
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)

16 years agoPrint an informative error message if trying to add/remove members from
Volker Lendecke [Sun, 29 Feb 2004 12:47:45 +0000 (12:47 +0000)]
Print an informative error message if trying to add/remove members from
something not a group.

Volker
(This used to be commit 73f26de5c0b6a6b9b78c22016986f3106bce7bfa)

16 years agoAdd 'net rpc group [add|del]mem' for domain groups and aliases.
Volker Lendecke [Sat, 28 Feb 2004 18:41:16 +0000 (18:41 +0000)]
Add 'net rpc group [add|del]mem' for domain groups and aliases.

Volker
(This used to be commit e597420421e085b17dcdc062c5900518d0d4e685)

16 years agoFix my fix to net rpc group list. We can certainly have more than a single
Volker Lendecke [Sat, 28 Feb 2004 08:18:09 +0000 (08:18 +0000)]
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)

16 years agoCan't set allocation size on directories, return correct error code on
Jeremy Allison [Sat, 28 Feb 2004 01:53:30 +0000 (01:53 +0000)]
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)

16 years agoMore gentest fixes. Fix up regression in IS_NAME_VALID and renames.
Jeremy Allison [Sat, 28 Feb 2004 00:56:42 +0000 (00:56 +0000)]
More gentest fixes. Fix up regression in IS_NAME_VALID and renames.
Jeremy.
(This used to be commit 367f5c3bc27aafb04f7589b3d4ac5b58189909fb)

16 years agoAdded copyrights I forgot about looong ago...
Rafal Szczesniak [Fri, 27 Feb 2004 22:15:38 +0000 (22:15 +0000)]
Added copyrights I forgot about looong ago...

rafal
(This used to be commit 33d1e2dd63e3dbf592a666ae48bc013a8198d008)

16 years agoFix for writable printerdata problem - bugzilla #1112.
Tim Potter [Thu, 26 Feb 2004 23:04:11 +0000 (23:04 +0000)]
Fix for writable printerdata problem - bugzilla #1112.
(This used to be commit a05b9f0cc55300e2a25c87849a4417afea0cd867)

16 years agoThat const was one too many
Volker Lendecke [Thu, 26 Feb 2004 14:34:44 +0000 (14:34 +0000)]
That const was one too many
(This used to be commit 005d92d57ea912b68dd107152d478fae2162511a)

16 years agoImplement 'net groupmap set' and 'net groupmap cleanup'.
Volker Lendecke [Thu, 26 Feb 2004 11:29:56 +0000 (11:29 +0000)]
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)

16 years agoAnd another little const
Volker Lendecke [Thu, 26 Feb 2004 11:07:06 +0000 (11:07 +0000)]
And another little const
(This used to be commit f6bb3304fc5ef298a921b9ee5ad2f6444b0e72bc)

16 years agoApply some const
Volker Lendecke [Thu, 26 Feb 2004 10:55:43 +0000 (10:55 +0000)]
Apply some const

Volker
(This used to be commit 0b29d83d33153dc0e49406efa6735b6664d88ce7)

16 years agoFixes to minor security bug pointed out by AB in the mount helper
Steve French [Thu, 26 Feb 2004 06:42:51 +0000 (06:42 +0000)]
Fixes to minor security bug pointed out by AB in the mount helper
(This used to be commit b83802c5a14800554d30c32c12ae3a86e3136bdf)

16 years agofixed compilation with --enable-dmalloc
Andrew Tridgell [Thu, 26 Feb 2004 02:11:31 +0000 (02:11 +0000)]
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)

16 years agoMerging Richard's rename test.
Jeremy Allison [Thu, 26 Feb 2004 01:33:35 +0000 (01:33 +0000)]
Merging Richard's rename test.
Jeremy.
(This used to be commit 5646b6c989c6f13fe1149cf24bf8af87fa95b759)

16 years agoInteresting fact found by IFSTEST /t LockOverlappedTest...
Jeremy Allison [Thu, 26 Feb 2004 01:31:10 +0000 (01:31 +0000)]
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)

16 years agoFix bug in previous global_sam_sid() commit. I broke the 'read from
Andrew Bartlett [Wed, 25 Feb 2004 23:12:29 +0000 (23:12 +0000)]
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)

16 years agoI *hate* global variables...
Andrew Bartlett [Wed, 25 Feb 2004 22:01:02 +0000 (22:01 +0000)]
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)

16 years agoFixup strange rename error case (gentest).
Jeremy Allison [Wed, 25 Feb 2004 21:37:22 +0000 (21:37 +0000)]
Fixup strange rename error case (gentest).
Jeremy.
(This used to be commit d448fb801e175e11cfc0118325043eef836103f0)

16 years agoDo the query part of the previous fix...reset time and duration are set in minutes...
Jim McDonough [Wed, 25 Feb 2004 20:02:47 +0000 (20:02 +0000)]
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)

16 years agoreset time and duration are set in minutes, not seconds. Works from usrmgr.
Jim McDonough [Wed, 25 Feb 2004 15:02:55 +0000 (15:02 +0000)]
reset time and duration are set in minutes, not seconds.  Works from usrmgr.
(This used to be commit 700049d9efefc7f8952cc60bc46ba8aa790a28ba)

16 years agoFigured out a new flags bit with gentest and ethereal....
Jeremy Allison [Wed, 25 Feb 2004 02:15:34 +0000 (02:15 +0000)]
Figured out a new flags bit with gentest and ethereal....
Jeremy.
(This used to be commit b4b684f1155b1abccb69cca7bca9819625dbfead)

16 years agoMore gentest fun :-). NB. I'm not fixing OpenX breakage 'cos if you look
Jeremy Allison [Wed, 25 Feb 2004 01:35:14 +0000 (01:35 +0000)]
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)

16 years agoMore gentest fixes.
Jeremy Allison [Wed, 25 Feb 2004 00:48:35 +0000 (00:48 +0000)]
More gentest fixes.
Jeremy.
(This used to be commit d34785194cbd7132fc3ca1f4d5561c2eee6009ab)

16 years agoAdd 'net rpc group add'. For this parse_samr.c had to be changed: The
Volker Lendecke [Tue, 24 Feb 2004 18:00:41 +0000 (18:00 +0000)]
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)

16 years agoRemove unused variable.
Volker Lendecke [Tue, 24 Feb 2004 17:28:17 +0000 (17:28 +0000)]
Remove unused variable.

Volker
(This used to be commit eece7ff000a9589d56130e93a6105ad1052e9a14)

16 years ago'net idmap restore' is too useful to be left broken :-)
Volker Lendecke [Tue, 24 Feb 2004 15:45:10 +0000 (15:45 +0000)]
'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)

16 years agoEnsure '.' and '..' don't match in delete requests.
Jeremy Allison [Tue, 24 Feb 2004 01:46:24 +0000 (01:46 +0000)]
Ensure '.' and '..' don't match in delete requests.
Jeremy.
(This used to be commit 1b0d54170a2e3e61fc9bdedec6b10c8b7728a395)

16 years agoMore gentest error fixups.
Jeremy Allison [Tue, 24 Feb 2004 00:55:05 +0000 (00:55 +0000)]
More gentest error fixups.
Jeremy.
(This used to be commit 00f71fc8361919b87b62389ada8bd9a73f9f98b5)

16 years agoFixup bad-path error found by gentest.
Jeremy Allison [Tue, 24 Feb 2004 00:38:39 +0000 (00:38 +0000)]
Fixup bad-path error found by gentest.
Jeremy.
(This used to be commit 63d47f336464080e20e68f21d826e82786b9719e)

16 years agoAdded NTrename SMB (0xA5) - how did we miss this.... ?
Jeremy Allison [Tue, 24 Feb 2004 00:06:08 +0000 (00:06 +0000)]
Added NTrename SMB (0xA5) - how did we miss this.... ?
Jeremy.
(This used to be commit dfd7d1c2b7b577a084a94926abfce82c91f20b7e)

16 years agoFixup correct timeout values for blocking lock timeouts (tested at connectathon
Jeremy Allison [Tue, 24 Feb 2004 00:03:18 +0000 (00:03 +0000)]
Fixup correct timeout values for blocking lock timeouts (tested at connectathon
by Herb).
Jeremy.
(This used to be commit b38b3a554221a234127c740e6432048e69b7f5a3)

16 years agoFound by Fabien Chevalier <fabien.chevalier@supelec.fr> and
Andrew Bartlett [Mon, 23 Feb 2004 21:09:09 +0000 (21:09 +0000)]
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)

16 years agoFix "unable to initialize" bug when smbd hasn't been run with
Jeremy Allison [Mon, 23 Feb 2004 20:12:31 +0000 (20:12 +0000)]
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)

16 years agoJanitor for tpot...bugzilla #1098, msleep already exists on aix
Jim McDonough [Mon, 23 Feb 2004 02:54:03 +0000 (02:54 +0000)]
Janitor for tpot...bugzilla #1098, msleep already exists on aix
(This used to be commit 4319df7fdc2d878c509381923cc1db4d731620ba)

16 years agoAdd bad password count/time attributes
Jim McDonough [Mon, 23 Feb 2004 02:47:33 +0000 (02:47 +0000)]
Add bad password count/time attributes
(This used to be commit 003318939f7e476f5f2a5f345e8a81a228fc89a7)

16 years agoAdd bad password count/time attributes
Jim McDonough [Sun, 22 Feb 2004 20:25:43 +0000 (20:25 +0000)]
Add bad password count/time attributes
(This used to be commit 184bef8413b17a0e42d1c5bce3d08ae1533818ca)

16 years agoAdd calls to password lockout functions. Should now work against tdbsam only.
Jim McDonough [Sat, 21 Feb 2004 17:41:28 +0000 (17:41 +0000)]
Add calls to password lockout functions.  Should now work against tdbsam only.
(This used to be commit 3e8a9c3584ff2a3c2e120c97569676ac45ec8e59)

16 years agoprintf -> d_printf
Tim Potter [Sat, 21 Feb 2004 00:28:48 +0000 (00:28 +0000)]
printf -> d_printf

Bugzilla #1066.
(This used to be commit 2285ec9737d7d1767e60cf43c3a55f10643371be)

16 years agoMake SMB_FILE_ACCESS_INFORMATION call work correctly.
Jeremy Allison [Fri, 20 Feb 2004 23:19:39 +0000 (23:19 +0000)]
Make SMB_FILE_ACCESS_INFORMATION call work correctly.
Jeremy.
(This used to be commit 0ea0ada6c609e1bb0fb4aace24e1beb7197495b5)

16 years agoMake us bug-for-bug compatible with W2K3 - to get delete on close semantics
Jeremy Allison [Fri, 20 Feb 2004 22:45:53 +0000 (22:45 +0000)]
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)

16 years agohandle both 0 and -1 as disabling reset count and lockout duration
Jim McDonough [Fri, 20 Feb 2004 16:00:25 +0000 (16:00 +0000)]
handle both 0 and -1 as disabling reset count and lockout duration
(This used to be commit 84fe24e64ee405bb25878c1e5fdf50592eb75f73)

16 years agoMake default lockout duration and reset count time 30 minutes, to match windows,...
Jim McDonough [Fri, 20 Feb 2004 15:59:05 +0000 (15:59 +0000)]
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)

16 years agojust say no to crack
Gerald Carter [Fri, 20 Feb 2004 15:52:14 +0000 (15:52 +0000)]
just say no to crack
(This used to be commit 66be4492aade625417a6cd727bbe8c6bfb224368)

16 years ago<attr/xattr.h> & <sys/xattr.h> are mutually exclusive it seems; fix build on SuSE 8.2
Gerald Carter [Fri, 20 Feb 2004 15:50:18 +0000 (15:50 +0000)]
<attr/xattr.h> & <sys/xattr.h> are mutually exclusive it seems; fix build on SuSE 8.2
(This used to be commit 34e6c5f8f3829e9ff6dd3f1377170fb150bfcec1)

16 years agoFixup correct (as per W2K3) returns for lookupsids as well as lookupnames.
Jeremy Allison [Thu, 19 Feb 2004 23:00:01 +0000 (23:00 +0000)]
Fixup correct (as per W2K3) returns for lookupsids as well as lookupnames.
Inspired by Volkers patch.
Jeremy.
(This used to be commit a47127e90e7d0928b772ba45bd843eeeacc9ef8a)

16 years agosys/xattr.h merge from HEAD
Gerald Carter [Thu, 19 Feb 2004 22:17:54 +0000 (22:17 +0000)]
sys/xattr.h merge from HEAD
(This used to be commit 798dd7299e3ba5cd7e829f48bb42eb9cbfc71dd4)

16 years agoEnable checking/resetting of account lockout and bad password based on policy
Jim McDonough [Thu, 19 Feb 2004 21:40:22 +0000 (21:40 +0000)]
Enable checking/resetting of account lockout and bad password based on policy
(This used to be commit bd2e55399c21707d40199e4b519daefd897aadc7)

16 years agoClean up bad pw count and autolock flag update fn()s
Jim McDonough [Thu, 19 Feb 2004 21:37:24 +0000 (21:37 +0000)]
Clean up bad pw count and autolock flag update fn()s
(This used to be commit 9a79f9fbcb43085e419dbccd670a54256d01cb4b)

16 years agoAdd bad pw count and autolock flag update fn()s
Jim McDonough [Thu, 19 Feb 2004 18:35:43 +0000 (18:35 +0000)]
Add bad pw count and autolock flag update fn()s
(This used to be commit 600fcd534b6e101b6a12774946b0e9814c6f54a8)

16 years agomerging some fixes from the release branch; more to come later
Gerald Carter [Thu, 19 Feb 2004 17:01:06 +0000 (17:01 +0000)]
merging some fixes from the release branch; more to come later
(This used to be commit 7769a0d33cda0049d32a8a8339c3d4739d6d3604)

16 years agoAdd bad password reset and display of bad password count/time
Jim McDonough [Thu, 19 Feb 2004 16:00:29 +0000 (16:00 +0000)]
Add bad password reset and display of bad password count/time
(This used to be commit 34fe16e445bd9da762cedb0dd0872959f31ecd67)

16 years agoAdd functions to get/set bad password time
Jim McDonough [Thu, 19 Feb 2004 15:59:35 +0000 (15:59 +0000)]
Add functions to get/set bad password time
(This used to be commit 557f598c63f64c1c5b982a9057c0eea2a2ff2ee5)

16 years agoAdd bad password time fields
Jim McDonough [Thu, 19 Feb 2004 15:57:53 +0000 (15:57 +0000)]
Add bad password time fields
(This used to be commit 59e7c3ababd0bb8bc91cbc421b7a842cca38101f)

16 years agoFix the "too many fcntl locks" scalability problem raised by tridge.
Jeremy Allison [Thu, 19 Feb 2004 01:55:24 +0000 (01:55 +0000)]
Fix the "too many fcntl locks" scalability problem raised by tridge.
I've now tested this in daemon mode and also on xinetd and I'm pretty
sure it's working.
Jeremy.
(This used to be commit 14dee038019b11300466b148c53515fc76e5e870)

16 years agoFix incorrect strnicmp len
Steve French [Tue, 17 Feb 2004 22:51:42 +0000 (22:51 +0000)]
Fix incorrect strnicmp len
(This used to be commit ad1ebb5000066d44ce94f0341fb31351b3900e95)

16 years agoFix based on Volker's code to correctly return code from lsa_lookup_sids
Jeremy Allison [Tue, 17 Feb 2004 22:46:25 +0000 (22:46 +0000)]
Fix based on Volker's code to correctly return code from lsa_lookup_sids
on unmapped sids.
Jeremy.
(This used to be commit 37a52c31682fcf115eefc31381c02a3ec29c1f8d)

16 years agoDisable dev (MS_NODEV) on user mounts from cifs vfs
Steve French [Tue, 17 Feb 2004 21:31:25 +0000 (21:31 +0000)]
Disable dev (MS_NODEV) on user mounts from cifs vfs
(This used to be commit 9b0d1072bc66d05d0e9afcbe0da349ccaa99ba6e)

16 years agoWhen creating a group via a script, don't let winbind do it as well.
Volker Lendecke [Tue, 17 Feb 2004 21:25:42 +0000 (21:25 +0000)]
When creating a group via a script, don't let winbind do it as well.

Volker
(This used to be commit 6a229f1488c2f0935c24e223614e4c88b36d15c0)

16 years agoBe able to set alias info for builtin as well.
Volker Lendecke [Tue, 17 Feb 2004 15:54:57 +0000 (15:54 +0000)]
Be able to set alias info for builtin as well.

Volker
(This used to be commit 7a947ecdf56f2dd02811262372708f8a74bfedad)

16 years agoDon't try to show groups that could not be listed.
Volker Lendecke [Tue, 17 Feb 2004 15:24:28 +0000 (15:24 +0000)]
Don't try to show groups that could not be listed.

Volker
(This used to be commit d713e76a24583acaffa0be67838e7629b980ff29)

16 years agoIn samr_lookup_names Windows does not return WKN_GRP(5) but ALIAS(4) when
Volker Lendecke [Tue, 17 Feb 2004 10:11:53 +0000 (10:11 +0000)]
In samr_lookup_names Windows does not return WKN_GRP(5) but ALIAS(4) when
you search in BUILTIN. Match that.

Volker
(This used to be commit 2863b21d8a5933c309c51edb09fbda4e669e4890)

16 years agoIf there are no alias members, don't ask for their sids :-)
Volker Lendecke [Tue, 17 Feb 2004 10:08:18 +0000 (10:08 +0000)]
If there are no alias members, don't ask for their sids :-)

Volker
(This used to be commit 99f03a641e4fd75c3bafb8bd153687743317a3dc)

16 years agoDisable suid on user mounts (can override with -DCIFS_ALLOW_USR_SUID)
Steve French [Mon, 16 Feb 2004 23:43:14 +0000 (23:43 +0000)]
Disable suid on user mounts (can override with -DCIFS_ALLOW_USR_SUID)
(This used to be commit a718f16e0bf78139ea46383feec0ce72c63a4986)

16 years agoCosmetic fix: Use sid_is_in_our_domain instead of doing it per hand.
Volker Lendecke [Mon, 16 Feb 2004 14:24:35 +0000 (14:24 +0000)]
Cosmetic fix: Use sid_is_in_our_domain instead of doing it per hand.

Volker
(This used to be commit 04639e8862c360e89faac8b80c63197d514b7455)

16 years agoFix success message for net groupmap modify
Volker Lendecke [Mon, 16 Feb 2004 14:04:56 +0000 (14:04 +0000)]
Fix success message for net groupmap modify

Volker
(This used to be commit 19b30334a7c0f6abde6dfc81550e50aa823117c2)

16 years agoFix whitespace to reduce diff from HEAD
Jim McDonough [Sat, 14 Feb 2004 14:25:40 +0000 (14:25 +0000)]
Fix whitespace to reduce diff from HEAD
(This used to be commit eba512ee1c723392ce553a6b04a7de6c57dd7b1d)