samba.git
23 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 *

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

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

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

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

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

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

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

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

23 years agoAdded notes about NetBIOS Scopes.
John Terpstra [Tue, 15 May 2001 20:02:06 +0000 (20:02 +0000)]
Added notes about NetBIOS Scopes.

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

23 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

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

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

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

23 years agoMemory leak fixes from insure.
Tim Potter [Tue, 15 May 2001 01:55:29 +0000 (01:55 +0000)]
Memory leak fixes from insure.

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

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

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

23 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

23 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

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

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

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

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

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

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

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

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

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

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

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

23 years agostatcache initialisation fix
Andrew Tridgell [Sat, 12 May 2001 13:04:15 +0000 (13:04 +0000)]
statcache initialisation fix
pointed out by Elrond

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

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

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

23 years agoAdded talloc_strdup() funcion.
Tim Potter [Fri, 11 May 2001 07:03:13 +0000 (07:03 +0000)]
Added talloc_strdup() funcion.

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

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

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

23 years agofree_service() was never setting the valid field to False. This is a bug
Jeremy Allison [Thu, 10 May 2001 20:58:38 +0000 (20:58 +0000)]
free_service() was never setting the valid field to False. This is a bug
that's been here since 2.0.x and before.... This would cause a memleak.
Jeremy.

23 years agoupdate from Simo
Gerald Carter [Thu, 10 May 2001 20:52:20 +0000 (20:52 +0000)]
update from Simo

23 years agoShould be faliing on False and not True. Bad check on return value
Gerald Carter [Thu, 10 May 2001 20:05:06 +0000 (20:05 +0000)]
Should be faliing on False and not True.  Bad check on return value

23 years agoFixed nasty little bug found by Gerald where we were corrupting the mode
Jeremy Allison [Thu, 10 May 2001 19:27:00 +0000 (19:27 +0000)]
Fixed nasty little bug found by Gerald where we were corrupting the mode
bits before checking if we should change them on non-acl systems.
Jeremy.

23 years agoDon't check for passwd program if using pam change password.
Jeremy Allison [Thu, 10 May 2001 06:53:19 +0000 (06:53 +0000)]
Don't check for passwd program if using pam change password.
Original patch from Andrew Bartlett.
Jeremy.

23 years agomake proto
Tim Potter [Thu, 10 May 2001 05:20:12 +0000 (05:20 +0000)]
make proto

23 years agoUse sid_peek_rid() instead of sid_split_rid().
Tim Potter [Thu, 10 May 2001 05:19:47 +0000 (05:19 +0000)]
Use sid_peek_rid() instead of sid_split_rid().

23 years agoMade "security XXX" masks apply to ACL set. By default they have no effect.
Jeremy Allison [Thu, 10 May 2001 01:03:44 +0000 (01:03 +0000)]
Made "security XXX" masks apply to ACL set. By default they have no effect.
Removed "restrict acl with mask" - redundent.
Jeremy.

23 years agoReplaced a whole bunch of lookup_name() requests in
Tim Potter [Thu, 10 May 2001 01:01:30 +0000 (01:01 +0000)]
Replaced a whole bunch of lookup_name() requests in
construct_default_printer_sdb() with checks of the owner rid instead.  This
should be much faster, work on non-English systems and systems with renamed
user or group names.

23 years agoAdded sid_peek_rid() function to return the rid of a sid. Saves mucking
Tim Potter [Thu, 10 May 2001 00:48:06 +0000 (00:48 +0000)]
Added sid_peek_rid() function to return the rid of a sid.  Saves mucking
around with copying a sid to a temporary variable and using sid_split_rid().

23 years agoBumped up debug level on set socket options from 3 to 5.
Tim Potter [Thu, 10 May 2001 00:35:24 +0000 (00:35 +0000)]
Bumped up debug level on set socket options from 3 to 5.

