jra/samba/.git
22 years agosync with SAMBA_2_2
Gerald Carter [Fri, 1 Jun 2001 11:56:08 +0000 (11:56 +0000)]
sync with SAMBA_2_2
(This used to be commit 81b3af71d5c9ccd20d7e7303becc35bff30c39b4)

22 years agoAdded a --with/without winbind option to configure. The default is to
Tim Potter [Fri, 1 Jun 2001 11:53:48 +0000 (11:53 +0000)]
Added a --with/without winbind option to configure.  The default is to
compile winbind on supported systems but this may be disabled using
--without-winbind.  Using --with-winbind on unsupported systems has
no effect.
(This used to be commit de46428d054285f568727589537cd8520ee0f687)

22 years agosyncing up with SAMBA_2_2
Gerald Carter [Fri, 1 Jun 2001 11:50:38 +0000 (11:50 +0000)]
syncing up with SAMBA_2_2
(This used to be commit 1bc58c21b15fcdb0a504d051f60e20c4e24441e6)

22 years agoAdded *.po to .cvsignore files.
Tim Potter [Fri, 1 Jun 2001 11:26:20 +0000 (11:26 +0000)]
Added *.po to .cvsignore files.
(This used to be commit 870e9e4e89dcf910c595cabb28f69ad070942072)

22 years agoAdded a comment.
Tim Potter [Fri, 1 Jun 2001 11:18:39 +0000 (11:18 +0000)]
Added a comment.
(This used to be commit b2e5dc606b5ff031e01799ee6e245857adc7e968)

22 years agomerge from 2.2
Gerald Carter [Thu, 31 May 2001 18:35:14 +0000 (18:35 +0000)]
merge from 2.2
(This used to be commit c827787d679b3bbf9f57ff6d5aaab150456b1662)

22 years agomerge from 2.2
Gerald Carter [Thu, 31 May 2001 18:03:45 +0000 (18:03 +0000)]
merge from 2.2
(This used to be commit e30a3be954c0eacb3ccffdaa1165a9f0e8b93a23)

22 years agomerge from 2.2
Gerald Carter [Thu, 31 May 2001 17:28:40 +0000 (17:28 +0000)]
merge from 2.2
(This used to be commit 7e23ed48908cf396610d26efda9f54d5f5f0e83c)

22 years agoRename bzero -> memset.
Jeremy Allison [Thu, 31 May 2001 14:41:53 +0000 (14:41 +0000)]
Rename bzero -> memset.
Check returns from *all* mallocs (including strdups).
Jeremy.
(This used to be commit 6594a59263c9ec8f62d23f3aa1b56051eefc2f88)

22 years agoFix debug statement so it doesn't use lp_workgroup() either.
Jeremy Allison [Thu, 31 May 2001 14:13:53 +0000 (14:13 +0000)]
Fix debug statement so it doesn't use lp_workgroup() either.
Jeremy.
(This used to be commit 18e652a5e0d30d033be70e512cd94bf867507f64)

22 years agofixed asprintf declaration
Andrew Tridgell [Wed, 30 May 2001 13:53:20 +0000 (13:53 +0000)]
fixed asprintf declaration
(This used to be commit fbf03c89e6b1980f4f75a657f9760edb7445d8cb)

22 years ago- added AC_HAVE_DECL() macro to aclocal.m4, so we can easily add
Andrew Tridgell [Wed, 30 May 2001 12:28:13 +0000 (12:28 +0000)]
- added AC_HAVE_DECL() macro to aclocal.m4, so we can easily add
  tests for a fn or variable being defined in headers
- used this to add prototypes for asprintf and vasprintf on systems
  that don't have them
(This used to be commit ab2465239414853a14529f88a25f13c392aa2d3f)

22 years agomerged fix for tdb_unpack from 2_2
Andrew Tridgell [Wed, 30 May 2001 06:23:05 +0000 (06:23 +0000)]
merged fix for tdb_unpack from 2_2
(This used to be commit 200b682e9bbe79897343422f7c870382ed6de40a)

22 years agoadded list function to tdbtool
Andrew Tridgell [Wed, 30 May 2001 06:22:10 +0000 (06:22 +0000)]
added list function to tdbtool
(This used to be commit c20838c6358f02dea7967e28a5f23db70ff464f9)

