tprouty/samba.git
20 years agofix set/getsampwent iterator in tdbsam to use an allocated list
Gerald Carter [Wed, 11 Feb 2004 21:10:04 +0000 (21:10 +0000)]
fix set/getsampwent iterator in tdbsam to use an allocated list
(This used to be commit 8734d91cd7681219f1389e3c41979028eadbb7fe)

20 years agoParanoia fixes :-).
Jeremy Allison [Wed, 11 Feb 2004 19:59:17 +0000 (19:59 +0000)]
Paranoia fixes :-).
Jeremy.
(This used to be commit 86b030197db63ac0a04b8ea877d80a3d74a7a187)

20 years agoAdded James Peach's fix for #1038.
Jeremy Allison [Wed, 11 Feb 2004 19:07:02 +0000 (19:07 +0000)]
Added James Peach's fix for #1038.
Jeremy.
(This used to be commit 5379ad98241950c581d88acbee1e256187b13582)

20 years agoBUG 1055; patch from SATOH Fumiyasu <fumiya@miraclelinux.com>; formatting fixes...
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'
(This used to be commit 44db163b3001d8dc50b64bac7fd12be1147e14b7)

20 years agomarking 'only user' as deprecated (based on feedback in bug 66)
Gerald Carter [Wed, 11 Feb 2004 04:32:12 +0000 (04:32 +0000)]
marking 'only user' as deprecated (based on feedback in bug 66)
(This used to be commit a44f67b141efc7fc14a75b938bf428bf571351a6)

20 years agofix from Bostjan Golob
Gerald Carter [Tue, 10 Feb 2004 13:49:38 +0000 (13:49 +0000)]
fix from Bostjan Golob
(This used to be commit 96a108705bae1cba822de5cdc88dfffd65d008d4)

20 years agomore fixes from the static changes; please move static functions to the top of files...
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
(This used to be commit 7a61c2ae450d3e41c45e6e3773ad00f6ab9beb16)

20 years agofix more compiler warning after the latest static rampage
Gerald Carter [Tue, 10 Feb 2004 03:51:19 +0000 (03:51 +0000)]
fix more compiler warning after the latest static rampage
(This used to be commit 4f97988dd652983b7cdbb2f2e5a85c9d97ec697e)

20 years agoFix for possible crash bug from Sebastian Krahmer (SuSE).
Jeremy Allison [Tue, 10 Feb 2004 02:21:38 +0000 (02:21 +0000)]
Fix for possible crash bug from Sebastian Krahmer (SuSE).
Jeremy.
(This used to be commit e275835b516ec2e319ad5a6943be007d34a55d75)

20 years agoadd smbget to cvs ignore list
Gerald Carter [Mon, 9 Feb 2004 18:51:03 +0000 (18:51 +0000)]
add smbget to cvs ignore list
(This used to be commit d85ee7b85bbc2450111284743ea89479c3b0a15c)

20 years agobug 1046 (patch from Bostjan Golob <golob@gimb.org>); fix 20 month old bug where...
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
(This used to be commit ec346adf34bd2bc1d514202e82b3713fb5b032ab)

20 years agoExpand 'net rpc group members' to local groups.
Volker Lendecke [Mon, 9 Feb 2004 18:19:25 +0000 (18:19 +0000)]
Expand 'net rpc group members' to local groups.

Volker
(This used to be commit 90fabe6ec004ab95739100b6cd5b7cbd87e67e24)

20 years agobring release notes in the 3.0 branch up to date
Gerald Carter [Mon, 9 Feb 2004 17:45:29 +0000 (17:45 +0000)]
bring release notes in the 3.0 branch up to date
(This used to be commit f285565d67ce0afa13210b913d574eef644ff98d)

20 years agoAnd another build fix.
Volker Lendecke [Mon, 9 Feb 2004 15:21:42 +0000 (15:21 +0000)]
And another build fix.

Volker
(This used to be commit 6c78a096a5c4a8ae21e846505f6ac2df826d5cbd)

20 years agoFix the build & get rid of a compiler warning.
Volker Lendecke [Mon, 9 Feb 2004 14:43:18 +0000 (14:43 +0000)]
Fix the build & get rid of a compiler warning.

Volker
(This used to be commit 38c9b775ce029e1d480d89d4adb0d1bd45a28fe6)

