1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

13277 Commits

Author SHA1 Message Date
Andrew Tridgell
423ad90974 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 8b8f0c5279)
2004-02-02 12:02:43 +00:00
Volker Lendecke
590b60045d Remove bogus check. No functional change, just cosmetics.
Volker
(This used to be commit e3a5e2d9c2)
2004-02-02 07:53:56 +00:00
Andrew Bartlett
c45c03ac89 Always at least try to compile in cracklib support.
Andrew Bartlett
(This used to be commit 6cde5e8307)
2004-02-02 07:47:25 +00:00
Andrew Bartlett
1daa101516 Merge the 'use cracklib' parameter from HEAD back to 3.0
Andrew Bartlett
(This used to be commit 2202667ebb)
2004-02-02 07:45:50 +00:00
Gerald Carter
19cc1a9f20 remerge andrew's cracklib patch from HEAD and fix a compile warnings
(This used to be commit b60f6ec30d)
2004-02-02 00:08:35 +00:00
Tim Potter
4c49368dbc Include sys/acl.h in check for broken nisplus include files. Bug #1025.
(This used to be commit 5ca866f247)
2004-02-01 22:17:36 +00:00
Tim Potter
6d69dd9ae2 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 2423a45947)
2004-02-01 10:55:54 +00:00
Gerald Carter
575bc995c0 * 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 87343fc15a)
2004-01-31 18:25:57 +00:00
Gerald Carter
aa10de1fe4 cleanup patch for bug 977 so we don't display incorrect debug messages
(This used to be commit 11093ecfb7)
2004-01-31 14:44:27 +00:00
Andrew Bartlett
9751ccf2af 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 ab7dd748a9)
2004-01-30 23:37:38 +00:00
Jeremy Allison
2f2e5b0191 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 3a3e336030)
2004-01-30 18:38:48 +00:00
Gerald Carter
3141a26677 disable any account that doesn't have a password and doesn't had the ACB_PWNOTREQ bit set
(This used to be commit 52bf070b10)
2004-01-30 14:59:40 +00:00
Gerald Carter
d4420dc902 more initialization fixes
(This used to be commit 9e590d6035)
2004-01-29 22:16:58 +00:00
Gerald Carter
f5bb18bfcb disable template accounts by default
(This used to be commit 02899224a1)
2004-01-29 20:15:12 +00:00
Gerald Carter
6566a89bee initialization fixes
(This used to be commit 54fd3992c3)
2004-01-29 20:14:50 +00:00
Gerald Carter
cf3bbe7385 removing more unused parameters
(This used to be commit 8135ea08b3)
2004-01-29 17:28:45 +00:00
Gerald Carter
0fa3773bac BUG 570: don't overwrite LDFLAGS; patch from MORIYAMA Masayuki <moriyama@miraclelinux.com>
(This used to be commit d39b1b3fd6)
2004-01-29 14:03:48 +00:00
Andrew Tridgell
a2b533c9f9 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 d62cb9454e)
2004-01-29 06:14:13 +00:00
Richard Sharpe
a01dfa47de Remove an unused parameter from reload_services_file.
(This used to be commit 0032c3f46a)
2004-01-29 00:10:40 +00:00
Jeremy Allison
a0cefa62e6 Merge of Chris's fix.
Jeremy.
(This used to be commit 1a7714ea32)
2004-01-28 23:41:55 +00:00
Gerald Carter
41ab2cebcc forgotten commit -- version == 3.0.3pre1
(This used to be commit 043a81b94d)
2004-01-27 19:00:06 +00:00
Gerald Carter
727afa9e1f prepping the SAMBA_3_0 branch for 3.0.3 work
(This used to be commit 50f278ddcc)
2004-01-27 15:29:30 +00:00
Gerald Carter
f104d75026 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 6b89a76aa7)
2004-01-27 15:28:33 +00:00
Andrew Bartlett
e2d301accf Clarify comment on set_effective_uid()
Andrew Bartlett
(This used to be commit ca24ae50ea)
2004-01-27 10:01:30 +00:00
Andrew Bartlett
36abff1609 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 934e9f3bd0)
2004-01-26 09:03:09 +00:00
Andrew Bartlett
784b05c489 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 2a2b1f0c87)
2004-01-26 08:45:02 +00:00
Andrew Bartlett
8be4584979 Add a few more NTSTATUS <=> PAM error mappings.
Andrew Bartlett
(This used to be commit 7495cafd42)
2004-01-26 08:38:34 +00:00
Andrew Bartlett
c26e4057ae 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 493ac5ce98)
2004-01-26 02:19:44 +00:00
Volker Lendecke
7ff912521a Fix memleak just introduced. Thanks to abartlet :-)
Volker
(This used to be commit be485eea81)
2004-01-25 10:14:50 +00:00
Volker Lendecke
4d6b478b19 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 1797b16fad)
2004-01-25 10:04:10 +00:00
Andrew Bartlett
b31ec210fc 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 636b98dab9)
2004-01-25 01:11:10 +00:00
Andrew Bartlett
181f2be495 If we are providing strndup(), ensure we provide a prototype too.
Andrew Bartlett
(This used to be commit 1096271454)
2004-01-25 01:02:39 +00:00
Andrew Bartlett
236adfd9f4 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 c97d3eb162)
2004-01-25 00:50:39 +00:00
Andrew Bartlett
eade7ab769 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 4ca0ab7506)
2004-01-24 10:46:55 +00:00
Volker Lendecke
9038e9e2c3 Fix typo
(This used to be commit 09a3001423)
2004-01-23 12:57:29 +00:00
Volker Lendecke
aa7a675025 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 6d22f0d8c3)
2004-01-23 12:04:07 +00:00
Andrew Bartlett
8975dde004 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 aca07f33a2)
2004-01-22 10:12:26 +00:00
Stefan Metzmacher
fc33274a27 * Add SIGABRT to fault handling
so we now got a backtrace, if we crash
  in libldap with SIGABRT

