1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-16 09:57:47 +03:00

9183 Commits

Author SHA1 Message Date
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
bea9e3416f removing inet_aton()
(This used to be commit 08ac3610f9ef7e1c37541729441acfa13b48d34c)
2002-11-27 04:45:12 +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
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
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
Jim McDonough
713b2f0b47 Don't pass a function to ADS_ERR_OK().
(This used to be commit a148e4c290820a48c8b51e0e0459b2171b32c258)
2002-11-18 20:46:20 +00:00
Jim McDonough
e151b54dce 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.
(This used to be commit c03d6198f28ab37ba0c3224bd50779357270486d)
2002-11-18 20:40:44 +00:00
Jim McDonough
711ad374ce Back out some goofs that accidentally checked in with printer publishing.
(This used to be commit 6b51934616d8dd4280ce3013378f7ddd5569f267)
2002-11-18 19:56:55 +00:00
Jim McDonough
bbd3e4b40a 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
(This used to be commit 64951938cc5666a757683cbe9bee3a2c20a05323)
2002-11-18 19:50:36 +00:00
Gerald Carter
155048633f formatting fix
(This used to be commit 6ce20a61a85f129d42c06844d51f4b2b35b41869)
2002-11-18 15:45:06 +00:00
Andrew Tridgell
1000b717a8 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.
(This used to be commit d664e6b4d20d545b31910666d9cea7384fd40a73)
2002-11-18 03:11:59 +00:00
Tim Potter
4cb48b9154 Renamed uuid_to_string() to guid_to_string() to avoid conflict with OSF DEC
headers.
(This used to be commit d813997c5a66f786b191459de0dd030f4a1c539e)
2002-11-17 01:14:30 +00:00
Andrew Bartlett
f85da55c37 Remove the assumption that all Solaris has -lsendfile.
Andrew Bartlett
(This used to be commit efa639c5cef51f2ca903c08d2ad19db70ab7206c)
2002-11-15 21:56:14 +00:00
Andrew Bartlett
1cc2d96cac Add samdump and vampire to 'net rpc help'
Andrew Bartlett
(This used to be commit cc7566ca508f8705a95cdd546553a018731d5f5f)
2002-11-15 21:28:33 +00:00