20 years agoApply James' printf format checking patch for SGI MIPSPro compiler.
Tim Potter [Mon, 9 Feb 2004 00:59:22 +0000 (00:59 +0000)]
Apply James' printf format checking patch for SGI MIPSPro compiler.
(This used to be commit 27242f44e6cfa10b7b7f74bcfb6c81786aaffae0)

20 years agoAdd more static...
Andrew Bartlett [Sun, 8 Feb 2004 11:28:51 +0000 (11:28 +0000)]
Add more static...

Andrew Bartlett
(This used to be commit 203ce018365d350c8c0a3f512651cff2b0791b6c)

20 years agonsswitch/winbindd_util.c:
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
(This used to be commit ab25af0e18d883757775a85f005775a79a86dcc8)

20 years agoWhen we set a domain sid, force get_global_sam_sid() to do it's work again.
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
(This used to be commit a4392ede33019b7584bf6a2d8445adb5191e640f)

20 years agoAdd static, and assert that we will never overflow the static fstring
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
(This used to be commit 01be89eb438567cfe0a002a247fe2d314b01f9da)

20 years agoMore 'static' work.
Andrew Bartlett [Sun, 8 Feb 2004 11:00:25 +0000 (11:00 +0000)]
More 'static' work.

Andrew Bartlett
(This used to be commit 25a09004e8a51eb3192adbb580239427bfee0ec9)

20 years agoMake it possible to 'net rpc samdump' of any domain you are currently joined
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
(This used to be commit 6b629344c5a4061d6052fa91f8429b337bab95fb)

20 years agoAdd some help for 'net rpc password'.
Andrew Bartlett [Sun, 8 Feb 2004 09:25:58 +0000 (09:25 +0000)]
Add some help for 'net rpc password'.

Andrew Bartlett
(This used to be commit 4c7d6b9be393f1f5697afe0671f15651ac6282f3)

20 years agoMake more functions static, and remove duplication in the use of functions
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
(This used to be commit fcdc5efb1e245c8fa95cd031f67ec56093b9056e)

20 years agoSamba hasn't used this function for ages - it's now handled deep in the
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
(This used to be commit 5693730594b1a861c7916cac7d156cf6a9d913cd)

20 years agoRemove more unused portions of the 'password cache'.
Andrew Bartlett [Sun, 8 Feb 2004 05:31:01 +0000 (05:31 +0000)]
Remove more unused portions of the 'password cache'.

Andrew Bartlett
(This used to be commit 318e11748a86d92bfc6ebf0e58f3c8360cbf4b69)

20 years agoRemove more unused functions - this time parts of the 'password cache'.
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
(This used to be commit 66569546e8cbb06b6de7e1ac5b2ebf662ea026de)

20 years agoAnother static function.
Andrew Bartlett [Sun, 8 Feb 2004 01:30:59 +0000 (01:30 +0000)]
Another static function.

Andrew Bartlett
(This used to be commit 128c328ddbc9f2283badde95ce743e696f94f6a4)

20 years agoMake this table static const.
Andrew Bartlett [Sun, 8 Feb 2004 01:02:12 +0000 (01:02 +0000)]
Make this table static const.

Andrew Bartlett
(This used to be commit 0686bc9e076c722e33dd9b236cf7c33d448c3b34)

20 years agoRemove unused utility function.
Andrew Bartlett [Sun, 8 Feb 2004 00:58:56 +0000 (00:58 +0000)]
Remove unused utility function.

Andrew Bartlett
(This used to be commit 4c4aa80177e05ed7900e9f24673a62064128c736)

20 years agoMake get_dc_list static - we only ask for a sorted list externally.
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
(This used to be commit e10e176c83da9eda0746e0bd108c72a01a0505e8)

20 years agoBug found by gd - the new range-reterival code did still had 'member'
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
(This used to be commit 8621899112e720411715ea53558d5146ff04eeb0)

20 years agoI should have done this years ago...
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
(This used to be commit ced7fb55276f3d21d69b85b40d3f64c5e790bcc9)

20 years agoReplace .po with .@PICSUFFIX@
Tim Potter [Fri, 6 Feb 2004 01:20:45 +0000 (01:20 +0000)]
Replace .po with .@PICSUFFIX@
(This used to be commit b21b36d9270866181891c5c7c5365bae6b40815b)