22 years agonew proto.h
Andrew Tridgell [Wed, 30 May 2001 06:16:24 +0000 (06:16 +0000)]
new proto.h
(This used to be commit 823ba34342046a4b736640dff1471fde08e1087f)

22 years agomake swat recover from previously bad umask from xinetd
Andrew Tridgell [Wed, 30 May 2001 06:12:21 +0000 (06:12 +0000)]
make swat recover from previously bad umask from xinetd
(This used to be commit 045d7e1b167efc75bb3d411b3fcc35bba58c4ef7)

22 years agouse the new tdb_open_log() fn on connections database
Andrew Tridgell [Wed, 30 May 2001 06:08:23 +0000 (06:08 +0000)]
use the new tdb_open_log() fn on connections database
(This used to be commit 68c0dcec3d3c17aae76ce093a601c9f452af5a0c)

22 years ago- fixed an off-by-1 bug in the delayed deletion code that I believe
Andrew Tridgell [Wed, 30 May 2001 05:40:52 +0000 (05:40 +0000)]
- fixed an off-by-1 bug in the delayed deletion code that I believe
  was the initial cause of the connections database becoming corrupt.
  Note that this bug only happens when doing deletions within a
  traversal, which is why it has only showed up now
- added delete within traversal testing to tdbtorture
- added a lot more logging to tdb
(This used to be commit 6e1277df9d964c615a3ad876d3b89ff8132081c1)

22 years agoadded a tdb_open_log() function that opens a tdb and enables logging
Andrew Tridgell [Wed, 30 May 2001 03:42:44 +0000 (03:42 +0000)]
added a tdb_open_log() function that opens a tdb and enables logging
of messages from the tdb code into the Samba DEBUG() system
just call tdb_open_log() instead of tdb_open() to enable this on
any tdb
(This used to be commit 3ab770484c6775df2c1a6f69427ebe656702c96c)

22 years agoAdd border=0 in included swat images to get rid of the link border stuff.
Tim Potter [Wed, 30 May 2001 03:02:47 +0000 (03:02 +0000)]
Add border=0 in included swat images to get rid of the link border stuff.
Much prettier looking.
(This used to be commit 16031364a8ce20cf425c758d3fd5035a776e9d9b)

22 years agomore portable TDB_LOG macro
Andrew Tridgell [Tue, 29 May 2001 15:01:23 +0000 (15:01 +0000)]
more portable TDB_LOG macro
(This used to be commit ba106b9b07b23c3dc1b40c8feb10cff173faa07a)

22 years agoFixed compiler warning.
Tim Potter [Tue, 29 May 2001 07:34:51 +0000 (07:34 +0000)]
Fixed compiler warning.
(This used to be commit adb61490af7bbd5f028892692bfe831af8c79f23)

22 years ago4 new functions to retrieve single linked list of group and passwd entries
Simo Sorce [Tue, 29 May 2001 07:34:01 +0000 (07:34 +0000)]
4 new functions to retrieve single linked list of group and passwd entries
+ a fix to an infinite loop in srv_samr_nt.c caused by misuse of
setgrent/getgrent/endgrent solved by these new functions
(This used to be commit 97dbb54a13e2285f1905ee1ec9aafeebdaee8917)

22 years agoThe manual page for swat referred to nmblookup in the synopsis.
Tim Potter [Tue, 29 May 2001 05:39:50 +0000 (05:39 +0000)]
The manual page for swat referred to nmblookup in the synopsis.
(This used to be commit ab05c8cf1b4b8f56974f358781011c922380fe45)

22 years agomake sure the umask is set in swat
Andrew Tridgell [Mon, 28 May 2001 23:56:56 +0000 (23:56 +0000)]
make sure the umask is set in swat
(This used to be commit 07c74fe83f77c73ff937a31b7df2f211596e9861)

22 years agotry to make the tailer code much more robust. When a record
Andrew Tridgell [Mon, 28 May 2001 13:29:06 +0000 (13:29 +0000)]
try to make the tailer code much more robust. When a record
can't be merged don't fail the operation, instead just add
it to the free list anyway

added logging to tdb
(This used to be commit dda086fdf92fded016afc785f7965a375faae5aa)

