samba.git
18 years agoBack out 1.16.2.3:
Martin Pool [Fri, 15 Feb 2002 22:20:08 +0000 (22:20 +0000)]
Back out 1.16.2.3:

receive_smb: You might think that we ought to set smb_read_error here,
but apparently that breaks the recursive main loop in oplock.c.
Global variables suck. :-/
(This used to be commit b6d5d02aa1bf0caa28343dc87444f049c5fd8ce5)

18 years agoSubject:
Andrew Bartlett [Fri, 15 Feb 2002 22:18:52 +0000 (22:18 +0000)]
Subject:
         [PATCH] net ads error
    Date:
         Fri, 15 Feb 2002 20:03:32 +0200
   From:
         Alexander Bokovoy <a.bokovoy@sam-solutions.net>
     To:
         samba-technical@samba.org

Greetings!

Attached patch fixes a problem with non-working 'net ads -Uuser%pass'
in CVS HEAD.
(This used to be commit a21a951ff9493a6e33e4ff8388a95facdeacf7b4)

18 years agomerge from APPLIANCE_HEAD
Gerald Carter [Fri, 15 Feb 2002 18:59:34 +0000 (18:59 +0000)]
merge from APPLIANCE_HEAD
(This used to be commit 696d439515016e4c2bc5ad085e443abe43c95136)

18 years agoWinbind cleanup.
Andrew Bartlett [Fri, 15 Feb 2002 13:28:59 +0000 (13:28 +0000)]
Winbind cleanup.

This patch fixes the segfaults I introduced in the previous conneciton caching
patch.  It cleans up the connection cache a *lot* - in particular it adds
significant robustness to the operation.

If a the DC goes down, we no longer fail the next operation - the code checks
if the connection died during one of its own operations on the socket, and
restarts the conneciton as required.

There is still a memory leak in here somewhere - but this code also cleans up a
number of these.

Also added is the abilty to sepecify the domain of the 'get around restrict anonymous'
user that winbind uses.

Andrew Bartlett
(This used to be commit 92cbefdf2783bf9dbbb2179c1b2f7cdb802d84a9)

18 years agoMerge of smbclient print crash bug fix from app head.
Tim Potter [Fri, 15 Feb 2002 02:46:13 +0000 (02:46 +0000)]
Merge ... smbclient print crash bug fix from app head.
(This used to be commit a56298d56ae67a764e9b9a43c1c568b7125e1c18)

18 years agomerge from 2.2
Gerald Carter [Wed, 13 Feb 2002 16:44:49 +0000 (16:44 +0000)]
merge from 2.2
(This used to be commit 50fa21c995d33601920b3b56a3e03b09262e7fd9)

18 years agoFix LDAP modification operation. Cut and paste error: was LDAP_MOD_ADD, should be...
Jim McDonough [Wed, 13 Feb 2002 15:00:39 +0000 (15:00 +0000)]
Fix LDAP modification operation.  Cut and paste error: was LDAP_MOD_ADD, should be LDAP_MOD_REPLACE.  Caught by Alexey Kotovich.
(This used to be commit be48a05ed95f0f4ed02ffb996cb1ecc10811d9a0)

18 years agomerge from 2.2
Gerald Carter [Tue, 12 Feb 2002 22:31:18 +0000 (22:31 +0000)]
merge from 2.2
(This used to be commit e18a7c26476e05f95850ac2bbeb42c2588115741)

18 years agomerge from 2.2
Gerald Carter [Tue, 12 Feb 2002 19:16:14 +0000 (19:16 +0000)]
merge from 2.2
(This used to be commit 09fc979172327d6396642e824f6d482c6f986850)

18 years agoAdd ADS_MODLIST to allowed types
Jim McDonough [Tue, 12 Feb 2002 18:23:34 +0000 (18:23 +0000)]
Add ADS_MODLIST to allowed types
(This used to be commit d082d3a9fc2d6eddf82b1583eb1cbfcf5965f1a0)

18 years agotalloc'ify ads modify functions.
Jim McDonough [Tue, 12 Feb 2002 18:22:47 +0000 (18:22 +0000)]
talloc'ify ads modify functions.
(This used to be commit e097666499564ffe28836876a7a191149c14f199)

18 years agotalloc'ify ads modify functions. Also add more complete berval support.
Jim McDonough [Tue, 12 Feb 2002 18:22:33 +0000 (18:22 +0000)]
talloc'ify ads modify functions.  Also add more complete berval support.
(This used to be commit 1f186c60ad957c0e8157a6fd903857121c65a2e0)