20 years agoUpdating the Debian packaging stuff in packaging/Debian/. This hadn't
Eloy Paris [Thu, 5 Feb 2004 17:30:56 +0000 (17:30 +0000)]
Updating the Debian packaging stuff in packaging/Debian/. This hadn't
been updated since the 3.0.0 release so it was broken for 3.0.1 and
later. It's nice that now the Makefile supports a $DESTDIR for "make
install" :-)
(This used to be commit 40c6bf1498785850789fca3d28ea4e7ceaa296ce)

20 years agoFix final valgrind errors with #830. Catch mb conversion error that may not
Jeremy Allison [Wed, 4 Feb 2004 20:28:51 +0000 (20:28 +0000)]
Fix final valgrind errors with #830. Catch mb conversion error that may not
terminate correctly.
Jeremy.
(This used to be commit 49142c6352eb3645437ef86bcedca1b1895aef60)

20 years agomove disabling code to context functions instead of backwards compatible wrappers
Gerald Carter [Wed, 4 Feb 2004 19:46:29 +0000 (19:46 +0000)]
move disabling code to context functions instead of backwards compatible wrappers
(This used to be commit e62ef2ba2d73f492d879af4d06b223f8e739dc6c)

20 years agoFixup the allocate version of the function to do "crap" conversions too.
Jeremy Allison [Wed, 4 Feb 2004 19:13:45 +0000 (19:13 +0000)]
Fixup the allocate version of the function to do "crap" conversions too.
Embarrassing number of goto's in this :-(. Fixes #830 I think.
Jeremy.
(This used to be commit 4c182d3220e87ea74d9c977b8ab1d740ef4cc30f)

20 years agoreturn NSS_SUCCESS if we have found the max number of gids possible on Solaris; patch...
Gerald Carter [Wed, 4 Feb 2004 17:22:36 +0000 (17:22 +0000)]
return NSS_SUCCESS if we have found the max number of gids possible on Solaris; patch from John Klinger <john.klinger@lmco.com>
(This used to be commit 28c2a74c850c0ead8a7d9f8e09705f587b6fae12)

20 years agoFix const warning
Andrew Bartlett [Wed, 4 Feb 2004 11:41:22 +0000 (11:41 +0000)]
Fix const warning
(This used to be commit 7a36cc4ac0ff4d9c42eb9ddaf41bf33b4e8cd7c6)

20 years agoThis should be the correct fix for the lack of a prototype for
Andrew Bartlett [Wed, 4 Feb 2004 11:12:25 +0000 (11:12 +0000)]
This should be the correct fix for the lack of a prototype for
remote_password_change().

Sorry for the original bug.

Andrew Bartlett
(This used to be commit 955436a6f6d7c2f580b2c4e1edbb7ee2fe5df858)

20 years agoWorking on #830. Cope with bad conversions better - don't just memcpy but
Jeremy Allison [Wed, 4 Feb 2004 02:09:41 +0000 (02:09 +0000)]
Working on #830. Cope with bad conversions better - don't just memcpy but
try a crap conversion instead. Next this needs to be done to the convert_alloc
function.
Actually fixes some valgrind warnings as well - cool !
Jeremy.
(This used to be commit 6a7919f2544a689840fe46f3c58ed66f69aca65a)

20 years agoFix for a bug where the mutex could be left locked. Also remove the
Jeremy Allison [Tue, 3 Feb 2004 03:23:18 +0000 (03:23 +0000)]
Fix for a bug where the mutex could be left locked. Also remove the
memory keytab code which has no effect. Driven by bug report from
"Rob J. Caskey" <rcaskey@uga.edu>.
Jeremy.
(This used to be commit 4cb8facbf9fa6fa5233fdb363ceac4b304d263d4)

20 years agoA few fixes from "L. Lucius" <ib@digicron.com>. Don't use int when it's
Jeremy Allison [Mon, 2 Feb 2004 21:14:55 +0000 (21:14 +0000)]
A few fixes from "L. Lucius" <ib@digicron.com>. Don't use int when it's
really a size_t.
Jeremy.
(This used to be commit 2da24613ed62c6dd8465c976bdb2e3aaa33a5058)