metze
(This used to be commit b5e814294e)
2004-01-22 01:50:58 +00:00
Volker Lendecke
f9e9acb07f Fix compiler warning
(This used to be commit 413ed77142)
2004-01-21 14:48:02 +00:00
Volker Lendecke
28cc456e08 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 ea1a5fb303)
2004-01-21 14:36:56 +00:00
Jeremy Allison
bb1119acca 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 25d739978f)
2004-01-17 00:30:35 +00:00
Gerald Carter
0cf45c96b4 fix another bug caused by cli_lsa_query_info_policy() changes
(This used to be commit faec928564)
2004-01-16 22:15:35 +00:00
Jim McDonough
261fba09ef 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 07d6ed4343)
2004-01-16 15:07:28 +00:00
Volker Lendecke
4fd80158ab 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 4c90421070)
2004-01-16 15:01:09 +00:00
Volker Lendecke
fadc012803 Commit sid<->[ug]id extensions to libnss_winbind.so on Linux, as well as a
factored-out nss_winbind.[ch]. I took tridge's public domain license comment
for the nss_winbind.[ch].

This is probably not the last word on that extension, but as it is quite
non-intrusive to the main samba code, I would like to give it a start.

Volker
(This used to be commit da5944129f)
2004-01-16 13:11:01 +00:00
Gerald Carter
4180525599 Bug 381: check builtin (not local) group SID. Patch from Jianliang Lu <j.lu@tiesse.com>
(This used to be commit 2fd2c07df4)
2004-01-15 20:47:30 +00:00
Gerald Carter
1c3ade4108 setting version to 3.0.2rc2
(This used to be commit db1c6721bf)
2004-01-15 20:32:27 +00:00
Jim McDonough
8083486dee 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 a885df7635)
2004-01-15 19:45:36 +00:00
Gerald Carter
b20f1a95a9 * 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 79fe75dcdf)
2004-01-15 19:03:18 +00:00
Gerald Carter
ad40c8a1f4 BUG 958; don't use the -N option when invoking smbclient from the smbtar script
(This used to be commit c51eaec4f0)
2004-01-15 17:18:39 +00:00