sfrench/samba-autobuild/.git
22 years agoCleanups to make auto-detection of method on net user smoother.
Jim McDonough [Thu, 4 Apr 2002 16:48:23 +0000 (16:48 +0000)]
Cleanups to make auto-detection of method on net user smoother.

22 years agoMore updates for auto-detecting server connection method. Added net_ads_check()
Jim McDonough [Thu, 4 Apr 2002 16:47:24 +0000 (16:47 +0000)]
More updates for auto-detecting server connection method.  Added net_ads_check()
to make a connection (which stores the password in a global so it can be
used by rpc or rap function if ads fails) and close it to verify if ads
method should be used.

22 years agosmall change in name_resolve_bcast()
Jean-François Micouleau [Thu, 4 Apr 2002 15:50:28 +0000 (15:50 +0000)]
small change in name_resolve_bcast()
spotted by alexander bokovoy.

it shouldn't break anything. if it's wrong, feel free to revert but
explain why.

J.F.

22 years agoIf compiling with Insure, mallocate a byte of memory and attach it to the
Tim Potter [Thu, 4 Apr 2002 06:55:32 +0000 (06:55 +0000)]
If compiling with Insure, mallocate a byte of memory and attach it to the
POLICY_HND structure when passing new handles back from the appropriate
cli_* functions.  When closing the policy handle free the memory.

Insure (and indeed other memory checkers) should detect handles that have
not been closed properly as memory leaks.  Unfortunately this can only be
done when the program terminates (set insure++.summarize leaks in your
.psrc file) rather than when the policy handle falls out of scope.

Looks like Jeremy has squished all the policy handle leaks at the moment
but more are bound to crop up later.

22 years agoSpelling.
Tim Potter [Thu, 4 Apr 2002 06:47:20 +0000 (06:47 +0000)]
Spelling.

22 years agoCall poptFreeContext() as appropriate.
Tim Potter [Thu, 4 Apr 2002 06:40:17 +0000 (06:40 +0000)]
Call poptFreeContext() as appropriate.

Clean up exit path code.

22 years agooops
Tim Potter [Thu, 4 Apr 2002 06:11:22 +0000 (06:11 +0000)]
oops

22 years agoFixed memory leak in cli_lsa_enum_trust_dom(). Use talloc_strdup() instead
Tim Potter [Thu, 4 Apr 2002 06:10:22 +0000 (06:10 +0000)]
Fixed memory leak in cli_lsa_enum_trust_dom().  Use talloc_strdup() instead
of strdup().

22 years agoRerun autoconf.
Tim Potter [Thu, 4 Apr 2002 05:48:27 +0000 (05:48 +0000)]
Rerun autoconf.

22 years agoUse m4-mode when editinging configure.in under emacs.
Tim Potter [Thu, 4 Apr 2002 05:47:41 +0000 (05:47 +0000)]
Use m4-mode when editinging configure.in under emacs.

Use $CC instead of $SHLD for the "test whether building a shared library
actually works".  At the moment this is failing as $SHLD (and $LDSHFLAGS -
look at the value this is set to for Solaris) are designed to be used from
a Makefile and not within configure so this test will always fail!

Tridge has suggested moving to libtool^H^H^H^H^H a shell script that
invokes the right linker with the right args and solves this problem
nicely.

22 years agoAlso look for libinsure.so where the full version installs it.
Tim Potter [Thu, 4 Apr 2002 04:54:44 +0000 (04:54 +0000)]
Also look for libinsure.so where the full version installs it.

22 years agoFree popt context after argument parsing.
Tim Potter [Thu, 4 Apr 2002 04:29:09 +0000 (04:29 +0000)]
Free popt context after argument parsing.

22 years agoFixed memory leak in make_pdb_context_name()
Tim Potter [Thu, 4 Apr 2002 03:53:43 +0000 (03:53 +0000)]
Fixed memory leak in make_pdb_context_name()

Some reformatting and spelling fixes.

22 years agoAdd non-ads version of net_ads_help for build on non-ads machines.
Jim McDonough [Thu, 4 Apr 2002 03:14:25 +0000 (03:14 +0000)]
Add non-ads version of net_ads_help for build on non-ads machines.

22 years agoCorrect error string function call to ads_errstr()
Jim McDonough [Thu, 4 Apr 2002 03:06:22 +0000 (03:06 +0000)]
Correct error string function call to ads_errstr()