20 years agofix installmodules problem with make on True64
Gerald Carter [Mon, 2 Feb 2004 20:54:14 +0000 (20:54 +0000)]
fix installmodules problem with make on True64
(This used to be commit ec30303669ee4742aef228fc0e4a801ce4918ad8)

20 years agofix problems with proto.h
Gerald Carter [Mon, 2 Feb 2004 20:16:24 +0000 (20:16 +0000)]
fix problems with proto.h
(This used to be commit 5a32f9568f128374df98491b43e6f5b299cb656c)

20 years agoupdate script to build a tarball from the cvs tree
Gerald Carter [Mon, 2 Feb 2004 14:46:20 +0000 (14:46 +0000)]
update script to build a tarball from the cvs tree
(This used to be commit 3780ee9ea08b780cfddcd6932c71c4107f8dce0d)

20 years agothere are places in the samba3 code that don't check properly for
Andrew Tridgell [Mon, 2 Feb 2004 12:09:35 +0000 (12:09 +0000)]
there are places in the samba3 code that don't check properly for
packet-termination of strings. This change ensures that when we go
past the end of a packet we hit 2 null bytes, thus terminating. We are
relying on the SAFETY_MARGIN packet allocation stuff here.
(This used to be commit 655ec168288159f5c0961ed8cbdd84c4e14eab26)

20 years agothe conversion from int to size_t in charcnv did not take into account
Andrew Tridgell [Mon, 2 Feb 2004 12:02:43 +0000 (12:02 +0000)]
the conversion from int to size_t in charcnv did not take into account
one place where we checked "if (src_len > 0)".

I actually would greatly prefer to switch back to int for src_len. The
type *can* be negative, which means an unsigned type is
inappropriate. There is absolutely no reason why "int" should not be
used for a parameter like this.

I didn't change back to int as we are close to a release and I wanted
a mininal change, but please don't go changing types like this in
future without very careful testing and a damn good reason.

this bug broke pull_ucs2(), I would not be surprised if it caused all
sorts of nastiness. Thanks to vl for noticing the symptoms!
(This used to be commit 8b8f0c527959c707f274b435fc59156e37232981)

20 years agoRemove bogus check. No functional change, just cosmetics.
Volker Lendecke [Mon, 2 Feb 2004 07:53:56 +0000 (07:53 +0000)]
Remove bogus check. No functional change, just cosmetics.

Volker
(This used to be commit e3a5e2d9c23e8ba6bc817e433e596f535644c862)

20 years agoAlways at least try to compile in cracklib support.
Andrew Bartlett [Mon, 2 Feb 2004 07:47:25 +0000 (07:47 +0000)]
Always at least try to compile in cracklib support.

Andrew Bartlett
(This used to be commit 6cde5e8307c2425c5c496a2a5fb9fcde6c8ef433)

20 years agoMerge the 'use cracklib' parameter from HEAD back to 3.0
Andrew Bartlett [Mon, 2 Feb 2004 07:45:50 +0000 (07:45 +0000)]
Merge the 'use cracklib' parameter from HEAD back to 3.0

Andrew Bartlett
(This used to be commit 2202667ebb713fb5d933fcaa1c19dc761da47ccb)

20 years agoremerge andrew's cracklib patch from HEAD and fix a compile warnings
Gerald Carter [Mon, 2 Feb 2004 00:08:35 +0000 (00:08 +0000)]
remerge andrew's cracklib patch from HEAD and fix a compile warnings
(This used to be commit b60f6ec30d05e4e5bba9934a416ddc8bc089824f)

20 years agoInclude sys/acl.h in check for broken nisplus include files. Bug #1025.
Tim Potter [Sun, 1 Feb 2004 22:17:36 +0000 (22:17 +0000)]
Include sys/acl.h in check for broken nisplus include files.  Bug #1025.
(This used to be commit 5ca866f2475e11759d04dbf6469b055808020d5a)

20 years agoDon't log an error in tdb_brlock() if a non-blocking lock returns EAGAIN -
Tim Potter [Sun, 1 Feb 2004 10:55:54 +0000 (10:55 +0000)]
Don't log an error in tdb_brlock() if a non-blocking lock returns EAGAIN -
it's supposed to do that.
(This used to be commit 2423a459471136d701b498ff0db797c70c6d0fce)