18 years agoAdd ability to extend ads modification list on the fly. Added ADS_MODLIST type.
Jim McDonough [Mon, 11 Feb 2002 15:48:34 +0000 (15:48 +0000)]
Add ability to extend ads modification list on the fly.  Added ADS_MODLIST type.
(This used to be commit 3f7ba70615008d74a145a94aa087cae08efab343)

18 years agoUpdate for new ads modlist structure passing
Jim McDonough [Mon, 11 Feb 2002 15:48:01 +0000 (15:48 +0000)]
Update for new ads modlist structure passing
(This used to be commit 6169b668fe955f298c7323c5d64f6c7b303aaac0)

18 years agoAdd ability to extend ads modification list on the fly. Also add some malloc checks...
Jim McDonough [Mon, 11 Feb 2002 15:47:02 +0000 (15:47 +0000)]
Add ability to extend ads modification list on the fly.  Also add some malloc checks and return ADS_ERROR(LDAP_NO_MEMORY) if they fail.
(This used to be commit 81d76f05d8b886a86eb421d1bd8737ec7d05cbde)

18 years agomerge from 2.2
Gerald Carter [Mon, 11 Feb 2002 13:57:44 +0000 (13:57 +0000)]
merge from 2.2
(This used to be commit bb574aab8f3f4ac2f7ae919790481a419f8173cb)

18 years agofixes from 2,2
Gerald Carter [Mon, 11 Feb 2002 13:49:02 +0000 (13:49 +0000)]
fixes from 2,2
(This used to be commit 46bd77a02a47c26c4981472c8cea09e64c2ef4d2)

18 years agoA few small winbind updates:
Andrew Bartlett [Mon, 11 Feb 2002 01:29:07 +0000 (01:29 +0000)]
A few small winbind updates:

Add a connection cache to the netlogon pipe.  This makes a *massive* difference
to the time-per-auth.  Also fix up *some* of the memory leaks in other
connection caches.

Add some debugging messages for the is_connected() code.  I'm thinking we
should get a client implementation of SMBecho and call it here - as it would
allow us to always know the DC is around before we start.

Down the debug level for some of the pam_winbind code - I'll probably down it
further when I'm finished debugging.

Andrew Bartlett
(This used to be commit 49d3e476662220775ef8da7db01ea17e77e11b0b)

18 years agodoc merge from 2.2
Gerald Carter [Sat, 9 Feb 2002 14:05:09 +0000 (14:05 +0000)]
doc merge from 2.2
(This used to be commit 2df8df4cd9b271ac91245bd44d6384483c1a4524)

18 years agoFix up some braindamage in the testsuite.
Andrew Bartlett [Sat, 9 Feb 2002 11:47:55 +0000 (11:47 +0000)]
Fix up some braindamage in the testsuite.

(if you remove the smbpasswd file, you wont be able to change the passwords
contained therein... :-)

Andrew Bartlett
(This used to be commit dd8388330e5ad0ae1a82f876e3a95fba854d1528)

18 years agoBring printing in HEAD inline with 2.2.x and app-head.
Jeremy Allison [Sat, 9 Feb 2002 04:10:24 +0000 (04:10 +0000)]
Bring printing in HEAD inline with 2.2.x and app-head.
Jeremy.
(This used to be commit 771ef92fc6e43725b7cc351079998a8acb74abef)

18 years agopreparing for release of 3.0-alpha15
Samba Release Account [Sat, 9 Feb 2002 03:51:35 +0000 (03:51 +0000)]
preparing for release of 3.0-alpha15
(This used to be commit b9c843532508ea5fd4633dd7d82452fd89d63eab)

18 years agoDo the reverse DNS lookup, but only if 'hostname lookups = yes'
Andrew Bartlett [Sat, 9 Feb 2002 03:29:36 +0000 (03:29 +0000)]
Do the reverse DNS lookup, but only if 'hostname lookups = yes'

Andrew Bartlett
(This used to be commit dfecd6a4534743a3e140eafc9836911286793951)

18 years agomerge from APPLIANCE_HEAD
Gerald Carter [Fri, 8 Feb 2002 21:51:40 +0000 (21:51 +0000)]
merge from APPLIANCE_HEAD
(This used to be commit e734c1971d2841b2cfe37414fe4893f4a66b22a9)

18 years agoFix up some of the DEBUG lines in winbind_pam.c
Andrew Bartlett [Fri, 8 Feb 2002 06:43:55 +0000 (06:43 +0000)]
Fix up some of the DEBUG lines in winbind_pam.c
(This used to be commit dfc8883305abf7630e6446a0b865bae99ec2f5a4)

