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
Volker Lendecke [Tue, 24 Feb 2004 17:28:17 +0000 (17:28 +0000)]
Remove unused variable.
Volker
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
Jeremy Allison [Tue, 24 Feb 2004 01:46:24 +0000 (01:46 +0000)]
Ensure '.' and '..' don't match in delete requests.
Jeremy.
Jeremy Allison [Tue, 24 Feb 2004 00:55:05 +0000 (00:55 +0000)]
More gentest error fixups.
Jeremy.
Jeremy Allison [Tue, 24 Feb 2004 00:38:39 +0000 (00:38 +0000)]
Fixup bad-path error found by gentest.
Jeremy.
Jeremy Allison [Tue, 24 Feb 2004 00:06:08 +0000 (00:06 +0000)]
Added NTrename SMB (0xA5) - how did we miss this.... ?
Jeremy.
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.
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
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.
Jim McDonough [Mon, 23 Feb 2004 02:54:03 +0000 (02:54 +0000)]
Janitor for tpot...bugzilla #1098, msleep already exists on aix
Jim McDonough [Mon, 23 Feb 2004 02:47:33 +0000 (02:47 +0000)]
Add bad password count/time attributes
Jim McDonough [Sun, 22 Feb 2004 20:25:43 +0000 (20:25 +0000)]
Add bad password count/time attributes
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.
Tim Potter [Sat, 21 Feb 2004 00:28:48 +0000 (00:28 +0000)]
printf -> d_printf
Bugzilla #1066.
Jeremy Allison [Fri, 20 Feb 2004 23:19:39 +0000 (23:19 +0000)]
Make SMB_FILE_ACCESS_INFORMATION call work correctly.
Jeremy.
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.
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
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)
Gerald Carter [Fri, 20 Feb 2004 15:52:14 +0000 (15:52 +0000)]
just say no to crack
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
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.
Gerald Carter [Thu, 19 Feb 2004 22:17:54 +0000 (22:17 +0000)]
sys/xattr.h merge from HEAD
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
Jim McDonough [Thu, 19 Feb 2004 21:37:24 +0000 (21:37 +0000)]
Clean up 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
Gerald Carter [Thu, 19 Feb 2004 17:01:06 +0000 (17:01 +0000)]
merging some fixes from the release branch; more to come later
Jim McDonough [Thu, 19 Feb 2004 16:00:29 +0000 (16:00 +0000)]
Add bad password reset and display of bad password count/time
Jim McDonough [Thu, 19 Feb 2004 15:59:35 +0000 (15:59 +0000)]
Add functions to get/set bad password time
Jim McDonough [Thu, 19 Feb 2004 15:57:53 +0000 (15:57 +0000)]
Add bad password time fields
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.
Steve French [Tue, 17 Feb 2004 22:51:42 +0000 (22:51 +0000)]
Fix incorrect strnicmp len
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.
Steve French [Tue, 17 Feb 2004 21:31:25 +0000 (21:31 +0000)]
Disable dev (MS_NODEV) on user mounts from cifs vfs
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
Volker Lendecke [Tue, 17 Feb 2004 15:54:57 +0000 (15:54 +0000)]
Be able to set alias info for builtin as well.
Volker
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
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
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
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)
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
Volker Lendecke [Mon, 16 Feb 2004 14:04:56 +0000 (14:04 +0000)]
Fix success message for net groupmap modify
Volker
Jim McDonough [Sat, 14 Feb 2004 14:25:40 +0000 (14:25 +0000)]
Fix whitespace to reduce diff from HEAD
Jim McDonough [Sat, 14 Feb 2004 14:05:17 +0000 (14:05 +0000)]
sync IBM Directory Server schema with openldap schema...add munged dial
Jeremy Allison [Fri, 13 Feb 2004 22:34:29 +0000 (22:34 +0000)]
Missed SAFE_FREE (typo).
Jeremy.
Jelmer Vernooij [Fri, 13 Feb 2004 22:09:53 +0000 (22:09 +0000)]
Fix ETA Calculation when resuming
Jeremy Allison [Fri, 13 Feb 2004 22:06:25 +0000 (22:06 +0000)]
Added Andrew Bartlett's patch to use an allocated buffer for count_chars.
Jeremy.
Jeremy Allison [Fri, 13 Feb 2004 19:05:25 +0000 (19:05 +0000)]
Fixup the 'multiple-vuids' bugs.
Jeremy.
Gerald Carter [Fri, 13 Feb 2004 17:32:20 +0000 (17:32 +0000)]
urban's changes for nosuid,nodev
Gerald Carter [Fri, 13 Feb 2004 17:20:28 +0000 (17:20 +0000)]
specfile changes form the 3.0.2 release
Jim McDonough [Fri, 13 Feb 2004 14:48:20 +0000 (14:48 +0000)]
Move tdbsam versioning/upgrade code into 3.0
Herb Lewis [Thu, 12 Feb 2004 20:43:23 +0000 (20:43 +0000)]
merge old change from 2.2 branch to give legend in heading
Jim McDonough [Thu, 12 Feb 2004 19:09:21 +0000 (19:09 +0000)]
Try to remove the last vestiges of unknown_3...
Jelmer, can you look at the sql and xml backends please to verify?
Gerald Carter [Thu, 12 Feb 2004 17:51:23 +0000 (17:51 +0000)]
abartlet's pdb_set/changed flag fix for NULL passwords
Richard Sharpe [Thu, 12 Feb 2004 17:26:34 +0000 (17:26 +0000)]
Commit Andrew Bartlett's interesting patch to smbclient that allows for
multiple logins and changing vuids. I fixed up a couple of variables so it
actually works.
We want to use this to test our multiple SIDs in the kernel changes etc.
Gerald Carter [Thu, 12 Feb 2004 17:09:01 +0000 (17:09 +0000)]
stupid cut-n=paste error; my fault
Jim McDonough [Thu, 12 Feb 2004 16:16:53 +0000 (16:16 +0000)]
More sync between passdb on 3.0 and HEAD.
Replace unknown_3 with fields_present. Also causes rpc_samr structure field changes.
Jim McDonough [Thu, 12 Feb 2004 15:20:40 +0000 (15:20 +0000)]
Start of merging HEAD changes. Right now, just move one fn() to eliminate
the prototype at the beginning, and change some comments so diffs to HEAD
aren't filled with useless info.
Gerald Carter [Thu, 12 Feb 2004 05:29:05 +0000 (05:29 +0000)]
fix build of lock tests
Gerald Carter [Thu, 12 Feb 2004 05:24:02 +0000 (05:24 +0000)]
merge from old APP_HEAD
* remove corrupt tdb and shutdown (only for printing tdbs, connections,
sessionid & locking)
* decrement smbd counter in connections.tdb in smb_panic()
* various Makefile hack to get things to link
'max smbd processes' looks like it might be broken. The counter KEY is not
being set. Will look into that tomorrow.
Gerald Carter [Thu, 12 Feb 2004 05:07:44 +0000 (05:07 +0000)]
updates for tdbsam code to help make merge into head easier; needs a bit more testing tomorrow but initial results seem ok
Jeremy Allison [Wed, 11 Feb 2004 23:25:51 +0000 (23:25 +0000)]
More paranoia checks.
Jeremy.
Steve French [Wed, 11 Feb 2004 23:14:39 +0000 (23:14 +0000)]
Update mount.cifs version to 1.1
Steve French [Wed, 11 Feb 2004 23:11:00 +0000 (23:11 +0000)]
Mount helper fixes for nosetuid, noexec part two of two
Steve French [Wed, 11 Feb 2004 22:54:01 +0000 (22:54 +0000)]
Add missing nosetuid and noexec options
Jeremy Allison [Wed, 11 Feb 2004 22:47:12 +0000 (22:47 +0000)]
Don't set an iterator to a piece of free'd memory, store it first.
Jeremy.
Gerald Carter [Wed, 11 Feb 2004 21:42:20 +0000 (21:42 +0000)]
BUG 900: TAKEDA yasuma <yasuma@miraclelinux.com; fix token processing in cmd_symlink, cmd_link, cmd_chown, cmd_chmod functions
Gerald Carter [Wed, 11 Feb 2004 21:10:04 +0000 (21:10 +0000)]
fix set/getsampwent iterator in tdbsam to use an allocated list
Jeremy Allison [Wed, 11 Feb 2004 19:59:17 +0000 (19:59 +0000)]
Paranoia fixes :-).
Jeremy.
Jeremy Allison [Wed, 11 Feb 2004 19:07:02 +0000 (19:07 +0000)]
Added James Peach's fix for #1038.
Jeremy.
Gerald Carter [Wed, 11 Feb 2004 14:59:08 +0000 (14:59 +0000)]
BUG 1055; patch from SATOH Fumiyasu <fumiya@miraclelinux.com>; formatting fixes for 'net share'
Gerald Carter [Wed, 11 Feb 2004 04:32:12 +0000 (04:32 +0000)]
marking 'only user' as deprecated (based on feedback in bug 66)
Gerald Carter [Tue, 10 Feb 2004 13:49:38 +0000 (13:49 +0000)]
fix from Bostjan Golob
Gerald Carter [Tue, 10 Feb 2004 04:02:53 +0000 (04:02 +0000)]
more fixes from the static changes; please move static functions to the top of files to prevent this from happening
Gerald Carter [Tue, 10 Feb 2004 03:51:19 +0000 (03:51 +0000)]
fix more compiler warning after the latest static rampage
Jeremy Allison [Tue, 10 Feb 2004 02:21:38 +0000 (02:21 +0000)]
Fix for possible crash bug from Sebastian Krahmer (SuSE).
Jeremy.
Gerald Carter [Mon, 9 Feb 2004 18:51:03 +0000 (18:51 +0000)]
add smbget to cvs ignore list
Gerald Carter [Mon, 9 Feb 2004 18:43:57 +0000 (18:43 +0000)]
bug 1046 (patch from Bostjan Golob <golob@gimb.org>); fix 20 month old bug where getpwent_list() was overoverwriting the username for entries. However the code path to the bug was introduced only on January 25
Volker Lendecke [Mon, 9 Feb 2004 18:19:25 +0000 (18:19 +0000)]
Expand 'net rpc group members' to local groups.
Volker
Gerald Carter [Mon, 9 Feb 2004 17:45:29 +0000 (17:45 +0000)]
bring release notes in the 3.0 branch up to date
Volker Lendecke [Mon, 9 Feb 2004 15:21:42 +0000 (15:21 +0000)]
And another build fix.
Volker
Volker Lendecke [Mon, 9 Feb 2004 14:43:18 +0000 (14:43 +0000)]
Fix the build & get rid of a compiler warning.
Volker
Tim Potter [Mon, 9 Feb 2004 00:59:22 +0000 (00:59 +0000)]
Apply James' printf format checking patch for SGI MIPSPro compiler.
Andrew Bartlett [Sun, 8 Feb 2004 11:28:51 +0000 (11:28 +0000)]
Add more static...
Andrew Bartlett
Andrew Bartlett [Sun, 8 Feb 2004 11:26:46 +0000 (11:26 +0000)]
nsswitch/winbindd_util.c:
add static
smbd/uid.c:
remove unused function
Andrew Bartlett
Andrew Bartlett [Sun, 8 Feb 2004 11:05:34 +0000 (11:05 +0000)]
When we set a domain sid, force get_global_sam_sid() to do it's work again.
This should ensure that the value it returns is always consistant.
Andrew Bartlett
Andrew Bartlett [Sun, 8 Feb 2004 11:02:11 +0000 (11:02 +0000)]
Add static, and assert that we will never overflow the static fstring
in pdb_encode_acct_ctrl() (All current callers are fine)
Andrew Bartlett
Andrew Bartlett [Sun, 8 Feb 2004 11:00:25 +0000 (11:00 +0000)]
More 'static' work.
Andrew Bartlett
Andrew Bartlett [Sun, 8 Feb 2004 10:59:09 +0000 (10:59 +0000)]
Make it possible to 'net rpc samdump' of any domain you are currently joined
to, despite any smb.conf settings.
Work to allow the same for 'net rpc vampire', but instead give a clear
error message on what is incorrect.
Andrew Bartlett
Andrew Bartlett [Sun, 8 Feb 2004 09:25:58 +0000 (09:25 +0000)]
Add some help for 'net rpc password'.
Andrew Bartlett
Andrew Bartlett [Sun, 8 Feb 2004 08:38:42 +0000 (08:38 +0000)]
Make more functions static, and remove duplication in the use of functions
in lib/smbpasswd.c that were exact duplicates of functions in passdb/passdb.c
(These should perhaps be pulled back out to smbpasswd.c, but that can occour
later).
Andrew Bartlett
Andrew Bartlett [Sun, 8 Feb 2004 07:17:30 +0000 (07:17 +0000)]
Samba hasn't used this function for ages - it's now handled deep in the
auth subsystem.
Andrew Bartlett
Andrew Bartlett [Sun, 8 Feb 2004 05:31:01 +0000 (05:31 +0000)]
Remove more unused portions of the 'password cache'.
Andrew Bartlett
Andrew Bartlett [Sun, 8 Feb 2004 02:49:30 +0000 (02:49 +0000)]
Remove more unused functions - this time parts of the 'password cache'.
Andrew Bartlett
Andrew Bartlett [Sun, 8 Feb 2004 01:30:59 +0000 (01:30 +0000)]
Another static function.
Andrew Bartlett
Andrew Bartlett [Sun, 8 Feb 2004 01:02:12 +0000 (01:02 +0000)]
Make this table static const.
Andrew Bartlett
Andrew Bartlett [Sun, 8 Feb 2004 00:58:56 +0000 (00:58 +0000)]
Remove unused utility function.
Andrew Bartlett
Andrew Bartlett [Sun, 8 Feb 2004 00:54:32 +0000 (00:54 +0000)]
Make get_dc_list static - we only ask for a sorted list externally.
Andrew Bartlett
Andrew Bartlett [Sun, 8 Feb 2004 00:31:36 +0000 (00:31 +0000)]
Bug found by gd - the new range-reterival code did still had 'member'
hardcoded into it.
This didn't matter, as we only use it for 'member' so far...
Andrew Bartlett
Andrew Bartlett [Sat, 7 Feb 2004 03:54:39 +0000 (03:54 +0000)]
I should have done this years ago...
This adds the very simple 'admin set password' capability to 'net rpc',
much as we have it for 'net ads'.
Andrew Bartlett