ira/wip.git
17 years agomerge from 3.0
Gerald Carter [Mon, 9 Feb 2004 18:48:44 +0000 (18:48 +0000)]
merge from 3.0
(This used to be commit 309a9a4cafc3c892840e28198a41973b236a528e)

17 years agobug 1046 (patch from Bostjan Golob <golob@gimb.org>); fix 20 month old bug where...
Gerald Carter [Mon, 9 Feb 2004 18:47:19 +0000 (18:47 +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 fbde889fd8442bae7444ffdb2736c9c5e8d59204)

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

Volker
(This used to be commit f524a493154a5f7304be472064550cd61af8305d)

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

17 years agoActually remove this (now empty) file from the repository.
Andrew Bartlett [Sun, 8 Feb 2004 12:09:17 +0000 (12:09 +0000)]
Actually remove this (now empty) file from the repository.

Andrew Bartlett
(This used to be commit 19da2b936a716dc26d361db82280e73e81d683da)

17 years ago(merge from 3.0)
Andrew Bartlett [Sun, 8 Feb 2004 12:06:48 +0000 (12:06 +0000)]
(merge from 3.0)

Add more static...

Andrew Bartlett
(This used to be commit 6391e2cc8e5b224c002b57ce615b9b8052eeb346)

17 years ago(merge from 3.0)
Andrew Bartlett [Sun, 8 Feb 2004 12:06:05 +0000 (12:06 +0000)]
(merge from 3.0)
nsswitch/winbindd_util.c:
add static

smbd/uid.c:
remove unused function

Andrew Bartlett
(This used to be commit 4822a3f73610f6e468c447f1282246f13a378cde)

17 years ago(merge from 3.0)
Andrew Bartlett [Sun, 8 Feb 2004 12:04:23 +0000 (12:04 +0000)]
(merge from 3.0)

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 fb13c61d4eee943e44632a0d1ba57b19602d67a4)

17 years ago(merge from 3.0)
Andrew Bartlett [Sun, 8 Feb 2004 12:03:14 +0000 (12:03 +0000)]
(merge from 3.0)

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 badf7f64fb38dfd40bdf65b19e9dd8932d5e6c3b)

17 years ago(merge from 3.0)
Andrew Bartlett [Sun, 8 Feb 2004 12:02:28 +0000 (12:02 +0000)]
(merge from 3.0)

More 'static' work.

Andrew Bartlett
(This used to be commit 620f909eed3d994d01ca53068a33856d25917144)

17 years ago(merge from 3.0)
Andrew Bartlett [Sun, 8 Feb 2004 12:01:43 +0000 (12:01 +0000)]
(merge from 3.0)

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 c4b6bd85978b61c4c9c34dde122e968c3771f2e6)

17 years ago(merge from 3.0)
Andrew Bartlett [Sun, 8 Feb 2004 12:00:40 +0000 (12:00 +0000)]
(merge from 3.0)
Add some help for 'net rpc password'.

Andrew Bartlett
(This used to be commit 2c6f1966d6c25238d73a46132c05794677c3a882)

17 years ago(merge from 3.0)
Andrew Bartlett [Sun, 8 Feb 2004 11:59:55 +0000 (11:59 +0000)]
(merge from 3.0)

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).

This also includes some >14 character password changes, and the start
of a move away from using 'admin user' to determine if the user is
root (as root can login without setting 'admin user').

Andrew Bartlett
(This used to be commit be0704abb919152c359a735023283acbf9be3076)

17 years ago(merge from 3.0)
Andrew Bartlett [Sun, 8 Feb 2004 11:51:11 +0000 (11:51 +0000)]
(merge from 3.0)

Samba hasn't used this function for ages - it's now handled deep in the
auth subsystem.

Andrew Bartlett
(This used to be commit bb505ca696427f105d05a0b9aab6d5eee043ede6)

17 years ago(merge from 3.0)
Andrew Bartlett [Sun, 8 Feb 2004 11:50:30 +0000 (11:50 +0000)]
(merge from 3.0)

Remove more unused portions of the 'password cache'.