18 years agosmbsh need CC not SHLD
Herb Lewis [Thu, 7 Feb 2002 20:20:05 +0000 (20:20 +0000)]
smbsh need CC not SHLD
(This used to be commit 690c1fae9ce0ad6a8adef42ed5a7d8cfedab261d)

18 years agoquite errors about unnecessary const casting - don't build libnss_wins.so
Herb Lewis [Thu, 7 Feb 2002 20:09:17 +0000 (20:09 +0000)]
quite errors about unnecessary const casting - don't build libnss_wins.so
(This used to be commit 8ae0abb174aec0c76d6900b08914535d0a2d425c)

18 years agowhen a trusted domain is down an ADS server will return a success on a
Andrew Tridgell [Thu, 7 Feb 2002 02:44:37 +0000 (02:44 +0000)]
when a trusted domain is down an ADS server will return a success on a
get trusted domains query but leave the domain SID blank - we need to
fail the add of the trusted domain in winbindd in that case
(This used to be commit 24c7e7a3849df3a3378f7e7f20099de048f0b7bd)

18 years agoI added two lines of comments regarding the include= parameter. Someone
Christopher R. Hertel [Wed, 6 Feb 2002 22:51:07 +0000 (22:51 +0000)]
I added two lines of comments regarding the include= parameter.  Someone
here at the UofM was burned today because they had left that line in its
default location.
(This used to be commit fd4d3496e142574e2bd25faab5c8f1534a21558f)

18 years agoTry to get this finally working. (Note to self: *always* check build farm...)
Andrew Bartlett [Wed, 6 Feb 2002 20:31:26 +0000 (20:31 +0000)]
Try to get this finally working.  (Note to self: *always* check build farm...)
:-)

Andrew Bartlett
(This used to be commit 542e0e37455e6bcd8e0c248b3bb6ede8306d1656)

18 years agoFix ldapmod list overrun check. Also better document and format ldap control for...
Jim McDonough [Wed, 6 Feb 2002 02:28:46 +0000 (02:28 +0000)]
Fix ldapmod list overrun check.  Also better document and format ldap control for permissive modify.
(This used to be commit 01e7f7c3d9006883b71e43d917d32e325cff7a15)

18 years ago0x is the traditional prefix for displaying hex numbers.
Tim Potter [Wed, 6 Feb 2002 02:22:33 +0000 (02:22 +0000)]
0x is the traditional prefix for displaying hex numbers.
(This used to be commit f424b691ea76819e90f10919b0506bb2216ecd0e)

18 years agono longer need separate build o32 smbwrapper
Herb Lewis [Wed, 6 Feb 2002 00:56:43 +0000 (00:56 +0000)]
no longer need separate build o32 smbwrapper
(This used to be commit a9316754c7ef6244e69bec25ca20dad0019f77e1)

18 years agofix for IRIX toolroot builds
Herb Lewis [Wed, 6 Feb 2002 00:53:00 +0000 (00:53 +0000)]
fix for IRIX toolroot builds
(This used to be commit dc3fb2e6dcd92efd7468bd8121fbc49e3dadb8ea)

18 years agoFix use of uninitialsed variable in PAM code
Andrew Bartlett [Tue, 5 Feb 2002 23:45:29 +0000 (23:45 +0000)]
Fix use of uninitialsed variable in PAM code
(This used to be commit 6c08c233e6675056c0ee0bbc4ecdcbc205950f54)

18 years agoSee if we can get slightly valid C for the non-PAM case here.
Andrew Bartlett [Tue, 5 Feb 2002 21:05:04 +0000 (21:05 +0000)]
See if we can get slightly valid C for the non-PAM case here.

Andrew Bartlett
(This used to be commit 59afc3d6daad2770219dba1ca113869967eefc23)

18 years agoDrastic impromvents to pam_winbind.
Andrew Bartlett [Tue, 5 Feb 2002 09:40:36 +0000 (09:40 +0000)]
Drastic impromvents to pam_winbind.

This adds code to do generic PAM -> NTSTATUS and NTSTATUS -> PAM error
conversions, and uses them to make the error handling in pam_winbind sane.

In particular, pam_winbind now uses PAM error codes, not silly '-1, -2 ...'
stuff, and logs the NTSTATUS error that winbind now sends over the pipe.

Added code to wbinfo to display these - makes a big difference in debugging
winbindd.

The main change here is the code to allow pam_winbind password changing to
correctly stack - This code ripped from pam_unix, and the copyright attached.
(Same as for all pam modules, including pam_winbind)

Andrew Bartlett
(This used to be commit dc1a72f896b83bc1ad3c7bf6c12c36ace3967280)

