Gerald Carter [Wed, 4 Dec 2002 19:00:29 +0000 (19:00 +0000)]
[merge] remove assert(count ==1) for multi-homed PDCs; CR 1277
Jeremy Allison [Wed, 4 Dec 2002 18:44:21 +0000 (18:44 +0000)]
Need brackets around macro args. Spotted by Patrick Welche <prlw1@newn.cam.ac.uk>.
Jeremy.
Jeremy Allison [Wed, 4 Dec 2002 18:40:01 +0000 (18:40 +0000)]
Doing janitorial duty for tpot - memory leak fix.
Jeremy.
Jim McDonough [Wed, 4 Dec 2002 17:28:51 +0000 (17:28 +0000)]
printer publishing when using APW or choosing 'list in the directory' in printer settings. Currently very little is published, and you cannot unpublish because of a bug in win2k clients.
Gerald Carter [Wed, 4 Dec 2002 13:25:51 +0000 (13:25 +0000)]
ln -s /lib/libns_winbind.so /lib/libnss_winbind.so.2
Jeremy Allison [Wed, 4 Dec 2002 03:21:18 +0000 (03:21 +0000)]
Missed the removal of the incorrect ifdef.
Jeremy.
Jeremy Allison [Wed, 4 Dec 2002 03:12:28 +0000 (03:12 +0000)]
Fix for 64 bit issues with oplocks and allocation size.
Jeremy.
Jeremy Allison [Wed, 4 Dec 2002 02:37:47 +0000 (02:37 +0000)]
THIS FILE IS NOT OBSOLETE JELMER. DO NOT REMOVE ! Removing it breaks
autoconf 2.13.
Jeremy.
Gerald Carter [Wed, 4 Dec 2002 01:14:34 +0000 (01:14 +0000)]
[merge from app_head]
XP sends GetPrinterData("ChangeId"). So we now respond accordingly.
Possible fix for CR 1147.
Jeremy Allison [Tue, 3 Dec 2002 23:57:55 +0000 (23:57 +0000)]
Reformat of reply.c before Volker's patch.
Jeremy.
Tim Potter [Tue, 3 Dec 2002 22:32:44 +0000 (22:32 +0000)]
Rerun autoconf.
Tim Potter [Tue, 3 Dec 2002 22:04:54 +0000 (22:04 +0000)]
Defaulting python breaks the clean target it python isn't installed.
Herb Lewis [Tue, 3 Dec 2002 21:49:00 +0000 (21:49 +0000)]
use FILE_MACRO instead of __FILE__
use FUNCTION_MACRO instead of __FUNCTION_
Herb Lewis [Tue, 3 Dec 2002 20:00:31 +0000 (20:00 +0000)]
use the new IVAL_TO_SMB_OFF_T for file_info size member
dir now shows correct size on large files
Jim McDonough [Tue, 3 Dec 2002 19:48:18 +0000 (19:48 +0000)]
Support printer info 7, used for publishing
Jim McDonough [Tue, 3 Dec 2002 19:41:43 +0000 (19:41 +0000)]
Stop using hardcoded key/value strings, be more forgiving of dsspooler/dsdriver info existence.
Jim McDonough [Tue, 3 Dec 2002 19:37:42 +0000 (19:37 +0000)]
Stop using hacks for dns host/domain names.
Jim McDonough [Tue, 3 Dec 2002 19:35:46 +0000 (19:35 +0000)]
fns for retrieving dns host name and domain name (get rid of lp_realm hacks).
Jim McDonough [Tue, 3 Dec 2002 19:26:47 +0000 (19:26 +0000)]
Add defines for standard DsSpooler/DsDriver values that get published.
Jim McDonough [Tue, 3 Dec 2002 19:24:51 +0000 (19:24 +0000)]
Don't segfault when trying to delete a key when none exist.
Jeremy Allison [Tue, 3 Dec 2002 08:02:21 +0000 (08:02 +0000)]
Fixed nasty bug where file writes with start offsets in the range
0x80000000 -> 0xFFFFFFFF would fail as they were being cast
from IVAL (uint32) to SMB_OFF_T (off_t or off64_t, both *signed* types).
The sign extension would cause the offset to be treated as negative.
Thanks to Herb for helping me track this one down (IRIX is good for large
file tests :-).
Jeremy.
PS. That horrid EXEXIST thing has broken configure.....
Tim Potter [Tue, 3 Dec 2002 05:44:36 +0000 (05:44 +0000)]
Fixes for EXEEXT - must use \$ signs when you want an actual $ sign to
be used.
Andrew Bartlett [Sun, 1 Dec 2002 19:52:09 +0000 (19:52 +0000)]
As per Jeremy's request back this out, so as to re-gain the implicit length
check.
Andrew Bartlett
Andrew Bartlett [Sun, 1 Dec 2002 04:11:20 +0000 (04:11 +0000)]
Link less with smbmnt and smbumount. Also change from a pstrcpy() to a
strncpy() to make it clear that we must operate on a PATH_MAX sized buffer.
Andrew Bartlett
Andrew Bartlett [Sun, 1 Dec 2002 03:16:59 +0000 (03:16 +0000)]
No need for fstring manipulation here (Tcon&X), just use string pointers.
Andrew Bartlett
Andrew Bartlett [Sun, 1 Dec 2002 03:14:30 +0000 (03:14 +0000)]
Remove extra headers, and ensure that we correctly bail out of winbindd if we
can't create the socket.
Andrew Bartlett
Andrew Bartlett [Sun, 1 Dec 2002 03:12:50 +0000 (03:12 +0000)]
Dereference the correct thing here, so we don't segfault
Andrew Bartlett [Sun, 1 Dec 2002 03:11:53 +0000 (03:11 +0000)]
Make it clear that we might not be talking to a PDC here.
Andrew Bartlett [Sun, 1 Dec 2002 03:02:50 +0000 (03:02 +0000)]
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
Andrew Bartlett [Sun, 1 Dec 2002 01:35:40 +0000 (01:35 +0000)]
Patch from Paul Green to detect exe extensions, needed for Stratus VOS.
Andrew Bartlett
Jeremy Allison [Sun, 1 Dec 2002 00:46:50 +0000 (00:46 +0000)]
Fixup of ordered cleanup of get_dc_list - bug found by Dominik 'Aeneas' Schnitzer <dominik@schnitzer.at>
Jeremy.
Tim Potter [Fri, 29 Nov 2002 02:46:33 +0000 (02:46 +0000)]
Ignore ntlm_auth binary.
Tim Potter [Fri, 29 Nov 2002 02:44:09 +0000 (02:44 +0000)]
Fixed silly bug.
Tim Potter [Fri, 29 Nov 2002 01:21:14 +0000 (01:21 +0000)]
Rerun autoconf.
Tim Potter [Fri, 29 Nov 2002 01:19:27 +0000 (01:19 +0000)]
Fix up smbwrapper target.
Jelmer Vernooij [Thu, 28 Nov 2002 18:45:11 +0000 (18:45 +0000)]
merge in some changes from metze's patches (rest follows later, after
some issues in the new module system have been resolved)
Jelmer Vernooij [Thu, 28 Nov 2002 14:26:32 +0000 (14:26 +0000)]
Add PDBLIBDIR, just like VFSLIBDIR
Jeremy Allison [Wed, 27 Nov 2002 21:00:55 +0000 (21:00 +0000)]
Fix comment - 850 -> iso8859-1
Jeremy.
Jeremy Allison [Wed, 27 Nov 2002 20:58:45 +0000 (20:58 +0000)]
Remove use of 'F' - make 'f' and 'p' do unix (iso8859-1) encoding.
Jeremy.
Jeremy Allison [Wed, 27 Nov 2002 19:09:48 +0000 (19:09 +0000)]
Test was reversed for ERRmoredata in cli_read.
Jeremy.
Gerald Carter [Wed, 27 Nov 2002 16:59:31 +0000 (16:59 +0000)]
merging changes from SAMBA_3_0 relating to RPM packaging
Gerald Carter [Wed, 27 Nov 2002 16:11:13 +0000 (16:11 +0000)]
syncing packaging files with SAMBA_3_0
Gerald Carter [Wed, 27 Nov 2002 04:45:12 +0000 (04:45 +0000)]
removing inet_aton()
Gerald Carter [Wed, 27 Nov 2002 02:47:56 +0000 (02:47 +0000)]
sync docs with SAMBA_3_0 and regenerate
Gerald Carter [Wed, 27 Nov 2002 02:23:25 +0000 (02:23 +0000)]
fix cli_ds_getprimarydominfo(); merge from SAMBA_3_0
Andrew Bartlett [Tue, 26 Nov 2002 12:04:16 +0000 (12:04 +0000)]
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
Andrew Bartlett [Tue, 26 Nov 2002 11:57:30 +0000 (11:57 +0000)]
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
Gerald Carter [Tue, 26 Nov 2002 00:01:56 +0000 (00:01 +0000)]
[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
Jelmer Vernooij [Mon, 25 Nov 2002 15:15:56 +0000 (15:15 +0000)]
Regenerate with newer autoconf
Andrew Bartlett [Mon, 25 Nov 2002 06:54:22 +0000 (06:54 +0000)]
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 [Mon, 25 Nov 2002 03:05:59 +0000 (03:05 +0000)]
Make lp_winbind_separator a const string.
Tim Potter [Mon, 25 Nov 2002 00:25:31 +0000 (00:25 +0000)]
Fix some argument checking bugs found by testsuite.
Andrew Bartlett [Sun, 24 Nov 2002 21:08:36 +0000 (21:08 +0000)]
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 [Sun, 24 Nov 2002 08:46:34 +0000 (08:46 +0000)]
Move from NT_STATUS_UNSUCCESSFUL to NT_STATUS_NO_SUCH_USER, and other slightly
more useful error codes.
Andrew Bartlett [Sun, 24 Nov 2002 08:42:10 +0000 (08:42 +0000)]
Try to twiddle with the makefile to avoid having a trailing \ when we
don't build any extra programs.
Andrew Bartlett [Sun, 24 Nov 2002 08:38:53 +0000 (08:38 +0000)]
Remove silly ideas about taking the LM or NT hash as a password in pam_smbpass.
Andrew Bartlett
Andrew Bartlett [Sun, 24 Nov 2002 08:37:02 +0000 (08:37 +0000)]
No need to #include smb.h, when we already #include include.h
Andrew Bartlett [Sun, 24 Nov 2002 08:32:03 +0000 (08:32 +0000)]
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 [Sat, 23 Nov 2002 14:27:56 +0000 (14:27 +0000)]
[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 [Sat, 23 Nov 2002 06:39:04 +0000 (06:39 +0000)]
a working timegm() function for systems that don't have it
Jeremy Allison [Sat, 23 Nov 2002 02:58:29 +0000 (02:58 +0000)]
Please compile with :
-g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual
if you're using gcc. It really does help !
Jeremy.
Jeremy Allison [Sat, 23 Nov 2002 02:52:38 +0000 (02:52 +0000)]
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 [Sat, 23 Nov 2002 02:51:31 +0000 (02:51 +0000)]
jcmd really should run with a higher compiler warning level more often :-).
Jeremy.
Tim Potter [Fri, 22 Nov 2002 06:56:28 +0000 (06:56 +0000)]
Rerun autoconf.
Tim Potter [Fri, 22 Nov 2002 06:54:12 +0000 (06:54 +0000)]
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 [Fri, 22 Nov 2002 06:51:14 +0000 (06:51 +0000)]
Added some extra code to test absence/presence of LM and NT passwords.
Tim Potter [Fri, 22 Nov 2002 06:18:03 +0000 (06:18 +0000)]
Fixed some compiler warnings.
Tim Potter [Fri, 22 Nov 2002 06:15:43 +0000 (06:15 +0000)]
Fixed some globals that escaped the recent globalcide.
Andrew Bartlett [Fri, 22 Nov 2002 02:40:21 +0000 (02:40 +0000)]
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 [Fri, 22 Nov 2002 01:12:23 +0000 (01:12 +0000)]
Add support for new 'F' format, which is a string in the default
codepage.
Martin Pool [Thu, 21 Nov 2002 01:33:42 +0000 (01:33 +0000)]
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 [Thu, 21 Nov 2002 00:58:50 +0000 (00:58 +0000)]
get_nt_error_msg from APPLIANCE_HEAD is called nt_errstr in HEAD. This should fix the build.
Gerald Carter [Thu, 21 Nov 2002 00:10:28 +0000 (00:10 +0000)]
merge get_friendly_nt_err_msg() from app_head
Andrew Tridgell [Wed, 20 Nov 2002 11:30:19 +0000 (11:30 +0000)]
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 [Wed, 20 Nov 2002 03:01:55 +0000 (03:01 +0000)]
Ignore automatically generated Makefile.
Tim Potter [Wed, 20 Nov 2002 03:00:32 +0000 (03:00 +0000)]
Spelling fix.
Andrew Tridgell [Wed, 20 Nov 2002 00:39:57 +0000 (00:39 +0000)]
more %U fixes for head
Andrew Tridgell [Tue, 19 Nov 2002 23:44:24 +0000 (23:44 +0000)]
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
Christopher R. Hertel [Tue, 19 Nov 2002 22:05:00 +0000 (22:05 +0000)]
Fixed two very, very minor typos (that sort of just annoyed me).
Jeremy Allison [Tue, 19 Nov 2002 01:45:55 +0000 (01:45 +0000)]
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 [Tue, 19 Nov 2002 01:14:00 +0000 (01:14 +0000)]
Merge from appliance:
>Fix memory leak in cli_ds_getprimarydominfo()
Tim Potter [Tue, 19 Nov 2002 01:02:43 +0000 (01:02 +0000)]
Fix typo in docstring.
Jeremy Allison [Mon, 18 Nov 2002 23:12:45 +0000 (23:12 +0000)]
Added HIDDEN/NORMAL attribute test.
Jeremy.
Tim Potter [Mon, 18 Nov 2002 22:46:45 +0000 (22:46 +0000)]
Bug fix from appliance - we must initialise the winbindd server state
before reading smb.conf parameters, not after.
Jim McDonough [Mon, 18 Nov 2002 20:46:20 +0000 (20:46 +0000)]
Don't pass a function to ADS_ERR_OK().
Jim McDonough [Mon, 18 Nov 2002 20:40:44 +0000 (20:40 +0000)]
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 [Mon, 18 Nov 2002 19:56:55 +0000 (19:56 +0000)]
Back out some goofs that accidentally checked in with printer publishing.
Jim McDonough [Mon, 18 Nov 2002 19:50:36 +0000 (19:50 +0000)]
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 [Mon, 18 Nov 2002 16:00:12 +0000 (16:00 +0000)]
bad date string in specfile
Gerald Carter [Mon, 18 Nov 2002 15:59:04 +0000 (15:59 +0000)]
sync packaging changes with SAMBA_3_0
Gerald Carter [Mon, 18 Nov 2002 15:47:48 +0000 (15:47 +0000)]
use ${RPM} for rpm v4.1
Gerald Carter [Mon, 18 Nov 2002 15:45:06 +0000 (15:45 +0000)]
formatting fix
Andrew Tridgell [Mon, 18 Nov 2002 03:11:59 +0000 (03:11 +0000)]
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 [Sun, 17 Nov 2002 01:14:30 +0000 (01:14 +0000)]
Renamed uuid_to_string() to guid_to_string() to avoid conflict with OSF DEC
headers.
Tim Potter [Sat, 16 Nov 2002 23:59:57 +0000 (23:59 +0000)]
Added for the people who want to use Windows XP with plaintext
passwords. From dcb.
Jelmer Vernooij [Sat, 16 Nov 2002 02:23:34 +0000 (02:23 +0000)]
Update docs status document
Jelmer Vernooij [Sat, 16 Nov 2002 02:17:23 +0000 (02:17 +0000)]
Update for 3.0
Jelmer Vernooij [Sat, 16 Nov 2002 01:55:01 +0000 (01:55 +0000)]
Update for 3.0
Andrew Bartlett [Fri, 15 Nov 2002 23:48:39 +0000 (23:48 +0000)]
/bin/sh on solaris swallows the failure code, so exec this directly.
Andrew Bartlett
Richard Sharpe [Fri, 15 Nov 2002 22:55:15 +0000 (22:55 +0000)]
One more small fix in tree.c