22 years agoFix up conversion code from old winbindd versions (some testing needed).
Jeremy Allison [Thu, 4 Apr 2002 03:03:39 +0000 (03:03 +0000)]
Fix up conversion code from old winbindd versions (some testing needed).
Added time based cache size check (#ifdef'ed out by default, just didn't
want to lose the code).
Jeremy.

22 years agoTry harder next time to not duplicate function...take ads_err2string back
Jim McDonough [Thu, 4 Apr 2002 03:03:00 +0000 (03:03 +0000)]
Try harder next time to not duplicate function...take ads_err2string back
out since it's already in ads_errstr() in ads_status.c

22 years agoAdd ability to get specific net ads subcommand help. Not all have been
Jim McDonough [Thu, 4 Apr 2002 02:54:47 +0000 (02:54 +0000)]
Add ability to get specific net ads subcommand help.  Not all have been
implemented yet...

22 years agoAdd net ads user subcommands: add delete info. Also make user listing format
Jim McDonough [Thu, 4 Apr 2002 02:53:42 +0000 (02:53 +0000)]
Add net ads user subcommands: add delete info.  Also make user listing format
consistent with rap version.

22 years agoAdd libads/ldap_user.c to build for ads user management.
Jim McDonough [Thu, 4 Apr 2002 02:52:09 +0000 (02:52 +0000)]
Add libads/ldap_user.c to build for ads user management.

22 years agoContains functions to manage/view AD user accounts via ldap. Initially has fns
Jim McDonough [Thu, 4 Apr 2002 02:51:02 +0000 (02:51 +0000)]
Contains functions to manage/view AD user accounts via ldap.  Initially has fns
to find and add a user.

22 years agoAdd ads_err2string() function for generating error strings from an ADS_STATUS.
Jim McDonough [Thu, 4 Apr 2002 02:49:30 +0000 (02:49 +0000)]
Add ads_err2string() function for generating error strings from an ADS_STATUS.
I've got the cases besides gssapi...anyone know how to get those?

