nivanova/samba-autobuild/.git
20 years agorestructure PCP metrics (merge from 2.2 branch)
Herb Lewis [Thu, 9 Nov 2000 20:45:09 +0000 (20:45 +0000)]
restructure PCP metrics (merge from 2.2 branch)
(This used to be commit dc725c2256ff5f3d8ac37fe33cfa1685194f7f46)

20 years agoan attempt to get the handling of fields in printer info structures
Andrew Tridgell [Wed, 8 Nov 2000 03:12:16 +0000 (03:12 +0000)]
an attempt to get the handling of fields in printer info structures
consistent. Still working with Jeremy on this, there is probably more
to be done
(This used to be commit c4bb9c598cf9781d48bc123a8cbbed9c2049bf89)

20 years agoMerge fest!!!
Tim Potter [Wed, 8 Nov 2000 00:20:26 +0000 (00:20 +0000)]
Merge fest!!!
(This used to be commit 87775074b22bb969c3585556e2a86ac4c7d4b0d4)

20 years agomake proto
Tim Potter [Wed, 8 Nov 2000 00:19:30 +0000 (00:19 +0000)]
make proto
(This used to be commit 88a2d224f1c3ca09abbad7f33b0e93bdf503da4e)

20 years agoMore merging of printing stuff from appliance.
Tim Potter [Wed, 8 Nov 2000 00:16:38 +0000 (00:16 +0000)]
More merging of printing stuff from appliance.
(This used to be commit 18fa724a7969666dd5aa176af187054abc94bfd3)

20 years agoMerge of latest round of printing fixes from appliance branch.
Tim Potter [Tue, 7 Nov 2000 23:05:53 +0000 (23:05 +0000)]
Merge ... latest round of printing fixes from appliance branch.
(This used to be commit 8fe17fd59488814cdbe9abcfe53ab2627901e421)

20 years agosync with 2.2 changes
Herb Lewis [Tue, 7 Nov 2000 19:46:43 +0000 (19:46 +0000)]
sync with 2.2 changes
(This used to be commit 0edc78937f4c92a0d18bba9a433a1bc2b00ce9b8)

20 years agomake proto
Tim Potter [Tue, 7 Nov 2000 17:48:54 +0000 (17:48 +0000)]
make proto
(This used to be commit 6ced1bb8b92101e11c53467d0380a97b840de7c7)

20 years agoMerge of printer security descriptor, info level and printerdata
Tim Potter [Tue, 7 Nov 2000 02:54:50 +0000 (02:54 +0000)]
Merge ... printer security descriptor, info level and printerdata
comparison changes from appliance branch.
(This used to be commit ae087bdf312806e08848695cad70a943bb3d71b9)

20 years ago64 bit fix from Uros Prestor <uros@turbolinux.com>.
Jeremy Allison [Mon, 6 Nov 2000 23:14:59 +0000 (23:14 +0000)]
64 bit fix from Uros Prestor <uros@turbolinux.com>.
Jeremy.
(This used to be commit 9a5471b3e861aa864ffff5fc87ac2681de7b0068)

20 years agoFix to the "known/unknown user" difference patch from "Ron Alexander" <rcalex@home...
Jeremy Allison [Mon, 6 Nov 2000 23:08:00 +0000 (23:08 +0000)]
Fix to the "known/unknown user" difference patch from "Ron Alexander" <rcalex@home.com>.
Jeremy.
(This used to be commit 7a698c1f23ea8740755c544f631789848a360e42)

20 years agoAdded a VFS version return to init call. Allows smbd to fail an init if
Jeremy Allison [Mon, 6 Nov 2000 21:44:33 +0000 (21:44 +0000)]
Added a VFS version return to init call. Allows smbd to fail an init if
versions don't match.
Jeremy.
(This used to be commit d0fbb4f5d999abade8930cc6fff231a2af6cccfb)

20 years agoAdded a VFS version return to init call. Allows smbd to fail an init if
Jeremy Allison [Mon, 6 Nov 2000 21:33:49 +0000 (21:33 +0000)]
Added a VFS version return to init call. Allows smbd to fail an init if
versions don't match.
Jeremy.
(This used to be commit b29ff816734c0424f69124feb316da13f2e094f7)

20 years agoFixes for sample VFS audit code from "Brad Sahr" <bsahr@macromedia.com>.
Jeremy Allison [Mon, 6 Nov 2000 20:01:03 +0000 (20:01 +0000)]
Fixes for sample VFS audit code from "Brad Sahr" <bsahr@macromedia.com>.
Jeremy.
(This used to be commit 5d6dec3a94f496651a5f0643ab228c975911e6cd)

20 years agoAdded documentation for printer-notify smbcontrol command.
Tim Potter [Sun, 5 Nov 2000 23:06:13 +0000 (23:06 +0000)]
Added documentation for printer-notify smbcontrol command.
(This used to be commit fdf6a5c76abc38e16cb7ee3f31512bfc1f639651)

