Gerald Carter [Fri, 1 Jun 2001 12:33:16 +0000 (12:33 +0000)]
final sync with SAMBA_2_2
Gerald Carter [Fri, 1 Jun 2001 12:27:05 +0000 (12:27 +0000)]
more syncs with SAMBA_2_2
Gerald Carter [Fri, 1 Jun 2001 12:24:11 +0000 (12:24 +0000)]
sync with SAMBA_2_2
Tim Potter [Fri, 1 Jun 2001 12:11:33 +0000 (12:11 +0000)]
Oops.
Gerald Carter [Fri, 1 Jun 2001 12:05:47 +0000 (12:05 +0000)]
beginning of merge with SAMBA_2_2
Gerald Carter [Fri, 1 Jun 2001 12:04:53 +0000 (12:04 +0000)]
forgot one
Tim Potter [Fri, 1 Jun 2001 12:04:44 +0000 (12:04 +0000)]
If a debug class was explicitly set to zero the debug system would not
recognise it as there was no distinction made between zeroing a debug
class and just not setting it to anything. I've added a
debuglevel_isset array in parallel with the debuglevel_class array to
fix this.
Added a couple of new debug classes which I might start filling out
to get smb, rpc header and rpc marshall/unmarshalling debugs tidied
up.
Fixed a bunch of cut&paste bugs in include/debug.h
Modified smbcontrol and the messaging system debug handler to like the
debuglevel_isset stuff.
Gerald Carter [Fri, 1 Jun 2001 11:56:08 +0000 (11:56 +0000)]
sync with SAMBA_2_2
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.
Gerald Carter [Fri, 1 Jun 2001 11:50:38 +0000 (11:50 +0000)]
syncing up with SAMBA_2_2
Tim Potter [Fri, 1 Jun 2001 11:26:20 +0000 (11:26 +0000)]
Added *.po to .cvsignore files.
Tim Potter [Fri, 1 Jun 2001 11:18:39 +0000 (11:18 +0000)]
Added a comment.
Gerald Carter [Thu, 31 May 2001 18:35:14 +0000 (18:35 +0000)]
merge from 2.2
Gerald Carter [Thu, 31 May 2001 18:03:45 +0000 (18:03 +0000)]
merge from 2.2
Gerald Carter [Thu, 31 May 2001 17:28:40 +0000 (17:28 +0000)]
merge from 2.2
Jeremy Allison [Thu, 31 May 2001 14:41:53 +0000 (14:41 +0000)]
Rename bzero -> memset.
Check returns from *all* mallocs (including strdups).
Jeremy.
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.
Andrew Tridgell [Wed, 30 May 2001 13:53:20 +0000 (13:53 +0000)]
fixed asprintf declaration
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
Andrew Tridgell [Wed, 30 May 2001 06:23:05 +0000 (06:23 +0000)]
merged fix for tdb_unpack from 2_2
Andrew Tridgell [Wed, 30 May 2001 06:22:10 +0000 (06:22 +0000)]
added list function to tdbtool
Andrew Tridgell [Wed, 30 May 2001 06:16:24 +0000 (06:16 +0000)]
new proto.h
Andrew Tridgell [Wed, 30 May 2001 06:12:21 +0000 (06:12 +0000)]
make swat recover from previously bad umask from xinetd
Andrew Tridgell [Wed, 30 May 2001 06:08:23 +0000 (06:08 +0000)]
use the new tdb_open_log() fn on connections database
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
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
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.
Andrew Tridgell [Tue, 29 May 2001 15:01:23 +0000 (15:01 +0000)]
more portable TDB_LOG macro
Tim Potter [Tue, 29 May 2001 07:34:51 +0000 (07:34 +0000)]
Fixed compiler warning.
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
Tim Potter [Tue, 29 May 2001 05:39:50 +0000 (05:39 +0000)]
The manual page for swat referred to nmblookup in the synopsis.
Andrew Tridgell [Mon, 28 May 2001 23:56:56 +0000 (23:56 +0000)]
make sure the umask is set in swat
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
Tim Potter [Fri, 25 May 2001 07:36:58 +0000 (07:36 +0000)]
i18n fix for domain_client_validate()
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!
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.
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.
Jeremy Allison [Thu, 24 May 2001 18:24:54 +0000 (18:24 +0000)]
Fix for random stream generator.
Jeremy.
Tim Potter [Thu, 24 May 2001 08:21:53 +0000 (08:21 +0000)]
Added structures for LOGON_CTRL rpc.
Make proto.
Tim Potter [Thu, 24 May 2001 08:10:50 +0000 (08:10 +0000)]
Added srvinfo and partial logonctrl and logonctrl2 commands.
Tim Potter [Thu, 24 May 2001 08:07:13 +0000 (08:07 +0000)]
Fixed compiler warning.
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.
Tim Potter [Thu, 24 May 2001 08:02:27 +0000 (08:02 +0000)]
Added srv_get_info client command.
Tim Potter [Thu, 24 May 2001 08:01:55 +0000 (08:01 +0000)]
Added logon control2 client 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.
Tim Potter [Thu, 24 May 2001 02:21:18 +0000 (02:21 +0000)]
Removed some level 0 debugs accidentally left in - oops.
Tim Potter [Thu, 24 May 2001 00:31:53 +0000 (00:31 +0000)]
Replaced next_command() with call to next_token().
Tim Potter [Thu, 24 May 2001 00:20:32 +0000 (00:20 +0000)]
Added stubs for SRVSVC and NETLOGON rpcclient commands.
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.
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.
Jeremy Allison [Wed, 23 May 2001 18:33:45 +0000 (18:33 +0000)]
Stupid typo. Should be if (!tdb).
Jeremy.
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.
Jeremy Allison [Tue, 22 May 2001 20:35:48 +0000 (20:35 +0000)]
Defensive brlock and locking database cleaning code.
Jeremy.
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.
Gerald Carter [Fri, 18 May 2001 04:12:19 +0000 (04:12 +0000)]
make proto
Gerald Carter [Fri, 18 May 2001 04:11:17 +0000 (04:11 +0000)]
merge from 2.2 (deleteprinterdriver RPC)
Jeremy Allison [Fri, 18 May 2001 01:30:21 +0000 (01:30 +0000)]
Fix the W2KSP2 joining a Samba domain problem.
Jeremy.
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.
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
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
Andrew Tridgell [Thu, 17 May 2001 11:29:54 +0000 (11:29 +0000)]
ran make proto
Richard Sharpe [Thu, 17 May 2001 11:20:45 +0000 (11:20 +0000)]
Ran a make proto to fix the problems ...
Tim Potter [Thu, 17 May 2001 07:02:08 +0000 (07:02 +0000)]
Test login using pam_winbind.so and group membership.
Tim Potter [Thu, 17 May 2001 06:08:49 +0000 (06:08 +0000)]
Fixes to get pam_auth() functionality working again.
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.
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)
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 ...
Richard Sharpe [Thu, 17 May 2001 02:44:10 +0000 (02:44 +0000)]
Further recasts to sockaddr * rather than sockaddr_in *
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 ...
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.
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.
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.
Jeremy Allison [Wed, 16 May 2001 02:25:26 +0000 (02:25 +0000)]
Update from Toomas Soome <tsoome@ut.ee>.
Jeremy.
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.
Jeremy Allison [Tue, 15 May 2001 22:01:48 +0000 (22:01 +0000)]
Zero-fill struct hostent.
Jeremy.
Jeremy Allison [Tue, 15 May 2001 21:53:19 +0000 (21:53 +0000)]
Fixed glibc crash problems with libnss_wins.so
Jeremy.
John Terpstra [Tue, 15 May 2001 20:02:06 +0000 (20:02 +0000)]
Added notes about NetBIOS Scopes.
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.
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
Tim Potter [Tue, 15 May 2001 05:44:12 +0000 (05:44 +0000)]
Removed reference to obsolete listproc address.
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()
Tim Potter [Tue, 15 May 2001 02:00:15 +0000 (02:00 +0000)]
Removed extraneous semicolons from some lp_ parameter definitions.
Tim Potter [Tue, 15 May 2001 01:55:29 +0000 (01:55 +0000)]
Memory leak fixes from insure.
Tim Potter [Tue, 15 May 2001 01:54:22 +0000 (01:54 +0000)]
Fixed lookup of entire /etc/{passwd,group} file line.
Richard Sharpe [Tue, 15 May 2001 01:47:22 +0000 (01:47 +0000)]
Updated the inplace documentation to reflect change from EUCLEAN to 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 :-)
Andrew Tridgell [Tue, 15 May 2001 01:28:34 +0000 (01:28 +0000)]
remember to close tdb after use
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
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.
Jeremy Allison [Mon, 14 May 2001 20:06:28 +0000 (20:06 +0000)]
Stupidity by me..... 777 != 0777
ARGGGHHHHHHHHHH.
(Sorry).
Jeremy.
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.
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.
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.
Tim Potter [Mon, 14 May 2001 04:11:39 +0000 (04:11 +0000)]
Cosmetic changes in make proto output.
Tim Potter [Mon, 14 May 2001 04:11:31 +0000 (04:11 +0000)]
make proto
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. )-:
Tim Potter [Mon, 14 May 2001 03:58:49 +0000 (03:58 +0000)]
Compile fixes for dynamic samr_query_userinfo() stuff.
Tim Potter [Mon, 14 May 2001 03:51:39 +0000 (03:51 +0000)]
Added arg to querygroupinfo.
Jeremy Allison [Sat, 12 May 2001 20:15:39 +0000 (20:15 +0000)]
string_hash() should be static. hash_clear() should be void.
Jeremy.
Andrew Tridgell [Sat, 12 May 2001 13:04:15 +0000 (13:04 +0000)]
statcache initialisation fix
pointed out by Elrond