amitay/samba.git
22 years agoThis commit was manufactured by cvs2svn to create tag release-2-2-0a samba-2.2.0a
cvs2svn Import User [Sat, 23 Jun 2001 20:19:24 +0000 (20:19 +0000)]
This commit was manufactured by cvs2svn to create tag
'release-2-2-0a'.

22 years agopreparing for release of 2.2.0a
Samba Release Account [Sat, 23 Jun 2001 20:19:23 +0000 (20:19 +0000)]
preparing for release of 2.2.0a

22 years agoLog debug message before and after so we know if netbios names were changed.
Jeremy Allison [Sat, 23 Jun 2001 20:02:09 +0000 (20:02 +0000)]
Log debug message before and after so we know if netbios names were changed.
Jeremy.

22 years agoUpdated to mention new features will be in 2.2.1 - this is a security fix
Jeremy Allison [Sat, 23 Jun 2001 19:30:04 +0000 (19:30 +0000)]
Updated to mention new features will be in 2.2.1 - this is a security fix
only.
Jeremy.

22 years agoUpdated with security advisory message.
Jeremy Allison [Sat, 23 Jun 2001 07:48:40 +0000 (07:48 +0000)]
Updated with security advisory message.
Jeremy.

22 years agoUpdated lib/access.c for allow/deny fix.
Jeremy Allison [Sat, 23 Jun 2001 07:44:33 +0000 (07:44 +0000)]
Updated lib/access.c for allow/deny fix.
Jeremy.

22 years agoAdded other_safe_chars to alpha_strcpy(). Better fix for problem.
Jeremy Allison [Sat, 23 Jun 2001 07:41:16 +0000 (07:41 +0000)]
Added other_safe_chars to alpha_strcpy(). Better fix for problem.
Jeremy.

22 years agoGet ready for fix release.
Jeremy Allison [Sat, 23 Jun 2001 01:05:44 +0000 (01:05 +0000)]
Get ready for fix release.
Jeremy.

22 years agoBetter fix for client name vulnarability.
Jeremy Allison [Sat, 23 Jun 2001 00:28:36 +0000 (00:28 +0000)]
Better fix for client name vulnarability.
Jeremy.

23 years agoThis commit was manufactured by cvs2svn to create branch
cvs2svn Import User [Thu, 31 May 2001 14:41:55 +0000 (14:41 +0000)]
This commit was manufactured by cvs2svn to create branch
'SAMBA_2_2_RELEASE'.

23 years agoThis commit was manufactured by cvs2svn to create branch 'SAMBA_2_2'.
cvs2svn Import User [Thu, 31 May 2001 14:41:54 +0000 (14:41 +0000)]
This commit was manufactured by cvs2svn to create branch 'SAMBA_2_2'.

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