Andrew Bartlett
(This used to be commit 33cdb2bd18daca31461bbc45251679f50fd3567f)

17 years ago(merge from 3.0)
Andrew Bartlett [Sun, 8 Feb 2004 11:49:36 +0000 (11:49 +0000)]
(merge from 3.0)

Remove more unused functions - this time parts of the 'password cache'.

Andrew Bartlett
(This used to be commit c29c28e4cfc0539eb5e02196dd6cdda7bd433f61)

17 years ago(merge from 3.0)
Andrew Bartlett [Sun, 8 Feb 2004 11:49:06 +0000 (11:49 +0000)]
(merge from 3.0)

Another static function.

Andrew Bartlett
(This used to be commit 58adb41db19ce528b9267a5ea7f119b9c6893ade)

17 years ago(merge from 3.0)
Andrew Bartlett [Sun, 8 Feb 2004 11:48:28 +0000 (11:48 +0000)]
(merge from 3.0)

Make this table static const.

Andrew Bartlett
(This used to be commit 3803cb36e9d94c08bf310c0ef1cdfc29b443dc0e)

17 years ago(merge from 3.0)
Andrew Bartlett [Sun, 8 Feb 2004 11:47:52 +0000 (11:47 +0000)]
(merge from 3.0)

Remove unused utility function.

Andrew Bartlett
(This used to be commit af8248e67bb0f83124dcd250fee5d06a12fe257b)

17 years ago(merge from 3.0)
Andrew Bartlett [Sun, 8 Feb 2004 11:47:12 +0000 (11:47 +0000)]
(merge from 3.0)

Make get_dc_list static - we only ask for a sorted list externally.

Andrew Bartlett
(This used to be commit 5335b9d5eb79dc431fb8e40e61a57370dd09486e)

17 years ago(merge from 3.0)
Andrew Bartlett [Sun, 8 Feb 2004 11:46:32 +0000 (11:46 +0000)]
(merge from 3.0)

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 a813d4b6aac655909541966d2d343fe2b55ed188)

17 years ago(merge from 3.0)
Andrew Bartlett [Sun, 8 Feb 2004 11:42:28 +0000 (11:42 +0000)]
(merge from 3.0)

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 5243b89e33efd2ea8842a624d8abd6c5755afb64)

17 years agoReplaced .po with .@PICSUFFIX@
Tim Potter [Fri, 6 Feb 2004 01:14:54 +0000 (01:14 +0000)]
Replaced .po with .@PICSUFFIX@
(This used to be commit 9ea39d1c782c2111b086a83bf5f24c8b18fd879e)

17 years agoFix final valgrind errors with #830. Catch mb conversion error that may not
Jeremy Allison [Wed, 4 Feb 2004 20:28:48 +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 a1f7cea9f278ef15206bf48663328c28d295bd6d)

17 years agoFixup the allocate version of the function to do "crap" conversions too.
Jeremy Allison [Wed, 4 Feb 2004 19:13:43 +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 e8c7d1c5dca63720b7de6360cb0cff4bed0be546)

17 years ago(merge from 3.0)
Andrew Bartlett [Wed, 4 Feb 2004 11:14:44 +0000 (11:14 +0000)]
(merge from 3.0)

Ensure the remote_password_change() gets a valid prototype from proto.h

Andrew Bartlett
(This used to be commit 765757b3573b75a3df09d6130b025049d9c93e14)

17 years agoWorking on #830. Cope with bad conversions better - don't just memcpy but
Jeremy Allison [Wed, 4 Feb 2004 02:09:43 +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 98e2c6f4f854065c56a73ebc9e0a50e0ba018dde)

17 years agoFix for a bug where the mutex could be left locked. Also remove the
Jeremy Allison [Tue, 3 Feb 2004 03:23:15 +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 2a8601d0bfa35f4d0ccd7946d483473fd10e19d0)

17 years agoMerge from 3.0.
Jeremy Allison [Mon, 2 Feb 2004 21:32:35 +0000 (21:32 +0000)]
Merge from 3.0.
Jeremy.
(This used to be commit 5c5545bd44cdaf4a0b75b0c1c22dd74bb278a6a5)

