1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-10 13:57:47 +03:00

12678 Commits

Author SHA1 Message Date
Andrew Bartlett
ba9bc99d3d (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
-
Stefan Metzmacher
7f7b86e4b3 merge:
* Add SIGABRT to fault handling
  so we now got a backtrace, if we crash
  in libldap with SIGABRT

metze
-
Volker Lendecke
3ec0d3abe9 Fix compiler warning -
Volker Lendecke
18fa3ee649 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
-
Simo Sorce
78975e9483 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
-
Jeremy Allison
b84d249e67 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.
-
Gerald Carter
f966452328 fix another bug caused by cli_lsa_query_info_policy() changes -
Jim McDonough
cab0a4c4d5 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.
-
Volker Lendecke
190beff495 Patch from "Stoian Ivanov" <sdr@bultra.com>: Add -g (greppable..) to
smbclient -L to make the output usable in pipes.

Volker
-
Gerald Carter
59cabc5b94 Bug 381: check builtin (not local) group SID. Patch from Jianliang Lu <j.lu@tiesse.com> -
Jim McDonough
97d6f47525 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...
-
Gerald Carter
f452585073 * 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
-
Gerald Carter
cb463b8fc9 BUG 958; don't use the -N option when invoking smbclient from the smbtar script -
Volker Lendecke
05bfaa858f 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
:-)
-
Rafal Szczesniak
a284082716 Remove unused variables.
rafal
-
Rafal Szczesniak
2d2c36cc3f Remove unused function.
rafal
-
Stefan Metzmacher
ecf5b78248 merge:
* Fix sys_chown() when no chown() is presend

metze
-
Stefan Metzmacher
33c6ca3b4b 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
-
Tim Potter
835a28337f Merge of POBAD_CC removal from 3.0 -
Gerald Carter
c1174cf57b BUG 936: fix bind credentials for schannel binds in smbd (and add a comment to winbindd_cm about this -
Gerald Carter
a1aed0b517 BUG 972; check pointer in cli_ds_getprimarydominfo() before trying to copy a structure -
Herb Lewis
6289d7b842 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
-
Rafal Szczesniak
02ac9332ab 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
-
Rafal Szczesniak
336720416a Comment and formatting fix.
rafal
-
Rafal Szczesniak
ea15c148fd Trust passwords types for use with SAM_TRUST_PASSWD structure.
rafal
-
Gerald Carter
c4d58ec5d5 Fix initgroups() call nss_winbind on solaris; patch from John Klinger <john.klinger@lmco.com> -
Gerald Carter
6a7f9ebccd 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 -
Gerald Carter
ae6feb54a0 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 -
Gerald Carter
64c1db9bce syncing abartlet's cracklib tests from 3.0 -
Gerald Carter
86f24908c3 * 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.
-
Jeremy Allison
72d8eea25d Remove duplicate extern.
Jeremy.
-
Jeremy Allison
bf3d06a2e4 Remove references to 'jn' which gcc-3.4 with precompiled headers
doesn't like.
Jeremy.
-
Stefan Metzmacher
ae20cf0810 merge:
fix XFS quotas the macro changed from HAVE_XFS_QUOTA -> HAVE_XFS_QUOTAS

metze
-
Gerald Carter
93fed3074f * allow dns lookups to be disabled for DOMAIN#1c (and #1b)
names
* fix some a mispelled variable name
-
Gerald Carter
c98399e3c9 sync HEAD with recent changes in 3.0 -
Jelmer Vernooij
69a9cfdad8 Fix --with-fhs for swatdir -
Stefan Metzmacher
fcb3c9c61e update copyright to -2004
metze
-
Gerald Carter
2279e98cb8 fix some warnings from the Sun compiler; also merge some of abartlet's error code changes form 3.0 -
Gerald Carter
36d985a75f fix segfault when sid_ptr == 0 in DsEnumDomainTrusts() reply -
Jeremy Allison
88c5145432 Fix for bug #922. Fast path not called for strlower_m() and strupper_m().
From ab@samba.org (Alexander Bokovoy).
Jeremy.
-
Rafal Szczesniak
f912d8c340 This was cut-n-paste mistake, I guess... :)
rafal
-
Rafal Szczesniak
4a2bd4de3f Typo fix.
rafal
-
Rafal Szczesniak
4f92db99be Fixes to doxygen comment. -
Rafal Szczesniak
9ce6dc6476 Prototype version of trust passwords moved to SAM/pdb. This is
backend-independent part ie. interface - does build and (it seems)
doesn't break anything else.


rafal
-
Gerald Carter
05dd338301 commiting jra's fix for Exchange clear test auth -
Jeremy Allison
e763a220f4 Fix from Luke Howard <lukeh@PADL.COM> for incorrect early free().
Jeremy.
-
Volker Lendecke
70b0fcdeec Merge Translation fixes
Volker
-
Andrew Bartlett
24d7eed6ca (merge from 3.0)
Fix segfualt caused by incorrect configuration.  If lp_realm() was not set,
but security=ADS, we would attempt to free the principal name that krb5
never allocated.

Also fix the dump_data() of the session key, now that we use a data_blob to
store that.

Andrew Bartlett
-
Jeremy Allison
a0dc10bed6 Patch penguin. Cleaning out old mbp patch.
Jeremy.
-
Gerald Carter
175c5c9faa remove unused seek_file(); don't hardcode '\' when printing the auth-user -