20 years ago* BUG 101: patch from j.lu@tiesse.com to set the SV_TYPE_PRINTQ_SERVER;
Gerald Carter [Sat, 31 Jan 2004 18:25:57 +0000 (18:25 +0000)]
* BUG 101: patch from j.lu@tiesse.com to set the SV_TYPE_PRINTQ_SERVER;
* don't set the unix_ERR_XX code in mkdir_internal, let the error mapping
  handle it.
(This used to be commit 87343fc15a385153c2205bd8bfe876504d38d9a1)

20 years agocleanup patch for bug 977 so we don't display incorrect debug messages
Gerald Carter [Sat, 31 Jan 2004 14:44:27 +0000 (14:44 +0000)]
cleanup patch for bug 977 so we don't display incorrect debug messages
(This used to be commit 11093ecfb7bab1ecb16d19ac00b3e7e38dff43e2)

20 years agoIf we are setting the NT or LM password to NULL, remove the attribute
Andrew Bartlett [Fri, 30 Jan 2004 23:37:38 +0000 (23:37 +0000)]
If we are setting the NT or LM password to NULL, remove the attribute
rather than writing XXXXX

Andrew Bartlett
(This used to be commit ab7dd748a98361ac9c1c3ca52e9a97aee3f93e6f)

20 years agofix pam config file
Gerald Carter [Fri, 30 Jan 2004 20:27:58 +0000 (20:27 +0000)]
fix pam config file
(This used to be commit 4dcf2f6e39ad07ead37815e9ed978099459b1569)

20 years agofix a few more bugs in Fedora scripts (files not getting installed)
Gerald Carter [Fri, 30 Jan 2004 20:26:03 +0000 (20:26 +0000)]
fix a few more bugs in Fedora scripts (files not getting installed)
(This used to be commit 8ee3cc48c3a1784d6d5e0abb6f81d6f14b616777)

20 years agoFix up name canonicalization (needed for krb5 keytab support later).
Jeremy Allison [Fri, 30 Jan 2004 18:38:48 +0000 (18:38 +0000)]
Fix up name canonicalization (needed for krb5 keytab support later).
Remove source_env handler (no longer used in any codepath).
Jeremy.
(This used to be commit 3a3e33603084048e647af86a9badaaf49433c789)

20 years agofixes for fedora packaging
Gerald Carter [Fri, 30 Jan 2004 16:00:42 +0000 (16:00 +0000)]
fixes for fedora packaging
(This used to be commit 1924dfb266525053b48a636818f32eae14730051)

20 years agodisable any account that doesn't have a password and doesn't had the ACB_PWNOTREQ...
Gerald Carter [Fri, 30 Jan 2004 14:59:40 +0000 (14:59 +0000)]
disable any account that doesn't have a password and doesn't had the ACB_PWNOTREQ bit set
(This used to be commit 52bf070b10ca99be7e4b9d1b5e32f69d2667d8f4)

20 years agomore initialization fixes
Gerald Carter [Thu, 29 Jan 2004 22:16:58 +0000 (22:16 +0000)]
more initialization fixes
(This used to be commit 9e590d603547ef1e8388bea66eb5d44e4dfd6412)

20 years agodisable template accounts by default
Gerald Carter [Thu, 29 Jan 2004 20:15:12 +0000 (20:15 +0000)]
disable template accounts by default
(This used to be commit 02899224a195260140496c6e72aee66cc6d65ee4)

20 years agoinitialization fixes
Gerald Carter [Thu, 29 Jan 2004 20:14:50 +0000 (20:14 +0000)]
initialization fixes
(This used to be commit 54fd3992c385fd6208c061131b2c98e448baf2c2)

20 years agoremoving more unused parameters
Gerald Carter [Thu, 29 Jan 2004 17:28:45 +0000 (17:28 +0000)]
removing more unused parameters
(This used to be commit 8135ea08b3dce212a98c17a604619dd383e96c24)

20 years agoBUG 570: don't overwrite LDFLAGS; patch from MORIYAMA Masayuki <moriyama@miraclelinux...
Gerald Carter [Thu, 29 Jan 2004 14:03:48 +0000 (14:03 +0000)]
BUG 570: don't overwrite LDFLAGS; patch from MORIYAMA Masayuki <moriyama@miraclelinux.com>
(This used to be commit d39b1b3fd67d117016907aa79ffac7cb89d3cd5b)