17 years ago(merge from 3.0)
Andrew Bartlett [Mon, 2 Feb 2004 07:58:06 +0000 (07:58 +0000)]
(merge from 3.0)

Remove duplicate comment.

Andrew Bartlett
(This used to be commit 841766bcbddbbe5e18d1b7989e54c85ab97715f5)

17 years agoRemove bogus check. Cosmetics.
Volker Lendecke [Mon, 2 Feb 2004 07:54:43 +0000 (07:54 +0000)]
Remove bogus check. Cosmetics.

Volker
(This used to be commit 3768b64c81879231a88c0f3235bfe8ecf29f3af8)

17 years agojanitor duty (merges from 3.0) and cleanup compiler warning on SuSE 9 in the end...
Gerald Carter [Mon, 2 Feb 2004 01:46:30 +0000 (01:46 +0000)]
janitor duty (merges from 3.0) and cleanup compiler warning on SuSE 9 in the end mapper code
(This used to be commit 902d4a647a88d1def09d5b1eacb06ab1561f3dec)

17 years agoMerge from 3.0:
Tim Potter [Sun, 1 Feb 2004 22:19:01 +0000 (22:19 +0000)]
Merge from 3.0:

>Include sys/acl.h in check for broken nisplus include files.  Bug #1025.
(This used to be commit cbf9c3d3953e25999312492dc08f61db875a04e7)

17 years agoMerge from 3.0:
Tim Potter [Sun, 1 Feb 2004 11:10:55 +0000 (11:10 +0000)]
Merge from 3.0:

>Don't log an error if a tdb_brlock() returns EAGAIN - it's supposed to
>do that.
(This used to be commit d8182b8bf54dc00378caa82e8c325891a08b17ca)

17 years ago* BUG 101: patch from j.lu@tiesse.com to set the SV_TYPE_PRINTQ_SERVER;
Gerald Carter [Sat, 31 Jan 2004 18:27:35 +0000 (18:27 +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 758bbfb5f133c3c85e3092ad88294ae4abbbbc6f)

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

17 years ago(merge from 3.0)
Andrew Bartlett [Fri, 30 Jan 2004 23:53:47 +0000 (23:53 +0000)]
(merge from 3.0)
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 2ae9672f811c91c95ee2ddfd4b0dcc6b0f4fa192)

17 years agoFix up name canonicalization (needed for krb5 keytab support later).
Jeremy Allison [Fri, 30 Jan 2004 18:38:46 +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 be60768e64ae2061f220faa3943dcb0588393dbc)

17 years agodisable any account that doesn't have a password and doesn't had the ACB_PWNOTREQ...
Gerald Carter [Fri, 30 Jan 2004 15:00:57 +0000 (15:00 +0000)]
disable any account that doesn't have a password and doesn't had the ACB_PWNOTREQ bit set
(This used to be commit 6c4de7198b94a8cea176e1c9d86deb65705f9058)

17 years agomore initialization fixes
Gerald Carter [Thu, 29 Jan 2004 22:17:27 +0000 (22:17 +0000)]
more initialization fixes
(This used to be commit 63206b1204bd532bf99912cd4312baf7d69db1f6)

17 years agomerge from 3.0
Gerald Carter [Thu, 29 Jan 2004 20:16:34 +0000 (20:16 +0000)]
merge from 3.0
(This used to be commit 77335cc5bce46ab3498f9401099f110b0e5506c1)

17 years agoremoving more unused parameters
Gerald Carter [Thu, 29 Jan 2004 18:07:57 +0000 (18:07 +0000)]
removing more unused parameters
(This used to be commit c81c0ffaabaa805211d9c6e1ab5aa66a02365e26)

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

17 years agoreactivate pdb_gums as static module
Simo Sorce [Thu, 29 Jan 2004 10:09:12 +0000 (10:09 +0000)]
reactivate pdb_gums as static module
(This used to be commit 9836def8a90bc3b375f070e91dbfabd8177f24b3)