20 years agoMerge from Tim - don't reinsert UNIX job if already exists.
Jeremy Allison [Sat, 4 Nov 2000 19:48:53 +0000 (19:48 +0000)]
Merge from Tim - don't reinsert UNIX job if already exists.
Jeremy.
(This used to be commit a33c395c98d80f620257fed480d5824fc609d9c9)

20 years agoFix some compiler warnings.
Tim Potter [Sat, 4 Nov 2000 18:44:34 +0000 (18:44 +0000)]
Fix some compiler warnings.
(This used to be commit 852de9226d50ccac71ec1691052a6e395283ca56)

20 years agoMerge of printing improvements/fixes from appliance branch.
Tim Potter [Sat, 4 Nov 2000 18:24:15 +0000 (18:24 +0000)]
Merge ... printing improvements/fixes from appliance branch.
(This used to be commit 8e163eac33e8f407de00c318d3de29fcfbf2b8a7)

20 years agoFix for admin user being ignored.
Jeremy Allison [Sat, 4 Nov 2000 06:45:26 +0000 (06:45 +0000)]
Fix for admin user being ignored.
Jeremy.
(This used to be commit f0dcc39d34202ed67d778ff40166856d4c2ad87b)

20 years agoSync up with Tim's changes in applience-head for SACLs.
Jeremy Allison [Sat, 4 Nov 2000 06:36:18 +0000 (06:36 +0000)]
Sync up with Tim's changes in applience-head for SACLs.
Jeremy.
(This used to be commit 6b94273fc61b26e83c8d791bc626fd52055ef293)

20 years agoAdded Using Samba book reference back into welcome page.
John Terpstra [Thu, 2 Nov 2000 19:42:02 +0000 (19:42 +0000)]
Added Using Samba book reference back into welcome page.
(This used to be commit bb552f7eaeb87d1d09704122da756d3d3e21697a)

20 years agoRemove CGI logging code. Make username/password lookups take
Jeremy Allison [Wed, 1 Nov 2000 19:43:53 +0000 (19:43 +0000)]
Remove CGI logging code. Make username/password lookups take
the same time.
Jeremy.
(This used to be commit 9698f746858f0f2b37ec6494fca990e958d97cb7)

20 years agodocumentation update and general description
Gerald Carter [Wed, 1 Nov 2000 18:28:22 +0000 (18:28 +0000)]
documentation update and general description

jerry
(This used to be commit f2cc34519504efb12526a5ddad9341edb02ac762)

20 years agoAdded a authentication hook to smbwrapper which allows a (username,
Tim Potter [Wed, 1 Nov 2000 04:31:19 +0000 (04:31 +0000)]
Added a authentication hook to smbwrapper which allows a (username,
workgroup, password) tuple to be provided by another function.
(This used to be commit 644c78d64a6d7b7e44414c579de660321a0a6b34)

20 years agoAdded smbsh to list of ignored files.
Tim Potter [Wed, 1 Nov 2000 03:22:38 +0000 (03:22 +0000)]
Added smbsh to list of ignored files.
(This used to be commit 3ff75e92ad2f663d1306048d132daa486ae02d96)

20 years agoMerge of comment repair.
Tim Potter [Mon, 30 Oct 2000 21:55:30 +0000 (21:55 +0000)]
Merge of comment repair.
(This used to be commit 7712421910b12fd64cf90100e4495669bec67c2f)

20 years agoOnly use prs_uint8s on marshalling as we know we're little endian. On
Jeremy Allison [Mon, 30 Oct 2000 21:47:20 +0000 (21:47 +0000)]
Only use prs_uint8s on marshalling as we know we're little endian. On
unmarshalling use prs_uint16s. Yes this sucks :-).
Jeremy.
(This used to be commit 3d68257850be66c26074a43d92eb9c3c8ffaf04e)

20 years agoFixed double btyte-swap problems with bigendian architectures.
Jeremy Allison [Mon, 30 Oct 2000 19:45:22 +0000 (19:45 +0000)]
Fixed double btyte-swap problems with bigendian architectures.
Jeremy.
(This used to be commit c96a77957be49418b62e401db49235a11d711217)

20 years agoCall standard_sub_advanced() after lp_logon_XX() calls.
Jeremy Allison [Mon, 30 Oct 2000 19:35:43 +0000 (19:35 +0000)]
Call standard_sub_advanced() after lp_logon_XX() calls.
Jeremy.
(This used to be commit d5be2334d4fb007e39565b771cbe68e338a7fe68)

20 years agoproto.h was out of date.
Tim Potter [Sun, 29 Oct 2000 23:52:21 +0000 (23:52 +0000)]
proto.h was out of date.
(This used to be commit 63e4f629163babc1dcba8a419ae432057e46f6f8)