20 years agocompletely rewrote the AIX UESS backend (UESS is the AIX equivalent of
Andrew Tridgell [Thu, 29 Jan 2004 06:14:13 +0000 (06:14 +0000)]
completely rewrote the AIX UESS backend (UESS is the AIX equivalent of
NSS). This time I think I've actually got it right. I wrote a fairly
good test suite for UESS modules (similar to nsstest.c) that allowed
me to explore how the modules supplied with AIX actually work.

This new module also incorporates authentication features, so you
don't need a PAM module at all. Just install this UESS module and
authentication will "just work". It also handles password change, so
/usr/bin/passwd can be used to change windows password.
(This used to be commit d62cb9454e310d2baeea0077dad4ba9382ba06cd)

20 years agoRemove an unused parameter from reload_services_file.
Richard Sharpe [Thu, 29 Jan 2004 00:10:40 +0000 (00:10 +0000)]
Remove an unused parameter from reload_services_file.
(This used to be commit 0032c3f46aaef065e95d987dc0506016aabbe644)

20 years agoMerge of Chris's fix.
Jeremy Allison [Wed, 28 Jan 2004 23:41:55 +0000 (23:41 +0000)]
Merge of Chris's fix.
Jeremy.
(This used to be commit 1a7714ea32300ba0e48f275addcf2e1f272a96ed)

20 years agoforgotten commit -- version == 3.0.3pre1
Gerald Carter [Tue, 27 Jan 2004 19:00:06 +0000 (19:00 +0000)]
forgotten commit -- version == 3.0.3pre1
(This used to be commit 043a81b94de390136bd18f299d71f1edb526be77)

20 years agofix typo in init script
Gerald Carter [Tue, 27 Jan 2004 15:48:43 +0000 (15:48 +0000)]
fix typo in init script
(This used to be commit bc63d989c06d733fd6c411dde150cf0f50029757)

20 years agoprepping the SAMBA_3_0 branch for 3.0.3 work
Gerald Carter [Tue, 27 Jan 2004 15:29:30 +0000 (15:29 +0000)]
prepping the SAMBA_3_0 branch for 3.0.3 work
(This used to be commit 50f278ddcc046e7578b4397d10c22b424d2b01a3)

20 years agobug 977 - don't create a homes share for a user if a static share already exists...
Gerald Carter [Tue, 27 Jan 2004 15:28:33 +0000 (15:28 +0000)]
bug 977 - don't create a homes share for a user if a static share already exists by the same name
(This used to be commit 6b89a76aa7efaa0ad7a0139aeb3e4ebf5c01cdcb)

20 years agoClarify comment on set_effective_uid()
Andrew Bartlett [Tue, 27 Jan 2004 10:01:30 +0000 (10:01 +0000)]
Clarify comment on set_effective_uid()

Andrew Bartlett
(This used to be commit ca24ae50ea37942dde335e97019880b6ce518a6a)

20 years agoRevise our server-side password change code to cope with the various
Andrew Bartlett [Mon, 26 Jan 2004 09:03:09 +0000 (09:03 +0000)]
Revise our server-side password change code to cope with the various
different feilds that different clients send.  (For example, not all clients
send both password types).

This also cleans up the code to make it clearer what is really going on,
and to make better use of common functions.

Andrew Bartlett
(This used to be commit 934e9f3bd0e8a938263978ffcd1fef51e42fa5e4)

20 years agoThis adds client-side support for the unicode/SAMR password change scheme.
Andrew Bartlett [Mon, 26 Jan 2004 08:45:02 +0000 (08:45 +0000)]
This adds client-side support for the unicode/SAMR password change scheme.

As well as avoiding DOS charset issues, this scheme returns useful error
codes, that we can map back via the pam interface.

This patch also cleans up the interfaces used for password buffers, to
avoid duplication of code.

Andrew Bartlett
(This used to be commit 2a2b1f0c872d154fbcce71a250e23dfad085ba1e)

20 years agoAdd a few more NTSTATUS <=> PAM error mappings.
Andrew Bartlett [Mon, 26 Jan 2004 08:38:34 +0000 (08:38 +0000)]
Add a few more NTSTATUS <=> PAM error mappings.

Andrew Bartlett
(This used to be commit 7495cafd42617c0aa2ba9de69f87426ecacc1297)

20 years agoPatch by Luca Bolcioni <Luca.Bolcioni@yacme.com>. Ensure we always
Andrew Bartlett [Mon, 26 Jan 2004 02:19:44 +0000 (02:19 +0000)]
Patch by Luca Bolcioni <Luca.Bolcioni@yacme.com>.  Ensure we always
initialise the session key.  Fixes segfaults with security=server, and
encrypt passwords = no.

Andrew Bartlett
(This used to be commit 493ac5ce98fa3fcddb596139240dd762e70d4ac3)

20 years agoFix memleak just introduced. Thanks to abartlet :-)
Volker Lendecke [Sun, 25 Jan 2004 10:14:50 +0000 (10:14 +0000)]
Fix memleak just introduced. Thanks to abartlet :-)

