kai/samba.git
22 years agofinal sync with SAMBA_2_2
Gerald Carter [Fri, 1 Jun 2001 12:33:16 +0000 (12:33 +0000)]
final sync with SAMBA_2_2

22 years agomore syncs with SAMBA_2_2
Gerald Carter [Fri, 1 Jun 2001 12:27:05 +0000 (12:27 +0000)]
more syncs with SAMBA_2_2

22 years agosync with SAMBA_2_2
Gerald Carter [Fri, 1 Jun 2001 12:24:11 +0000 (12:24 +0000)]
sync with SAMBA_2_2

22 years agoOops.
Tim Potter [Fri, 1 Jun 2001 12:11:33 +0000 (12:11 +0000)]
Oops.

22 years agobeginning of merge with SAMBA_2_2
Gerald Carter [Fri, 1 Jun 2001 12:05:47 +0000 (12:05 +0000)]
beginning of merge with SAMBA_2_2

22 years agoforgot one
Gerald Carter [Fri, 1 Jun 2001 12:04:53 +0000 (12:04 +0000)]
forgot one

22 years agoIf a debug class was explicitly set to zero the debug system would not
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.

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

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.

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

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.

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

22 years agomerge from 2.2
Gerald Carter [Thu, 31 May 2001 18:35:14 +0000 (18:35 +0000)]
merge from 2.2

22 years agomerge from 2.2
Gerald Carter [Thu, 31 May 2001 18:03:45 +0000 (18:03 +0000)]
merge from 2.2

22 years agomerge from 2.2
Gerald Carter [Thu, 31 May 2001 17:28:40 +0000 (17:28 +0000)]
merge from 2.2

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.

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.

22 years agofixed asprintf declaration
Andrew Tridgell [Wed, 30 May 2001 13:53:20 +0000 (13:53 +0000)]
fixed asprintf declaration

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

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

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

22 years agonew proto.h
Andrew Tridgell [Wed, 30 May 2001 06:16:24 +0000 (06:16 +0000)]
new proto.h

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

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

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

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

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.

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

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

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

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.

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

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

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()

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!

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.

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.

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.

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.

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.

22 years agoFixed compiler warning.
Tim Potter [Thu, 24 May 2001 08:07:13 +0000 (08:07 +0000)]
Fixed compiler warning.

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.

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.

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.

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.

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.

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().

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.

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.

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.

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.

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.

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.

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.

22 years agomake proto
Gerald Carter [Fri, 18 May 2001 04:12:19 +0000 (04:12 +0000)]
make proto

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)

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.

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.

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

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

22 years agoran make proto
Andrew Tridgell [Thu, 17 May 2001 11:29:54 +0000 (11:29 +0000)]
ran make proto

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 ...

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.

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.

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.

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)

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 ...

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 *

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 ...

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.

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.

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.

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.

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.

22 years agoZero-fill struct hostent.
Jeremy Allison [Tue, 15 May 2001 22:01:48 +0000 (22:01 +0000)]
Zero-fill struct hostent.
Jeremy.

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.

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.

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.

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

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.

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()

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.

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.

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.

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.

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 :-)

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

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

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.

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.

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.

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.

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.

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.

22 years agomake proto
Tim Potter [Mon, 14 May 2001 04:11:31 +0000 (04:11 +0000)]
make proto

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.  )-:

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.

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

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.

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