20 years agoPatches from John Reilly @ HP for print job time bugs.
Jeremy Allison [Sun, 29 Oct 2000 17:27:41 +0000 (17:27 +0000)]
Patches from John Reilly @ HP for print job time bugs.
Jeremy.
(This used to be commit 0eb7f2d514317882684e9c0c51d46b1ac1eb2568)

20 years agoAnother patch to fix cli_reestablish_connection from Kenichi Okuyama@Tokyo Research...
Jeremy Allison [Sat, 28 Oct 2000 20:54:45 +0000 (20:54 +0000)]
Another patch to fix cli_reestablish_connection from Kenichi Okuyama@Tokyo Research Lab. IBM-Japan. Co. Jp.
Jeremy.
(This used to be commit 06f5da5d4bf044969364afe0298347811fb4ae91)

20 years agoDavid Lee's utmp patch (finally). Thanks David !
Jeremy Allison [Sat, 28 Oct 2000 19:38:39 +0000 (19:38 +0000)]
David Lee's utmp patch (finally). Thanks David !
Jeremy.
(This used to be commit b809a2d0c81c54e917ccc0c99b3e70ea8d7ceab1)

20 years agoFixed silly bug in dup2 code found by Kenichi Okuyama@Tokyo Research Lab. IBM-Japan...
Jeremy Allison [Sat, 28 Oct 2000 19:30:21 +0000 (19:30 +0000)]
Fixed silly bug in dup2 code found by Kenichi Okuyama@Tokyo Research Lab. IBM-Japan. Co. Jp.
Jeremy.
(This used to be commit 9c2272e056aef741c4b86f9a247c3534944d9eff)

20 years agoRolled back find NetBIOS name of PDC/BDC code as a temp fix. This
Jeremy Allison [Fri, 27 Oct 2000 03:02:22 +0000 (03:02 +0000)]
Rolled back find NetBIOS name of PDC/BDC code as a temp fix. This
code works :-).
Jeremy.
(This used to be commit 4f66eda11e0dc15ff04893da7b7d6e578a30c4dc)

20 years agoAdded John Reillys patch for error code returns from clean_up_printer_driver_strunct()
Jeremy Allison [Thu, 26 Oct 2000 22:09:22 +0000 (22:09 +0000)]
Added John Reillys patch for error code returns from clean_up_printer_driver_strunct()
calls.
Jeremy.
(This used to be commit f81a2a03bf435e65e7484ab021f86a8a4f62b656)

20 years agoSorry JF - no billable hours :-). I fixed the "stream of events" problem
Jeremy Allison [Thu, 26 Oct 2000 21:43:13 +0000 (21:43 +0000)]
Sorry JF - no billable hours :-). I fixed the "stream of events" problem
with PCL drivers. The problem was we were updating the changeid on every
SETPRINTERDATA/DELETEPRINTERDATA call. We should not do this, we should
just update the 'setprinter' called count. We update the changeid on calls
to SETPRINTER/ADDPRINTER/ADDPRINTEREX etc. Also fixed the correct returning
of the create time on printers.
Jeremy.
(This used to be commit 521f09829fd329f87b3d19e8871e2b989c98a58e)

20 years agoTDB password backend support written by Simo Sorce <simo.sorce@polimi.it>
Gerald Carter [Thu, 26 Oct 2000 03:31:41 +0000 (03:31 +0000)]
TDB password backend support written by Simo Sorce <simo.sorce@polimi.it>
Marked as an experimental compile time option (defaults to off) for now.

jerry
(This used to be commit 0435af4417b876c2ea1dd4591ae7647784c28e30)

20 years agoEven when looking up a users groups via winbindd even if the lookup for
Jeremy Allison [Wed, 25 Oct 2000 23:32:12 +0000 (23:32 +0000)]
Even when looking up a users groups via winbindd even if the lookup for
the list of groups a user is in succeeds via winbind, we must allow the
lookup of the group name -> gid we are checking if the user is a member
of to go via winbind or /etc/group - as it may be a group on the local
box we are checking against. This is a subtle one.....
Jeremy.
(This used to be commit 4ffda462b97e4f35c6d050c579dfe3e3b64e2c9f)

20 years agoWe already have a perfectly good next_token() function we should be using
Jeremy Allison [Wed, 25 Oct 2000 21:28:15 +0000 (21:28 +0000)]
We already have a perfectly good next_token() function we should be using
instead of strtok - this fixes a bug with NT users with spaces in their
names when using winbindd. Needs to be added to the other parse_lpXX functions
(currently only added to lprng parsing code).
Jeremy.
(This used to be commit c3e4ac9a2db32c40ce330de0eab4bc82ef4fd579)

20 years agoFix for uidtoname not returning DOMAIN\name but just name. This caused
Jeremy Allison [Wed, 25 Oct 2000 20:02:25 +0000 (20:02 +0000)]
Fix for uidtoname not returning DOMAIN\name but just name. This caused
printer_access_check to break in a domain environment.
Jeremy.
(This used to be commit 0fc1a461504f87c145f5f91189bd767989c488f2)