22 years agoFixed the handle leak in the connection management code (this code is crap
Jeremy Allison [Thu, 4 Apr 2002 02:39:57 +0000 (02:39 +0000)]
Fixed the handle leak in the connection management code (this code is crap
and should be rewritten, just not now... :-).
Jeremy.

22 years agoRerun autoconf.
Tim Potter [Thu, 4 Apr 2002 02:32:08 +0000 (02:32 +0000)]
Rerun autoconf.

22 years agoAdd -D__INSURE__ to the CPPFLAGS if CC=insure.
Tim Potter [Thu, 4 Apr 2002 02:30:54 +0000 (02:30 +0000)]
Add -D__INSURE__ to the CPPFLAGS if CC=insure.

22 years agoMore winbind for HPUX updates from Don Mccall. I think JRA has already
Andrew Bartlett [Wed, 3 Apr 2002 21:39:01 +0000 (21:39 +0000)]
More winbind for HPUX updates from Don Mccall.  I think JRA has already
applied these to 2.2.

Andrew Bartlett

22 years agoreorder useage message a little. -L is not a root-only or local mode option.
Herb Lewis [Wed, 3 Apr 2002 16:44:15 +0000 (16:44 +0000)]
reorder useage message a little. -L is not a root-only or local mode option.

22 years agoStart to make argument ordering consistent.
Tim Potter [Wed, 3 Apr 2002 04:47:44 +0000 (04:47 +0000)]
Start to make argument ordering consistent.

22 years agoDocstring updates.
Tim Potter [Wed, 3 Apr 2002 04:40:35 +0000 (04:40 +0000)]
Docstring updates.

22 years agoUse Py_InitModule3() instead of Py_InitModule4() when we only want to set
Tim Potter [Wed, 3 Apr 2002 04:38:59 +0000 (04:38 +0000)]
Use Py_InitModule3() instead of Py_InitModule4() when we only want to set
the docstring for the module.

Doc updates.

22 years agoremoving unused files....
Gerald Carter [Wed, 3 Apr 2002 03:06:22 +0000 (03:06 +0000)]
removing unused files....

22 years agoFixed C++ comments.
Tim Potter [Wed, 3 Apr 2002 02:51:42 +0000 (02:51 +0000)]
Fixed C++ comments.

22 years agoadded "list <pipe>" command to display the available commands
Gerald Carter [Tue, 2 Apr 2002 23:28:40 +0000 (23:28 +0000)]
added "list <pipe>" command to display the available commands
one a single pipe

22 years agoFix continual scanning of smb.conf if an include file doesn't exist. Found
Jeremy Allison [Tue, 2 Apr 2002 19:56:54 +0000 (19:56 +0000)]
Fix continual scanning of smb.conf if an include file doesn't exist. Found
by Herb.
Jeremy.

22 years agoFixed the error bad path for recursive mkdir so mkdir \a\b\c\d works.
Jeremy Allison [Tue, 2 Apr 2002 19:34:36 +0000 (19:34 +0000)]
Fixed the error bad path for recursive mkdir so mkdir \a\b\c\d works.
Forward ported some of the code tidyups from 2.2.
Jeremy.

22 years agoFix from Stefan "metze" Metzmacher <metze@metzemix.de> to prevent us
Jeremy Allison [Tue, 2 Apr 2002 07:45:19 +0000 (07:45 +0000)]
Fix from Stefan "metze" Metzmacher <metze@metzemix.de> to prevent us
overwriting an old MACHINE.SID sid.
Jeremy.

22 years agoreadd -c config file change from 2.2 - works with -L mode now as well.
Herb Lewis [Tue, 2 Apr 2002 06:18:13 +0000 (06:18 +0000)]
readd -c config file change from 2.2 - works with -L mode now as well.

22 years agomerge from 2.2 - build winbindd and libsmbclient
Herb Lewis [Tue, 2 Apr 2002 05:54:55 +0000 (05:54 +0000)]
merge from 2.2 - build winbindd and libsmbclient

22 years agosome mergee from SAMBA_2_2. Does compile, but needs some more testing.
Gerald Carter [Tue, 2 Apr 2002 01:10:41 +0000 (01:10 +0000)]
some mergee from SAMBA_2_2.  Does compile, but needs some more testing.
This is an intermediate check-in.  More to come....

22 years ago* merges from SAMBA_2_2
Gerald Carter [Mon, 1 Apr 2002 15:19:05 +0000 (15:19 +0000)]
* merges from SAMBA_2_2
* addedd "private dir" to smb.conf.5.sgml
* regenerated man pages, HOWTOs, etc...

22 years agonot all versions of gcc support -rdynamic
Andrew Tridgell [Mon, 1 Apr 2002 09:52:36 +0000 (09:52 +0000)]
not all versions of gcc support -rdynamic

for example, gcc 2.95.2 on sco1 doesn't

22 years agotry to get the summary test working on OpenBSD
Andrew Tridgell [Mon, 1 Apr 2002 07:29:43 +0000 (07:29 +0000)]
try to get the summary test working on OpenBSD

22 years agocope with a missing PAM define
Andrew Tridgell [Mon, 1 Apr 2002 07:16:06 +0000 (07:16 +0000)]
cope with a missing PAM define

22 years agoreverted Herbs smbpasswd commit as it completely broke setting a
Andrew Tridgell [Mon, 1 Apr 2002 02:04:11 +0000 (02:04 +0000)]
reverted Herbs smbpasswd commit as it completely broke setting a
password

22 years agoRemoved unused variable.
Tim Potter [Sun, 31 Mar 2002 06:00:37 +0000 (06:00 +0000)]
Removed unused variable.

22 years agoModified programs installed to /usr/bin and /usr/sbin
John Terpstra [Sun, 31 Mar 2002 00:00:21 +0000 (00:00 +0000)]
Modified programs installed to /usr/bin and /usr/sbin
Note: This is a developmental (read experiemental) SPEC file and NOT for production use.

22 years agoAdded smbwrapper and everything to build options.
John Terpstra [Sat, 30 Mar 2002 20:28:17 +0000 (20:28 +0000)]
Added smbwrapper and everything to build options.

22 years agoAdded build option for "everything". Changed build options for libsmbclient.
John Terpstra [Sat, 30 Mar 2002 20:26:50 +0000 (20:26 +0000)]
Added build option for "everything". Changed build options for libsmbclient.

22 years agomerge from 2.2 - allow -c option to specify smb.conf file
Herb Lewis [Sat, 30 Mar 2002 05:57:36 +0000 (05:57 +0000)]
merge from 2.2 - allow -c option to specify smb.conf file

22 years agoHack to share pipe handles between lsa and samr pipes as NT4.x usrmgr
Jeremy Allison [Sat, 30 Mar 2002 00:45:26 +0000 (00:45 +0000)]
Hack to share pipe handles between lsa and samr pipes as NT4.x usrmgr
insists on re-using an lsa handle opened on a pipe then closed - this
keeps them around so long as a samr pipe is also open.
Jeremy.

22 years agosync with 2.2 branch
Herb Lewis [Fri, 29 Mar 2002 21:55:52 +0000 (21:55 +0000)]
sync with 2.2 branch

22 years agoDon't core dump listing thousands of users in usrmgr.
Jeremy Allison [Fri, 29 Mar 2002 21:50:21 +0000 (21:50 +0000)]
Don't core dump listing thousands of users in usrmgr.
Jeremy.

22 years agoRe-implemented net ads user and net ads group to use the new
Jim McDonough [Fri, 29 Mar 2002 21:09:44 +0000 (21:09 +0000)]
Re-implemented net ads user and net ads group to use the new
ads_process_results function.  Also made sure net rap user and net ads
user display the same thing, to make auto-transport-detection smoother.

22 years agoAdded ads_process_results(), which takes a function that is called for each
Jim McDonough [Fri, 29 Mar 2002 21:06:33 +0000 (21:06 +0000)]
Added ads_process_results(), which takes a function that is called for each
entry returned from a search, and applies it to the results.  Re-structured
ads_dump to use this, plus changed the ber_free in ads_dump from (b,1) to
(b,0), in accordance with openldap manpages.  Also allows proper free of
result using ldap_msgfree afterwards, so you can do something with the
results after an ads_dump.

22 years agoEnsure we return a parseable value if invalid handle given.
Jeremy Allison [Fri, 29 Mar 2002 20:37:56 +0000 (20:37 +0000)]
Ensure we return a parseable value if invalid handle given.
Jeremy.

22 years agomerge winbindd WINS changes from 2.2
Herb Lewis [Fri, 29 Mar 2002 15:37:39 +0000 (15:37 +0000)]
merge winbindd WINS changes from 2.2

22 years agoadded shutdown to smbd
Jean-François Micouleau [Fri, 29 Mar 2002 14:28:38 +0000 (14:28 +0000)]
added shutdown to smbd

J.F.

22 years agonmbd handle shutdown message.
Jean-François Micouleau [Fri, 29 Mar 2002 13:58:32 +0000 (13:58 +0000)]
nmbd handle shutdown message.

J.F.

22 years agoadded a shutdown command to smbcontrol.
Jean-François Micouleau [Fri, 29 Mar 2002 13:49:48 +0000 (13:49 +0000)]
added a shutdown command to smbcontrol.

have to add the server side now.

J.F.

22 years agoFix to stop PERMANENT_NAMES being added when nmbd starts up and WINS
Jeremy Allison [Fri, 29 Mar 2002 00:57:35 +0000 (00:57 +0000)]
Fix to stop PERMANENT_NAMES being added when nmbd starts up and WINS
server is down. Keep adding refreshible names instead.
Jeremy.

22 years agoRefresh from sgml source. HTML doesn't come out ok on mine, though, so
Jim McDonough [Thu, 28 Mar 2002 16:45:42 +0000 (16:45 +0000)]
Refresh from sgml source.  HTML doesn't come out ok on mine, though, so
someone should really re-run it.  It's a newer version of Docbook2X
than Jerry is running...and something we need has changed.

22 years agomerge from SAMBA_2_2
Gerald Carter [Thu, 28 Mar 2002 16:44:26 +0000 (16:44 +0000)]
merge from SAMBA_2_2

22 years agoAborted experiment to avoid namespace pollution and prototype hell and
Tim Potter [Thu, 28 Mar 2002 04:14:43 +0000 (04:14 +0000)]
Aborted experiment to avoid namespace pollution and prototype hell and
moved to 'make proto' based solution.

22 years agoAdded another return type.
Tim Potter [Thu, 28 Mar 2002 04:12:39 +0000 (04:12 +0000)]
Added another return type.

22 years agoUse headername when closing off include file guards.
Tim Potter [Thu, 28 Mar 2002 03:43:54 +0000 (03:43 +0000)]
Use headername when closing off include file guards.

22 years agoUse winbind separator in sid_to_name() function.
Tim Potter [Thu, 28 Mar 2002 03:22:41 +0000 (03:22 +0000)]
Use winbind separator in sid_to_name() function.

Implemented auth() and auth_crap() functions.

Expanded docstrings for exported functions, with examples.  Now 'pydoc
winbind' returns a nice looking manual page!

Wrote module docstring.

22 years agoa dodgy fix for a dodgy race condition in smbtorture child startup
Andrew Tridgell [Thu, 28 Mar 2002 02:42:25 +0000 (02:42 +0000)]
a dodgy fix for a dodgy race condition in smbtorture child startup

22 years agoEnsure that setting file length can return disk full on failure.
Jeremy Allison [Thu, 28 Mar 2002 01:00:31 +0000 (01:00 +0000)]
Ensure that setting file length can return disk full on failure.
Jeremy.

22 years agoUpdated version.
Tim Potter [Thu, 28 Mar 2002 00:08:47 +0000 (00:08 +0000)]
Updated version.

22 years agoScript to generate patch to Makefile.in and configure.in
Tim Potter [Thu, 28 Mar 2002 00:04:45 +0000 (00:04 +0000)]
Script to generate patch to Makefile.in and configure.in

Run like:

python/mkpatch

22 years agoAdded sys_adminlog() system for info the appliance admins really
Jeremy Allison [Wed, 27 Mar 2002 23:17:50 +0000 (23:17 +0000)]
Added sys_adminlog() system for info the appliance admins really
need to know about. Different from the DEBUG system.
Jeremy.

22 years agomerge from 2.2 - don't check local passdb if -r option used
Herb Lewis [Wed, 27 Mar 2002 19:20:48 +0000 (19:20 +0000)]
merge from 2.2 - don't check local passdb if -r option used

22 years agomerge from SAMBA_2_2
Gerald Carter [Wed, 27 Mar 2002 17:39:01 +0000 (17:39 +0000)]
merge from SAMBA_2_2

22 years agoUpdated for long flags from popt conversion, as well as version number.
Jim McDonough [Wed, 27 Mar 2002 16:36:24 +0000 (16:36 +0000)]
Updated for long flags from popt conversion, as well as version number.

Once again, can someone run docbook on this?

22 years agoUpdate smbstatus manpage source. Includes corrections of some flags,
Jim McDonough [Wed, 27 Mar 2002 16:02:26 +0000 (16:02 +0000)]
Update smbstatus manpage source.  Includes corrections of some flags,
addition of long flags from conversion to popt, and update of the version
number.  Can someone with working docbook do the magic to this thing?

22 years agoTold make to build nsswitch/pam_winbind.so - someone changed the Makefile
John Terpstra [Wed, 27 Mar 2002 08:54:37 +0000 (08:54 +0000)]
Told make to build nsswitch/pam_winbind.so - someone changed the Makefile
and not it has to be separately specified, but that's OK.

22 years agoConverted to #include *.c format.
Tim Potter [Wed, 27 Mar 2002 05:36:13 +0000 (05:36 +0000)]
Converted to #include *.c format.

22 years agoBroke out stuff into other files.
Tim Potter [Wed, 27 Mar 2002 05:33:19 +0000 (05:33 +0000)]
Broke out stuff into other files.

22 years agoMoved pyconv definitions across.
Tim Potter [Wed, 27 Mar 2002 05:28:42 +0000 (05:28 +0000)]
Moved pyconv definitions across.

Fixed misc compile problems.

22 years agoFixed bug in guards.
Tim Potter [Wed, 27 Mar 2002 05:27:08 +0000 (05:27 +0000)]
Fixed bug in guards.

22 years agoConverted to #include *.c format to avoid namespace pollution and
Tim Potter [Wed, 27 Mar 2002 05:25:57 +0000 (05:25 +0000)]
Converted to #include *.c format to avoid namespace pollution and
header file madness.

22 years agoMoved general printer related calls here.
Tim Potter [Wed, 27 Mar 2002 05:25:13 +0000 (05:25 +0000)]
Moved general printer related calls here.

22 years agoMoved printer driver related calls here.
Tim Potter [Wed, 27 Mar 2002 05:23:42 +0000 (05:23 +0000)]
Moved printer driver related calls here.

22 years agoWhoops, left the paged control not critical in the paged search...kind of
Jim McDonough [Wed, 27 Mar 2002 03:09:50 +0000 (03:09 +0000)]
Whoops, left the paged control not critical in the paged search...kind of
defeats the purpose.

22 years agoRemoved HAVE_LIBDL from most places (except system.c). Added checks for
Jeremy Allison [Wed, 27 Mar 2002 03:00:39 +0000 (03:00 +0000)]
Removed HAVE_LIBDL from most places (except system.c). Added checks for
dlopen & friends into configure.in. This should help building on *BSD
where dl*** calls are in libc.
Jeremy

22 years agoAdd server control to prevent referrals in paged searches. This keeps
Jim McDonough [Wed, 27 Mar 2002 02:58:58 +0000 (02:58 +0000)]
Add server control to prevent referrals in paged searches.  This keeps
the scope limited to the domain at hand, and also keeps the openldap
libs happy, since they don't currently chase referrals and return
server controls properly at the same time.

22 years agoAllow hosts allow/deny to use xx.xx.xx.xx/yy syntax.
Jeremy Allison [Wed, 27 Mar 2002 01:56:31 +0000 (01:56 +0000)]
Allow hosts allow/deny to use xx.xx.xx.xx/yy syntax.
Jeremy.

22 years agoIn msleep - never sleep for more than 1 second. Cope with time changes.
Jeremy Allison [Wed, 27 Mar 2002 00:39:26 +0000 (00:39 +0000)]
In msleep - never sleep for more than 1 second. Cope with time changes.
Jeremy.

22 years agoMoved debug messages for grabbing/releasing mutex.
Jeremy Allison [Wed, 27 Mar 2002 00:02:49 +0000 (00:02 +0000)]
Moved debug messages for grabbing/releasing mutex.
Jeremy.

22 years agoUnblock sigusr1 on startup.
Tim Potter [Tue, 26 Mar 2002 23:04:06 +0000 (23:04 +0000)]
Unblock sigusr1 on startup.

22 years agoDon't hold the mutex for more than 20 seconds.
Jeremy Allison [Tue, 26 Mar 2002 22:36:27 +0000 (22:36 +0000)]
Don't hold the mutex for more than 20 seconds.
Jeremy.

22 years agoAdded code for smb messaging. winbindd now responds to the smbcontrol
Tim Potter [Tue, 26 Mar 2002 22:33:06 +0000 (22:33 +0000)]
Added code for smb messaging.  winbindd now responds to the smbcontrol
ping, debug and pool-usage messages.

22 years agoDon't do a zero-length malloc (caught with dmalloc library).
Jeremy Allison [Tue, 26 Mar 2002 19:45:28 +0000 (19:45 +0000)]
Don't do a zero-length malloc (caught with dmalloc library).
Jeremy.

22 years agoMoved conv functions to separate file.
Tim Potter [Tue, 26 Mar 2002 11:12:16 +0000 (11:12 +0000)]
Moved conv functions to separate file.

Converted remaining functions to methods.

22 years ago#include "py_conv.h"
Tim Potter [Tue, 26 Mar 2002 11:09:35 +0000 (11:09 +0000)]
#include "py_conv.h"

22 years agoAdded ports and conversion routines.
Tim Potter [Tue, 26 Mar 2002 11:09:07 +0000 (11:09 +0000)]
Added ports and conversion routines.

22 years agoRegenerated patch.
Tim Potter [Tue, 26 Mar 2002 11:08:25 +0000 (11:08 +0000)]
Regenerated patch.

22 years agoPort related functions.
Tim Potter [Tue, 26 Mar 2002 11:08:09 +0000 (11:08 +0000)]
Port related functions.

22 years agoSamba structure <-> Python dictionary helper functions.
Tim Potter [Tue, 26 Mar 2002 11:07:45 +0000 (11:07 +0000)]
Samba structure <-> Python dictionary helper functions.

22 years agoMoved form related functions as methods in the policy handle object.
Tim Potter [Tue, 26 Mar 2002 06:25:47 +0000 (06:25 +0000)]
Moved form related functions as methods in the policy handle object.