Volker
(This used to be commit be485eea81c6bab8067642c26e41a14652ce7ee6)

20 years agoOn my SuSE 8.2 (glibc 2.3.2) the getpwnam inside pdb_getsampwnam reset
Volker Lendecke [Sun, 25 Jan 2004 10:04:10 +0000 (10:04 +0000)]
On my SuSE 8.2 (glibc 2.3.2) the getpwnam inside pdb_getsampwnam reset
the surrounding getpwent loop to the first entry. So smbd went into an
endless loop.

Volker
(This used to be commit 1797b16fadd61ef1f30a1be950e3afe7a2e1d791)

20 years agoFix the initialisation vectors for NTLM2, so that they at least make sense,
Andrew Bartlett [Sun, 25 Jan 2004 01:11:10 +0000 (01:11 +0000)]
Fix the initialisation vectors for NTLM2, so that they at least make sense,
even if they don't work yet.

Andrew Bartlett
(This used to be commit 636b98dab9bc27f55bdc65d7dedb58cdf8d8563b)

20 years agoIf we are providing strndup(), ensure we provide a prototype too.
Andrew Bartlett [Sun, 25 Jan 2004 01:02:39 +0000 (01:02 +0000)]
If we are providing strndup(), ensure we provide a prototype too.

Andrew Bartlett
(This used to be commit 109627145463fc4c00b8f6664e3f2e48e0305d56)

20 years agoFix removal of attributes in LDAP - we would not actually remove the old
Andrew Bartlett [Sun, 25 Jan 2004 00:50:39 +0000 (00:50 +0000)]
Fix removal of attributes in LDAP - we would not actually remove the old
value in the previous code.

Andrew Bartlett
(This used to be commit c97d3eb1622ee25c24b0cd81b65ec7d4b854e604)

20 years agoA Samba DC is nothing special these days - so every domain controller
Andrew Bartlett [Sat, 24 Jan 2004 10:46:55 +0000 (10:46 +0000)]
A Samba DC is nothing special these days - so every domain controller
location packet from the client is not a DEBUG(1) event anymore...

(Yes, we printed this for each of these UDP packets...)

Andrew Bartlett
(This used to be commit 4ca0ab7506f15112d996bf68278e54e535c4cab4)

20 years agoFix typo
Volker Lendecke [Fri, 23 Jan 2004 12:57:29 +0000 (12:57 +0000)]
Fix typo
(This used to be commit 09a30014233f111fe978effb12ecb2f88b710cb5)

20 years agoFix decoding of base64. We got the length wrong when the result was not
Volker Lendecke [Fri, 23 Jan 2004 12:04:07 +0000 (12:04 +0000)]
Fix decoding of base64. We got the length wrong when the result was not
an exact multiple of 3.

I also wrote a torture test and it survived some minutes of random stuff
coded/decoded up to 16 MB data. But that would be a bit too embarassing to
commit... :-)

Volker
(This used to be commit 6d22f0d8c36bea618ad0adf4eefc2f5a37cb3fda)

20 years agoFix for debian Bug#225328 by LaMont Jones <lamont@debian.org>, where
Andrew Bartlett [Thu, 22 Jan 2004 10:12:26 +0000 (10:12 +0000)]
Fix for debian Bug#225328 by LaMont Jones <lamont@debian.org>, where
the failure of our LFS test caused the _GNU_SOURCE define not to be
added, causeing strndup() not to be defined...

I'll into when we really should define _GNU_SOURCE shortly, but the
fix is correct anyway.

