1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

15511 Commits

Author SHA1 Message Date
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
-
Gerald Carter
40b7d863dc Fix initgroups() call nss_winbind on solaris; patch from John Klinger <john.klinger@lmco.com> -
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 -
Gerald Carter
be9f25bea9 bug 660; using byte order safe macros (or tdb_unpack) when reading 2 or 4 byte values from a tdb buffer -
Gerald Carter
6202e0fa72 revert the cracklib changes until post 3.0.2 -
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.
-
Jeremy Allison
fb088b5679 Remove duplicate extern.
Jeremy.
-
Jeremy Allison
da51988cfa Remove references to 'jn' which gcc-3.4 with precompiled headers
doesn't like.
Jeremy.
-
Stefan Metzmacher
c73e845055 fix XFS quotas the macro changed from HAVE_XFS_QUOTA -> HAVE_XFS_QUOTAS
metze
-
Andrew Bartlett
b0b2010461 Remove duplicate comment.
Andrew Bartlett
-
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
-
Gerald Carter
bca702c976 * allow dns lookups to be disabled for DOMAIN#1c (and #1b)
names
* fix some a mispelled variable name
-
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
-
Gerald Carter
d7b6298b9e fixing compile problems due to my recent ads.h changes -
Andrew Bartlett
bc770edb78 First stab at cracklib support (password quality checking) in Samba 3.0
This adds a configure test, that tries to find out if we have a working
cracklib installation, and tries to pick up the debian hints on where
the dictionary might be found.  Default is per my Fedora Core 1 system -
I'm not sure how much it changes.

Andrew Bartlett
-
Gerald Carter
acc9022550 fix formatting -
Stefan Metzmacher
12d6bc3bd0 update copyright to -2004
metze
-
Jelmer Vernooij
d12b793d9c Fix swatdir location for --with-fhs -
Gerald Carter
83150b5733 starting new version of release notes -- post 3.0.2pre1 -
Gerald Carter
ebabf72a78 fix some warnings from the Sun compiler -
Andrew Bartlett
7e75a6d681 Romve debugging assertions (oops...)
Andrew Bartlett
-
Andrew Bartlett
35f6347a73 Add a new type of name lookup 'ads'. This seperates this from normal
hostname lookups, and ensures that we don't lookup 'short' (ie NetBIOS)
domain names in DNS.

Andrew Bartlett
-
Jelmer Vernooij
65b01f67d5 Use StrCaseCmp, not strcasecmp. Should fix winbind build on IRIX -
Gerald Carter
ba9dc0d9fd fix segfault when sid_ptr == 0 in DsEnumDomainTrusts() reply -
Gerald Carter
8e8a351cab fix a seg fault caused by abartlet's last checkin; there's no way this could have been tested against an NT4 DC -
Andrew Bartlett
a5cf5701e2 We might not have the 'samba' directory in the samba_3_0 build.
Andrew Bartlett
-
Andrew Bartlett
595dee6607 use SAFE_FREE(), not free().
Andrew Bartlett
-
Andrew Bartlett
7c34de8096 This merges in my 'always use ADS' patch. Tested on a mix of NT and ADS
domains, this patch ensures that we always use the ADS backend when
security=ADS, and the remote server is capable.

The routines used for this behaviour have been upgraded to modern Samba
codeing standards.

This is a change in behaviour for mixed mode domains, and if the trusted
domain cannot be reached with our current krb5.conf file, we will show
that domain as disconnected.

This is in line with existing behaviour for native mode domains, and for
our primary domain.

As a consequence of testing this patch, I found that our kerberos error
handling was well below par - we would often throw away useful error
values.  These changes move more routines to ADS_STATUS to return
kerberos errors.

Also found when valgrinding the setup, fix a few memory leaks.

While sniffing the resultant connections, I noticed we would query our
list of trusted domains twice - so I have reworked some of the code to
avoid that.

Andrew Bartlett
-
Andrew Bartlett
c9f9d6d317 In tdb_allocate(), we would create a new record by writing a local variable
'newrec' into the tdb.

This was not initialised, so valgrind warned about it.

(Note:  valgrind only makes sense on tdbs with 'mmap = no' in your smb.conf)

Andrew Bartlett
-
Andrew Bartlett
7e6cc8f003 Make it clearer that the domain here is the domain of the user for
authentication.

Andrew Bartlett
-
Andrew Bartlett
2e6eaad9ce Move more of winbind to use 'find_our_domain()' rather than the dangerous
find_domain_from_name(lp_workgroup()).

(as find_domain_from_name() can change the data in lp_workgroup())

Andrew Bartlett
-
Andrew Bartlett
703f101136 The correct test for 'is our primary domain' is domain->primary -
Andrew Bartlett
6a9bbd1da3 Machines are people too!
While machine accounts cannot use an NTLM login (NT4 style), they are
otherwise full and valid members of the domain, and expect to be able to
use kerberos to connect to CIFS servers.

This means that the LocalSystem account, used by various services, can
perform things like backups, without the admin needing to enter further
passwords.

This particular issue (bug 722) has started to come up a lot on the lists.

I have only enabled it for winbindd-based systems, as the macros use use
to call the 'add user script' will strip the $ from the username for
security reasons.

Andrew Bartlett
-
Jeremy Allison
fac9e6d712 Fix for bug #922. Fast path not called for strlower_m() and strupper_m().
From ab@samba.org (Alexander Bokovoy).
Jeremy.
-
Rafal Szczesniak
5d7f81eea2 Typo fix.
rafal
-
Rafal Szczesniak
b5e492b8ea Doxygen comment fix.
rafal
-
Jeremy Allison
7c4d52014e Fix from Justin Baugh <justin.baugh@request.com> for bugid #948 for
FreeBSD winbindd.
Jeremy.
-
Gerald Carter
344e113368 commiting jra's fix for Exchange clear test auth -
Jeremy Allison
8e20c06ed3 Fix from Luke Howard <lukeh@PADL.COM> for incorrect early free().
Jeremy.
-
Andrew Bartlett
85da181e8a Don't duplicate pulling the 'IPC' username from secrets.tdb, instead
just use one function for both places.

Andrew Bartlett
-
Volker Lendecke
d429536817 There is a German translation of swat -- surprise :-)
Fix some msgs

Volker
-
Jelmer Vernooij
82bd1b45a4 Add smbget utility, a simple wget-like utility that uses libsmbclient.
Supports recursive downloads and resume, progress indication and shows
estimated time remaining.
-
Andrew Bartlett
4ad67f1340 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
d75db0bf1e Patch penguin. Cleaning out old mbp patch.
Jeremy.
-
Gerald Carter
fd357ab4e5 more commits logged -
Jelmer Vernooij
3c936f1cb5 Write bug number like in the rest of the file -
Jelmer Vernooij
7495395c1c Fix -s option to smbcontrol (#908) -
Gerald Carter
fac5e05ca1 remove unused seek_file(); don't hardcode '\' when printing the auth-user -
Gerald Carter
52480d6d05 bumping to 3.0.2pre2 -
Gerald Carter
dc51a4c1f9 more commit logs -