1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

15548 Commits

Author SHA1 Message Date
Andrew Bartlett
493ac5ce98 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
0001-01-01 00:00:00 +00:00
Volker Lendecke
be485eea81 Fix memleak just introduced. Thanks to abartlet :-)
Volker
0001-01-01 00:00:00 +00:00
Volker Lendecke
1797b16fad 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
0001-01-01 00:00:00 +00:00
Andrew Bartlett
636b98dab9 Fix the initialisation vectors for NTLM2, so that they at least make sense,
even if they don't work yet.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
1096271454 If we are providing strndup(), ensure we provide a prototype too.
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
c97d3eb162 Fix removal of attributes in LDAP - we would not actually remove the old
value in the previous code.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
4ca0ab7506 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
0001-01-01 00:00:00 +00:00
Volker Lendecke
09a3001423 Fix typo 0001-01-01 00:00:00 +00:00
Volker Lendecke
6d22f0d8c3 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
0001-01-01 00:00:00 +00:00
Andrew Bartlett
aca07f33a2 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
0001-01-01 00:00:00 +00:00
Stefan Metzmacher
b5e814294e * Add SIGABRT to fault handling
so we now got a backtrace, if we crash
  in libldap with SIGABRT

metze
0001-01-01 00:00:00 +00:00
Volker Lendecke
413ed77142 Fix compiler warning 0001-01-01 00:00:00 +00:00
Volker Lendecke
ea1a5fb303 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
0001-01-01 00:00:00 +00:00
Gerald Carter
083d06cad5 include tdbdump man page in file list 0001-01-01 00:00:00 +00:00
Jeremy Allison
25d739978f 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.
0001-01-01 00:00:00 +00:00
Gerald Carter
4ef4004af0 starting WHATSNEW for thepost 3.0.2rc1 release 0001-01-01 00:00:00 +00:00
Gerald Carter
faec928564 fix another bug caused by cli_lsa_query_info_policy() changes 0001-01-01 00:00:00 +00:00
Gerald Carter
0e0a163235 remove unneeded man pages from packages 0001-01-01 00:00:00 +00:00
Gerald Carter
a7d0aec2b7 BUG 891 & 949: Fedora Packaging Fixes 0001-01-01 00:00:00 +00:00
Jim McDonough
07d6ed4343 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.
0001-01-01 00:00:00 +00:00
Volker Lendecke
4c90421070 Patch from "Stoian Ivanov" <sdr@bultra.com>: Add -g (greppable..) to
smbclient -L to make the output usable in pipes.

Volker
0001-01-01 00:00:00 +00:00
Volker Lendecke
da5944129f 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
0001-01-01 00:00:00 +00:00
Gerald Carter
2fd2c07df4 Bug 381: check builtin (not local) group SID. Patch from Jianliang Lu <j.lu@tiesse.com> 0001-01-01 00:00:00 +00:00
Gerald Carter
db1c6721bf setting version to 3.0.2rc2 0001-01-01 00:00:00 +00:00
Gerald Carter
533fcb5893 adding changelog for 3.0.2rc1 0001-01-01 00:00:00 +00:00
Jim McDonough
a885df7635 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...
0001-01-01 00:00:00 +00:00
Gerald Carter
79fe75dcdf * 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
0001-01-01 00:00:00 +00:00
Gerald Carter
c51eaec4f0 BUG 958; don't use the -N option when invoking smbclient from the smbtar script 0001-01-01 00:00:00 +00:00
Volker Lendecke
3d9931fe29 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
:-)
0001-01-01 00:00:00 +00:00
Volker Lendecke
c4a6151f46 Don't substitute stuff in lp_afs_username_map, this is explicitly
done later.

Volker
0001-01-01 00:00:00 +00:00
Volker Lendecke
945c780764 And another memory corruption in winbind. Arg 3 of safe_strcpy does not
include the terminating 0.

Volker
0001-01-01 00:00:00 +00:00
Volker Lendecke
cd89288e21 Fix a segfault in winbindd. Calling getusersids with a SID that results in 0
groups winbind ended up freeing an uninitialised pointer.

Volker
0001-01-01 00:00:00 +00:00
Stefan Metzmacher
b0c0d73691 * Fix sys_chown() when no chown() is presend
metze
0001-01-01 00:00:00 +00:00
Stefan Metzmacher
e9e5e2036f * 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
0001-01-01 00:00:00 +00:00
Gerald Carter
5134c6bcbc BUG 936: fix bind credentials for schannel binds in smbd (and add a comment to winbindd_cm about this 0001-01-01 00:00:00 +00:00
Tim Potter
67d25f3de8 Fix for bug 905. Remove POBAD_CC as it doesn't seem to be applicable
anymore.
0001-01-01 00:00:00 +00:00
Gerald Carter
1c15bfacb4 BUG 972; check pointer in cli_ds_getprimarydominfo() before trying to copy a structure 0001-01-01 00:00:00 +00:00
Herb Lewis
a363e5d8c5 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
0001-01-01 00:00:00 +00:00
Gerald Carter
40b7d863dc Fix initgroups() call nss_winbind on solaris; patch from John Klinger <john.klinger@lmco.com> 0001-01-01 00:00:00 +00:00
Gerald Carter
5145611188 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 0001-01-01 00:00:00 +00:00
Gerald Carter
be9f25bea9 bug 660; using byte order safe macros (or tdb_unpack) when reading 2 or 4 byte values from a tdb buffer 0001-01-01 00:00:00 +00:00
Gerald Carter
6202e0fa72 revert the cracklib changes until post 3.0.2 0001-01-01 00:00:00 +00:00
Gerald Carter
1ed2e52153 * 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.
0001-01-01 00:00:00 +00:00
Jeremy Allison
fb088b5679 Remove duplicate extern.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
da51988cfa Remove references to 'jn' which gcc-3.4 with precompiled headers
doesn't like.
Jeremy.
0001-01-01 00:00:00 +00:00
Stefan Metzmacher
c73e845055 fix XFS quotas the macro changed from HAVE_XFS_QUOTA -> HAVE_XFS_QUOTAS
metze
0001-01-01 00:00:00 +00:00
Andrew Bartlett
b0b2010461 Remove duplicate comment.
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
17518018c0 Finish adding cracklib support - this adds the configure test to enable
it, on machines that actually have a working cracklib, for which we have
the correct path to the dictionary.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Gerald Carter
bca702c976 * allow dns lookups to be disabled for DOMAIN#1c (and #1b)
names
* fix some a mispelled variable name
0001-01-01 00:00:00 +00:00
Andrew Bartlett
4a01f3dbb4 On systems without a working cracklib, ensure we don't include the header
(the actual call to crack was already in this #ifdef)

Andrew Bartlett
0001-01-01 00:00:00 +00:00