18 years agogot rid of a silly '*' in printout
Andrew Tridgell [Tue, 5 Feb 2002 06:42:35 +0000 (06:42 +0000)]
got rid of a silly '*' in printout
(This used to be commit 22be40b6b8c034c143ce5d804628bc12cb1cc3dd)

18 years ago- only show 1 cleanup msg per client
Andrew Tridgell [Tue, 5 Feb 2002 03:55:20 +0000 (03:55 +0000)]
- only show 1 cleanup msg per client
- show client count in progress
(This used to be commit 10ee1d22e606847d40fb013c694ed5733ef6b87b)

18 years agofixed the directory removal for when the dir doesn't exit
Andrew Tridgell [Tue, 5 Feb 2002 03:02:14 +0000 (03:02 +0000)]
fixed the directory removal for when the dir doesn't exit
(This used to be commit 2c67b266cc4848dff6066fcbc875ab5f91113179)

18 years agoFix stupid typo !
Jeremy Allison [Tue, 5 Feb 2002 02:40:16 +0000 (02:40 +0000)]
Fix stupid typo !
Jeremy.
(This used to be commit d1e911afd08971c6cf5429bda929663a5dd8f63d)

18 years agorewrote smbtorture to use the new dbench 2 format and methods
Andrew Tridgell [Tue, 5 Feb 2002 01:31:47 +0000 (01:31 +0000)]
rewrote smbtorture to use the new dbench 2 format and methods
(This used to be commit 36f816a5e12a80f0184f43cbd44ef5fac53fcb81)

18 years agocheck for empty parameters in qpathinfo
Andrew Tridgell [Tue, 5 Feb 2002 01:31:16 +0000 (01:31 +0000)]
check for empty parameters in qpathinfo
(This used to be commit c78b16c1f850562b65acb6143e55b1aefc075753)

18 years agosupport double functions
Andrew Tridgell [Tue, 5 Feb 2002 01:30:50 +0000 (01:30 +0000)]
support double functions
(This used to be commit e72c6fb36ebd3ea8fc6b6d8e1b1a9ff1ccb3ade9)

18 years agofixed a bug in qpathinfo client code
Andrew Tridgell [Tue, 5 Feb 2002 01:30:02 +0000 (01:30 +0000)]
fixed a bug in qpathinfo client code
(This used to be commit 22f348a1f9501cc00d46d6c6064f71198558c0ee)