20 years agoJohn Reilly @ HP (who is a wonderful human being and *definately* needs
Jeremy Allison [Wed, 25 Oct 2000 17:56:38 +0000 (17:56 +0000)]
John Reilly @ HP (who is a wonderful human being and *definately* needs
CVS commit access :-) has written a simple routine that peeks inside the
MS PE printer driver file format and can tell if a driver is W2K or NT4.x.
So we can now correctly return the driver version number. Hurrah !
JF - this is the code you always wanted ..... :-) :-).
Jeremy.
(This used to be commit fd17374e6d888813f4ed7142480cf93b8a16bfef)

20 years agoadded some clarifications.
Gerald Carter [Wed, 25 Oct 2000 17:39:42 +0000 (17:39 +0000)]
added some clarifications.

jerry
(This used to be commit 4f76f17a2c10e7b4a5d3cd6fa11930a97878763e)

20 years agoRemoved erroneous +1's on length of unicode domain names for various
Tim Potter [Wed, 25 Oct 2000 04:29:35 +0000 (04:29 +0000)]
Removed erroneous +1's on length of unicode domain names for various
functions in the \\lsarpc pipe.
(This used to be commit 30bb3f2df97662c6547c7994ce50efe9abf37968)

20 years agoYeah - not setting getwd_cache to True as default, that'd do it for a 5x
Jeremy Allison [Tue, 24 Oct 2000 19:44:02 +0000 (19:44 +0000)]
Yeah - not setting getwd_cache to True as default, that'd do it for a 5x
performance hit..... :-) :-).
Jeremy.
PS. Yes this was my fault for everyone who wants to throw rotten fruit...
(This used to be commit 4f5bbc38ce492baa6e2b4d94758e9247756ae9ba)

20 years agoSmall change to process of joining a domain with samedit.
Tim Potter [Sun, 22 Oct 2000 22:38:33 +0000 (22:38 +0000)]
Small change to process of joining a domain with samedit.
(This used to be commit 7c3518c55eeff0a962c367438cb5d67044698825)

20 years agoFixes from David Lee for utmp handling.
Jeremy Allison [Sat, 21 Oct 2000 01:47:25 +0000 (01:47 +0000)]
Fixes from David Lee for utmp handling.
Jeremy.
(This used to be commit 70cecfefc8e876871b29ff8d5fa9226db0e98153)

20 years agoFix for vfs_fstat() crash with new stat code.
Jeremy Allison [Fri, 20 Oct 2000 23:59:47 +0000 (23:59 +0000)]
Fix for vfs_fstat() crash with new stat code.
Jeremy.
(This used to be commit 979aa01e011d433328af0ead7644f47d0cfadf13)

20 years agoMerge from appliance-head
Tim Potter [Fri, 20 Oct 2000 03:23:36 +0000 (03:23 +0000)]
Merge from appliance-head
(This used to be commit 6d39df7cf84d391bb4dd55d9a26f9f5a6368f46f)

20 years agoFixed missing bracket on debug statement.
Tim Potter [Thu, 19 Oct 2000 21:49:48 +0000 (21:49 +0000)]
Fixed missing bracket on debug statement.
(This used to be commit 9328bc7b8a7d43ef0da47413f314f9943ea98847)

20 years agoOk - this is a big patch - and it may break smbd a bit (although
Jeremy Allison [Thu, 19 Oct 2000 02:58:24 +0000 (02:58 +0000)]
Ok - this is a big patch - and it may break smbd a bit (although
I hope not). If you encounter strange file-serving behavior after this
patch then back it out. I analysed our stat() usage and realised we
were doing approx. 3 stat calls per open, and 2 per getattr/setattr.
This patch should fix all that. It causes the stat struct returned
from unix_convert() (which now *must* be passed a valid SMB_STRUCT_STAT
pointer) to be passed through into the open code. This should prevent
the multiple stats that were being done so as not to violate layer
encapsulation in the API's.

Herb - if you could run a NetBench test with this code and do a
padc/par syscall test and also run with the current 2.2.0 code
and test the padc/par syscalls I'd appreciate it - you should
find the number of stat calls reduced - not sure by how much.

The patch depends on unix_convert() actually finding the file
and returning a stat struct, or returning a zero'd out stat
struct if the file didn't exist. I believe we can guarentee this
to be the case - I just wasn't confident enough to make this
an assertion before.

Ok ok - I did write this whilst at the Miami conference.....
sometimes you get a little free time at these things :-).

Jeremy.
(This used to be commit 66a5c05ec46b641224fbe01b30bd7e83571a2a1b)

