1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-21 01:59:07 +03:00

10289 Commits

Author SHA1 Message Date
Andrew Bartlett
f634f24cf8 Dereference the correct thing here, so we don't segfault
(This used to be commit ea18d02036b4e0502e5ecb057c9fe381709a07d8)
2002-12-01 03:12:50 +00:00
Andrew Bartlett
969b569d84 Make it clear that we might not be talking to a PDC here.
(This used to be commit 7d099e9a5b7164e8cdbdb93d8c4527f02c8bdefd)
2002-12-01 03:11:53 +00:00
Andrew Bartlett
d1438c4b20 POSIX indicates that this is always in network byte order, so we don't need the
little-endian case (tested on Intel-linux).

Andrew Bartlett
(This used to be commit 281b713b12ece63d499652df193509c57312b749)
2002-12-01 03:02:50 +00:00
Andrew Bartlett
f238a3e58b Patch from Paul Green to detect exe extensions, needed for Stratus VOS.
Andrew Bartlett
(This used to be commit 3f5608c7e0175184fa599176178d391d54087b3d)
2002-12-01 01:35:40 +00:00
Jeremy Allison
fe768c3315 Fixup of ordered cleanup of get_dc_list - bug found by Dominik 'Aeneas' Schnitzer <dominik@schnitzer.at>
Jeremy.
(This used to be commit 7ba051a830a7dc96e3860a87643a3ac99cdf5836)
2002-12-01 00:46:50 +00:00
Tim Potter
899582f0f1 Ignore ntlm_auth binary.
(This used to be commit 25bbd0d1f90f819fcc7d9446f4f7e75e2434a639)
2002-11-29 02:46:33 +00:00
Tim Potter
9c7891e964 Fixed silly bug.
(This used to be commit 191c1596f5e939e733c9262c3beaf956328c7be6)
2002-11-29 02:44:09 +00:00
Tim Potter
bd1b785e46 Rerun autoconf.
(This used to be commit d9644ea3edb085c5eb72593cef8f167fce6464c9)
2002-11-29 01:21:14 +00:00
Tim Potter
7916923943 Fix up smbwrapper target.
(This used to be commit f5fa4801ceb56b21facccb382db09165936df319)
2002-11-29 01:19:27 +00:00
Jelmer Vernooij
ad4849825e merge in some changes from metze's patches (rest follows later, after
some issues in the new module system have been resolved)
(This used to be commit 5b4d03fc8549696baebc0b4417582203ad7ba88e)
2002-11-28 18:45:11 +00:00
Jelmer Vernooij
fcbd2693c9 Add PDBLIBDIR, just like VFSLIBDIR
(This used to be commit 3d0735e6b03ae77af42135a7f1aebb4206ae6655)
2002-11-28 14:26:32 +00:00
Jeremy Allison
f069aaa671 Fix comment - 850 -> iso8859-1
Jeremy.
(This used to be commit 6639693746ba4c8f6622325ac143f8b1b3bd7538)
2002-11-27 21:00:55 +00:00
Jeremy Allison
cb51beac60 Remove use of 'F' - make 'f' and 'p' do unix (iso8859-1) encoding.
Jeremy.
(This used to be commit e88bbec2a06bd92b8cfa33efdf166c4fa72cb656)
2002-11-27 20:58:45 +00:00
Jeremy Allison
e65e16fdf6 Test was reversed for ERRmoredata in cli_read.
Jeremy.
(This used to be commit 1a36ac60bef8de5368860478c268ba1671bb4825)
2002-11-27 19:09:48 +00:00
Gerald Carter
4060d198bf merging changes from SAMBA_3_0 relating to RPM packaging
(This used to be commit 1cf0cfa1b7f00946c439b2b1a30ab3981df4a459)
2002-11-27 16:59:31 +00:00
Gerald Carter
5e26f1d6a5 syncing packaging files with SAMBA_3_0
(This used to be commit cdeb6281f75fe8422015a1af52bf515ff8288ba8)
2002-11-27 16:11:13 +00:00
Gerald Carter
bea9e3416f removing inet_aton()
(This used to be commit 08ac3610f9ef7e1c37541729441acfa13b48d34c)
2002-11-27 04:45:12 +00:00
Gerald Carter
2f86978f53 sync docs with SAMBA_3_0 and regenerate
(This used to be commit 20e6d8c036a4c4ecfa2afb1dd29342c81ce00f8b)
2002-11-27 02:47:56 +00:00
Gerald Carter
e6f956f9b4 fix cli_ds_getprimarydominfo(); merge from SAMBA_3_0
(This used to be commit 481a8a8aa9dff336929cb168302f3faa3f046aa8)
2002-11-27 02:23:25 +00:00
Andrew Bartlett
8963cf1e58 After consultation with tpot, remove the 'winbind_domain' environment
variable hack, the feild on the pipe, and the server-side.

