sfrench/samba-autobuild/.git
22 years agothis tdb was being opened without locking, which is unsafe for shared
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
(This used to be commit 1394e6ed318af5fc740aa5622919f9fd26d5a8d2)

22 years agolower the debug level of failing to map a file
Andrew Tridgell [Fri, 15 Mar 2002 09:19:07 +0000 (09:19 +0000)]
lower the debug level of failing to map a file
(This used to be commit ad9965414d4d1fd8a031e3169b8f19d66cdad8be)

22 years agosyncing up printing code with SAMBA_2_2 (already done some merges
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
(This used to be commit 5760315c1de4033fdc22684c940f18010010924f)

22 years agoActually include some *information* in the mangle debug messages.
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
(This used to be commit 9c8de8c6cf44ead0719efa48a34c9c9d54402ac6)

22 years agoAdd paged search requests to net ads user and net ads group commands, allowing more...
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.
(This used to be commit 9c447920dfbae2e2d2343600401c1d860dad863b)

22 years agoThis adds the Paged Result Control to ads searching. The new function, ads_do_paged_...
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.
(This used to be commit 9afba67f9a56699e34735e1e425f97b2464f2402)

22 years agoRemove studly gaps from prs_werror() calls so the same debug text is
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.
(This used to be commit ab1ebd377931166f2ecded784a0182102d4c1ca2)

22 years agoNow we have reliable signals take SIGTERM inband.
Jeremy Allison [Thu, 14 Mar 2002 02:15:08 +0000 (02:15 +0000)]
Now we have reliable signals take SIGTERM inband.
Jeremy.
(This used to be commit cad82926a8baf7605cef81f0e0d4daa8e527e6ee)

22 years agogetpid() -> sys_getpid()
Tim Potter [Thu, 14 Mar 2002 01:53:04 +0000 (01:53 +0000)]
getpid() -> sys_getpid()
(This used to be commit a3cea5e9ae3b53ecbc45e61a39cbce0ca1b916aa)

22 years agoBacked out enumprinters stuff - leave it for another day.
Tim Potter [Thu, 14 Mar 2002 01:48:59 +0000 (01:48 +0000)]
Backed out enumprinters stuff - leave it for another day.
(This used to be commit d7efc5dd3dd712e7138b5c79eea9756125757175)

22 years agoUse sys_usleep not usleep.
Jeremy Allison [Thu, 14 Mar 2002 01:05:34 +0000 (01:05 +0000)]
Use sys_usleep not usleep.
Jeremy.
(This used to be commit 8587dd95f850b4c6d2f015fe97ef98759ee8c236)

22 years agoGet the current directory after becoming root.
Jeremy Allison [Thu, 14 Mar 2002 00:58:53 +0000 (00:58 +0000)]
Get the current directory after becoming root.
Jeremy.
(This used to be commit f032c6f710cb0edcf02f25db81c83478b9a8ab1e)

22 years agoFixed bodgy printf arguments in debug statment.
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.
(This used to be commit 6a053fa770b69f21fef52966a0b577b7ac9e817e)

22 years agoEnsure we attempt to lock at least once. Only sleep if time param set.
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.
(This used to be commit 62b80d5c65ae8cf35347ee5c3d21ce1702c6449e)

22 years agoinclude/smb_macros.h: Don't round up an allocation if the size is zero.
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.
(This used to be commit 8aa9860ea2ea7f5aed4b6aa12794fffdfa81b0d0)

22 years agodetect SIZELIMIT_EXCEEDED in ldap queries and truncate
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!
(This used to be commit 93389647203395da0e894c2e57348081e755884a)

22 years agoEnsure we never use "" as a domain name (Win9X apparently does this for 'net use...
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
(This used to be commit f81882fc9510aadd7d1db77753b307800ab50f9b)

22 years agoAdd "Creator Group" - was in 2.2.x and I'm syncing up the two.
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.
(This used to be commit bcf38961a7786c5cf1eb7568b87c19712c3ea9cc)

22 years agoFix typo in copyright
Andrew Bartlett [Wed, 13 Mar 2002 01:26:59 +0000 (01:26 +0000)]
Fix typo in copyright
(This used to be commit 54e69ed20adc74fdfe007a9642dcb3a55c02d856)

22 years agoI don't need my name on this twice :-)
Andrew Bartlett [Wed, 13 Mar 2002 01:25:36 +0000 (01:25 +0000)]
I don't need my name on this twice :-)
(This used to be commit 764b99a3906d6299650f984860a586f37b18326d)

22 years agoMove the directory creation process outside the 'installbin.sh' script, and
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
(This used to be commit c7a883df28da9dd6fb88198df22c4d78bf8acd8b)

22 years agoRemove a stub function I forgot to fill in.
Jeremy Allison [Wed, 13 Mar 2002 00:47:26 +0000 (00:47 +0000)]
Remove a stub function I forgot to fill in.
Jeremy.
(This used to be commit d08cbcbc5d4fc3ec9554145de6b0b0a64dfbb8d1)

22 years agoif we know that the SID is local then don't try via winbindd
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
(This used to be commit 1a8f3ba3ab7717c481e3fb4f1ea8938461160d09)

22 years agofixed mapping of SIDs for local users
Andrew Tridgell [Wed, 13 Mar 2002 00:19:40 +0000 (00:19 +0000)]
fixed mapping of SIDs for local users
(This used to be commit df9e345366078ccaa94df7c2f2e33b292605e88a)

22 years agofixed 2 reconnection bugs in the ADS backend support
Andrew Tridgell [Tue, 12 Mar 2002 20:17:34 +0000 (20:17 +0000)]
fixed 2 reconnection bugs in the ADS backend support
(This used to be commit 1aaa2091d54e7e50cf75927d658e57776792d6ae)

22 years agoSorry, forgot to commit this last night.
John Terpstra [Tue, 12 Mar 2002 19:29:16 +0000 (19:29 +0000)]
Sorry, forgot to commit this last night.
(This used to be commit 8e2f4bb35be5bf5db379c8e047cd2882e26f433e)

22 years agoget the test for disconnection the right way around!
Andrew Tridgell [Tue, 12 Mar 2002 18:47:27 +0000 (18:47 +0000)]
get the test for disconnection the right way around!
(This used to be commit ed80311b41f9869084d1e510cd8fd4213c3a1c19)

22 years agoYet another build fix for popt. I gotta get me one of these picky systems...
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...
(This used to be commit 19546bdd5541785dc8430f8ffa2afcdb42015b96)

22 years agoMissing comma from systems that have ACLs.
Jim McDonough [Tue, 12 Mar 2002 16:32:25 +0000 (16:32 +0000)]
Missing comma from systems that have ACLs.
(This used to be commit 96e4282dca757e8621d23a54fb7203c93d2d41fc)

22 years agoAack. Don't change too much. vfs.c still won't build, but this should fix some other...
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.
(This used to be commit 4490ad340cff1ea2a5b519150ad5c49bcea23766)

22 years agoUpdate samba.pam from 2.2.4pre branch.
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
(This used to be commit e3e0a5aca9593f18e5f218b54641048cd823ac03)

22 years agoFix up location of libsmbclient.so so it always goes to /usr/lib.
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.
(This used to be commit e508b07fe766c679d6fc2a940bec72b9b2a61b01)

22 years agoIt builds the RPMS, now for the testing...
John Terpstra [Tue, 12 Mar 2002 06:18:00 +0000 (06:18 +0000)]
It builds the RPMS, now for the testing...
(This used to be commit 917a5f2cdb861dca1708585f6b7ff51f576ca497)

22 years agoCleaning things up for test deployment.
John Terpstra [Tue, 12 Mar 2002 05:28:09 +0000 (05:28 +0000)]
Cleaning things up for test deployment.
(This used to be commit 675a78d09a693004cf959fd6cec62b6b72c67194)

22 years agoAdded wins entry.
John Terpstra [Tue, 12 Mar 2002 04:18:51 +0000 (04:18 +0000)]
Added wins entry.
(This used to be commit a4be3b7b93ac95d16c01519a57fd9c57b20ffcae)

22 years agoHack, hack, where is my sledge hammer?
John Terpstra [Tue, 12 Mar 2002 04:17:48 +0000 (04:17 +0000)]
Hack, hack, where is my sledge hammer?
(This used to be commit b07aa46d83810009d5d690f81cf82932dd67f04c)

22 years agoRemoved unused var.
Jeremy Allison [Tue, 12 Mar 2002 02:33:31 +0000 (02:33 +0000)]
Removed unused var.
Jeremy.
(This used to be commit 45bf5f6c050bbe69209a5c80141ef8e54354f5ea)

22 years agoEnsure, if we're a PDC or BDC, that the SID stored for the domain name
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.
(This used to be commit 87e6b08964d13d6613342c9be21871a2e776e2e6)

22 years agoStill hacking at it.
John Terpstra [Tue, 12 Mar 2002 01:01:04 +0000 (01:01 +0000)]
Still hacking at it.
(This used to be commit 153091597cd4f2e26a3aa80c32bba27bc358b0b2)

22 years agoMerge of enumprinters vs getprinter naming patch from 2.2
Tim Potter [Tue, 12 Mar 2002 00:16:03 +0000 (00:16 +0000)]
Merge ... enumprinters vs getprinter naming patch from 2.2
(This used to be commit dfd51bc8d0714473880bf50369f7994304c1d83f)

22 years agoAdded POSIX ACL layer into the vfs.
Jeremy Allison [Tue, 12 Mar 2002 00:08:08 +0000 (00:08 +0000)]
Added POSIX ACL layer into the vfs.
Jeremy.
(This used to be commit 7d59445b6962547a8938928a9371651a09e26516)

22 years agoAdded tdbbackup.
Tim Potter [Tue, 12 Mar 2002 00:05:22 +0000 (00:05 +0000)]
Added tdbbackup.
(This used to be commit a41750f86af2840e207be310d2036fad7bfb7cf3)

22 years agoRemoved bogus calles to D() debugging function. Perhaps these should
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?
(This used to be commit 33dd07d1fc6946e53d3bdaad025adfc20abfab77)

22 years agoalways make winbindd try for the PDC first before trying for a BDC
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
(This used to be commit 967cb3ed0c3190f3e95a227e4d998a7312b5990b)

22 years agoImplemented default ACL patch (set inherit acls = true on a per share basis).
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.
(This used to be commit d85133e2697eb22f1573c78447b57791ae63dd6b)

22 years agoAnother program converted to popt...smbstatus this time.
Jim McDonough [Mon, 11 Mar 2002 21:37:01 +0000 (21:37 +0000)]
Another program converted to popt...smbstatus this time.
(This used to be commit 00d3a064f16101fecebaeaaabaf841f0a5c91523)

22 years agoMore temp. changes. - Bear with me, this will soon be resolved.
John Terpstra [Mon, 11 Mar 2002 21:35:38 +0000 (21:35 +0000)]
More temp. changes. - Bear with me, this will soon be resolved.
(This used to be commit cb38843ac753992be0c6a109a8de175b73fe7db2)

22 years agoTransient change - not final - don;t want to lose this between systems and testers.
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.
(This used to be commit 0fe968378a94e70c8a7c4b15bf2516ded1edd52c)

22 years agoonly try an ordinary file in lock6
Andrew Tridgell [Mon, 11 Mar 2002 15:56:59 +0000 (15:56 +0000)]
only try an ordinary file in lock6
(This used to be commit 965e23537c284dd312c714c111ec172d9a33b019)

22 years agoput in the ADS DNS hack, but commented out
Andrew Tridgell [Mon, 11 Mar 2002 04:06:30 +0000 (04:06 +0000)]
put in the ADS DNS hack, but commented out
(This used to be commit 3396a671c59e6afe70a22ce64e4a9381b1d6fef8)

22 years agoexpanded the lock6 test a bit to try lsarpc as well
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
(This used to be commit 3e69ea6846e455d6ebb15e4481d4f98fd038c8a2)

22 years agoadded a LOCK6 test for weird lockingX lock type bits
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
(This used to be commit 568e1d7b4389e5a49aa1d52eb4c74bc53dbc125f)

22 years agomake sure we give an error for unknown lockingX locktype bits
Andrew Tridgell [Mon, 11 Mar 2002 01:34:14 +0000 (01:34 +0000)]
make sure we give an error for unknown lockingX locktype bits
(This used to be commit 72cb43b912a4c1831f9d7b2fd23ce51aebb09c8f)

22 years agoadded cli_locktype() for testing different lockingX lock types
Andrew Tridgell [Mon, 11 Mar 2002 01:33:06 +0000 (01:33 +0000)]
added cli_locktype() for testing different lockingX lock types
(This used to be commit 136b9752fc9da86f0ad0e1f46dc389b752975aea)

22 years agoa bit more portability for tdbbackup
Andrew Tridgell [Mon, 11 Mar 2002 00:01:54 +0000 (00:01 +0000)]
a bit more portability for tdbbackup
(This used to be commit 6edb5bea5f6dcbabe29f772c7ad7bcaaf2a72d53)

22 years agofailed timed locks always give LOCK_CONFLICT not LOCK_NOT_GRANTED
Andrew Tridgell [Sun, 10 Mar 2002 23:18:44 +0000 (23:18 +0000)]
failed timed locks always give LOCK_CONFLICT not LOCK_NOT_GRANTED
(This used to be commit ec71c1a66f9fd4b9cb4cad5a9b5b17e20de7aeb1)

22 years agoadded -E and -Z options, and allow for the 2 servers to have different
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
(This used to be commit 0ae4ba18e578d35206628fa29203c8becbbdc5cd)

22 years agothis attempts to handle the rather bizarre lock cache semantics in
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
(This used to be commit e02d7364707c4939efa4ff0ddf9b6d4f48e5d411)

22 years agobetter handling of a zero timeout in cli_lock
Andrew Tridgell [Sun, 10 Mar 2002 23:16:15 +0000 (23:16 +0000)]
better handling of a zero timeout in cli_lock
(This used to be commit 56662a75f58d35cec1a5b2d6c9a4315d95a22420)

22 years agoUpdate to build 3.0.0 alphas
John Terpstra [Sun, 10 Mar 2002 21:49:04 +0000 (21:49 +0000)]
Update to build 3.0.0 alphas
(This used to be commit 9c4011d6519b05a311b168f6d48b71bb3680b345)

22 years agoInitscript from 2.2.4 tree.
John Terpstra [Sun, 10 Mar 2002 21:41:56 +0000 (21:41 +0000)]
Initscript from 2.2.4 tree.
(This used to be commit d61f3810443a1828ea8c6c6782708f3ddd7caaea)

22 years agomake tdbbackup more portable
Andrew Tridgell [Sun, 10 Mar 2002 08:30:15 +0000 (08:30 +0000)]
make tdbbackup more portable
(This used to be commit 9cc1dadfb09c2352ed188d668b02ccffaa009895)

22 years agoforgotten file, oops
Andrew Tridgell [Sun, 10 Mar 2002 06:56:59 +0000 (06:56 +0000)]
forgotten file, oops
(This used to be commit 98196e79b733e029341578b382bdfabf3f9a0bdc)

22 years agopreparing for release of 3.0-alpha16
Samba Release Account [Sun, 10 Mar 2002 04:45:18 +0000 (04:45 +0000)]
preparing for release of 3.0-alpha16
(This used to be commit 77fe6a914888f09f96b4468ea5d1bc1953fe63c5)

22 years agoFix typo.
Martin Pool [Sun, 10 Mar 2002 03:14:00 +0000 (03:14 +0000)]
Fix typo.
(This used to be commit 58c1b11439ef58313895a23a2e9a0ec735903eb6)

22 years agoyipee! Finally put in the patch from Alexey Kotovich
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.
(This used to be commit 6891393b5db868246fe52ff62b3dc6aa5ca6f726)

22 years agotry to use our workstation account password for ADS leave
Andrew Tridgell [Sun, 10 Mar 2002 01:52:09 +0000 (01:52 +0000)]
try to use our workstation account password for ADS leave
(This used to be commit 2a42e91397d7871d326abed0e99af297e71dd77e)

22 years agoadd a note about the meaning of global_sam_sid
Andrew Tridgell [Sun, 10 Mar 2002 01:51:15 +0000 (01:51 +0000)]
add a note about the meaning of global_sam_sid
(This used to be commit 3db97530b62ac12d334d0244ea52db8750cebf2e)

22 years agoremove an unused variable
Andrew Tridgell [Sun, 10 Mar 2002 01:47:12 +0000 (01:47 +0000)]
remove an unused variable
(This used to be commit 9c44ad4e42892be8fc99998fd53c3027353c0d1b)

22 years agoprevent bogus compiler complaints about comments in comments
Andrew Tridgell [Sun, 10 Mar 2002 01:46:56 +0000 (01:46 +0000)]
prevent bogus compiler complaints about comments in comments
(This used to be commit 73b3487daf4d7c65aac2c8ec150539791d19e1f5)

22 years agoreturn the correct SID and domain name for the samr enum_domain and
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
(This used to be commit f56d689497eaa670cbfb214486ba88d5972129db)

22 years agorewrote the machine sid storage code to store the SID in secrets.tdb
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
(This used to be commit bcd018f07c2e2c0aabdb4574d199d7f5f199a264)

22 years agomake sure we use consistent keys in secrets.tdb by uppercasing domain
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
(This used to be commit 4cb7b6954b96e6964743e65413e122f7b4d39052)

22 years agoremoved bogus prepend_domain() call which was screwing up getpwuid()
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
(This used to be commit 0f75b6bd5b42f745f17e2e6624d5d541a30ee897)

22 years agoa more informitive debug message when a SID can't be validated
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
(This used to be commit c55737fb25dfed4697b93a600e3bd770f84bf464)

22 years agoprevent a segv when a trusted domain is unavailable at startup
Andrew Tridgell [Sat, 9 Mar 2002 19:37:57 +0000 (19:37 +0000)]
prevent a segv when a trusted domain is unavailable at startup
(This used to be commit d5b5d3f8400a80c943809db9578a2d7317aa6d2d)

22 years agobetter detection of dead ADS connections, so we have some chance of
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
(This used to be commit 58b79c0dc882fa402423e44a594e30c27177f490)

22 years agoDoc.
Tim Potter [Sat, 9 Mar 2002 09:48:35 +0000 (09:48 +0000)]
Doc.
(This used to be commit b9ab79f30a931c694b1c181b1c2abd38186692ae)

22 years agoadded a bunch of explanation about tdbbackup
Andrew Tridgell [Sat, 9 Mar 2002 00:12:19 +0000 (00:12 +0000)]
added a bunch of explanation about tdbbackup
(This used to be commit 4ac4220e2f60dfac35dc80dcf1830a6a6352ace0)

22 years agodon't use -pg by default when building standalone
Andrew Tridgell [Sat, 9 Mar 2002 00:11:48 +0000 (00:11 +0000)]
don't use -pg by default when building standalone
(This used to be commit 18e81a4a5b986aa8e14ae868a04caf8b1be413f0)

22 years agobuild tdbbackup by default
Andrew Tridgell [Sat, 9 Mar 2002 00:09:18 +0000 (00:09 +0000)]
build tdbbackup by default
(This used to be commit 8836015467158de6947689300ead74f1e9044805)

22 years agomerge from 2.2
Gerald Carter [Fri, 8 Mar 2002 22:07:18 +0000 (22:07 +0000)]
merge from 2.2
(This used to be commit 66eb969ade0dfde355df3e308dccbc9522087eef)

22 years agomerge from 2.2
Gerald Carter [Fri, 8 Mar 2002 21:57:53 +0000 (21:57 +0000)]
merge from 2.2
(This used to be commit 4960692e958c986ca7f71e091333300310b0e0b2)

22 years agoadded -v and -s options
Andrew Tridgell [Fri, 8 Mar 2002 18:14:35 +0000 (18:14 +0000)]
added -v and -s options

-v is used for verify/restore from backup
(This used to be commit 1438cd8e5042f1ce6aef0d6be5a8285fbfe79158)

22 years agoSame as in 2_2
Volker Lendecke [Fri, 8 Mar 2002 14:38:54 +0000 (14:38 +0000)]
Same as in 2_2
(This used to be commit 96299b6391512079b53f1593206b6cd7ecaacb2f)

22 years agoAdded case statment for decoding enumprinters level 0 result.
Tim Potter [Fri, 8 Mar 2002 04:43:10 +0000 (04:43 +0000)]
Added case statment for decoding enumprinters level 0 result.
(This used to be commit 33d49ed68c4d6a66217558b13d960764c235089a)

22 years agoSwap order of close brace and done: tag to appease AIX compiler. Order shouldn't...
Jim McDonough [Fri, 8 Mar 2002 03:36:03 +0000 (03:36 +0000)]
Swap order of close brace and done: tag to appease AIX compiler.  Order shouldn't matter for logic...if anyone disagrees whack me over the head and explain why...
(This used to be commit 4081ce40dda886aeb01f590f00bfe50e0e4e8ae4)

22 years agoOne more fix to get popt to work for some compilers...this is the downside to popt...
Jim McDonough [Fri, 8 Mar 2002 03:31:01 +0000 (03:31 +0000)]
One more fix to get popt to work for some compilers...this is the downside to popt.  Every option has to be in fixed storage.
(This used to be commit e5e7132e80bfe599d56809bf47a13d2028ee9c86)

22 years agoTurns out an Admin user shouldn't always have access on a handle.
Jeremy Allison [Fri, 8 Mar 2002 00:26:18 +0000 (00:26 +0000)]
Turns out an Admin user shouldn't always have access on a handle.
Jeremy.
(This used to be commit d31d2dcd22e1be2c26ea315e1b0e8442822a9a0f)

22 years agoFix for machines that have their time changed forward, then back. Ensure
Jeremy Allison [Thu, 7 Mar 2002 21:51:59 +0000 (21:51 +0000)]
Fix for machines that have their time changed forward, then back. Ensure
that any cached lpq information gathered during that time doesn't
stay around for longer than 1 hour.
Jeremy.
(This used to be commit 39fca711a5cf15a03d6c79639b202712d1749a64)

22 years agoUpdate Makefile.in for rpcclient build on machines without libpopt or requested build...
Jim McDonough [Thu, 7 Mar 2002 19:55:35 +0000 (19:55 +0000)]
Update Makefile.in for rpcclient build on machines without libpopt or requested build of included popt.
(This used to be commit 4b4430f1c56a5c9a0d53dd8b624022644d8061e1)

22 years agoadded a tdb backup utility
Andrew Tridgell [Thu, 7 Mar 2002 18:58:33 +0000 (18:58 +0000)]
added a tdb backup utility

when complete, this will be used to backup critical tdbs at samba
startup and possibly periodically while Samba is running so that if
tdb corruption is caused by a power failure Samba can restore from the
backup.
(This used to be commit f619330082712cab72ec2d2ab76d67b8e9f3194c)

22 years agoConvert rpcclient to use popt instead of getopt. Includes changing of got_pass from...
Jim McDonough [Thu, 7 Mar 2002 18:56:51 +0000 (18:56 +0000)]
Convert rpcclient to use popt instead of getopt.  Includes changing of got_pass from BOOL to int.  Also includes long option names...anyone want those different before I update the doc?  Please try this out.  I've tried to test all the flags, but the more times we kick the tires...
(This used to be commit cd34897749dc5819dd7239269fbd5dcef5bea5c0)

22 years agoget the right return code for batch vs exclusive oplocks
Andrew Tridgell [Thu, 7 Mar 2002 18:53:37 +0000 (18:53 +0000)]
get the right return code for batch vs exclusive oplocks
(This used to be commit 91fc5b2de577019d7646f3c29173b27605d9ba12)

22 years agoCosmetic fixup for enum_printers
Tim Potter [Thu, 7 Mar 2002 04:29:13 +0000 (04:29 +0000)]
Cosmetic fixup for enum_printers
(This used to be commit bb0ef8bc305da7490a19a6f4efd2aa60bf14aef1)

22 years agoFixed a bunch of crash bugs for enumprinters at various info levels.
Tim Potter [Thu, 7 Mar 2002 04:22:16 +0000 (04:22 +0000)]
Fixed a bunch of crash bugs for enumprinters at various info levels.
(This used to be commit d9df00e2b1764619491900b7dbd7d5af34feed1b)

22 years agoFixed delete on close semantics - preparing for share mode rewrite.
Jeremy Allison [Thu, 7 Mar 2002 04:21:12 +0000 (04:21 +0000)]
Fixed delete on close semantics - preparing for share mode rewrite.
Jeremy.
(This used to be commit 25dd73be29bbf0a080fe0bcbe5c478545d1e8db7)

22 years agoAdded another 2 delete on close tests. Now 10. Had to fix smbd to match...
Jeremy Allison [Thu, 7 Mar 2002 04:15:40 +0000 (04:15 +0000)]
Added another 2 delete on close tests. Now 10. Had to fix smbd to match...
Jeremy.
(This used to be commit bda1c31da68aa75aba780727e9aeaad17207668d)

22 years agoargc == 0 is an impossible condition.
Tim Potter [Thu, 7 Mar 2002 04:03:21 +0000 (04:03 +0000)]
argc == 0 is an impossible condition.
(This used to be commit 5b195f8bf14b11edca74db5fd9658916447b363d)

22 years agoChange xcopy test to use defined constants rather than magic hex
Jeremy Allison [Thu, 7 Mar 2002 02:16:25 +0000 (02:16 +0000)]
Change xcopy test to use defined constants rather than magic hex
values so we can see what's going on.
Jeremy.
(This used to be commit 5ba4ba36339269b2059da7c103e63ecd948f7938)