23 years agoI18N fix from HEAD for domain_client_validate (wrong domain name, use
Jeremy Allison [Thu, 31 May 2001 14:14:27 +0000 (14:14 +0000)]
I18N fix from HEAD for domain_client_validate (wrong domain name, use
domain not lp_workgroup()).
Jeremy.

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

23 years agoMerged in fix for buggy xinetd, border-0 fix from HEAD.
Jeremy Allison [Thu, 31 May 2001 14:08:53 +0000 (14:08 +0000)]
Merged in fix for buggy xinetd, border-0 fix from HEAD.
Jeremy.

23 years agoMerged tdb_open_log call back from HEAD.
Jeremy Allison [Thu, 31 May 2001 14:03:44 +0000 (14:03 +0000)]
Merged tdb_open_log call back from HEAD.
Jeremy.

23 years agoFix from HEAD for compiler warning (duplicate HASH).
Jeremy Allison [Thu, 31 May 2001 13:57:09 +0000 (13:57 +0000)]
Fix from HEAD for compiler warning (duplicate HASH).
Jeremy.

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

23 years agofixed asprintf declaration
Andrew Tridgell [Wed, 30 May 2001 13:50:59 +0000 (13:50 +0000)]
fixed asprintf declaration

23 years agomerged configure updates from head
Andrew Tridgell [Wed, 30 May 2001 12:31:05 +0000 (12:31 +0000)]
merged configure updates from head

23 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

23 years agoAdd some protection to smbc_init for people calling it more than once.
Richard Sharpe [Wed, 30 May 2001 10:57:13 +0000 (10:57 +0000)]
Add some protection to smbc_init for people calling it more than once.

23 years agotdb updates from head
Andrew Tridgell [Wed, 30 May 2001 06:36:48 +0000 (06:36 +0000)]
tdb updates from head

23 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

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

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

23 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

23 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

23 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

23 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

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

23 years agoportability fix for TDB_LOG()
Andrew Tridgell [Tue, 29 May 2001 15:16:30 +0000 (15:16 +0000)]
portability fix for TDB_LOG()

23 years agomore portable TDB_LOG macro
Andrew Tridgell [Tue, 29 May 2001 15:01:23 +0000 (15:01 +0000)]
more portable TDB_LOG macro

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

23 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

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

23 years agoReturn an error code on password overflow attack so scanners don't
Jeremy Allison [Tue, 29 May 2001 03:30:55 +0000 (03:30 +0000)]
Return an error code on password overflow attack so scanners don't
think we've failed.
Port of Andrew's code from HEAD.
Jeremy.

23 years agoMerge in Andrew's tdb robustness changes - allow tailers to be
Jeremy Allison [Tue, 29 May 2001 03:28:13 +0000 (03:28 +0000)]
Merge in Andrew's tdb robustness changes - allow tailers to be
checked and a logging function added.
Jeremy.

23 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

23 years agomake sure the umask is set in swat
Andrew Tridgell [Mon, 28 May 2001 23:54:43 +0000 (23:54 +0000)]
make sure the umask is set in swat

23 years agoFix nasty malloc/free bug when setting a printer attribute with a zero length (Lexmark
John Reilly [Mon, 28 May 2001 23:30:27 +0000 (23:30 +0000)]
Fix nasty malloc/free bug when setting a printer attribute with a zero length (Lexmark
drivers do this). tdb_unpack() on case 'B' was leaving the data pointer uninitialized.
This seemed OK (but bad practice) for a zero lenght buffer, but many cycles later
free_nt_printer_param() did a safe_free on the uninitialized pointer. This affected
both APPLIANCE_HEAD and 2.2 (HEAD too I expect).

2.2 only was hit by a differert aspect of the situation above. When a zero len attribute
is processed by api_spoolss_setprinterdata(), talloc (in non DEBUG_TALLOC), returns NULL
up the chain and "unable to unmarshall SPOOL_Q_SETPRINTERDATA" occurs.

JohnR

23 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

23 years agoUpdate to set random seed between new smbd's atomically.
Jeremy Allison [Mon, 28 May 2001 12:00:46 +0000 (12:00 +0000)]
Update to set random seed between new smbd's atomically.
CVS Access back at last (from the Tokyo Hilton... :-).
Jeremy.

23 years agomake sure the '\n' is stripped from the command string
Gerald Carter [Fri, 25 May 2001 18:43:41 +0000 (18:43 +0000)]
make sure the '\n' is stripped from the command string

23 years agofix for Solaris ACL support. The sys_acl_set_file was writing out
Gerald Carter [Fri, 25 May 2001 17:37:10 +0000 (17:37 +0000)]
fix for Solaris ACL support.  The sys_acl_set_file was writing out
a mask != rwx.  The aclsort() Solaris library function was
rewriting the mask.

Also include a little reformatting to readability.

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

23 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!

23 years agoAdded tdb_change_int_atomic() to allow atomic updates of a tdb int value.
Jeremy Allison [Fri, 25 May 2001 00:48:32 +0000 (00:48 +0000)]
Added tdb_change_int_atomic() to allow atomic updates of a tdb int value.
Jeremy.

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

23 years agoclean up to make the HOWTO-Collection compile again.
Gerald Carter [Thu, 24 May 2001 22:48:11 +0000 (22:48 +0000)]
clean up to make the HOWTO-Collection compile again.
The DOMAIN.txt file has been included in the Samba PDC chapter.

23 years agoFixup the large_writex problem (a large_writex can send a full 64k of data,
Jeremy Allison [Thu, 24 May 2001 19:28:24 +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.

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

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

23 years agoImprovements to random stream generator.
Jeremy Allison [Thu, 24 May 2001 18:24:13 +0000 (18:24 +0000)]
Improvements to random stream generator.
Jeremy.

23 years agofixes for smbpasswd location
Gerald Carter [Thu, 24 May 2001 15:08:45 +0000 (15:08 +0000)]
fixes for smbpasswd location

23 years agolog file is named log.[smb|nmb]d
Gerald Carter [Thu, 24 May 2001 14:56:49 +0000 (14:56 +0000)]
log file is named log.[smb|nmb]d

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

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

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

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

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

23 years agoAdded logon control2 client call.
Tim Potter [Thu, 24 May 2001 08:01:55 +0000 (08:01 +0000)]
Added logon control2 client call.

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

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

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

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

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

23 years agoAdded tdb_errstr() messages so we can see if these functions fail.
Jeremy Allison [Wed, 23 May 2001 21:33:40 +0000 (21:33 +0000)]
Added tdb_errstr() messages so we can see if these functions fail.
Jeremy.

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

23 years agoThis is *very* cool. I'm pretty convinced we can just set the
Jeremy Allison [Wed, 23 May 2001 18:47:50 +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.

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

23 years agoStupid typo - should be if (!tdb).
Jeremy Allison [Wed, 23 May 2001 18:33:14 +0000 (18:33 +0000)]
Stupid typo - should be if (!tdb).
Jeremy.

23 years agothis does not compile yet. I have half done merging the DOMAIN.txt
Gerald Carter [Wed, 23 May 2001 05:53:13 +0000 (05:53 +0000)]
this does not compile yet.  I have half done merging the DOMAIN.txt
file into the Samba-PDC-HOWTO.  Still needs some restructuring....

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

23 years agoTry to fix build by adding autoconf tests for pam headers.
Jeremy Allison [Tue, 22 May 2001 21:47:09 +0000 (21:47 +0000)]
Try to fix build by adding autoconf tests for pam headers.
Jeremy.

23 years agoautogen
Gerald Carter [Tue, 22 May 2001 21:10:44 +0000 (21:10 +0000)]
autogen

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

23 years agoOk - code to scan the locking and brlock db's on startup and shutdown and
Jeremy Allison [Tue, 22 May 2001 20:15:13 +0000 (20:15 +0000)]
Ok - code to scan the locking and brlock db's on startup and shutdown and
clean any dead records. This should never need to be done, but will definately
aid in integrity of the locking db's.
Jeremy.

23 years agoClean up the brlock database on exit as well as init.
Jeremy Allison [Tue, 22 May 2001 19:24:53 +0000 (19:24 +0000)]
Clean up the brlock database on exit as well as init.
Jeremy.

23 years agoforgot this one yesterday
Gerald Carter [Tue, 22 May 2001 17:41:16 +0000 (17:41 +0000)]
forgot this one yesterday

23 years agofew typos and updates
Gerald Carter [Tue, 22 May 2001 17:41:03 +0000 (17:41 +0000)]
few typos and updates

23 years agoconverted the CVS howto to SGML/DocBook
Gerald Carter [Tue, 22 May 2001 04:06:09 +0000 (04:06 +0000)]
converted the CVS howto to SGML/DocBook

23 years agoworking on updates for the 2.2.1 release
Gerald Carter [Mon, 21 May 2001 08:34:49 +0000 (08:34 +0000)]
working on updates for the 2.2.1 release

23 years agoand a few more cleanups....
Gerald Carter [Mon, 21 May 2001 07:26:08 +0000 (07:26 +0000)]
and a few more cleanups....

23 years agoforgot to update the symlinks...
Gerald Carter [Mon, 21 May 2001 06:47:12 +0000 (06:47 +0000)]
forgot to update the symlinks...

23 years agomoved smbmount/smbmnt/smbumount to /usr/bin since these are basically
Gerald Carter [Mon, 21 May 2001 06:45:23 +0000 (06:45 +0000)]
moved smbmount/smbmnt/smbumount to /usr/bin since these are basically
user space tools

23 years agomaking sure all the /etc/samba paths are consistent
Gerald Carter [Mon, 21 May 2001 05:42:26 +0000 (05:42 +0000)]
making sure all the /etc/samba paths are consistent

23 years agocodepages and (src) were not getting including in the installed RPM
Gerald Carter [Mon, 21 May 2001 05:27:36 +0000 (05:27 +0000)]
codepages and (src) were not getting including in the installed RPM

23 years agofix bad install for lmhosts, smb.conf , & smbusers.
Gerald Carter [Mon, 21 May 2001 04:06:42 +0000 (04:06 +0000)]
fix bad install for lmhosts, smb.conf , & smbusers.
Are we using /etc/?  Or /etc/samba/?  The latter is the one
currently configured.

23 years agofixed typo
Gerald Carter [Mon, 21 May 2001 03:26:09 +0000 (03:26 +0000)]
fixed typo

23 years agoworking on testing for Mandrake builds
Gerald Carter [Mon, 21 May 2001 03:05:39 +0000 (03:05 +0000)]
working on testing for Mandrake builds

23 years agoArgh! It works on some but not all. Argh! Ruff.
John Terpstra [Sat, 19 May 2001 06:33:06 +0000 (06:33 +0000)]
Argh! It works on some but not all. Argh! Ruff.

23 years agoCommented out rules for winbind as it doesn't compile in this branch and is
Tim Potter [Sat, 19 May 2001 02:43:48 +0000 (02:43 +0000)]
Commented out rules for winbind as it doesn't compile in this branch and is
a bit misleading.

23 years agoAdding Ron Record's patches.
John Terpstra [Fri, 18 May 2001 23:24:31 +0000 (23:24 +0000)]
Adding Ron Record's patches.

23 years agoAdding codepage change, pam changes.
John Terpstra [Fri, 18 May 2001 23:20:22 +0000 (23:20 +0000)]
Adding codepage change, pam changes.

23 years agoupdating build for Caldera OpenLinux
John Terpstra [Fri, 18 May 2001 23:05:43 +0000 (23:05 +0000)]
updating build for Caldera OpenLinux
codepages moved to /usr/share/samba
added "old" flag for makerpms.sh.tmpl

23 years agoMoving codepages to /usr/share/samba/codepages
John Terpstra [Fri, 18 May 2001 22:59:25 +0000 (22:59 +0000)]
Moving codepages to /usr/share/samba/codepages
Adding Mandrake smb.conf patches

23 years agoAdding support for pam-smnbpass.
John Terpstra [Fri, 18 May 2001 22:47:33 +0000 (22:47 +0000)]
Adding support for pam-smnbpass.

23 years agoUse canonical mappings for file controls. Fixes W2KSP2 profile problems (I
Jeremy Allison [Fri, 18 May 2001 20:16:57 +0000 (20:16 +0000)]
Use canonical mappings for file controls. Fixes W2KSP2 profile problems (I
think....).
Jeremy.

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