20 years agoRemoved null user checks to enable lanman print queue pausing and print job
Tim Potter [Wed, 18 Oct 2000 06:31:14 +0000 (06:31 +0000)]
Removed null user checks to enable lanman print queue pausing and print job
deleting.
(This used to be commit e40a0e2f52326199264d622c4f11877f20e4ebce)

20 years agoRenamed WPrintQueuePurge to WPrintQueueCtrl as this function can purge, pause
Tim Potter [Wed, 18 Oct 2000 06:22:20 +0000 (06:22 +0000)]
Renamed WPrintQueuePurge to WPrintQueueCtrl as this function can purge, pause
or resume a print queue.
(This used to be commit 9998518a69c67c1540266549c69fca977a89acde)

20 years agoBug report that on some systems extended characters are being returned as
Christopher R. Hertel [Wed, 18 Oct 2000 01:36:26 +0000 (01:36 +0000)]
Bug report that on some systems extended characters are being returned as
negative values from the mygetc() function.  I've modified the return
line so that it should return values in the 0..255 range for legitimate
characters.

This change should probably be copied into SAMBA_2_2 but I haven't checked
that tree out yet.

Chris -)-----
(This used to be commit e2ce5ce0fdaca0e38d953baa2da4c3542b0503ee)

20 years agoMerge of rpc parse buffer underflow debug code.
Tim Potter [Wed, 18 Oct 2000 01:15:05 +0000 (01:15 +0000)]
Merge of rpc parse buffer underflow debug code.
(This used to be commit c8d88713d9f7a646eb3b8e76bdd0250a3b89b722)

20 years agoFixes for io_q_setprinter rpc parsing.
Tim Potter [Wed, 18 Oct 2000 00:55:02 +0000 (00:55 +0000)]
Fixes for io_q_setprinter rpc parsing.
(This used to be commit 1b86b9139e87cc4c4a6675ceeda307b91eaa1482)

20 years agoAdded documentation for winbind enum users and winbind enum groups
Tim Potter [Tue, 17 Oct 2000 02:28:24 +0000 (02:28 +0000)]
Added documentation for winbind enum users and winbind enum groups
configuration parameters.
(This used to be commit c76dfab559003c9194f519cb89869d191cc0d6c0)

20 years agoget rid of $Revision string - sync with 2.2 branch
Herb Lewis [Mon, 16 Oct 2000 23:48:37 +0000 (23:48 +0000)]
get rid of $Revision string - sync with 2.2 branch
(This used to be commit 192b088a4649c2b6b27bd30ae47d1228f9c86092)

20 years agoFixes to get ms-dfs code to compile with the new changes.
Jeremy Allison [Fri, 13 Oct 2000 21:53:51 +0000 (21:53 +0000)]
Fixes to get ms-dfs code to compile with the new changes.
Jeremy
(This used to be commit d712b5b071eff89eca547678cd1652263708abfb)

20 years agoAdded David O'Neills fix to HEAD (hmmm. how did this compile... :-).
Jeremy Allison [Fri, 13 Oct 2000 17:36:22 +0000 (17:36 +0000)]
Added David O'Neills fix to HEAD (hmmm. how did this compile... :-).
Jeremy.
(This used to be commit e222057140edb3f14d76e54bd6e744919f50b4df)

20 years agolast part of W2K support.
Jean-François Micouleau [Fri, 13 Oct 2000 14:02:01 +0000 (14:02 +0000)]
last part of W2K support.

the trust domain list reply on netlogon pipe was wrong, interim hack until
we have full trust relationships.

changed some unistr2 to parse the ending NULL char.

added a prs_align_needed() function. much like a prs_align but with a
condition. needed for the unistr2 parsing.

J.F.
(This used to be commit d8bf81553c17d9ee3419d8150b96119ebb0b8fa9)

20 years agoFixed merging mess.
Tim Potter [Fri, 13 Oct 2000 05:19:57 +0000 (05:19 +0000)]
Fixed merging mess.
(This used to be commit 7b8c03de1fd1461d4c65c0d7100f9519e08d1b24)

20 years agoFix to allow smbd to call winbindd if it is running for all group enumeration,
Jeremy Allison [Fri, 13 Oct 2000 01:59:14 +0000 (01:59 +0000)]
Fix to allow smbd to call winbindd if it is running for all group enumeration,
falling back to the UNIX calls on error. This should fix all problems with
smbd enumerating all users in all groups in all trusted domains via winbindd.
Also changed GETDC to query 1C name rather than 1b name as only the PDC
registers 1b.
Jeremy.
(This used to be commit 5b0038a2afd8abbd6fd4a58f5477a40d1926d498)

20 years agoFix to allow smbd to call winbindd if it is running for all group enumeration,
Jeremy Allison [Fri, 13 Oct 2000 01:16:35 +0000 (01:16 +0000)]
Fix to allow smbd to call winbindd if it is running for all group enumeration,
falling back to the UNIX calls on error. This should fix all problems with
smbd enumerating all users in all groups in all trusted domains via winbindd.
Jeremy.
(This used to be commit 54a1ae815b3ebcc7ab98bf0a2a39719ae3b2d5ea)

