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

13217 Commits

Author SHA1 Message Date
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
Gerald Carter
d7b6298b9e fixing compile problems due to my recent ads.h changes 0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
Stefan Metzmacher
12d6bc3bd0 update copyright to -2004
metze
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
d12b793d9c Fix swatdir location for --with-fhs 0001-01-01 00:00:00 +00:00
Gerald Carter
ebabf72a78 fix some warnings from the Sun compiler 0001-01-01 00:00:00 +00:00
Andrew Bartlett
7e75a6d681 Romve debugging assertions (oops...)
Andrew Bartlett
0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
65b01f67d5 Use StrCaseCmp, not strcasecmp. Should fix winbind build on IRIX 0001-01-01 00:00:00 +00:00
Gerald Carter
ba9dc0d9fd fix segfault when sid_ptr == 0 in DsEnumDomainTrusts() reply 0001-01-01 00:00:00 +00:00
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 0001-01-01 00:00:00 +00:00
Andrew Bartlett
595dee6607 use SAFE_FREE(), not free().
Andrew Bartlett
0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
Andrew Bartlett
7e6cc8f003 Make it clearer that the domain here is the domain of the user for
authentication.

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

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

Volker
0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
Jeremy Allison
d75db0bf1e Patch penguin. Cleaning out old mbp patch.
Jeremy.
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
7495395c1c Fix -s option to smbcontrol (#908) 0001-01-01 00:00:00 +00:00
Gerald Carter
fac5e05ca1 remove unused seek_file(); don't hardcode '\' when printing the auth-user 0001-01-01 00:00:00 +00:00
Gerald Carter
52480d6d05 bumping to 3.0.2pre2 0001-01-01 00:00:00 +00:00
Gerald Carter
7d7a262f45 isolate ldap debug messages to the common smbldap_XXX() functions 0001-01-01 00:00:00 +00:00
Jeremy Allison
cae5f158e5 XFS quota patch from Stefan Metzmacher <metze@metzemix.de>.
Jeremy.
0001-01-01 00:00:00 +00:00
Volker Lendecke
50be537b19 Correctly detect AFS headers on SuSE in /usr/include/afs/afs/
Volker
0001-01-01 00:00:00 +00:00
Andrew Bartlett
5d43e00a49 Patch by Stefan Metzmacher <metze@metzemix.de>:
here's a small fix that fixes the new quota system on irix.

I need to reanable XFS quotas on irix for the new quota system
(Jerry do you want to wait for this for the release ?)

But the old system works and is the default on irix!
0001-01-01 00:00:00 +00:00
Jeremy Allison
019aaaf0df Patch based on work from James Peach <jpeach@sgi.com> to convert over to
using pread/pwrite. Modified a little to ensure fsp->pos is correct.
Fix for #889.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
93a5d8079a Ensure that for wbinfo --set-auth-user, we actually use the domain.
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Steve French
865fcdcb85 cifs mount helper merge 0001-01-01 00:00:00 +00:00