It only controlled some enum operations in any case.

This is to try and have less 'magic' environment variables.

Andrew Bartlett
(This used to be commit e4be82e4e2c7cdf15f3e20f73fe9f281f6384423)
2002-11-26 12:04:16 +00:00
Andrew Bartlett
65643516d7 Having waited for *way* too long, this is mimir's namecache and trusted domain
cache code.

This uses gencache, mimir's new caching code that stores at text-based cache
of various data.

Mimir has done a *lot* of work on this patch, and it is finally time to
get it in CVS.

Andrew Bartlett
(This used to be commit 47f3bfe9564e7f3aff60cefaefd599e0abb30a31)
2002-11-26 11:57:30 +00:00
Gerald Carter
585e8a8c02 [print notify fixes from APP_HEAD]
* fixing change notify on print server handle
 * adding change notify support into smbcontrol for sending comment
   changes, etc...

All part of CR 1159/1160
(This used to be commit 256d8c27cdc6f802f3bfba44593b07014f6ae10a)
2002-11-26 00:01:56 +00:00
Jelmer Vernooij
793cfe497e Regenerate with newer autoconf
(This used to be commit 9084002709a6f50d8d92a37e8181e4a7bf20c577)
2002-11-25 15:15:56 +00:00
Andrew Bartlett
af365408d5 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
(This used to be commit 7e846e7387247f8bc2b07a1a1006014c6978143b)
2002-11-25 06:54:22 +00:00
Tim Potter
edc8dda5c0 Make lp_winbind_separator a const string.
(This used to be commit be90650674ce5ebc292fc804e6168c5cc4ed25dd)
2002-11-25 03:05:59 +00:00
Tim Potter
0de32d4533 Fix some argument checking bugs found by testsuite.
(This used to be commit 93306f581e3fa37d1aea67e93dc83d5a6d2fcb3f)
2002-11-25 00:25:31 +00:00
Andrew Bartlett
01063e8845 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
(This used to be commit 71e24d0200e71ffcf52eaa77edc89175f31a45cd)
2002-11-24 21:08:36 +00:00
Andrew Bartlett
57b23e2d0e Move from NT_STATUS_UNSUCCESSFUL to NT_STATUS_NO_SUCH_USER, and other slightly
more useful error codes.
(This used to be commit 5b1185b4e8592e6bc1abe581950571e249c03a78)
2002-11-24 08:46:34 +00:00
Andrew Bartlett
e388334ed7 Try to twiddle with the makefile to avoid having a trailing \ when we
don't build any extra programs.
(This used to be commit 9bac0b72774fe0c05956065a34ef48c05a7acaad)
2002-11-24 08:42:10 +00:00
Andrew Bartlett
0b2028e6ce Remove silly ideas about taking the LM or NT hash as a password in pam_smbpass.
Andrew Bartlett
(This used to be commit ce1464fb1c4c00de22b0e65c3199bc2eacea4d65)
2002-11-24 08:38:53 +00:00
Andrew Bartlett
94596400e3 No need to #include smb.h, when we already #include include.h
(This used to be commit b3049bb0d0ff97142940e2b33e9603d1c231ccfe)
2002-11-24 08:37:02 +00:00
Andrew Bartlett
5aca399a38 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
(This used to be commit 82dbf838879e8a2d2d3f9dd5be6eda50b780b787)
2002-11-24 08:32:03 +00:00
Gerald Carter
191dff2d27 [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
(This used to be commit c31a17889e3e4daf7c1e807038efc2c0fba78be3)
2002-11-23 14:27:56 +00:00
Andrew Tridgell
9c68f9064d a working timegm() function for systems that don't have it
(This used to be commit 6efdd54d063043cac2fe151231ac1999ade25704)
2002-11-23 06:39:04 +00:00
Jeremy Allison
905639d9fa Please compile with :
-g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual
if you're using gcc. It really does help !
Jeremy.
(This used to be commit 41b56d975bc37434a4bff9188970346010dc6e1c)
2002-11-23 02:58:29 +00:00
Jeremy Allison
f023d6129b Lots of fixes for error paths where tdb_fetch() data need freeing.
Found via a post from Arcady Chernyak <Arcady.Chernyak@efi.com>.
Jeremy.
(This used to be commit 19f86f1f72aca924e9e320e20a175b5d21de45ad)
2002-11-23 02:52:38 +00:00
Jeremy Allison
823f8507cb jcmd really should run with a higher compiler warning level more often :-).
Jeremy.
(This used to be commit 0ac3af1a27b8f1b9935bbcb6f3ec0b11d01bfcbd)
2002-11-23 02:51:31 +00:00
Tim Potter
211187aede Rerun autoconf.
(This used to be commit 7b982ad962dfaa140b4602e56aae772e01772a56)
2002-11-22 06:56:28 +00:00
Tim Potter
4c3f069028 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.
(This used to be commit d6dfe3ea69d4672339559389c6fb16e78a9152b0)
2002-11-22 06:54:12 +00:00
Tim Potter
9e745ada4c Added some extra code to test absence/presence of LM and NT passwords.
(This used to be commit 6f1d48555f53ea3b32a7b8a6cf0fc2e148c311b7)
2002-11-22 06:51:14 +00:00
Tim Potter
b7b7ff55cc Fixed some compiler warnings.
(This used to be commit 9e871cc256a70bc64e59630bd31c890cc231368e)
2002-11-22 06:18:03 +00:00
Tim Potter
d1bedec87c Fixed some globals that escaped the recent globalcide.
(This used to be commit 4580e16908fe06a2c2b6738683b7cb840467e61c)
2002-11-22 06:15:43 +00:00
Andrew Bartlett
a75f1ba9d4 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
(This used to be commit ab812ada56b740ac986de8e1f4ca36641ec61c01)
2002-11-22 02:40:21 +00:00
Martin Pool
abc32ea850 Add support for new 'F' format, which is a string in the default
codepage.
(This used to be commit ff1244c457d0525343bcc7e89a899d8c7d14b8b6)
2002-11-22 01:12:23 +00:00
Martin Pool
d18bcbb174 If you don't specify --with-python, we assume "python" anyhow, because
the extensions are not built until you specifically "make python_ext".
(This used to be commit 47c5c2209e3999b8f58204c978b30a9dd646497a)
2002-11-21 01:33:42 +00:00
Jim McDonough
3e1846d0de get_nt_error_msg from APPLIANCE_HEAD is called nt_errstr in HEAD. This should fix the build.
(This used to be commit 929874d2744509bba743d99b9c707e7626845fa0)
2002-11-21 00:58:50 +00:00
Gerald Carter
e955763315 merge get_friendly_nt_err_msg() from app_head
(This used to be commit 3ea73f158ebfca0561d7928e5d6c0939c0734585)
2002-11-21 00:10:28 +00:00
Andrew Tridgell
211b99b2cb 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
(This used to be commit d076823c73731a4c83f49a21f13360a38d54406e)
2002-11-20 11:30:19 +00:00
Tim Potter
a520e3c76d Ignore automatically generated Makefile.
(This used to be commit 152c530089191d1867ad018a54bba02a1a85c31e)
2002-11-20 03:01:55 +00:00
Tim Potter
ee90b48633 Spelling fix.
(This used to be commit 43cd6e5a702bb1004b36a5845e0765851395ebf2)
2002-11-20 03:00:32 +00:00