18 years agoremoved several parameters ("client code page", "valid chars",
Gerald Carter [Mon, 4 Feb 2002 14:15:29 +0000 (14:15 +0000)]
removed several parameters ("client code page", "valid chars",
"code page directory", "character set", et. al.)
(This used to be commit 6ff236249559f8a11381cab9cc1757b26764a39d)

18 years agoAdd the new smbprint shell script, smbprint-new.sh that is supposed to fix some probl...
Richard Sharpe [Mon, 4 Feb 2002 02:24:29 +0000 (02:24 +0000)]
Add the new smbprint shell script, smbprint-new.sh that is supposed to fix some problems under *BSD and etc ...
(This used to be commit 6bd91973bbacc718de5d32a6819cc7e6ae98dd6f)

18 years agobetter debug messages!
Simo Sorce [Mon, 4 Feb 2002 00:59:23 +0000 (00:59 +0000)]
better debug messages!
(This used to be commit e3bb6867454307ae592115e205d32ddd53988678)

18 years agoA new simpiler syntax demands a new simpiler HOWTO. (This can all be reverted
Andrew Bartlett [Sun, 3 Feb 2002 03:51:01 +0000 (03:51 +0000)]
A new simpiler syntax demands a new simpiler HOWTO.  (This can all be reverted
if new simpiler syntax was a bad idea...).

Andrew Bartlett
(This used to be commit 717f45ca3ca85ca47f6d7b9379c17480f0bf82e4)

18 years agoMake smbgroupedit a little easier on the user.
Andrew Bartlett [Sun, 3 Feb 2002 03:25:26 +0000 (03:25 +0000)]
Make smbgroupedit a little easier on the user.

We now have error messages for most of the failure cases, and the
'sid' arguments for delete and change can now take the nt group name
as a string.

Also fix up all the internal functions to be static, keeping the
namespace clean.

Andrew Bartlett
(This used to be commit f1687587010a2390b65bd5efa37cc199b67587f8)

18 years agoChange ADS_ERROR family of macros - removed semicolon from the end, since they were...
Jim McDonough [Sat, 2 Feb 2002 22:09:03 +0000 (22:09 +0000)]
Change ADS_ERROR family of macros - removed semicolon from the end, since they were only being used correctly in one location, and all other assumed the semicolon wasn't there.  Amazing that none of them mattered syntactically, until today.
(This used to be commit 6515c3e8ef546975657e45fce7f147fe4a08e9ca)

18 years agoUpdate for function name changes, plus do some of the optional attributes on printer...
Jim McDonough [Sat, 2 Feb 2002 22:07:22 +0000 (22:07 +0000)]
Update for function name changes, plus do some of the optional attributes on printer modify, now that the ldap control is working.
(This used to be commit 76afc886a89e8c0d5a169435dde42b00db522060)

18 years agomerge in some changes from Alexey Kotovich. Return ADS_STATUS instead of BOOLs....
Jim McDonough [Sat, 2 Feb 2002 22:06:10 +0000 (22:06 +0000)]
merge in some changes from Alexey Kotovich.  Return ADS_STATUS instead of BOOLs.  Add support for bervals in mod lists.  Also put undocumented AD ldap control in to allow modifications when an attribute does not yet exist.
(This used to be commit 1a2d27b21e61be5a314f7d6c4ea0dff06a5307be)

18 years agomerge from 2.2
Gerald Carter [Sat, 2 Feb 2002 15:44:37 +0000 (15:44 +0000)]
merge from 2.2
(This used to be commit 473a89cde2e60c359cb435c714dc98974489a118)

18 years agomerge from 2.2 and regen
Gerald Carter [Sat, 2 Feb 2002 06:08:43 +0000 (06:08 +0000)]
merge from 2.2 and regen
(This used to be commit 7b7e4190739bd7df422e3f239fd89373edb97ee5)

18 years agomerge from 2.2
Gerald Carter [Sat, 2 Feb 2002 04:58:57 +0000 (04:58 +0000)]
merge from 2.2
(This used to be commit a60be0216eb3d0c76f93ec3a3edd861861cb1a4e)

18 years agoAdd support for net ads printer to publish, remove, or display printer info in the...
Jim McDonough [Sat, 2 Feb 2002 02:06:03 +0000 (02:06 +0000)]
Add support for net ads printer to publish, remove, or display printer info in the directory.  Only publishes required fields right now.
(This used to be commit 1d326f8b7e68bcad6c35488f77b05c598ebaad5d)

18 years agoMinor bug fixes, plus support to remove a printer. Commented out optional attributes...
Jim McDonough [Sat, 2 Feb 2002 02:04:01 +0000 (02:04 +0000)]
Minor bug fixes, plus support to remove a printer.  Commented out optional attributes until a method for checking for their existence is done.
(This used to be commit 538c19a6983e0423b94f743184263cd8ef9c701e)

18 years agoupdate from 2.2
Simo Sorce [Fri, 1 Feb 2002 23:20:08 +0000 (23:20 +0000)]
update from 2.2
(This used to be commit 8bb2a7446ed69020086aaedf2889795dd38ef9d4)

18 years agoAdd ads printer information
Jim McDonough [Fri, 1 Feb 2002 17:42:41 +0000 (17:42 +0000)]
Add ads printer information
(This used to be commit a844d9af21d8047629129c5e842db7acbc059932)

18 years agoFix build errors on non-ldap systems...change function parms from LDAPMod ** to void **
Jim McDonough [Fri, 1 Feb 2002 17:13:39 +0000 (17:13 +0000)]
Fix build errors on non-ldap systems...change function parms from LDAPMod ** to void **
(This used to be commit 9467792843fdd9bc55e92bfaa2f2205279074297)

18 years agoFix file header description and copyright (from cut-and-paste laziness)
Jim McDonough [Fri, 1 Feb 2002 16:58:01 +0000 (16:58 +0000)]
Fix file header description and copyright (from cut-and-paste laziness)
(This used to be commit 146c731c35beecd3ae8e093e52d94af0e2efcd69)

18 years agoAdd ldap_printer.c build for ADS printer objects.
Jim McDonough [Fri, 1 Feb 2002 16:17:39 +0000 (16:17 +0000)]
Add ldap_printer.c build for ADS printer objects.
(This used to be commit 085f5ab03e0e4994315b9a0eeb5cb2a625b784f8)

18 years agoModule for ADS operations on a printer object in the directory. Initially it creates...
Jim McDonough [Fri, 1 Feb 2002 16:15:53 +0000 (16:15 +0000)]
Module for ADS operations on a printer object in the directory.  Initially it creates and modifies a printQueue object in the directory
(This used to be commit b14e638aeb80bad80cfd12ed60f5e77f24addfd5)

18 years agoAdd functions for modifying an entry in ADS. Needed for printer publishing.
Jim McDonough [Fri, 1 Feb 2002 16:14:33 +0000 (16:14 +0000)]
Add functions for modifying an entry in ADS.  Needed for printer publishing.
(This used to be commit 3d8d8cef64c674f9f1240759a05766db95bfde4e)

18 years agoFix from Michael Steffens <michael_steffens@hp.com> to make signal
Jeremy Allison [Thu, 31 Jan 2002 23:26:12 +0000 (23:26 +0000)]
Fix from Michael Steffens <michael_steffens@hp.com> to make signal
processing work correctly in winbindd. This is a really good patch
that gives full select semantics to the Samba modified select.
Jeremy.
(This used to be commit 3af16ade173cac24c1ac5eff4a36b439f16ac036)

18 years agoreduced memory usage in winbindd with a rpc backend by using a
Andrew Tridgell [Thu, 31 Jan 2002 12:47:42 +0000 (12:47 +0000)]
reduced memory usage in winbindd with a rpc backend by using a
separate talloc context for each partial fetch
(This used to be commit 9c8a2fe4df21c29c90dc8493dade2b12314234c3)

18 years agoRemoved unused variables.
Tim Potter [Thu, 31 Jan 2002 11:54:01 +0000 (11:54 +0000)]
Removed unused variables.
(This used to be commit 703d06fee03b6b6a37b9f64cdc313a0d59c41597)

18 years agoadded 'wbinfo --sequence' to show sequence numbers of all domains
Andrew Tridgell [Thu, 31 Jan 2002 11:49:29 +0000 (11:49 +0000)]
added 'wbinfo --sequence' to show sequence numbers of all domains
(This used to be commit bcd234a3dad2cd3d1c57780f4a7a3833ea611764)

18 years agoAdded administrator access check for server side add, delete and setform
Tim Potter [Thu, 31 Jan 2002 11:44:00 +0000 (11:44 +0000)]
Added administrator access check for server side add, delete and setform
rpcs.  The only one I have been able to verify is addform - can't get the
client side routines working properly yet.  )-:
(This used to be commit 3cd97d65dea428382104ebde63eaf660aa3942fb)

18 years agoAdded make functions for SPOOL_Q_{ADD,SET,DELETE}FORM.
Tim Potter [Thu, 31 Jan 2002 11:42:16 +0000 (11:42 +0000)]
Added make functions for SPOOL_Q_{ADD,SET,DELETE}FORM.

I'm pretty sure that the useless_ptr in spoolss_io_q_setform() needs to be
initialised to 1 otherwise the form isn't marshalled at all.  JF, can you
verify this?  If so then this probably applies to the io functions for
setform and deleteform.
(This used to be commit 1803778451a344c6c8d116eac5eaac777e5cf4fe)

18 years agoInitialise some SAM_ACCOUNT structs to NULL, and add some more error checking.
Andrew Bartlett [Thu, 31 Jan 2002 11:38:47 +0000 (11:38 +0000)]
Initialise some SAM_ACCOUNT structs to NULL, and add some more error checking.

Andrew Bartlett
(This used to be commit f3f375dc6b7175d4dd4ce401815e5dfdd9747083)

18 years agoAdded addform, setform and deleteform cli functions.
Tim Potter [Thu, 31 Jan 2002 11:37:48 +0000 (11:37 +0000)]
Added addform, setform and deleteform cli functions.
(This used to be commit a7e67dc00ae1a9a80875f2708def6565af0c6f0e)

18 years agoAdded addform, setform and deleteform commands. The only one I could get
Tim Potter [Thu, 31 Jan 2002 11:36:30 +0000 (11:36 +0000)]
Added addform, setform and deleteform commands.  The only one I could get
to actually work was addform.  )-:

Removed a whole bunch of calls to werror_to_ntstatus() because there isn't
a one-to-one mapping of NTSTATUS values to WERROR values.  This function
maps WERR_ACCESS_DENIED to NTSTATUS_INVALID_LOCK_SEQUENCE or something
silly like that.
(This used to be commit 825b5c8bd6d0f114faf3b0fd91eb374cbfb8c8b7)

18 years agoAdded some constants for the flags field in the FORM_1 structure.
Tim Potter [Thu, 31 Jan 2002 11:30:36 +0000 (11:30 +0000)]
Added some constants for the flags field in the FORM_1 structure.

The level2 field in SPOOL_Q_ADDFORM is probably part of the FORM structure
as a discriminated union.
(This used to be commit 2c906ff77d81bc7097129d3f34be48857ce3a48b)

18 years agoAdded constant for WERR_FILE_EXISTS.
Tim Potter [Thu, 31 Jan 2002 11:28:02 +0000 (11:28 +0000)]
Added constant for WERR_FILE_EXISTS.
(This used to be commit e4c13c51fa559d24da73f57b348cfe7d711b3c7d)

18 years agothis fixes the problem of not being able to add a SD to a file on a
Andrew Tridgell [Thu, 31 Jan 2002 09:37:26 +0000 (09:37 +0000)]
this fixes the problem of not being able to add a SD to a file on a
non-domain Samba server from a NT4 client.