23 years agoReverted samr_io_userinfo_ctr() patch because it broke too much other
Tim Potter [Thu, 10 May 2001 00:03:36 +0000 (00:03 +0000)]
Reverted samr_io_userinfo_ctr() patch because it broke too much other
stuff.  (-:

23 years agoFixed up the oldpw prompts. Made the matching case insensitive.
Jeremy Allison [Wed, 9 May 2001 21:14:41 +0000 (21:14 +0000)]
Fixed up the oldpw prompts. Made the matching case insensitive.
Jeremy.

23 years agocheck for valid pointer before calling memset() in samr_clear_sam_passwd
Gerald Carter [Wed, 9 May 2001 17:57:08 +0000 (17:57 +0000)]
check for valid pointer before calling memset() in samr_clear_sam_passwd

23 years agovery nasty bug !
Jean-François Micouleau [Wed, 9 May 2001 15:48:30 +0000 (15:48 +0000)]
very nasty bug !

J.F.

23 years agoFixes from nsswitch testsuite. Lots of stuff works much better now. (-:
Tim Potter [Wed, 9 May 2001 05:06:35 +0000 (05:06 +0000)]
Fixes from nsswitch testsuite.  Lots of stuff works much better now.  (-:

23 years agoSo the samr_io_userinfo_ctr was requiring a SAM_USERINFO_CTR to be passed
Tim Potter [Wed, 9 May 2001 05:05:01 +0000 (05:05 +0000)]
So the samr_io_userinfo_ctr was requiring a SAM_USERINFO_CTR to be passed
in as well as tallocating space for one itself.  I've deleted code so the
passed in container is used to store the SAM user info.  This may have
broken some server side SAM stuff which probably isn't used anyway.  )-:

23 years agoCleaned up bitrot in nsswitch testsuite. Merged tests across from TNG
Tim Potter [Wed, 9 May 2001 04:59:49 +0000 (04:59 +0000)]
Cleaned up bitrot in nsswitch testsuite.  Merged tests across from TNG
branch.

23 years agoneed to do codepage_initialise() for smbtorture to work.
Anton Blanchard [Wed, 9 May 2001 01:58:12 +0000 (01:58 +0000)]
need to do codepage_initialise() for smbtorture to work.

23 years agolatest config.guess and config.sub from gnu.org
Andrew Tridgell [Wed, 9 May 2001 01:29:44 +0000 (01:29 +0000)]
latest config.guess and config.sub from gnu.org

23 years agofixes to the group mapping code.
Jean-François Micouleau [Tue, 8 May 2001 16:33:18 +0000 (16:33 +0000)]
fixes to the group mapping code.
Not ready yet.

J.F.

23 years agoadded some docs in order to keep track of the Samba private enterprise
Gerald Carter [Tue, 8 May 2001 14:33:29 +0000 (14:33 +0000)]
added some docs in order to keep track of the Samba private enterprise
number and allocated OID arcs.

23 years agoMore compiler warning fixes.
Tim Potter [Tue, 8 May 2001 06:14:08 +0000 (06:14 +0000)]
More compiler warning fixes.

23 years agoFixed compiler warning.
Tim Potter [Tue, 8 May 2001 06:09:52 +0000 (06:09 +0000)]
Fixed compiler warning.

23 years agoThe substitution of %U and %D in the 'template homedir' is nowdone
Tim Potter [Tue, 8 May 2001 05:58:03 +0000 (05:58 +0000)]
The substitution of %U and %D in the 'template homedir' is nowdone
by lp_string() calling standard_sub_basic().

23 years agoAdded S_ISSOCK macros for systems which treat UNIX domain sockets as FIFOs
Tim Potter [Tue, 8 May 2001 05:56:10 +0000 (05:56 +0000)]
Added S_ISSOCK macros for systems which treat UNIX domain sockets as FIFOs
(SCO).

23 years agoRemoved S_ISSOCK() macro as it's only used within winbind client code.
Tim Potter [Tue, 8 May 2001 05:53:33 +0000 (05:53 +0000)]
Removed S_ISSOCK() macro as it's only used within winbind client code.

23 years agoAdded winbindd to list of binaries.
Tim Potter [Tue, 8 May 2001 05:52:17 +0000 (05:52 +0000)]
Added winbindd to list of binaries.

23 years agomake proto
Tim Potter [Tue, 8 May 2001 04:02:59 +0000 (04:02 +0000)]
make proto

23 years agoFixed typo in comment.
Tim Potter [Tue, 8 May 2001 04:00:01 +0000 (04:00 +0000)]
Fixed typo in comment.

23 years agoFixed querydispinfo command.
Tim Potter [Tue, 8 May 2001 03:53:16 +0000 (03:53 +0000)]
Fixed querydispinfo command.

23 years agoMisc fixes to get winbindd working. We can now do a 'getent passwd'
Tim Potter [Tue, 8 May 2001 03:52:07 +0000 (03:52 +0000)]
Misc fixes to get winbindd working.  We can now do a 'getent passwd'
and 'getent group' and have most things working.

23 years agoiinit_samr_q_lookup_rids() didn't actually copy the rids into the
Tim Potter [Tue, 8 May 2001 03:50:42 +0000 (03:50 +0000)]
iinit_samr_q_lookup_rids() didn't actually copy the rids into the
parse structure.

23 years agoFix for query_dispinfo()
Tim Potter [Tue, 8 May 2001 03:49:57 +0000 (03:49 +0000)]
Fix for query_dispinfo()

Added lookup_rids() function.

23 years agoFix for insure missmatched parameter error.
Jeremy Allison [Tue, 8 May 2001 01:26:28 +0000 (01:26 +0000)]
Fix for insure missmatched parameter error.
Jeremy.

23 years agoPatch from ackley@cs.unm.edu to clear server_fd/client_fd in root daemon to stop
Jeremy Allison [Tue, 8 May 2001 00:03:45 +0000 (00:03 +0000)]
Patch from ackley@cs.unm.edu to clear server_fd/client_fd in root daemon to stop
%I getpeername() failure.
Jeremy.

23 years agoHey what happened to my debug messages? Early exit from reopen_logs()
Tim Potter [Mon, 7 May 2001 23:46:48 +0000 (23:46 +0000)]
Hey what happened to my debug messages?  Early exit from reopen_logs()
if using stdout_logging.

23 years agomerge from 2.2 removing the 'domain XXX' parameters.
Gerald Carter [Mon, 7 May 2001 22:10:38 +0000 (22:10 +0000)]
merge from 2.2 removing the 'domain XXX' parameters.

23 years agoremoved unused variables
Gerald Carter [Mon, 7 May 2001 22:08:34 +0000 (22:08 +0000)]
removed unused variables

23 years agoFix for bad profile perms. Ensure r on files and rwx on directories.
Jeremy Allison [Mon, 7 May 2001 21:17:42 +0000 (21:17 +0000)]
Fix for bad profile perms. Ensure r on files and rwx on directories.
Jeremy.

23 years agoPatch from Simo:
Gerald Carter [Mon, 7 May 2001 14:04:46 +0000 (14:04 +0000)]
Patch from Simo:

  o sed 's/pdb_clear_sam/pdb_free_sam/g'
  o add pdb_reset_sam()
  o password changing should be ok now as well.

23 years agoRemoved unused variable.
Tim Potter [Mon, 7 May 2001 06:05:30 +0000 (06:05 +0000)]
Removed unused variable.

23 years agoOK so I couldn't be as clever as I wanted to be with winbindd_glue.c
Tim Potter [Mon, 7 May 2001 06:04:22 +0000 (06:04 +0000)]
OK so I couldn't be as clever as I wanted to be with winbindd_glue.c
so all the glue functions are prefixed with wb_ to avoid conflicts with
the old rpc_client stuff which is still a dependency of smbd/nmbd.

23 years agoremoved need for scandir in client.c
Andrew Tridgell [Mon, 7 May 2001 05:19:52 +0000 (05:19 +0000)]
removed need for scandir in client.c
fixed possible bug with readdirname on systems with NAMELEN != strlen

23 years agoIgnore *.po files.
Tim Potter [Mon, 7 May 2001 05:04:53 +0000 (05:04 +0000)]
Ignore *.po files.

23 years agoiAdditional files for winbind merge.
Tim Potter [Mon, 7 May 2001 05:03:40 +0000 (05:03 +0000)]
iAdditional files for winbind merge.

23 years agoPreliminary merge of winbind into HEAD. Note that this compiles and links
Tim Potter [Mon, 7 May 2001 04:32:40 +0000 (04:32 +0000)]
Preliminary merge of winbind into HEAD.  Note that this compiles and links
but I haven't actually run it yet so it probably doesn't work.  (-:

23 years agorebuild proto.h
Andrew Tridgell [Mon, 7 May 2001 04:10:40 +0000 (04:10 +0000)]
rebuild proto.h

23 years agomerge some fixes from 2.2
Andrew Tridgell [Mon, 7 May 2001 03:55:54 +0000 (03:55 +0000)]
merge some fixes from 2.2

23 years agofix interfaces.c for aix 3.2.5
Andrew Tridgell [Mon, 7 May 2001 03:21:23 +0000 (03:21 +0000)]
fix interfaces.c for aix 3.2.5

23 years agoSome versions of readline don't have rl_completion_func_t. )-:
Tim Potter [Mon, 7 May 2001 02:03:32 +0000 (02:03 +0000)]
Some versions of readline don't have rl_completion_func_t.  )-:

Spotted by http://build.samba.org/

23 years agoiAdded querydispinfo and querydominfo functions.
Tim Potter [Mon, 7 May 2001 02:00:28 +0000 (02:00 +0000)]
iAdded querydispinfo and querydominfo functions.

Allow rid to be specified in lookupuser.

23 years agoSome reformatting (sorry Gerald).
Tim Potter [Mon, 7 May 2001 01:55:08 +0000 (01:55 +0000)]
Some reformatting (sorry Gerald).

Cleanup of exit paths.

Added query domain info and query display info.

23 years agonew mput code from idra that doesn't need a call to find
Andrew Tridgell [Mon, 7 May 2001 01:51:56 +0000 (01:51 +0000)]
new mput code from idra that doesn't need a call to find

23 years agoFixed a compiler warning. Still more const warnings though. )-:
Tim Potter [Mon, 7 May 2001 01:48:03 +0000 (01:48 +0000)]
Fixed a compiler warning.  Still more const warnings though.  )-:

23 years agoFixed compiler warning.
Tim Potter [Mon, 7 May 2001 01:08:41 +0000 (01:08 +0000)]
Fixed compiler warning.

23 years agoPatch from David_Tiller@ccnotes.ccity.com finally applied now I've thought
Jeremy Allison [Sun, 6 May 2001 20:56:14 +0000 (20:56 +0000)]
Patch from David_Tiller@ccnotes.ccity.com finally applied now I've thought
about it to stop account lockouts with "security=server" mode. Sorry for
the delay David.
Jeremy.

23 years agoreplace modf so we don't need the math library
Andrew Tridgell [Sun, 6 May 2001 15:19:25 +0000 (15:19 +0000)]
replace modf so we don't need the math library

23 years agoallow env variable TESTDIR for directory for fcntl_lock test
Andrew Tridgell [Sun, 6 May 2001 14:09:10 +0000 (14:09 +0000)]
allow env variable TESTDIR for directory for fcntl_lock test

23 years agoadd an alarm to fcntl test to stop tru64 from freezing on the test
Andrew Tridgell [Sun, 6 May 2001 12:47:32 +0000 (12:47 +0000)]
add an alarm to fcntl test to stop tru64 from freezing on the test