Jeremy Allison [Tue, 19 Mar 2002 02:51:48 +0000 (02:51 +0000)]
Sync up the VFS changes from 2.2.x.
Jeremy.
Jeremy Allison [Tue, 19 Mar 2002 02:35:12 +0000 (02:35 +0000)]
Merge in JohnR's page count fixes.
Jeremy.
Jeremy Allison [Tue, 19 Mar 2002 02:32:39 +0000 (02:32 +0000)]
Sync up vfs changes from 2.2.x.
Jeremy.
Simo Sorce [Tue, 19 Mar 2002 00:06:24 +0000 (00:06 +0000)]
ops forgot this :-)
Simo Sorce [Mon, 18 Mar 2002 23:57:14 +0000 (23:57 +0000)]
more verbose checking in talloc and util_pw
fixed tdbsam memory corruption (and segfault)
reducing calls to pdb_uid_to_user_rid and countrary to 0 to move to a non alghoritmic rid allocation with some passdb modules.
Simo Sorce [Mon, 18 Mar 2002 11:35:53 +0000 (11:35 +0000)]
Start to switch away from the alghorithmic uid->rid mapping model
Andrew Bartlett [Mon, 18 Mar 2002 10:53:02 +0000 (10:53 +0000)]
Allow us to see the difference between these two errors. (We need to chase
down some bugs with it...).
Andrew Bartlett
Samba Release Account [Mon, 18 Mar 2002 03:33:19 +0000 (03:33 +0000)]
preparing for release of 3.0-alpha17
John Terpstra [Sun, 17 Mar 2002 22:40:51 +0000 (22:40 +0000)]
Fix ability to compile with CUPS support.
Tim Potter [Sun, 17 Mar 2002 06:04:15 +0000 (06:04 +0000)]
Added dos_errstr() function. Not all errors in list yet.
Tim Potter [Sun, 17 Mar 2002 04:36:35 +0000 (04:36 +0000)]
Renamed get_nt_error_msg() to nt_errstr().
Jim McDonough [Sat, 16 Mar 2002 01:30:09 +0000 (01:30 +0000)]
Fix build for non-ads case
Jim McDonough [Sat, 16 Mar 2002 01:14:58 +0000 (01:14 +0000)]
Don't use // even temporarily, lest ye forget it and check it in...
Jim McDonough [Fri, 15 Mar 2002 22:10:19 +0000 (22:10 +0000)]
Change new style join function name for clarity in net_rpc.c
Jim McDonough [Fri, 15 Mar 2002 22:09:18 +0000 (22:09 +0000)]
Change net rpc join several ways: \n\t1) expose \n\t2) eliminate oldstyle subcommand \n\t3) try oldstyle first, then more secure method\n to allow for autodetect between ads and rpc on net join
Jim McDonough [Fri, 15 Mar 2002 22:05:39 +0000 (22:05 +0000)]
Expose net_ads_join to allow for auto-transport-detection for net join
Jim McDonough [Fri, 15 Mar 2002 22:04:53 +0000 (22:04 +0000)]
Add autodetect for net join, as well as some more help updates
Jim McDonough [Fri, 15 Mar 2002 20:03:07 +0000 (20:03 +0000)]
Some help cleanups. Formatting and consistency issues. Line up text nicely, and make 'net help rap user' the same as 'net rap user help'...stuff like that
Andrew Tridgell [Fri, 15 Mar 2002 09:51:37 +0000 (09:51 +0000)]
if our lock spin code fails then return the first error code, not the
last one. This is what caused the lock1 and lock2 tests to fail.
Andrew Tridgell [Fri, 15 Mar 2002 09:24:56 +0000 (09:24 +0000)]
the SEC_DOMAIN tests also apply to SEC_ADS
Andrew Tridgell [Fri, 15 Mar 2002 09:23:24 +0000 (09:23 +0000)]
nicer output from "net rpc user add"
Andrew Tridgell [Fri, 15 Mar 2002 09:21:28 +0000 (09:21 +0000)]
enable locking on the winbindd cache tdb so it can be backed up and
manipulated externally
Andrew Tridgell [Fri, 15 Mar 2002 09:20:36 +0000 (09:20 +0000)]
added a -h usage option to winbindd
Andrew Tridgell [Fri, 15 Mar 2002 09:19:51 +0000 (09:19 +0000)]
this tdb was being opened without locking, which is unsafe for shared
databases
Andrew Tridgell [Fri, 15 Mar 2002 09:19:07 +0000 (09:19 +0000)]
lower the debug level of failing to map a file
Gerald Carter [Fri, 15 Mar 2002 08:14:10 +0000 (08:14 +0000)]
syncing up printing code with SAMBA_2_2 (already done some merges
in the reverse).
* add in new printer change notify code from SAMBA_2_2
* add in se_map_standard() from 2.2 in _spoolss_open_printer_ex()
* sync up the _print_queue_struct in smb.h (why did someone change the
user/file names in fs_user/fs_file (or vice-versa) ? )
* sync up some cli_spoolss_XXX functions
Andrew Bartlett [Thu, 14 Mar 2002 22:52:19 +0000 (22:52 +0000)]
Actually include some *information* in the mangle debug messages.
In particular this shows the filename, prefix and counters involved.
The unicode -> unix converion only occours for the error case.
Andrew Bartlett
Jim McDonough [Thu, 14 Mar 2002 17:56:33 +0000 (17:56 +0000)]
Add paged search requests to net ads user and net ads group commands, allowing more than 1000 (or whatever the query limit is on the server) objects to be returned. Printers will come next.
Jim McDonough [Thu, 14 Mar 2002 17:48:26 +0000 (17:48 +0000)]
This adds the Paged Result Control to ads searching. The new function, ads_do_paged_search, is the same as ads_do_search, but it also contains a count of records returned in this page, and a cookie for resuming, to be passed back. The cookie must start off NULL, and when it returns as NULL, the search is done.
Tim Potter [Thu, 14 Mar 2002 02:48:03 +0000 (02:48 +0000)]
Remove studly gaps from prs_werror() calls so the same debug text is
logged. This makes it much easier to use grep on log files when searching
for errors.
Jeremy Allison [Thu, 14 Mar 2002 02:15:08 +0000 (02:15 +0000)]
Now we have reliable signals take SIGTERM inband.
Jeremy.
Tim Potter [Thu, 14 Mar 2002 01:53:04 +0000 (01:53 +0000)]
getpid() -> sys_getpid()
Tim Potter [Thu, 14 Mar 2002 01:48:59 +0000 (01:48 +0000)]
Backed out enumprinters stuff - leave it for another day.
Jeremy Allison [Thu, 14 Mar 2002 01:05:34 +0000 (01:05 +0000)]
Use sys_usleep not usleep.
Jeremy.
Jeremy Allison [Thu, 14 Mar 2002 00:58:53 +0000 (00:58 +0000)]
Get the current directory after becoming root.
Jeremy.
Tim Potter [Wed, 13 Mar 2002 22:55:47 +0000 (22:55 +0000)]
Fixed bodgy printf arguments in debug statment.
Who would have guessed it - we now use floating point maths in Samba.
Jeremy Allison [Wed, 13 Mar 2002 20:49:57 +0000 (20:49 +0000)]
Ensure we attempt to lock at least once. Only sleep if time param set.
Jeremy.
Jeremy Allison [Wed, 13 Mar 2002 20:28:19 +0000 (20:28 +0000)]
include/smb_macros.h: Don't round up an allocation if the size is zero.
"One of these locks is not like the others... One of these locks is not
quite the same" :-). When is a zero timeout lock not zero ? When it's
being processed by Windows 2000 of course.. This code change, ugly though
it is - completely fixes the foxpro/access multi-user file system database
problems that people have been having. I used a *wonderful* test program
donated by "Gerald Drouillard" <gerald@drouillard.ca> which allowed me
to completely reproduce this problem, and to finally determine the correct
fix. This also explains why Windows 2000 is *so slow* when responding to
the smbtorture lock tests. I *love* it when all these things come together
and finally make sense :-).
Jeremy.
Andrew Tridgell [Wed, 13 Mar 2002 06:43:52 +0000 (06:43 +0000)]
detect SIZELIMIT_EXCEEDED in ldap queries and truncate
the problem is, how the heck do we properly handle these? Jerry?
It seems that the Win2000 ADS server only returns a max of 1000 records!
Andrew Bartlett [Wed, 13 Mar 2002 01:51:01 +0000 (01:51 +0000)]
Ensure we never use "" as a domain name (Win9X apparently does this for 'net use' duirng login).
Picked up from a post to a TNG list by Volker.
Andrew Bartlett
Jeremy Allison [Wed, 13 Mar 2002 01:29:30 +0000 (01:29 +0000)]
Add "Creator Group" - was in 2.2.x and I'm syncing up the two.
Jeremy.
Andrew Bartlett [Wed, 13 Mar 2002 01:26:59 +0000 (01:26 +0000)]
Fix typo in copyright
Andrew Bartlett [Wed, 13 Mar 2002 01:25:36 +0000 (01:25 +0000)]
I don't need my name on this twice :-)
Andrew Bartlett [Wed, 13 Mar 2002 01:21:02 +0000 (01:21 +0000)]
Move the directory creation process outside the 'installbin.sh' script, and
into its own. The 'installdirs' makefile entry didn't do anything on my laptop,
so it has been replaced with the section from installbin.sh.
This also fixes the bug that we ignored the setting of $(PRIVATEDIR) when
making the directories.
Finally, link pam_winbind with .po objects only, not a mix of .o and .po
(as per Don Mccall's request).
Andrew Bartlett
Jeremy Allison [Wed, 13 Mar 2002 00:47:26 +0000 (00:47 +0000)]
Remove a stub function I forgot to fill in.
Jeremy.
Andrew Tridgell [Wed, 13 Mar 2002 00:30:26 +0000 (00:30 +0000)]
if we know that the SID is local then don't try via winbindd
Andrew Tridgell [Wed, 13 Mar 2002 00:19:40 +0000 (00:19 +0000)]
fixed mapping of SIDs for local users
Andrew Tridgell [Tue, 12 Mar 2002 20:17:34 +0000 (20:17 +0000)]
fixed 2 reconnection bugs in the ADS backend support
John Terpstra [Tue, 12 Mar 2002 19:29:16 +0000 (19:29 +0000)]
Sorry, forgot to commit this last night.
Andrew Tridgell [Tue, 12 Mar 2002 18:47:27 +0000 (18:47 +0000)]
get the test for disconnection the right way around!
Jim McDonough [Tue, 12 Mar 2002 17:30:09 +0000 (17:30 +0000)]
Yet another build fix for popt. I gotta get me one of these picky systems...
Jim McDonough [Tue, 12 Mar 2002 16:32:25 +0000 (16:32 +0000)]
Missing comma from systems that have ACLs.
Jim McDonough [Tue, 12 Mar 2002 15:21:04 +0000 (15:21 +0000)]
Aack. Don't change too much. vfs.c still won't build, but this should fix some other build stuff I screwed up.
John Terpstra [Tue, 12 Mar 2002 06:52:35 +0000 (06:52 +0000)]
Update samba.pam from 2.2.4pre branch.
Fixups for incorrect man page location by installman.sh
- Note: FHS standard for man pages if /usr/share/man/XX
where XX is the language mneumonic
John Terpstra [Tue, 12 Mar 2002 06:48:48 +0000 (06:48 +0000)]
Fix up location of libsmbclient.so so it always goes to /usr/lib.
John Terpstra [Tue, 12 Mar 2002 06:18:00 +0000 (06:18 +0000)]
It builds the RPMS, now for the testing...
John Terpstra [Tue, 12 Mar 2002 05:28:09 +0000 (05:28 +0000)]
Cleaning things up for test deployment.
John Terpstra [Tue, 12 Mar 2002 04:18:51 +0000 (04:18 +0000)]
Added wins entry.
John Terpstra [Tue, 12 Mar 2002 04:17:48 +0000 (04:17 +0000)]
Hack, hack, where is my sledge hammer?
Jeremy Allison [Tue, 12 Mar 2002 02:33:31 +0000 (02:33 +0000)]
Removed unused var.
Jeremy.
Jeremy Allison [Tue, 12 Mar 2002 02:26:33 +0000 (02:26 +0000)]
Ensure, if we're a PDC or BDC, that the SID stored for the domain name
and the machine name are identical.
Jeremy.
John Terpstra [Tue, 12 Mar 2002 01:01:04 +0000 (01:01 +0000)]
Still hacking at it.
Tim Potter [Tue, 12 Mar 2002 00:16:03 +0000 (00:16 +0000)]
Merge ... enumprinters vs getprinter naming patch from 2.2
Jeremy Allison [Tue, 12 Mar 2002 00:08:08 +0000 (00:08 +0000)]
Added POSIX ACL layer into the vfs.
Jeremy.
Tim Potter [Tue, 12 Mar 2002 00:05:22 +0000 (00:05 +0000)]
Added tdbbackup.
Tim Potter [Mon, 11 Mar 2002 23:59:20 +0000 (23:59 +0000)]
Removed bogus calles to D() debugging function. Perhaps these should
be replaced by DEBUG() calls?
Andrew Tridgell [Mon, 11 Mar 2002 22:25:14 +0000 (22:25 +0000)]
always make winbindd try for the PDC first before trying for a BDC
this prevents propogation delays in the SAM between the PDC and BDCs
Jeremy Allison [Mon, 11 Mar 2002 21:57:12 +0000 (21:57 +0000)]
Implemented default ACL patch (set inherit acls = true on a per share basis).
Based on code donated by Olaf Fr±czyk <olaf@cbk.poznan.pl>. Further commit
will change to sending via vfs interface.
Jeremy.
Jim McDonough [Mon, 11 Mar 2002 21:37:01 +0000 (21:37 +0000)]
Another program converted to popt...smbstatus this time.
John Terpstra [Mon, 11 Mar 2002 21:35:38 +0000 (21:35 +0000)]
More temp. changes. - Bear with me, this will soon be resolved.
John Terpstra [Mon, 11 Mar 2002 19:37:01 +0000 (19:37 +0000)]
Transient change - not final - don;t want to lose this between systems and testers.
NOTE: This is not useable for now.
Andrew Tridgell [Mon, 11 Mar 2002 15:56:59 +0000 (15:56 +0000)]
only try an ordinary file in lock6
Andrew Tridgell [Mon, 11 Mar 2002 04:06:30 +0000 (04:06 +0000)]
put in the ADS DNS hack, but commented out
Andrew Tridgell [Mon, 11 Mar 2002 01:57:39 +0000 (01:57 +0000)]
expanded the lock6 test a bit to try lsarpc as well
this allows us to check that we refuse locking on pipes
Andrew Tridgell [Mon, 11 Mar 2002 01:37:08 +0000 (01:37 +0000)]
added a LOCK6 test for weird lockingX lock type bits
warning! this test reboots w2k or wxp
Andrew Tridgell [Mon, 11 Mar 2002 01:34:14 +0000 (01:34 +0000)]
make sure we give an error for unknown lockingX locktype bits
Andrew Tridgell [Mon, 11 Mar 2002 01:33:06 +0000 (01:33 +0000)]
added cli_locktype() for testing different lockingX lock types
Andrew Tridgell [Mon, 11 Mar 2002 00:01:54 +0000 (00:01 +0000)]
a bit more portability for tdbbackup
Andrew Tridgell [Sun, 10 Mar 2002 23:18:44 +0000 (23:18 +0000)]
failed timed locks always give LOCK_CONFLICT not LOCK_NOT_GRANTED
Andrew Tridgell [Sun, 10 Mar 2002 23:17:47 +0000 (23:17 +0000)]
added -E and -Z options, and allow for the 2 servers to have different
usernames/passwords
Andrew Tridgell [Sun, 10 Mar 2002 23:17:07 +0000 (23:17 +0000)]
this attempts to handle the rather bizarre lock cache semantics in
w2k. It isn't entirely accurate, but its close
Andrew Tridgell [Sun, 10 Mar 2002 23:16:15 +0000 (23:16 +0000)]
better handling of a zero timeout in cli_lock
John Terpstra [Sun, 10 Mar 2002 21:49:04 +0000 (21:49 +0000)]
Update to build 3.0.0 alphas
John Terpstra [Sun, 10 Mar 2002 21:41:56 +0000 (21:41 +0000)]
Initscript from 2.2.4 tree.
Andrew Tridgell [Sun, 10 Mar 2002 08:30:15 +0000 (08:30 +0000)]
make tdbbackup more portable
Andrew Tridgell [Sun, 10 Mar 2002 06:56:59 +0000 (06:56 +0000)]
forgotten file, oops
Samba Release Account [Sun, 10 Mar 2002 04:45:18 +0000 (04:45 +0000)]
preparing for release of 3.0-alpha16
Martin Pool [Sun, 10 Mar 2002 03:14:00 +0000 (03:14 +0000)]
Fix typo.
Andrew Tridgell [Sun, 10 Mar 2002 01:54:44 +0000 (01:54 +0000)]
yipee! Finally put in the patch from Alexey Kotovich
<a.kotovich@sam-solutions.net> that adds the security decsriptor code
for ADS workstation accounts
thanks for your patience Cat, and thanks to Andrew Bartlett for
extensive reviews and suggestions about this code.
Andrew Tridgell [Sun, 10 Mar 2002 01:52:09 +0000 (01:52 +0000)]
try to use our workstation account password for ADS leave
Andrew Tridgell [Sun, 10 Mar 2002 01:51:15 +0000 (01:51 +0000)]
add a note about the meaning of global_sam_sid
Andrew Tridgell [Sun, 10 Mar 2002 01:47:12 +0000 (01:47 +0000)]
remove an unused variable
Andrew Tridgell [Sun, 10 Mar 2002 01:46:56 +0000 (01:46 +0000)]
prevent bogus compiler complaints about comments in comments
Andrew Tridgell [Sun, 10 Mar 2002 01:45:49 +0000 (01:45 +0000)]
return the correct SID and domain name for the samr enum_domain and
lookup_domain calls. We were incorrectly returning the PDCs domain
nameand SID when we are a domain member. We should only do that when
we are the DC
Andrew Tridgell [Sun, 10 Mar 2002 01:44:21 +0000 (01:44 +0000)]
rewrote the machine sid storage code to store the SID in secrets.tdb
rather than MACHINE.SID. We try to load MACHINE.SID only if we can't
fetch the SID from secrets.tdb
This also fixes the value of global_sam_sid for the DC/non-DC case
Andrew Tridgell [Sun, 10 Mar 2002 01:43:04 +0000 (01:43 +0000)]
make sure we use consistent keys in secrets.tdb by uppercasing domain
names
Andrew Tridgell [Sat, 9 Mar 2002 21:12:25 +0000 (21:12 +0000)]
removed bogus prepend_domain() call which was screwing up getpwuid()
with the new default domain code
Andrew Tridgell [Sat, 9 Mar 2002 19:38:47 +0000 (19:38 +0000)]
a more informitive debug message when a SID can't be validated
Andrew Tridgell [Sat, 9 Mar 2002 19:37:57 +0000 (19:37 +0000)]
prevent a segv when a trusted domain is unavailable at startup
Andrew Tridgell [Sat, 9 Mar 2002 19:36:53 +0000 (19:36 +0000)]
better detection of dead ADS connections, so we have some chance of
reconnecting