20 years agoIgnore SIGUSR2. Terminate nmbd if we have no interfaces.
Jeremy Allison [Thu, 12 Oct 2000 21:19:49 +0000 (21:19 +0000)]
Ignore SIGUSR2. Terminate nmbd if we have no interfaces.
Jeremy.
(This used to be commit 580e2e044cfd1d011d9f28f0f49ef60ca6ba8d32)

20 years agoallow "master" smbd to call message_init so it is not killed by messages
Herb Lewis [Thu, 12 Oct 2000 19:42:18 +0000 (19:42 +0000)]
allow "master" smbd to call message_init so it is not killed by messages
sent to it's PID

Jeremy or Andrew please check this out for other possible side effects.
(This used to be commit f365950e7dafa269ace647ae1cab6201f8ecf67d)

20 years agoupdate man page for program changes
Herb Lewis [Thu, 12 Oct 2000 19:32:09 +0000 (19:32 +0000)]
update man page for program changes
(This used to be commit 1ddfec32562f755f3f4ca4dde54af6a5a2e99978)

20 years agolib/messages.c add debug print for receipt of PING and
Herb Lewis [Thu, 12 Oct 2000 17:58:40 +0000 (17:58 +0000)]
lib/messages.c          add debug print for receipt of PING and
                        REQ_DEBUGLEVEL messages
utils/smbcontrol.c      allow "q" to exit interactive mode. Exit on error
                        from message_init.
(This used to be commit cda8c0439113dcce02a681b0aaddf69326c0ec9a)

20 years agouse macros for incrementing profile counters
Herb Lewis [Thu, 12 Oct 2000 15:41:16 +0000 (15:41 +0000)]
use macros for incrementing profile counters
(This used to be commit cae5eeb16e81b6aa95c68223268513c32aed7056)

20 years agoprint source PID in PONG and debuglevel message. Allow request debuglevel
Herb Lewis [Thu, 12 Oct 2000 00:29:01 +0000 (00:29 +0000)]
print source PID in PONG and debuglevel message. Allow request debuglevel
message to go to any dest. Put timeout for commands that expect a reply.

sync with 2.2 branch
(This used to be commit 45632bb813da06d0139aa32b9ab99d472dcfaf25)

20 years agoTurns out we do need the pwnam check as on many systems the users
Jeremy Allison [Wed, 11 Oct 2000 22:38:38 +0000 (22:38 +0000)]
Turns out we do need the pwnam check as on many systems the users
primary group is not listed in the groups file...
Jeremy.
(This used to be commit b1cb7bec51963ac2ddc62dd1abbf8f8fa4351f9b)

20 years agoFixed %d printf with unsigned long arg.
Jeremy Allison [Wed, 11 Oct 2000 17:26:14 +0000 (17:26 +0000)]
Fixed %d printf with unsigned long arg.
Jeremy.
(This used to be commit 448ff58fd5a88b1fdadfb9a8e0bc5f38b707a4d3)

20 years agoUse sys_setgroups - systems with broken getgroups need this.
Jeremy Allison [Wed, 11 Oct 2000 17:20:18 +0000 (17:20 +0000)]
Use sys_setgroups - systems with broken getgroups need this.
Jeremy.
(This used to be commit c7c90c83372df53eac0f3779dffedd4b28c8c757)

20 years agoSimple cleanup, but I also changed the value of the dlevel parameter passed
Christopher R. Hertel [Wed, 11 Oct 2000 16:24:20 +0000 (16:24 +0000)]
Simple cleanup, but I also changed the value of the dlevel parameter passed
to open_socket_in() from within the open_sockets() function.  This has some
effect on the way port numbers are assigned.  Basically, if we use the -r
switch we are saying 'use port 137'.  If we can't do that, there should
be an error message and a failure.  If we don't use -r then we simply select
the first available port.  The way it was working, if we selected -r and
port 137 was in use, wierd things would happen as open_socket_in() tried to
find another port.
(This used to be commit f09cb41ad86b233253758de7ef2781589ac07b86)

20 years agoConverted to call lib/wins_srv.c:wins_srv_ip() instead of lp_wins_server()
Christopher R. Hertel [Wed, 11 Oct 2000 15:54:17 +0000 (15:54 +0000)]
Converted to call lib/wins_srv.c:wins_srv_ip() instead of lp_wins_server()
when looking up the WINS server address.

Please *don't* use lp_wins_server() any more!

The wins_srv_ip() function has the following features:

- If the WINS server was entered as a DNS name then the translation to an
  IP address will already have taken place.  We used to do this every time
  a call to the WINS server was made.  Ick.

- The return value of wins_srv_ip() is a struct in_addr.  Ready to go.

