Simo Sorce [Mon, 9 Dec 2002 12:06:15 +0000 (12:06 +0000)]
make vfs recycle use vfs facilities correctly!
WARNING: every vfs module maintainer should look at these changes to understand how to properly write a vfs module in head!!
also make installmodules work correctly when the directory structure is not yet in place.
Simo.
Richard Sharpe [Mon, 9 Dec 2002 09:26:17 +0000 (09:26 +0000)]
Handle the creation of more parts of the tree ... Still have to do SK records
and the data parts of the VK records.
Also have to code up routines that can iterate across keys and values, as
well as return values associated with a particular key, etc.
Richard Sharpe [Mon, 9 Dec 2002 09:07:00 +0000 (09:07 +0000)]
Start allocating structures to keep the in memory copy of the registry tree
in. Don't yet handle the SK records (security descriptors), but will soon.
It still compiles on Linux, but I am still not King.
Richard Sharpe [Mon, 9 Dec 2002 07:55:13 +0000 (07:55 +0000)]
Begin to decode Value Keys, names and values ...
Richard Sharpe [Mon, 9 Dec 2002 06:39:54 +0000 (06:39 +0000)]
Add some more handling of Key records ...
Jelmer Vernooij [Sun, 8 Dec 2002 20:36:52 +0000 (20:36 +0000)]
Fix example command (reported by Cameron Maxwell)
Richard Sharpe [Sun, 8 Dec 2002 19:50:40 +0000 (19:50 +0000)]
Commit some more changes ... Start processing the sub-keys, recursively.
Richard Sharpe [Sun, 8 Dec 2002 19:30:16 +0000 (19:30 +0000)]
Fix the breakage, and start processing the first key record:
./editreg ~rsharpe/profile/NTUSER.DAT
NK HDR: Name len: 12, class name len: 0
Key name: $$$PROTO.HIV
Richard Sharpe [Sun, 8 Dec 2002 18:48:48 +0000 (18:48 +0000)]
A small fix to Makefile.in from Bradley Longhurst.
Less Fir needed.
Richard Sharpe [Sun, 8 Dec 2002 17:04:23 +0000 (17:04 +0000)]
Define some macros for accessing shorts and ints in an endian independent manner.
Start processing the header and etc.
Make sure it compiles on Linux, and runs on Linux for the code that is there.
Will try FreeBSD soon, and maybe Slowaris.
Richard Sharpe [Sun, 8 Dec 2002 15:32:02 +0000 (15:32 +0000)]
Add definitions of the various NT Registry on-disk structures ...
Richard Sharpe [Sun, 8 Dec 2002 14:50:06 +0000 (14:50 +0000)]
Fix DAT_TIME so it becomes NTTIME and matches Samba source.
Add code to start reading the registry file.
Simo Sorce [Sun, 8 Dec 2002 11:56:45 +0000 (11:56 +0000)]
make querygroup in rpcclient working, same fix as per 2.2 tree
Richard Sharpe [Sun, 8 Dec 2002 08:27:58 +0000 (08:27 +0000)]
Some more updates ...
Richard Sharpe [Sun, 8 Dec 2002 07:53:35 +0000 (07:53 +0000)]
The beginnings of a registry editing program.
Jeremy Allison [Fri, 6 Dec 2002 19:58:27 +0000 (19:58 +0000)]
Ensure global_scope() returns "", not the NULL string. Froma tpot fix.
Jeremy.
Jeremy Allison [Thu, 5 Dec 2002 22:32:25 +0000 (22:32 +0000)]
Fix debugs for rap mapping. Delete job on map fail.
Jeremy.
Jim McDonough [Thu, 5 Dec 2002 19:13:20 +0000 (19:13 +0000)]
More printer data to publish
Jim McDonough [Thu, 5 Dec 2002 19:11:40 +0000 (19:11 +0000)]
Add some const
Jeremy Allison [Thu, 5 Dec 2002 03:59:56 +0000 (03:59 +0000)]
The element in fsp->print_job should be a RAP jobid, not a uint32 RPC
jobid. This was causing Win9x client "set name" calls to fail.
Still need one cleanup fix to finish.
Jeremy.
Herb Lewis [Thu, 5 Dec 2002 00:47:41 +0000 (00:47 +0000)]
fix stat reporting on put command
Tim Potter [Thu, 5 Dec 2002 00:06:12 +0000 (00:06 +0000)]
Rerun configure.
Tim Potter [Wed, 4 Dec 2002 23:57:15 +0000 (23:57 +0000)]
Remove FILE_MACRO as __FILE__ is ANSI C.
Tim Potter [Wed, 4 Dec 2002 23:31:47 +0000 (23:31 +0000)]
FUNCTION_MACRO change broke the Python modules.
Also fix up string pasting (I thought this should only be a warning?)
Jeremy Allison [Wed, 4 Dec 2002 22:48:25 +0000 (22:48 +0000)]
Added Volker's directory fix - save the attributes
from the first call.
Jeremy.
Jim McDonough [Wed, 4 Dec 2002 21:30:52 +0000 (21:30 +0000)]
More attributes to publish. All DsSpooler attributes except REG_MULTI_SZ ones should be published now.
Jeremy Allison [Wed, 4 Dec 2002 21:28:23 +0000 (21:28 +0000)]
Janitor for tpot yet again... Merging in memory leak fix.
Jeremy.
Gerald Carter [Wed, 4 Dec 2002 20:13:29 +0000 (20:13 +0000)]
change_trust_account_password() must always use the PDC for rpc
password changes.
jerry
Jeremy Allison [Wed, 4 Dec 2002 19:47:18 +0000 (19:47 +0000)]
Make sure we have a default st_blocksize.
Jeremy.
Gerald Carter [Wed, 4 Dec 2002 19:03:32 +0000 (19:03 +0000)]
cleaning up some friendly error messages
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.