Andrew Bartlett
(This used to be commit aca07f33a2f3cca48b44ac92d3b1b35592ffadc7)

20 years ago* Add SIGABRT to fault handling
Stefan Metzmacher [Thu, 22 Jan 2004 01:50:58 +0000 (01:50 +0000)]
* Add SIGABRT to fault handling
  so we now got a backtrace, if we crash
  in libldap with SIGABRT

metze
(This used to be commit b5e814294eb3ce44131084d89014cb8a8840fe74)

20 years agoFix compiler warning
Volker Lendecke [Wed, 21 Jan 2004 14:48:02 +0000 (14:48 +0000)]
Fix compiler warning
(This used to be commit 413ed77142377351a0ed1c6cf800a14809e56e9c)

20 years agoDisplay some nicer error messages for login via 'net'. I don't
Volker Lendecke [Wed, 21 Jan 2004 14:36:56 +0000 (14:36 +0000)]
Display some nicer error messages for login via 'net'. I don't
see a reason why we have so many special cases and not simply use
nt_errstr(nt_status).

Comments?

Volker
(This used to be commit ea1a5fb30357f4fe70139ff5583d09cef9fdaa62)

20 years agoinclude tdbdump man page in file list
Gerald Carter [Sat, 17 Jan 2004 01:48:36 +0000 (01:48 +0000)]
include tdbdump man page in file list
(This used to be commit 083d06cad58b8e6e6136d7630e59449b47a699da)

20 years agoFix for a signing bug when the mid wraps.
Jeremy Allison [Sat, 17 Jan 2004 00:30:35 +0000 (00:30 +0000)]
Fix for a signing bug when the mid wraps.
Found by Fran Fabrizio <fran@cis.uab.edu>.
Add to the *start* of the list not the end of the list.
This ensures that the *last* send sequence with this mid
is returned by preference.
This can happen if the mid wraps and one of the early
mid numbers didn't get a reply and is still lurking on
the list.
Jeremy.
(This used to be commit 25d739978fe9081ba0946c36901492127248e3e0)

20 years agostarting WHATSNEW for thepost 3.0.2rc1 release
Gerald Carter [Fri, 16 Jan 2004 22:48:59 +0000 (22:48 +0000)]
starting WHATSNEW for thepost 3.0.2rc1 release
(This used to be commit 4ef4004af06a022dbc4f6757238e77ccfe1b4481)

20 years agofix another bug caused by cli_lsa_query_info_policy() changes
Gerald Carter [Fri, 16 Jan 2004 22:15:35 +0000 (22:15 +0000)]
fix another bug caused by cli_lsa_query_info_policy() changes
(This used to be commit faec928564529c7ffb2653943be9cafbfb9e4688)

20 years agoremove unneeded man pages from packages
Gerald Carter [Fri, 16 Jan 2004 19:01:20 +0000 (19:01 +0000)]
remove unneeded man pages from packages
(This used to be commit 0e0a1632358f27d45b10f315db90afdbb35ee5b2)

20 years agoBUG 891 & 949: Fedora Packaging Fixes
Gerald Carter [Fri, 16 Jan 2004 17:46:38 +0000 (17:46 +0000)]
BUG 891 & 949: Fedora Packaging Fixes
(This used to be commit a7d0aec2b7ef132b5c631cb26d0a93dd66d0fff3)

20 years agoFix another join problem. Don't use a TALLOC_CTX before it has been
Jim McDonough [Fri, 16 Jan 2004 15:07:28 +0000 (15:07 +0000)]
Fix another join problem.  Don't use a TALLOC_CTX before it has been
initialized.

Also split out the oldstyle join into a new fn, allowing us to call it
with no failure message from net rpc join, but displaying a failure message
when used with net rpc oldjoin.
(This used to be commit 07d6ed4343d7a2575dc974bfbc498b14784b2dc1)

20 years agoPatch from "Stoian Ivanov" <sdr@bultra.com>: Add -g (greppable..) to
Volker Lendecke [Fri, 16 Jan 2004 15:01:09 +0000 (15:01 +0000)]
Patch from "Stoian Ivanov" <sdr@bultra.com>: Add -g (greppable..) to
smbclient -L to make the output usable in pipes.

Volker
(This used to be commit 4c904210705f2be16daad21c07a4fb5117a3360b)