1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

9076 Commits

Author SHA1 Message Date
Jelmer Vernooij
9084002709 Regenerate with newer autoconf -
Andrew Bartlett
7e846e7387 Instead of walking the entire group database, grabbing all members of each
group, testing for membership etc, use the already calculated NT_USER_TOKEN.

(which is initgroups() based)

So far we only fill out the 'domain' groups - we need to fill out the
'other sids' as well, and we possibly need to filter the list for 'domain
groups' only (the old code did that), but Win2k doesn't seem to mind
this for now.

I also need to find out what the magic '7' is about.  Fortunetly JF is in town,
so I'll grill him tomorrow :-).

Andrew Bartlett
-
Tim Potter
be90650674 Make lp_winbind_separator a const string. -
Tim Potter
93306f581e Fix some argument checking bugs found by testsuite. -
Andrew Bartlett
71e24d0200 Add support to switch between Squid 2.4 and 2.5 protocols - squid doesn't
encode the username, so don't decode it (users could play HTTP escaping games
on usernames).

Andrew Bartlett
-
Andrew Bartlett
5b1185b4e8 Move from NT_STATUS_UNSUCCESSFUL to NT_STATUS_NO_SUCH_USER, and other slightly
more useful error codes.
-
Andrew Bartlett
9bac0b7277 Try to twiddle with the makefile to avoid having a trailing \ when we
don't build any extra programs.
-
Andrew Bartlett
ce1464fb1c Remove silly ideas about taking the LM or NT hash as a password in pam_smbpass.
Andrew Bartlett
-
Andrew Bartlett
b3049bb0d0 No need to #include smb.h, when we already #include include.h -
Andrew Bartlett
82dbf83887 Add ntlm_auth, a new program to provide a stable interface to winbind's
authentication code.

In particular, ntlm_auth is designed to replace the winbind authentication
'helpers' currently supplied by Squid.  I have added support for the current
plaintext password protocol used by Squid, and will add the real guts (NTLMSSP
support) shortly.

I'll merge this into 3.0 when I've got the interface more stable (error message
format etc) and got the important NTLMSSP support added.

Also move SWAT's URL decoding code into util_str.c, for use in both utilities.

Andrew Bartlett
-
Gerald Carter
c31a17889e [merge from APP_HEAD]
90% fix for CR 1076.  The password server parameter will no take things
like

        password server = DC1 *

which means to contact DC1 first and the go to auto lookup if it
fails.


jerry
-
Andrew Tridgell
6efdd54d06 a working timegm() function for systems that don't have it -
Jeremy Allison
41b56d975b Please compile with :
-g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual
if you're using gcc. It really does help !
Jeremy.
-
Jeremy Allison
19f86f1f72 Lots of fixes for error paths where tdb_fetch() data need freeing.
Found via a post from Arcady Chernyak <Arcady.Chernyak@efi.com>.
Jeremy.
-
Jeremy Allison
0ac3af1a27 jcmd really should run with a higher compiler warning level more often :-).
Jeremy.
-
Tim Potter
7b982ad962 Rerun autoconf. -
Tim Potter
d6dfe3ea69 Here's a bit of a cleanup of the {configure,Makefile}.in files. I've
now combined all the ad-hoc AC_SUBST variables into three generalised
ones:

  EXTRA_BIN_PROGS 	Additional programs to install in ${prefix}/sbin
  EXTRA_SBIN_PROGS 	Additional programs to install in ${prefix}/bin
  EXTRA_ALL_TARGETS     Additional targets to build by default
  SHLIB_PROGS           Shared library objects (pam, winbind) to build

We also build some extra stuff by default: the python extensions (if
--with-python specified), smbmount related binaries (if
--with-smbmount specified), and the samba torture suite.

The idea behind this is to have everything that is configured built by
default to detect breakage as soon as possible when people make low
level changes.
-
Tim Potter
6f1d48555f Added some extra code to test absence/presence of LM and NT passwords. -
Tim Potter
9e871cc256 Fixed some compiler warnings. -
Tim Potter
4580e16908 Fixed some globals that escaped the recent globalcide. -
Andrew Bartlett
ab812ada56 Add support for 'restrict anonymous=2' and make the doco give a slight hint
as to what it now does in 3.0.  Needs more work, but better than documenting
the old functionality :-).