17 years agoThis should cure the problem with gums not compiling.
Simo Sorce [Thu, 29 Jan 2004 08:48:50 +0000 (08:48 +0000)]
This should cure the problem with gums not compiling.
(This used to be commit 428504b5508e9e0f9cbc0dc8041f25f06de52f88)

17 years agoupdated the head branch as well
Andrew Tridgell [Thu, 29 Jan 2004 06:28:27 +0000 (06:28 +0000)]
updated the head branch as well
(This used to be commit 467a58af346b30291b69b5d8da7f1b21d518fc1d)

17 years agoRemove an unused parameter in winbindd (reload_services_file)
Richard Sharpe [Thu, 29 Jan 2004 02:41:57 +0000 (02:41 +0000)]
Remove an unused parameter in winbindd (reload_services_file)
(This used to be commit 9a81094a0f0ca5c209f640c48b77522e5f81d28e)

17 years agoThis is Simo's patch for the NetShareEnum() bug which caused us to return
Christopher R. Hertel [Wed, 28 Jan 2004 23:13:22 +0000 (23:13 +0000)]
This is Simo's patch for the NetShareEnum() bug which caused us to return
share names longer than 12 bytes.  The function now filters out names
longer than 12 bytes (which is compatible with Windows behavior).

A better fix might be to store short names along with any names longer
than 12 bytes, using a simple (very) name mangling.

I'm committing in HEAD.  If there are no problems this can easily be
merged into 3.0.x.

Chris -)-----
(This used to be commit 6a8a64dc87863b39490d7f22a7d107e6916584f2)

17 years agoDon't built gums by default
Jelmer Vernooij [Tue, 27 Jan 2004 17:56:15 +0000 (17:56 +0000)]
Don't built gums by default
(to enable it, run ./configure --with-static-modules=pdb_gums)
(This used to be commit df7666161f75b61058a017fea04b733751d5ac06)

17 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:59 +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 e589f6502fc280d5f89b399c6cef167e26773062)

17 years ago(merge from 3.0)
Andrew Bartlett [Tue, 27 Jan 2004 10:19:11 +0000 (10:19 +0000)]
(merge from 3.0)

Clarify comment on set_effective_uid()

Andrew Bartlett
(This used to be commit 0a9afefb55e9071fd21ea280095555f423571853)

17 years ago(merge from 3.0)
Andrew Bartlett [Mon, 26 Jan 2004 09:11:09 +0000 (09:11 +0000)]
(merge from 3.0)

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 e5b5cd5966f2894c283383abe5d99fda524cbb9f)

17 years ago(merge from 3.0)
Andrew Bartlett [Mon, 26 Jan 2004 08:51:58 +0000 (08:51 +0000)]
(merge from 3.0)

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 8063b8b6c2eb30cb116988e265fb289109d7c348)

17 years ago(merge from 3.0)
Andrew Bartlett [Mon, 26 Jan 2004 02:22:49 +0000 (02:22 +0000)]
(merge from 3.0)

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 b5b6a5937ccb8126876e9ecf9b17cd95f6eec19d)

17 years ago(merge from 3.0)
Andrew Bartlett [Sun, 25 Jan 2004 01:35:31 +0000 (01:35 +0000)]
(merge from 3.0)

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 40cc86d4b31efdee519cf2e2c9b62c4fdc885724)

17 years ago(merge from 3.0)
Andrew Bartlett [Sun, 25 Jan 2004 01:34:08 +0000 (01:34 +0000)]
(merge from 3.0)

If we are providing strndup(), ensure we provide a prototype too.

Andrew Bartlett
(This used to be commit 5536c7448e88caa95b13c01956c37deee899dd92)

17 years ago(merge from 3.0)
Andrew Bartlett [Sun, 25 Jan 2004 01:32:37 +0000 (01:32 +0000)]
(merge from 3.0)

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 971dd33244918cde6bf49a2f9c650da856d31cd6)