- When WINS failover is fully implemented, you'll be able to enter a colon-
  separated list of WINS servers via the WINS SERVER parameter.  Using
  lp_wins_server() directly will fail if this syntax is used.

Chris -)-----
(This used to be commit 56be7c2a49a8a918318a70843fff4e89ec10d0d3)

20 years agoTry this again on the right machine. Adding files for PCP samba pmda
Herb Lewis [Wed, 11 Oct 2000 14:07:32 +0000 (14:07 +0000)]
Try this again on the right machine. Adding files for PCP samba pmda
(This used to be commit 8ad653f9ebc60c6807c1552425fa83218f6a15d4)

20 years agoRenamed WINBINDD_INITGROUPS constant to WINBINDD_GETGROUPS.
Tim Potter [Wed, 11 Oct 2000 05:45:06 +0000 (05:45 +0000)]
Renamed WINBINDD_INITGROUPS constant to WINBINDD_GETGROUPS.
(This used to be commit 5f3cf2eb78bfa6fb00890d449d38e9f13964712c)

20 years agosync with 2.2. tree
Herb Lewis [Wed, 11 Oct 2000 05:38:37 +0000 (05:38 +0000)]
sync with 2.2. tree
(This used to be commit 8586624815f70a4448c001f14e74eabc96dd4d04)

20 years agochanges to sync with 2.2. tree
Herb Lewis [Wed, 11 Oct 2000 05:31:39 +0000 (05:31 +0000)]
changes to sync with 2.2. tree

.cvsignore              remove config.h - not in this directory
include/profile.h       profile changes
lib/messages.c          added message to return debug level
libsmb/clierror.c       cast to get rid of compiler warning
libsmb/smbencrypt.c     cast to get rid of compiler warning
profile/profile.c       add flush profile stats changes for profile struct
rpc_parse/parse_samr.c  fix for compiler warning
rpc_server/srv_samr.c   cast to get rid of compiler warning
smbd/ipc.c              profile stats
message.c               profile stats
smbd/negprot.c          profile stats
smbd/nttrans.c          profile stats
smbd/trans2.c           profile stats
utils/smbcontrol.c      new flush stats command
(This used to be commit bbb24daa25dca4e4b6b1f8942cd84ee3aa1bed8e)

20 years agoModified initgroups to provide a get groups a user is a member of
Tim Potter [Wed, 11 Oct 2000 05:25:32 +0000 (05:25 +0000)]
Modified initgroups to provide a get groups a user is a member of
functionality.  This is much faster than inverting the group database.

Added client side command for this to wbinfo.
(This used to be commit e87b2d3d1fb84311d83d21a76900f994e4ff71dd)

20 years agoDon't initialise groups twice.
Tim Potter [Wed, 11 Oct 2000 04:54:37 +0000 (04:54 +0000)]
Don't initialise groups twice.
(This used to be commit 15d7f16bdc2ff4f2ae82871eb9f318ba45cf4d1c)

20 years agoRemove duplicate group initialisation function.
Tim Potter [Wed, 11 Oct 2000 04:54:01 +0000 (04:54 +0000)]
Remove duplicate group initialisation function.

Don't initialise groups twice.
(This used to be commit 5375261152b28a65de18e817c75cab79c2f556b8)

20 years agoFix to avoid calling getgrgid for no reason.
Jeremy Allison [Wed, 11 Oct 2000 03:46:14 +0000 (03:46 +0000)]
Fix to avoid calling getgrgid for no reason.
Jeremy.
(This used to be commit b057a7349b2d6420f96a6ebc31822da66b39fe6c)

20 years agoFix for growing printing.tdb by adding check on job creation.
Jeremy Allison [Wed, 11 Oct 2000 02:26:27 +0000 (02:26 +0000)]
Fix for growing printing.tdb by adding check on job creation.
This also updates the printing.tdb db version to 2.
Jeremy.
(This used to be commit 13395514c632341e7be36eb9589011bb0949b075)

20 years agoRemove lpq as root fix - do this in print_job_start instead
Jeremy Allison [Wed, 11 Oct 2000 02:04:46 +0000 (02:04 +0000)]
Remove lpq as root fix - do this in print_job_start instead
as part of print queue length processing.
Jeremy.
(This used to be commit e85a0fadd8dcf608822819f00f15569713518806)

20 years agoFixes to periodically scan printing.tdb in idle time and occasionally
Jeremy Allison [Tue, 10 Oct 2000 21:52:31 +0000 (21:52 +0000)]
Fixes to periodically scan printing.tdb in idle time and occasionally
on exit. Needed to fix printing.tdb from groving to 300Mb+ if being
driven by smbclient clients that never ask for status... (effective
DOS attack :-).
Jeremy.
(This used to be commit 6581066b93a674fadf6f9b92441428d2cc8b4a02)