As the security benifits of this are nullified by a setting of 'guest ok' on
any share, we might want to put some documentation there too.

Andrew Bartlett
-
Martin Pool
ff1244c457 Add support for new 'F' format, which is a string in the default
codepage.
-
Martin Pool
47c5c2209e If you don't specify --with-python, we assume "python" anyhow, because
the extensions are not built until you specifically "make python_ext".
-
Jim McDonough
929874d274 get_nt_error_msg from APPLIANCE_HEAD is called nt_errstr in HEAD. This should fix the build. -
Gerald Carter
3ea73f158e merge get_friendly_nt_err_msg() from app_head -
Andrew Tridgell
d076823c73 fixed a number of places where we can try to free a wild pointer or
look for the record count after an invalid search. This fixes a segv
in ldapsam
-
Tim Potter
43cd6e5a70 Spelling fix. -
Andrew Tridgell
ea3787d819 more %U fixes for head -
Andrew Tridgell
9ead4fc3c3 a better for for using %U in smb.conf
this follows the method used for remote_machine and also fixes the
problem of anonymous connections clobbering the string
-
Jeremy Allison
801b87e0f7 Very curious. It turns out attribute matching on truncate only matters
when opening truncate with current SYSTEM|HIDDEN -> NONE. It's fine to
truncate on open with current NONE -> SYSTEM | HIDDEN.
Jeremy.
-
Tim Potter
e643003dd4 Merge from appliance:
>Fix memory leak in cli_ds_getprimarydominfo()
-
Tim Potter
9f9347bc03 Fix typo in docstring. -
Jeremy Allison
657aa857a5 Added HIDDEN/NORMAL attribute test.
Jeremy.
-
Tim Potter
2beebe252f Bug fix from appliance - we must initialise the winbindd server state
before reading smb.conf parameters, not after.
-
Jim McDonough
a148e4c290 Don't pass a function to ADS_ERR_OK(). -
Jim McDonough
c03d6198f2 Revert ADS_ERR_OK change. Some compilers didn't like it.
The problem is that ADS_ERR_OK() run on a function that returns an ADS_STATUS
causes the function to be run mulitple times...so you have to return a status,
then check it with the macro.
-
Jim McDonough
6b51934616 Back out some goofs that accidentally checked in with printer publishing. -
Jim McDonough
64951938cc Next step of printer publishing.
net ads printer publish <printername> [servername]
Will retreive the DsSpooler and DsDriver info by rpc for a remote server
then publish it.

Next comes doing it within smbd
-
Gerald Carter
6ce20a61a8 formatting fix -
Andrew Tridgell
d664e6b4d2 the change in the way %U is handled to use current_user has broken
some basic usages like 'include = smb.conf.%U'

This changes fixes things again, by checking for reload after we setup
current_user in tconx.
-
Tim Potter
d813997c5a Renamed uuid_to_string() to guid_to_string() to avoid conflict with OSF DEC
headers.
-
Andrew Bartlett
efa639c5ce Remove the assumption that all Solaris has -lsendfile.
Andrew Bartlett
-
Andrew Bartlett
cc7566ca50 Add samdump and vampire to 'net rpc help'
Andrew Bartlett
-
Andrew Bartlett
0e87408eb0 Add const to PACKS() -
Andrew Bartlett
f5d8afc626 Include the hostname we are trying to match with $@, to allow easier debugging. -
Andrew Bartlett
e6d2debaf6 Small auth updates:
- add static remove unnneded prototype
 - move become_root() to just around pdb calls, so as to make it easier to
remove when we kill off this silly idea
 - Change auth_sam to do 'account before password' rather than 'password before
account'.  This means that we match Win2k in giving 'account disabled' instead
of 'wrong password' if the wrong password to a disabled account is used.

Andrew Bartlett
-
Andrew Bartlett
2fd47d0c25 patch from aedil@alchar.org to correctly detect solaris workshop CC's ability
to build shared libs (but not with .po suffix).

Andrew Bartlett
-
Jeremy Allison
507ff510e7 Fix from "Stefan (metze) Metzmacher" <metze@metzemix.de> for nmbd 1c group
release.
Jeremy.
-
Gerald Carter
32ca3afa54 fix segfault -
Gerald Carter
3ac98b5963 enable enumeration of domain local groups using LDAP (and in a native mode domain) -