17 years ago(merge from 3.0)
Andrew Bartlett [Sat, 24 Jan 2004 10:56:36 +0000 (10:56 +0000)]
(merge from 3.0)

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 c84e8e91e4d4786ece6288a177f66f260d6e7945)

17 years agoFix typo
Volker Lendecke [Fri, 23 Jan 2004 12:58:07 +0000 (12:58 +0000)]
Fix typo
(This used to be commit f83606a058b934309bf1b2075747f504eb38575d)

17 years agoFix decoding of base64. We got the length wrong when the result was not
Volker Lendecke [Fri, 23 Jan 2004 12:07:28 +0000 (12:07 +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 3fda2a0432a1dc7a0d28d83e35f6329bc30378e0)

17 years agofix previously committed old version by mistake
Simo Sorce [Thu, 22 Jan 2004 14:44:45 +0000 (14:44 +0000)]
fix previously committed old version by mistake
(This used to be commit 4840b25dbd4d2eafc010389a711d42862d5fb0f0)

17 years agosorry for the conflict markers committed in by mistake :-(
Simo Sorce [Thu, 22 Jan 2004 10:57:16 +0000 (10:57 +0000)]
sorry for the conflict markers committed in by mistake :-(
(This used to be commit c5634e0b713e594a32522df7a76c36639f772ed5)

17 years ago(merge from 3.0)
Andrew Bartlett [Thu, 22 Jan 2004 10:22:47 +0000 (10:22 +0000)]
(merge from 3.0)

Fix for debian Bug#225328 by LaMont Jones <lamont@debian.org>, where
the failure of our LFS test on ia64 caused the _GNU_SOURCE define not to be
added, causeing strndup() not to be defined...

This was due to strdup() bein implicitly declared, and casting
pointer->int->pointer.

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

Andrew Bartlett
(This used to be commit ba9bc99d3df5098864513e73b0086e42cfab2a19)

17 years agomerge:
Stefan Metzmacher [Thu, 22 Jan 2004 01:53:04 +0000 (01:53 +0000)]
merge:
* Add SIGABRT to fault handling
  so we now got a backtrace, if we crash
  in libldap with SIGABRT

metze
(This used to be commit 7f7b86e4b3815b112fe6881af6c261381f35286f)

17 years agoFix compiler warning
Volker Lendecke [Wed, 21 Jan 2004 14:49:34 +0000 (14:49 +0000)]
Fix compiler warning
(This used to be commit 3ec0d3abe9c838ad78fb8fd6a390ea3d8d2b9fcf)

17 years agoDisplay some nicer error messages for login via 'net'. I don't
Volker Lendecke [Wed, 21 Jan 2004 14:38:11 +0000 (14:38 +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 18fa3ee649102f4bd36f9b03702fe72d234b6a3a)

17 years ago1. The most part of this patch changed the unknown_3 flag to the now known
Simo Sorce [Mon, 19 Jan 2004 08:52:53 +0000 (08:52 +0000)]
1. The most part of this patch changed the unknown_3 flag to the now known
meaning of fields_present bit mask. Also avoid it being saved in backends (0
is saved where removing the unit32 would have produced a format change).
Also add support in samr functions to correctly interpret the flags.
Flags still not set properly (eg. still set all flags 0xffffff as previous
code), need a tool to test this properly (I',ve done preliminary tests with
samba4 rpc torture and it seem to work properly against w2k).

2. Patch for handlig the flag user must change password at next logon
in usrmgr based on Jianliang Lu <j.lu@tiesse.com> patch
(This used to be commit 78975e9483e64412e436c5dbfe2b71e20b79de29)

17 years agoFix for a signing bug when the mid wraps.
Jeremy Allison [Sat, 17 Jan 2004 00:30:28 +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 b84d249e67315c153e0aa3c5c9adfcf6ca008f97)

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

17 years agoFix another join problem. Don't use a TALLOC_CTX before it has been
Jim McDonough [Fri, 16 Jan 2004 15:09:20 +0000 (15:09 +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 cab0a4c4d5c7bf9d89697bf1d351eafbd00d7fd2)

17 years agoPatch from "Stoian Ivanov" <sdr@bultra.com>: Add -g (greppable..) to
Volker Lendecke [Fri, 16 Jan 2004 15:02:30 +0000 (15:02 +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 190beff495742d8e45f5e3621ece74c33570d31a)

17 years agoBug 381: check builtin (not local) group SID. Patch from Jianliang Lu <j.lu@tiesse...
Gerald Carter [Thu, 15 Jan 2004 20:51:31 +0000 (20:51 +0000)]
Bug 381: check builtin (not local) group SID.  Patch from Jianliang Lu <j.lu@tiesse.com>
(This used to be commit 59cabc5b940990352ebd0ceef8b6e85ac04669c4)

17 years agoFix net rpc join (at least newstyle) after it was broken by changing
Jim McDonough [Thu, 15 Jan 2004 19:49:57 +0000 (19:49 +0000)]
Fix net rpc join (at least newstyle) after it was broken by changing
the parms to cli_lsa_query_info_policy without changing them here...
(This used to be commit 97d6f4752572cc10894e6e80379c25f5da143ad1)

17 years ago* BUG 446
Gerald Carter [Thu, 15 Jan 2004 19:08:45 +0000 (19:08 +0000)]
* BUG 446
  - setup_logging() in smbclient to be interactive (remove the timestamps)
  - Fix bad return value in pull_ucs2( needs more testing to make sure this
    didn't break something else) that caused clistr_pull() to always read
    the same string from the buffer (pull_usc2() could return -1 if the original
    source length was given as -1)
  - increment some debugging messages to avoid printing them out so often
(This used to be commit f452585073fbeeae3e3a0db644e381f94cb918f3)

17 years agoBUG 958; don't use the -N option when invoking smbclient from the smbtar script
Gerald Carter [Thu, 15 Jan 2004 17:23:49 +0000 (17:23 +0000)]
BUG 958; don't use the -N option when invoking smbclient from the smbtar script
(This used to be commit cb463b8fc9476695507fa996b508d98f1cf1e3ac)

17 years agoreply_spnego_kerberos did not set the domain of the user handed to
Volker Lendecke [Thu, 15 Jan 2004 17:19:20 +0000 (17:19 +0000)]
reply_spnego_kerberos did not set the domain of the user handed to
register_vuid correctly. We ended up with the local netbios name in
substitutions for %D later.

Volker

P.S: Tridge, I can *really* see why you want to get rid of global variables
:-)
(This used to be commit 05bfaa858f8253b02fe0f78f97fb665e6847585d)

17 years agoRemove unused variables.
Rafal Szczesniak [Thu, 15 Jan 2004 09:52:29 +0000 (09:52 +0000)]
Remove unused variables.

rafal
(This used to be commit a284082716bf63569e5921eb33b1ecd1a9b4810d)

17 years agoRemove unused function.
Rafal Szczesniak [Thu, 15 Jan 2004 09:50:47 +0000 (09:50 +0000)]
Remove unused function.

rafal
(This used to be commit 2d2c36cc3f691f31506fbd97e74cf225a2ef85c5)

17 years agomerge:
Stefan Metzmacher [Thu, 15 Jan 2004 09:08:38 +0000 (09:08 +0000)]
merge:
* Fix sys_chown() when no chown() is presend

metze
(This used to be commit ecf5b78248e551f3586967046d8b1da9bbe11e7b)

17 years agomerge:
Stefan Metzmacher [Thu, 15 Jan 2004 08:56:08 +0000 (08:56 +0000)]
merge:
* Fix XFS quotas: XFS_USER_QUOTA -> USRQUOTA
  XFS_GROUP_QUOTA -> GRPQUOTA
* Fix disk_free calculation with group quotas.
* Add debug class 'quota' and a lot of DEBUG()'s
  to the quota code.

metze
(This used to be commit 33c6ca3b4bc0898893b5d95ea2485b7694b9d198)

17 years agoMerge of POBAD_CC removal from 3.0
Tim Potter [Thu, 15 Jan 2004 07:19:12 +0000 (07:19 +0000)]
Merge of POBAD_CC removal from 3.0
(This used to be commit 835a28337f97da143d5b9201a5080fde06bbedf1)

17 years agoBUG 936: fix bind credentials for schannel binds in smbd (and add a comment to winbin...
Gerald Carter [Thu, 15 Jan 2004 06:56:00 +0000 (06:56 +0000)]
BUG 936: fix bind credentials for schannel binds in smbd (and add a comment to winbindd_cm about this
(This used to be commit c1174cf57b1b6fad03de23f6a4ff952671dc87d7)

17 years agoBUG 972; check pointer in cli_ds_getprimarydominfo() before trying to copy a structure
Gerald Carter [Thu, 15 Jan 2004 05:17:40 +0000 (05:17 +0000)]
BUG 972; check pointer in cli_ds_getprimarydominfo() before trying to copy a structure
(This used to be commit a1aed0b517f7476301d8fe4dfebac3db178ba1cd)

17 years agosource/rpc_parse/parse_prs.c ZERO_STRUCTP(ps) not needed as it is done
Herb Lewis [Wed, 14 Jan 2004 23:00:06 +0000 (23:00 +0000)]
source/rpc_parse/parse_prs.c ZERO_STRUCTP(ps) not needed as it is done
in prs_init now

testsuite/printing/psec.c cannot do a prs_mem_free() when tdb_prs_fetch fails
as the prs structure has not been initialized
(This used to be commit 6289d7b842819fb31bec93119f15b3823e02b49e)

17 years agoInitial design of some of the functions to operate on trust passwords
Rafal Szczesniak [Wed, 14 Jan 2004 22:02:16 +0000 (22:02 +0000)]
Initial design of some of the functions to operate on trust passwords
from passdb backend level (tdbsam, in this case).
It is written as wrapper for secrets_ calls that use secrets.tdb file
and is not treated as eventual solution. Trust passwords are being
handled uniformly, SAM_TRUST_PASSWD structure, and so they should be
stored as well.

Note, this code is disabled ie. not used anywhere yet. I'm working
on next routines in line.

rafal
(This used to be commit 02ac9332ab1d34f47667b40ce23b2b5d04c4dff1)

17 years agoComment and formatting fix.
Rafal Szczesniak [Wed, 14 Jan 2004 21:50:25 +0000 (21:50 +0000)]
Comment and formatting fix.

rafal
(This used to be commit 336720416abd1f6d62f9a6748ae6a0454976c9d4)

17 years agoTrust passwords types for use with SAM_TRUST_PASSWD structure.
Rafal Szczesniak [Wed, 14 Jan 2004 21:46:29 +0000 (21:46 +0000)]
Trust passwords types for use with SAM_TRUST_PASSWD structure.

rafal
(This used to be commit ea15c148fd6393512f2fd95d88db6546d40cf14c)

17 years agoFix initgroups() call nss_winbind on solaris; patch from John Klinger <john.klinger...
Gerald Carter [Wed, 14 Jan 2004 21:22:44 +0000 (21:22 +0000)]
Fix initgroups() call nss_winbind on solaris; patch from John Klinger <john.klinger@lmco.com>
(This used to be commit c4d58ec5d5c2b8947824d78639a7e9e615e2a400)

17 years agobug 770; correct fix this time; Make sure that we send the SMBjobid for unix jobs...
Gerald Carter [Wed, 14 Jan 2004 20:57:31 +0000 (20:57 +0000)]
bug 770; correct fix this time;  Make sure that we send the SMBjobid for unix jobs back to the client.  Allows windows client to remove print jobs submitted from lpr
(This used to be commit 6a7f9ebccd6a40455cb5446551f3d68ea9a7a824)

17 years agobug 660; using byte order safe macros (or tdb_unpack) when reading 2 or 4 byte values...
Gerald Carter [Wed, 14 Jan 2004 19:12:54 +0000 (19:12 +0000)]
bug 660; using byte order safe macros (or tdb_unpack) when reading 2 or 4 byte values from a tdb buffer; also recognize smbjobs if the jobid < UNIX_JOB_START
(This used to be commit ae6feb54a09a69e3a870b1a0d707b23eb8ca356a)

17 years agosyncing abartlet's cracklib tests from 3.0
Gerald Carter [Wed, 14 Jan 2004 17:56:05 +0000 (17:56 +0000)]
syncing abartlet's cracklib tests from 3.0
(This used to be commit 64c1db9bce27bbe5bc28acb631b265419d6d6286)

17 years ago* Revert to using rpc for mixed mode AD domains.
Gerald Carter [Wed, 14 Jan 2004 16:26:14 +0000 (16:26 +0000)]
* Revert to using rpc for mixed mode AD domains.
  The reason for this are:
  (a) the set_dc_type_and_flags() cannot tell the different
      between connecting to an NT4 domain and an NT4 BDC
      of a mixed mode domain.
  (b) the connection management for the rpc backend only
      provides on named pipe per cli_state.  So it is possible
      to connect to an NT4 BDC for netlogon and an AD mixed mode
      DC for lsarpc.  RPC is the lowest common demonimator here.
  (c) Issue with the sequence number value between the
      highestCommittedUSN LDAP attribute and the seq_num returned
      via RPC.

We will revisit this later, but the changes need to make this
work right now are too broad and risky.
(This used to be commit 86f24908c395cc832ae87b04c9da3d32449acad3)

17 years agoRemove duplicate extern.
Jeremy Allison [Wed, 14 Jan 2004 06:44:15 +0000 (06:44 +0000)]
Remove duplicate extern.
Jeremy.
(This used to be commit 72d8eea25dbb54d7ef78264cd6f419220dc85fb6)

17 years agoRemove references to 'jn' which gcc-3.4 with precompiled headers
Jeremy Allison [Wed, 14 Jan 2004 06:41:46 +0000 (06:41 +0000)]
Remove references to 'jn' which gcc-3.4 with precompiled headers
doesn't like.
Jeremy.
(This used to be commit bf3d06a2e483d043c89a6b11ceb283a5b392859b)

17 years agomerge:
Stefan Metzmacher [Wed, 14 Jan 2004 02:55:07 +0000 (02:55 +0000)]
merge:
fix XFS quotas the macro changed from HAVE_XFS_QUOTA -> HAVE_XFS_QUOTAS

metze
(This used to be commit ae20cf0810b9bef3d460994d5bf5e820c01296f0)

17 years ago* allow dns lookups to be disabled for DOMAIN#1c (and #1b)
Gerald Carter [Tue, 13 Jan 2004 19:43:50 +0000 (19:43 +0000)]
* allow dns lookups to be disabled for DOMAIN#1c (and #1b)
  names
* fix some a mispelled variable name
(This used to be commit 93fed3074f4384dc658cd0ec81ba2afbe8192417)

17 years agosync HEAD with recent changes in 3.0
Gerald Carter [Tue, 13 Jan 2004 17:55:43 +0000 (17:55 +0000)]
sync HEAD with recent changes in 3.0
(This used to be commit c98399e3c9d74e19b7c9d806ca8028b48866931e)

17 years agoFix --with-fhs for swatdir
Jelmer Vernooij [Sun, 11 Jan 2004 13:40:48 +0000 (13:40 +0000)]
Fix --with-fhs for swatdir
(This used to be commit 69a9cfdad809a9b3fc7f6dc4ad5a708b6559b714)

17 years agoupdate copyright to -2004
Stefan Metzmacher [Sun, 11 Jan 2004 13:21:03 +0000 (13:21 +0000)]
update copyright to -2004

metze
(This used to be commit fcb3c9c61ecd787b8d3e5a53ee8f9e04daae76fe)

17 years agofix some warnings from the Sun compiler; also merge some of abartlet's error code...
Gerald Carter [Fri, 9 Jan 2004 15:36:07 +0000 (15:36 +0000)]
fix some warnings from the Sun compiler; also merge some of abartlet's error code changes form 3.0
(This used to be commit 2279e98cb81faaf8a4e971fec339955f14c23858)