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

10281 Commits

Author SHA1 Message Date
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
Andrew Tridgell
1abaa7c9d3 more %U fixes for head
(This used to be commit ea3787d819df14f8b451780a55d2bf76dc4030ef)
2002-11-20 00:39:57 +00:00
Andrew Tridgell
18e55a69ff 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
(This used to be commit 9ead4fc3c3f8b83f03c762a4dab77a64aabccbf9)
2002-11-19 23:44:24 +00:00
Christopher R. Hertel
22a08a5b12 Fixed two very, very minor typos (that sort of just annoyed me).
(This used to be commit b24e0e9e6d77604ca23fe55734457d8a3d74d585)
2002-11-19 22:05:00 +00:00
Jeremy Allison
cbecefb1b2 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.
(This used to be commit 801b87e0f7c92553dc52b44d669a1795e2b9429f)
2002-11-19 01:45:55 +00:00
Tim Potter
b2201f2f39 Merge from appliance:
>Fix memory leak in cli_ds_getprimarydominfo()
(This used to be commit e643003dd4666d532604d86050d77f8b4212877e)
2002-11-19 01:14:00 +00:00
Tim Potter
d797c7986e Fix typo in docstring.
(This used to be commit 9f9347bc03448f8b93d536f9cd2df8fb496a4c22)
2002-11-19 01:02:43 +00:00
Jeremy Allison
b49e3ed0b5 Added HIDDEN/NORMAL attribute test.
Jeremy.
(This used to be commit 657aa857a5615d953a3f68dd0ded6d4a95e5545e)
2002-11-18 23:12:45 +00:00
Tim Potter
ce93216c93 Bug fix from appliance - we must initialise the winbindd server state
before reading smb.conf parameters, not after.
(This used to be commit 2beebe252f8fc76366d38024b0578f83d8542d1d)
2002-11-18 22:46:45 +00:00