22 years agoi18n fix for domain_client_validate()
Tim Potter [Fri, 25 May 2001 07:36:58 +0000 (07:36 +0000)]
i18n fix for domain_client_validate()
(This used to be commit d6dcca7cc9bc5a1948c1b6126ca4f6cb9ccacc52)

22 years agoreturn an error code on password attack, rather than exiting.
Andrew Tridgell [Fri, 25 May 2001 02:45:07 +0000 (02:45 +0000)]
return an error code on password attack, rather than exiting.
otherwise security scanners may think we are vulnerable!
(This used to be commit ee8cb88682421464016d56209eecea764bddc032)

22 years agoAdded tdb_change_int_atomic() to allow atomic updates of a tdb int value.
Jeremy Allison [Fri, 25 May 2001 00:48:28 +0000 (00:48 +0000)]
Added tdb_change_int_atomic() to allow atomic updates of a tdb int value.
Jeremy.
(This used to be commit cf5015f15935605cf69078bc15251db61ddc48c7)

22 years agoFixup the large_writex problem (a large_writex can send a full 64k of data,
Jeremy Allison [Thu, 24 May 2001 19:28:22 +0000 (19:28 +0000)]
Fixup the large_writex problem (a large_writex can send a full 64k of data,
we already have space for this we just need to understand the length correctly).
Jeremy.
(This used to be commit 19145bae720bbcc32dcab380c62a33d1f0e3eef0)

22 years agoFix for random stream generator.
Jeremy Allison [Thu, 24 May 2001 18:24:54 +0000 (18:24 +0000)]
Fix for random stream generator.
Jeremy.
(This used to be commit b2867ddfa26ffbc94d022d88b849ef58fd1cc788)

22 years agoAdded structures for LOGON_CTRL rpc.
Tim Potter [Thu, 24 May 2001 08:21:53 +0000 (08:21 +0000)]
Added structures for LOGON_CTRL rpc.

Make proto.
(This used to be commit 0650f87000dcf5572f3a8d61ab93760d94eee770)

22 years agoAdded srvinfo and partial logonctrl and logonctrl2 commands.
Tim Potter [Thu, 24 May 2001 08:10:50 +0000 (08:10 +0000)]
Added srvinfo and partial logonctrl and logonctrl2 commands.
(This used to be commit c93718daa1375269e4e0ef52016271b7a607e292)

22 years agoFixed compiler warning.
Tim Potter [Thu, 24 May 2001 08:07:13 +0000 (08:07 +0000)]
Fixed compiler warning.
(This used to be commit 6e0805c191d7434366e4a8d752b6e34656232371)

22 years agoAdded server side reponse to net_logon_ctrl rpc. We can now respond
Tim Potter [Thu, 24 May 2001 08:05:12 +0000 (08:05 +0000)]
Added server side reponse to net_logon_ctrl rpc.  We can now respond
to NLTEST /BDC_QUERY:DOMAIN when acting as a BDC.

Reverse engineered a couple of status constants.
(This used to be commit 0678c302825afef521ae2b80958a1d7c5aa76d23)

22 years agoAdded srv_get_info client command.
Tim Potter [Thu, 24 May 2001 08:02:27 +0000 (08:02 +0000)]
Added srv_get_info client command.
(This used to be commit ee599c9481c26d8407f03a9897eb5f1abd1e47f1)

22 years agoAdded logon control2 client call.
Tim Potter [Thu, 24 May 2001 08:01:55 +0000 (08:01 +0000)]
Added logon control2 client call.
(This used to be commit 8d5f2027095c3fb9240db238fb6d405aeefef1ef)

22 years agoAdded a init function for net_q_logon_ctrl2 so we can make this call
Tim Potter [Thu, 24 May 2001 07:58:49 +0000 (07:58 +0000)]
Added a init function for net_q_logon_ctrl2 so we can make this call
from rpcclient.

Added init and i/o functions for net_{q,r}_logon_ctrl functions so we
can call from rpcclient and respond to this call from smbd.
(This used to be commit 8ba30031a4fd900b9b87cf5d04c2f2bf6c436718)

22 years agoRemoved some level 0 debugs accidentally left in - oops.
Tim Potter [Thu, 24 May 2001 02:21:18 +0000 (02:21 +0000)]
Removed some level 0 debugs accidentally left in - oops.
(This used to be commit c4e7ce267f63c1b1b0942d8b0a434f6e44a5312f)

22 years agoReplaced next_command() with call to next_token().
Tim Potter [Thu, 24 May 2001 00:31:53 +0000 (00:31 +0000)]
Replaced next_command() with call to next_token().
(This used to be commit c9b4ed79c84dde3421c457cd0a33dae5d84fcae1)

22 years agoAdded stubs for SRVSVC and NETLOGON rpcclient commands.
Tim Potter [Thu, 24 May 2001 00:20:32 +0000 (00:20 +0000)]
Added stubs for SRVSVC and NETLOGON rpcclient commands.
(This used to be commit 3343c9f0d67d98687e5933e1a73c0ff487279160)

22 years agoAdded tdb_errstr() messages so we can see if these functions fail.
Jeremy Allison [Wed, 23 May 2001 21:33:43 +0000 (21:33 +0000)]
Added tdb_errstr() messages so we can see if these functions fail.
Jeremy.
(This used to be commit ec64ddac5fa4688b18484d6599b17b8c4bcd34c0)

22 years agoThis is *very* cool. I'm pretty convinced we can just set the
Jeremy Allison [Wed, 23 May 2001 18:47:52 +0000 (18:47 +0000)]
This is *very* cool. I'm pretty convinced we can just set the
CAP_LARGE_READX|CAP_LARGE_WRITEX bits on negprot and out W2K
performance goes through the roof......
And as we *always* offer 64 buffers we can do this with this
simple change.....
Jeremy.
(This used to be commit c328dda0fa081e79049d7a9ddac06e80cc8b331b)

22 years agoStupid typo. Should be if (!tdb).
Jeremy Allison [Wed, 23 May 2001 18:33:45 +0000 (18:33 +0000)]
Stupid typo. Should be if (!tdb).
Jeremy.
(This used to be commit d3496897f167a8deb1d0034797e8b29f2c51acef)

22 years agoTry to fix build by adding autoconf tests for pam headers.
Jeremy Allison [Tue, 22 May 2001 21:47:11 +0000 (21:47 +0000)]
Try to fix build by adding autoconf tests for pam headers.
Jeremy.
(This used to be commit d52bc4d219bd07e656986e7754ea6e238c626d77)

22 years agoDefensive brlock and locking database cleaning code.
Jeremy Allison [Tue, 22 May 2001 20:35:48 +0000 (20:35 +0000)]
Defensive brlock and locking database cleaning code.
Jeremy.
(This used to be commit d7aa42e4593b02ee6e487f7a4633bd7e7620ef2f)

22 years agoUse canonical mappings for file controls. Fixes W2KSP2 profile problems (I
Jeremy Allison [Fri, 18 May 2001 20:16:55 +0000 (20:16 +0000)]
Use canonical mappings for file controls. Fixes W2KSP2 profile problems (I
think....).
Jeremy.
(This used to be commit 946cf3a0d7685e28af847b958ac01739335ea6e4)

22 years agomake proto
Gerald Carter [Fri, 18 May 2001 04:12:19 +0000 (04:12 +0000)]
make proto
(This used to be commit 97a88ca86b1c39066ffcdad6e81d6422fad8341b)

22 years agomerge from 2.2 (deleteprinterdriver RPC)
Gerald Carter [Fri, 18 May 2001 04:11:17 +0000 (04:11 +0000)]
merge from 2.2 (deleteprinterdriver RPC)
(This used to be commit 515caaf7b448e55206433a9ca04fb5078f91cde2)

22 years agoFix the W2KSP2 joining a Samba domain problem.
Jeremy Allison [Fri, 18 May 2001 01:30:21 +0000 (01:30 +0000)]
Fix the W2KSP2 joining a Samba domain problem.
Jeremy.
(This used to be commit 6bbcab5e48f91a80d4ebcbd2bee38f2e0a8bff78)

22 years agomerge from 2.2 DeletePrinterDriver() server side stud coming
Gerald Carter [Thu, 17 May 2001 18:57:25 +0000 (18:57 +0000)]
merge from 2.2  DeletePrinterDriver() server side stud coming
in separate commit after I get it working in 2.2.
(This used to be commit 09506ac0e64b84d73e3b8fdd4942fa52dba6060f)

22 years agoadded utmp.o to NECESSARY_BECAUSE_SAMBA_DEPENDENCIES_ARE_SO_BROKEN_OBJ
Andrew Tridgell [Thu, 17 May 2001 13:51:07 +0000 (13:51 +0000)]
added utmp.o to NECESSARY_BECAUSE_SAMBA_DEPENDENCIES_ARE_SO_BROKEN_OBJ
(This used to be commit f2bb3c50f3481689521607f79ba2bfd696330380)

22 years ago- added ability for swat to run under CGI. This needs
Andrew Tridgell [Thu, 17 May 2001 11:45:58 +0000 (11:45 +0000)]
- added ability for swat to run under CGI. This needs
  to be setup very carefully for it not to be a security hole
- reran configure
(This used to be commit cf4e439a1e0f3fadbe08c474e5b201827866d7f5)

22 years agoran make proto
Andrew Tridgell [Thu, 17 May 2001 11:29:54 +0000 (11:29 +0000)]
ran make proto
(This used to be commit 2e605e1275b4cd59ba776101962218efaa87fe37)

22 years agoRan a make proto to fix the problems ...
Richard Sharpe [Thu, 17 May 2001 11:20:45 +0000 (11:20 +0000)]
Ran a make proto to fix the problems ...
(This used to be commit 7b275b458835a1e34c9014eb3eee6cdae240bd97)

22 years agoTest login using pam_winbind.so and group membership.
Tim Potter [Thu, 17 May 2001 07:02:08 +0000 (07:02 +0000)]
Test login using pam_winbind.so and group membership.
(This used to be commit 4c2b915ed12584037731d8ccd246ad54986a7564)

22 years agoFixes to get pam_auth() functionality working again.
Tim Potter [Thu, 17 May 2001 06:08:49 +0000 (06:08 +0000)]
Fixes to get pam_auth() functionality working again.
(This used to be commit 083b74c743f0026693fa0fbe665ed08a3ac706b8)

22 years agoFix a small warning about char * vs unsigned char * that gets some compilers
Richard Sharpe [Thu, 17 May 2001 04:09:08 +0000 (04:09 +0000)]
Fix a small warning about char * vs unsigned char * that gets some compilers
in a twitch.
(This used to be commit 672242a52eafde35cba4657bce248fef0df9e46b)

22 years agoBroke out change trust account password routines into separate file
Tim Potter [Thu, 17 May 2001 02:52:45 +0000 (02:52 +0000)]
Broke out change trust account password routines into separate file
since they're only used in one place anyway (timeout_processing() in
process.c)
(This used to be commit d1e5d5d62fcb5da30e3f2619721c5146db753f3c)

22 years agoOhh boy, I should be working on lots of other things, but I am pissed off, so
Richard Sharpe [Thu, 17 May 2001 02:52:42 +0000 (02:52 +0000)]
Ohh boy, I should be working on lots of other things, but I am pissed off, so
I needed to get down and dirty and do some coding etc ...

Change -fpic to -fPIC ... Many people suggest that this is better ...
(This used to be commit 26eda1f2b065482d0b547f3068c78ae442ba18d9)

22 years agoFurther recasts to sockaddr * rather than sockaddr_in *
Richard Sharpe [Thu, 17 May 2001 02:44:10 +0000 (02:44 +0000)]
Further recasts to sockaddr * rather than sockaddr_in *
(This used to be commit b0ba25e22d101acbe4079bc81759a4e0c8a7e6d8)

22 years agoAdding an examples directory for libsmbclient to the head branch along with
Richard Sharpe [Thu, 17 May 2001 02:29:00 +0000 (02:29 +0000)]
Adding an examples directory for libsmbclient to the head branch along with
a simple Makefile and a small README ...
(This used to be commit 950821d69cb6dcc723f8610584718c6217136d55)

22 years agogroupdb/mapping.c: Fix gcc compiler warning.
Jeremy Allison [Thu, 17 May 2001 00:24:34 +0000 (00:24 +0000)]
groupdb/mapping.c: Fix gcc compiler warning.
smbd/connection.c: Sync up with code in 2.2
Jeremy.
(This used to be commit 87025c223dd33f2e02060c2a5cd45502946c87c6)

22 years agoFix a stupid typo in Makefile.in that prevented the libsmbclient code
Richard Sharpe [Wed, 16 May 2001 15:33:07 +0000 (15:33 +0000)]
Fix a stupid typo in Makefile.in that prevented the libsmbclient code
from being compiled with -fpic ... Larger changes coming ... I want to move
to -fPIC etc.
(This used to be commit 122e2753d518fc599e06e1533378815eebb18d4f)

22 years agoAdded winbind programs to build for supported systems (i.e linux and
Tim Potter [Wed, 16 May 2001 02:32:34 +0000 (02:32 +0000)]
Added winbind programs to build for supported systems (i.e linux and
solaris) so the autobuilder can have a crack at it.

Cosmetic fix for large file support ./configure output.
(This used to be commit ded776af285baa65af151710fe7440b6c52fc409)

22 years agoUpdate from Toomas Soome <tsoome@ut.ee>.
Jeremy Allison [Wed, 16 May 2001 02:25:26 +0000 (02:25 +0000)]
Update from Toomas Soome <tsoome@ut.ee>.
Jeremy.
(This used to be commit 97dfc0097e488dd48dfed8429b4690f9cd82c52c)

22 years agoAdded example vfs block example from Ronald Kuetemeier <ronald@kuetemeier.com>.
Jeremy Allison [Wed, 16 May 2001 02:12:37 +0000 (02:12 +0000)]
Added example vfs block example from Ronald Kuetemeier <ronald@kuetemeier.com>.
Jeremy.
(This used to be commit 0609cd3162173575d22fbd12c48e777a5b15553e)

22 years agoZero-fill struct hostent.
Jeremy Allison [Tue, 15 May 2001 22:01:48 +0000 (22:01 +0000)]
Zero-fill struct hostent.
Jeremy.
(This used to be commit 86557d633648f279e6ceda4da38801889ca4ed95)

22 years agoFixed glibc crash problems with libnss_wins.so
Jeremy Allison [Tue, 15 May 2001 21:53:19 +0000 (21:53 +0000)]
Fixed glibc crash problems with libnss_wins.so
Jeremy.
(This used to be commit c38a465bef91bc54cd3f3ce81e5a9c818f429801)

22 years agoAdded notes about NetBIOS Scopes.
John Terpstra [Tue, 15 May 2001 20:02:06 +0000 (20:02 +0000)]
Added notes about NetBIOS Scopes.
(This used to be commit 78e413eec4a7f1ddba67c6f2e2354e50330ae427)

22 years agoCheck sizes of data entries in connections.tdb before deciding they're crecs...
Jeremy Allison [Tue, 15 May 2001 18:12:02 +0000 (18:12 +0000)]
Check sizes of data entries in connections.tdb before deciding they're crecs...
We will need this when we use finer grained locking for max connections.
Jeremy.
(This used to be commit c6cd42a6791e26174eb795fd08ddbbd797e5a9cf)

22 years agomake sure that when a tdb expands we fill the expanded area, otherwise ENOSPC could...
Andrew Tridgell [Tue, 15 May 2001 14:53:06 +0000 (14:53 +0000)]
make sure that when a tdb expands we fill the expanded area, otherwise ENOSPC could be very bad
(This used to be commit b94cfb6843dc7fc985917395d3e0d953501b9197)

22 years agoRemoved reference to obsolete listproc address.
Tim Potter [Tue, 15 May 2001 05:44:12 +0000 (05:44 +0000)]
Removed reference to obsolete listproc address.
(This used to be commit bab3906ead1308da6468b9c31080d573fc764111)

22 years agoFixed up SAM_USERINFO_CTR dynamic stuff in cmd_samr_query_user()
Tim Potter [Tue, 15 May 2001 05:02:29 +0000 (05:02 +0000)]
Fixed up SAM_USERINFO_CTR dynamic stuff in cmd_samr_query_user()
(This used to be commit 22b760e246f8fcf79daf24542cc35bdf41d1fea7)

22 years agoRemoved extraneous semicolons from some lp_ parameter definitions.
Tim Potter [Tue, 15 May 2001 02:00:15 +0000 (02:00 +0000)]
Removed extraneous semicolons from some lp_ parameter definitions.
(This used to be commit 34d527240086b135a24c7329d45bff715ae50485)

22 years agoMemory leak fixes from insure.
Tim Potter [Tue, 15 May 2001 01:55:29 +0000 (01:55 +0000)]
Memory leak fixes from insure.
(This used to be commit 03b1cab9a80264f0c940c45d0557ef7efe685095)

22 years agoFixed lookup of entire /etc/{passwd,group} file line.
Tim Potter [Tue, 15 May 2001 01:54:22 +0000 (01:54 +0000)]
Fixed lookup of entire /etc/{passwd,group} file line.
(This used to be commit b208d74e0524514fdb48f80c76192df12238a64e)

22 years agoUpdated the inplace documentation to reflect change from EUCLEAN to EINVAL.
Richard Sharpe [Tue, 15 May 2001 01:47:22 +0000 (01:47 +0000)]
Updated the inplace documentation to reflect change from EUCLEAN to EINVAL.
(This used to be commit d090ae63aebbbbb4e1d2dbe438005742ed216e31)

22 years agoChange EUCLEAN to EINVAL, as some systems do not have EUCLEAN, and EINVAL
Richard Sharpe [Tue, 15 May 2001 01:45:54 +0000 (01:45 +0000)]
Change EUCLEAN to EINVAL, as some systems do not have EUCLEAN, and EINVAL
is a better return code anyway (I knew that :-)
(This used to be commit 0bf2797b183b4d709a401ebdb2d5f3d5b1c907af)

22 years agoremember to close tdb after use
Andrew Tridgell [Tue, 15 May 2001 01:28:34 +0000 (01:28 +0000)]
remember to close tdb after use
(This used to be commit 8f8d7202cf6e12cdb2f4445ddcac83a7ac9e33a2)

22 years agomake the max_connections code less horrendously inefficient
Andrew Tridgell [Tue, 15 May 2001 00:53:15 +0000 (00:53 +0000)]
make the max_connections code less horrendously inefficient

- it didn't honour the clear flag
- it locked the database (not necessary)

the previous code would do 10^6 kill() operations for 1000 people
logging in - and all with the database locked. Not very scalable.

Still haven't added the counter, that would make it really efficient
(This used to be commit 6bdbeb4a32e52fb05328dcf38dbb90780e1761ef)

22 years agoFix crash in smbcontrol Gerald pointed out when no parameter given to debug.
Jeremy Allison [Mon, 14 May 2001 22:37:01 +0000 (22:37 +0000)]
Fix crash in smbcontrol Gerald pointed out when no parameter given to debug.
Jeremy.
(This used to be commit ef687a2f6ba8143dcc041b2b629542c3ea9e3966)

22 years agoStupidity by me..... 777 != 0777
Jeremy Allison [Mon, 14 May 2001 20:06:28 +0000 (20:06 +0000)]
Stupidity by me..... 777 != 0777
ARGGGHHHHHHHHHH.
(Sorry).
Jeremy.
(This used to be commit 4306eff6f77b95eeaaa4f8375356a81ad3497c67)

22 years agotdb_traverse returns number of records, not zero, on success.
Jeremy Allison [Mon, 14 May 2001 18:43:49 +0000 (18:43 +0000)]
tdb_traverse returns number of records, not zero, on success.
Now tested max connections and it works again. Hurrah !
Jeremy.
(This used to be commit 6565b8c9781f571735068aba5044a913b5fe31fe)

22 years agoMake libsmbclient.so by default now.
Richard Sharpe [Mon, 14 May 2001 16:10:48 +0000 (16:10 +0000)]
Make libsmbclient.so by default now.

Once we are happy with this in head, we will migrate it to 2.2.x.
(This used to be commit bf69d30b0741210dcdf61f493f6bf872a8931701)

22 years agoImplemented max connections in a similar way to 2.0.x (scan of connection db).
Jeremy Allison [Mon, 14 May 2001 06:15:46 +0000 (06:15 +0000)]
Implemented max connections in a similar way to 2.0.x (scan of connection db).
This needs testing !
Tidied up tabs in tdb.c.
Jeremy.
(This used to be commit 0852465053d0c1a23b6cfe6097267291b0595ef8)

22 years agoCosmetic changes in make proto output.
Tim Potter [Mon, 14 May 2001 04:11:39 +0000 (04:11 +0000)]
Cosmetic changes in make proto output.
(This used to be commit 858290d63b8e4300f2a1a334675566beb6881993)

22 years agomake proto
Tim Potter [Mon, 14 May 2001 04:11:31 +0000 (04:11 +0000)]
make proto
(This used to be commit 607db8d57db0e7bf9e99570bc87e7a1401a18eaa)

22 years agoSo I promised Andrew that a winbindd_proto.h file wouldn't be necessary.
Tim Potter [Mon, 14 May 2001 04:08:42 +0000 (04:08 +0000)]
So I promised Andrew that a winbindd_proto.h file wouldn't be necessary.
Unfortunately it is for the moment.  )-:
(This used to be commit 29f9a6c571a6e5571a860b84f9bbc04f668c607e)

22 years agoCompile fixes for dynamic samr_query_userinfo() stuff.
Tim Potter [Mon, 14 May 2001 03:58:49 +0000 (03:58 +0000)]
Compile fixes for dynamic samr_query_userinfo() stuff.
(This used to be commit a92a0d061bd322b9d3a1fe13c6ce2d2e1f070ef7)

22 years agoAdded arg to querygroupinfo.
Tim Potter [Mon, 14 May 2001 03:51:39 +0000 (03:51 +0000)]
Added arg to querygroupinfo.
(This used to be commit ab58fdf77a12d101f5ac6b6702cd8ed9dc2c7d55)

22 years agostring_hash() should be static. hash_clear() should be void.
Jeremy Allison [Sat, 12 May 2001 20:15:39 +0000 (20:15 +0000)]
string_hash() should be static. hash_clear() should be void.
Jeremy.
(This used to be commit e8ab89fbc0b6cec9f3e80fe4327992b2ec7a4a40)

22 years agostatcache initialisation fix
Andrew Tridgell [Sat, 12 May 2001 13:04:15 +0000 (13:04 +0000)]
statcache initialisation fix
pointed out by Elrond
(This used to be commit 572a37534b7ee010aafd7e8bcb9da52957306f97)

22 years agoNow we're doing the substituion in the lp_string code remove the erroneous
Jeremy Allison [Sat, 12 May 2001 00:31:59 +0000 (00:31 +0000)]
Now we're doing the substituion in the lp_string code remove the erroneous
debug 0 warning.
Jeremy.
(This used to be commit be7e1d0f2c078bd07c7087e1e36636dcd6d0a5d8)

22 years agoUse talloc_strdup() instead of strdup().
Tim Potter [Fri, 11 May 2001 07:13:13 +0000 (07:13 +0000)]
Use talloc_strdup() instead of strdup().
(This used to be commit 3b4b5b3c61bb1fe1db15306219f24036bf342e2d)

22 years agoMemory leak fixes plus general cleanup.
Tim Potter [Fri, 11 May 2001 07:04:47 +0000 (07:04 +0000)]
Memory leak fixes plus general cleanup.
(This used to be commit 48688c4592d03d6404631a7d57701f0af38cfb2d)

22 years agoAdded talloc_strdup() funcion.
Tim Potter [Fri, 11 May 2001 07:03:13 +0000 (07:03 +0000)]
Added talloc_strdup() funcion.
(This used to be commit eea43a5a916eb7f4bef6817ce0aa8051f9145b18)

22 years agoNeeds to be >=, not just >.
Jeremy Allison [Thu, 10 May 2001 23:55:33 +0000 (23:55 +0000)]
Needs to be >=, not just >.
Jeremy.
(This used to be commit fa6a5bf94a3716c0554e2bcbe0eb4b0912f15604)

22 years agoFix for problem with "" string in trim_string(). Pointed out by Ben Winslow <rain...
Jeremy Allison [Thu, 10 May 2001 23:17:46 +0000 (23:17 +0000)]
Fix for problem with "" string in trim_string(). Pointed out by Ben Winslow <rain@bluecherry.net>.
Jeremy.
(This used to be commit df2e306171f0a71af77dbaafc7ccbf78e27befb8)

22 years agoGot rid of iSERVICE/pSERVICE (Hungarian inspired obfuscation). Now use
Jeremy Allison [Thu, 10 May 2001 22:10:31 +0000 (22:10 +0000)]
Got rid of iSERVICE/pSERVICE (Hungarian inspired obfuscation). Now use
ServicePtrs[i] when we're indirecting so we can see what's going on.
ZERO_STRUCTP(ServicePtrs[i]) on free_service.
Jeremy.
(This used to be commit 95dfc4a60a80ea5d55ac4775dd875e1283ecdaec)