Note that this exactly reverses a change by Jeremy on the 18th of
December 2001, reverting the code back to what JF originally wrote. I
have looked carefully with a sniffer and JFs original NULL sid is
correct (ie. it matches what NT4 does) and also fixes the problem.

Sending a blank sid (which is what jeremy's patch did) causes NT4 to
give a classic "parameter is incorrect error" and prevents the
addition of new ACLs.
(This used to be commit 9930cf97330dd93985c5558cec6b24406e90c228)

18 years agopreparing for release of 3.0-alpha14
Samba Release Account [Wed, 30 Jan 2002 12:12:16 +0000 (12:12 +0000)]
preparing for release of 3.0-alpha14
(This used to be commit 6f977036ad1053cc4c06f801b989afdd8cfca10d)

18 years agoBack out herb's changes (to allow smbpasswd -x to work on accounts outside
Andrew Bartlett [Wed, 30 Jan 2002 12:06:22 +0000 (12:06 +0000)]
Back out herb's changes (to allow smbpasswd -x to work on accounts outside
/etc/passwd) and replace them with a version that works.  Unfortunetly HEAD and
2.2 have different passdb interfaces and different local_password_change
functions...

Andrew Bartlett
(This used to be commit 86d5326d0dc6a070dfeb24a5306a2b4404bfc0f1)

18 years agoAn attempt at producing the correct Makefile magic for wrepld_proto.h to be
Andrew Bartlett [Wed, 30 Jan 2002 10:50:07 +0000 (10:50 +0000)]
An attempt at producing the correct Makefile magic for wrepld_proto.h to be
automatically generated on first 'make'.  This wasn't being picked up by the
build farm becouse of the explicit 'make proto'.

The 'make proto' bit isn't somthing our alpha testers know about (its certainly
not clearly documented) and its meant to be automatic.

I hope this works...

Andrew Bartlett
(This used to be commit 3a413ef1eabbb28b589e5238d9c837a8275b54d0)

18 years agoAddd wrepld (what a cool name!)
Tim Potter [Wed, 30 Jan 2002 06:10:09 +0000 (06:10 +0000)]
Addd wrepld (what a cool name!)
(This used to be commit ab049355af965f7d5a9851ddbb7400d3d9986b5a)

18 years agoAdded wrepld_proto.h
Tim Potter [Wed, 30 Jan 2002 06:09:48 +0000 (06:09 +0000)]
Added wrepld_proto.h
(This used to be commit 1b9b4e46d2dec69cc6de67aad93614412ae61379)

18 years agoRemoved version number from file header.
Tim Potter [Wed, 30 Jan 2002 06:08:46 +0000 (06:08 +0000)]
Removed version number from file header.

Changed "SMB/Netbios" to "SMB/CIFS" in file header.
(This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)

18 years agoUnused file.
Tim Potter [Wed, 30 Jan 2002 05:49:20 +0000 (05:49 +0000)]
Unused file.
(This used to be commit 78013c0eccc1fed356781cf2fbba3025fcbb080c)

18 years agomerge from 2.2
Gerald Carter [Wed, 30 Jan 2002 05:45:09 +0000 (05:45 +0000)]
merge from 2.2
(This used to be commit 69a9c005c21833bdf22b72aaa3704bd14f627840)

18 years agomerge change from @_2 to allow smbpasswd -x to delete user even if no
Herb Lewis [Wed, 30 Jan 2002 04:07:42 +0000 (04:07 +0000)]
merge change from @_2 to allow smbpasswd -x to delete user even if no
entry in /etc/passwd.

There are still differences in the local_password_change function. I'm
not sure which was the latest so I didn't change any thing else. Someone
needs to take a look and sync these up.
(This used to be commit 539b025397e569796f2349d33438c2be469c8c69)

18 years agoFix for password change from Samuel Ziegler <sam@xpedion.com>
Tim Potter [Wed, 30 Jan 2002 03:23:40 +0000 (03:23 +0000)]
Fix for password change from Samuel Ziegler <sam@xpedion.com>
(This used to be commit 418bdd5919265bc74844401901d91edc84076314)