20 years agoFix found by Andrew to stop local/remote printers being
Jeremy Allison [Tue, 10 Oct 2000 19:09:48 +0000 (19:09 +0000)]
Fix found by Andrew to stop local/remote printers being
confused. check_printer_ok was causing SETPRINTER calls to fail.
Jeremy.
(This used to be commit b41cc5fea7409d07529adad44f0cbba5c764591c)

20 years agoFixed Realloc memory fragmentation problems.
Jeremy Allison [Tue, 10 Oct 2000 18:40:03 +0000 (18:40 +0000)]
Fixed Realloc memory fragmentation problems.
Jeremy.
(This used to be commit 5518f59976ecac796a85db959cb9e8cc6c4d3504)

20 years agoFixed nasty size wrong bug spotted by the eagle eyes of
Jeremy Allison [Tue, 10 Oct 2000 18:34:44 +0000 (18:34 +0000)]
Fixed nasty size wrong bug spotted by the eagle eyes of
JF :-).
Jeremy.
(This used to be commit 443293a06530d0a5421b39d9a6a224d6ae316bd3)

20 years agoAdded debug so we can see how winbindd converts SIDS.
Jeremy Allison [Tue, 10 Oct 2000 18:22:50 +0000 (18:22 +0000)]
Added debug so we can see how winbindd converts SIDS.
Jeremy.
(This used to be commit 6696bf203c90dc20c00b47737f5ea1d9b8e23d75)

20 years agoJust in case anyone thinks that Win ME is not freally just a
Gerald Carter [Tue, 10 Oct 2000 13:30:02 +0000 (13:30 +0000)]
Just in case anyone thinks that Win ME is not freally just a
facelift for Win98/95

jerry
(This used to be commit fca30085cc8c84697927e7769251205e10fd31ed)

20 years agoa netlogon enum trust query doesn't have a function_code at end.
Jean-François Micouleau [Tue, 10 Oct 2000 13:08:55 +0000 (13:08 +0000)]
a netlogon enum trust query doesn't have a function_code at end.
a sam_user_info_24 doesn't have a uint16 at end
samr_create_user also creates the unix account now
samr_set_userinfo changes the password.

        J.F.
(This used to be commit 94f4024481fcd0cb6647af1bd4364033be020641)

20 years agogot rid of tdb_writelock() and instead lock a chain. tdb_writelock()
Andrew Tridgell [Tue, 10 Oct 2000 06:45:09 +0000 (06:45 +0000)]
got rid of tdb_writelock() and instead lock a chain. tdb_writelock()
is conceptually flawed
(This used to be commit 6e4a3585521b7e5928298bd0f1418ff9fbcacfb4)

20 years agoadded tdb_lock_bystring() and tdb_unlock_bystring()
Andrew Tridgell [Tue, 10 Oct 2000 06:43:26 +0000 (06:43 +0000)]
added tdb_lock_bystring() and tdb_unlock_bystring()
(This used to be commit ca443210c84575d39e60c38a7a12d037386d0e38)

20 years agodon't use gets() !
Andrew Tridgell [Tue, 10 Oct 2000 05:05:35 +0000 (05:05 +0000)]
don't use gets() !
(This used to be commit e4ea0a5975d3539803c78cac2229550a6e89c4b4)

20 years agoFixes to allow wins.c to compile to allow building of libnss_wins.so.
John Terpstra [Mon, 9 Oct 2000 21:44:00 +0000 (21:44 +0000)]
Fixes to allow wins.c to compile to allow building of libnss_wins.so.
(This used to be commit 3fb2e94c4430c570639c0e4d1caeed3a19bbd09b)

20 years agoI introduced a bug in my last commits. Hopefully nobody noticed :-)
Jean-François Micouleau [Mon, 9 Oct 2000 14:41:19 +0000 (14:41 +0000)]
I introduced a bug in my last commits. Hopefully nobody noticed :-)

J.F.
(This used to be commit 044246fe7e40d83673120dc14b5d6572e6c23142)

20 years agoMissing conn parameter missed in vfs rewrite.
Jeremy Allison [Mon, 9 Oct 2000 00:06:30 +0000 (00:06 +0000)]
Missing conn parameter missed in vfs rewrite.
Jeremy.
(This used to be commit 4eecc63be5bd11590972ee4f446b7a80d46a713b)

20 years agosys_popen got damaged when converted from FILE * to int fd I think.
Jeremy Allison [Sun, 8 Oct 2000 21:21:27 +0000 (21:21 +0000)]
sys_popen got damaged when converted from FILE * to int fd I think.
Patrick Powell kindly pointed out the bug.
Jeremy.
(This used to be commit 1f156b2420b7ecf1266e650efc3cee55362e29dd)

20 years agomore cleanup of samr
Jean-François Micouleau [Sat, 7 Oct 2000 17:32:40 +0000 (17:32 +0000)]
more cleanup of samr

J.F.
(This used to be commit c49cc884458d6efa0f7f4b1e40f7d98d84836e77)