18 years agoRemoved silly fprintf(stderr, ...) debug.
Tim Potter [Wed, 30 Jan 2002 03:14:20 +0000 (03:14 +0000)]
Removed silly fprintf(stderr, ...) debug.

Part of Samuel Ziegler's patch to get winbind password changing working
again in HEAD.
(This used to be commit b5540bee7be957d1def62ee85a84488e0250624b)

19 years agoDoc.
Martin Pool [Tue, 29 Jan 2002 05:34:16 +0000 (05:34 +0000)]
Doc.
(This used to be commit 91e8cb76628e9fcc5dc117d98d464b26db71654e)

19 years agoFix "strict allocate" to write the data out on ftruncate with extend.
Jeremy Allison [Tue, 29 Jan 2002 01:17:44 +0000 (01:17 +0000)]
Fix "strict allocate" to write the data out on ftruncate with extend.
Jeremy.
(This used to be commit 48fc42c7104d118bd43c80c801866ebd03be1638)

19 years agoSince we have dynamic initialisation in the group mapping code, make
Tim Potter [Tue, 29 Jan 2002 01:01:14 +0000 (01:01 +0000)]
Since we have dynamic initialisation in the group mapping code, make
init_group_mapping() a static function and don't call it from any client
programs.

Not sure whether I've made a bigger mess here or not...
(This used to be commit 3c887d9021269aaa9fc0bc771af8589077e6208e)

19 years agomake all-docs to make sure everything is up-to-date
Gerald Carter [Mon, 28 Jan 2002 17:36:33 +0000 (17:36 +0000)]
make all-docs to make sure everything is up-to-date
(This used to be commit 7235a21ca4f558fbea7e156e891683767dc2cda1)

19 years agoName another talloc.
Andrew Bartlett [Mon, 28 Jan 2002 00:54:37 +0000 (00:54 +0000)]
Name another talloc.
(This used to be commit 9d62f25f5d3c25d71d8b87801084d42ae9b66f8c)

19 years agominor fix and checks
Simo Sorce [Sun, 27 Jan 2002 16:37:12 +0000 (16:37 +0000)]
minor fix and checks
(This used to be commit a034bfb9ef7a4c8a127ac91f4163cc6af98f29b3)

19 years agoSome more 'winbind default domain' support patches from Alexander Bokovoy
Andrew Bartlett [Sun, 27 Jan 2002 12:12:22 +0000 (12:12 +0000)]
Some more 'winbind default domain' support patches from Alexander Bokovoy
<a.bokovoy@sam-solutions.net>.

This patch is designed to remove the 'special cases' required for this support.

In particular this now kills off winbind_initgroups, as it appears no longer to
be required.

Andrew Bartlett
(This used to be commit f1d8d509766e9169d39332559162cfec249bfc70)

19 years agoYes, dev is an 'input/output' paramater...
Andrew Bartlett [Sun, 27 Jan 2002 12:06:27 +0000 (12:06 +0000)]
Yes, dev is an 'input/output' paramater...

Andrew Bartlett
(This used to be commit 8cac618174365825e8b1824f70cb42afbce5e500)

19 years agoPatch from Kevin Stefanik <kstef@mtppi.org> to do some more error checking for
Andrew Bartlett [Sun, 27 Jan 2002 10:53:43 +0000 (10:53 +0000)]
Patch from Kevin Stefanik <kstef@mtppi.org> to do some more error checking for
group mapping init failures.
(This used to be commit cd6a2dad4e3092a19f784b6548fce49ecd8bb549)

19 years agomerge from 2.2 and regenerate
Gerald Carter [Sun, 27 Jan 2002 05:37:23 +0000 (05:37 +0000)]
merge from 2.2 and regenerate
(This used to be commit 55c53ef08974947cf10a79882b63d6d8e8baad4c)

19 years agoGive pdbedit a -D paramater for setting the DEBUGLEVEL (makes debugging passdb
Andrew Bartlett [Sun, 27 Jan 2002 03:00:56 +0000 (03:00 +0000)]
Give pdbedit a -D paramater for setting the DEBUGLEVEL (makes debugging passdb
much saner :-).

Change to pdb_init_sam()/pdb_free_sam() loop rather than reset based due to
the talloc basis.

Andrew Bartlett
(This used to be commit e40a0a7f27950bd0484fe7d6b67dce45cd75d25c)

19 years agomerge from APPLIANCE_HEAD
Gerald Carter [Sat, 26 Jan 2002 22:27:12 +0000 (22:27 +0000)]
merge from APPLIANCE_HEAD
(This used to be commit e3b87ffc8c26f9fd4c3e8181897b8812b7dc4ab6)