Jim McDonough [Thu, 4 Apr 2002 16:48:23 +0000 (16:48 +0000)]
Cleanups to make auto-detection of method on net user smoother.
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.
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.
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.
Tim Potter [Thu, 4 Apr 2002 06:47:20 +0000 (06:47 +0000)]
Spelling.
Tim Potter [Thu, 4 Apr 2002 06:40:17 +0000 (06:40 +0000)]
Call poptFreeContext() as appropriate.
Clean up exit path code.
Tim Potter [Thu, 4 Apr 2002 06:11:22 +0000 (06:11 +0000)]
oops
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().
Tim Potter [Thu, 4 Apr 2002 05:48:27 +0000 (05:48 +0000)]
Rerun autoconf.
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.
Tim Potter [Thu, 4 Apr 2002 04:54:44 +0000 (04:54 +0000)]
Also look for libinsure.so where the full version installs it.
Tim Potter [Thu, 4 Apr 2002 04:29:09 +0000 (04:29 +0000)]
Free popt context after argument parsing.
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.
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.
Jim McDonough [Thu, 4 Apr 2002 03:06:22 +0000 (03:06 +0000)]
Correct error string function call to ads_errstr()
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.
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
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...
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.
Jim McDonough [Thu, 4 Apr 2002 02:52:09 +0000 (02:52 +0000)]
Add libads/ldap_user.c to build for ads user management.
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.
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?
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.
Tim Potter [Thu, 4 Apr 2002 02:32:08 +0000 (02:32 +0000)]
Rerun autoconf.
Tim Potter [Thu, 4 Apr 2002 02:30:54 +0000 (02:30 +0000)]
Add -D__INSURE__ to the CPPFLAGS if CC=insure.
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
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.
Tim Potter [Wed, 3 Apr 2002 04:47:44 +0000 (04:47 +0000)]
Start to make argument ordering consistent.
Tim Potter [Wed, 3 Apr 2002 04:40:35 +0000 (04:40 +0000)]
Docstring updates.
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.
Gerald Carter [Wed, 3 Apr 2002 03:06:22 +0000 (03:06 +0000)]
removing unused files....
Tim Potter [Wed, 3 Apr 2002 02:51:42 +0000 (02:51 +0000)]
Fixed C++ comments.
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
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.
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.
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.
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.
Herb Lewis [Tue, 2 Apr 2002 05:54:55 +0000 (05:54 +0000)]
merge from 2.2 - build winbindd and libsmbclient
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....
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...
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
Andrew Tridgell [Mon, 1 Apr 2002 07:29:43 +0000 (07:29 +0000)]
try to get the summary test working on OpenBSD
Andrew Tridgell [Mon, 1 Apr 2002 07:16:06 +0000 (07:16 +0000)]
cope with a missing PAM define
Andrew Tridgell [Mon, 1 Apr 2002 02:04:11 +0000 (02:04 +0000)]
reverted Herbs smbpasswd commit as it completely broke setting a
password
Tim Potter [Sun, 31 Mar 2002 06:00:37 +0000 (06:00 +0000)]
Removed unused variable.
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.
John Terpstra [Sat, 30 Mar 2002 20:28:17 +0000 (20:28 +0000)]
Added smbwrapper and everything to build options.
John Terpstra [Sat, 30 Mar 2002 20:26:50 +0000 (20:26 +0000)]
Added build option for "everything". Changed build options for libsmbclient.
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
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.
Herb Lewis [Fri, 29 Mar 2002 21:55:52 +0000 (21:55 +0000)]
sync with 2.2 branch
Jeremy Allison [Fri, 29 Mar 2002 21:50:21 +0000 (21:50 +0000)]
Don't core dump listing thousands of users in usrmgr.
Jeremy.
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.
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.
Jeremy Allison [Fri, 29 Mar 2002 20:37:56 +0000 (20:37 +0000)]
Ensure we return a parseable value if invalid handle given.
Jeremy.
Herb Lewis [Fri, 29 Mar 2002 15:37:39 +0000 (15:37 +0000)]
merge winbindd WINS changes from 2.2
Jean-François Micouleau [Fri, 29 Mar 2002 14:28:38 +0000 (14:28 +0000)]
added shutdown to smbd
J.F.
Jean-François Micouleau [Fri, 29 Mar 2002 13:58:32 +0000 (13:58 +0000)]
nmbd handle shutdown message.
J.F.
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.
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.
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.
Gerald Carter [Thu, 28 Mar 2002 16:44:26 +0000 (16:44 +0000)]
merge from SAMBA_2_2
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.
Tim Potter [Thu, 28 Mar 2002 04:12:39 +0000 (04:12 +0000)]
Added another return type.
Tim Potter [Thu, 28 Mar 2002 03:43:54 +0000 (03:43 +0000)]
Use headername when closing off include file guards.
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.
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
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.
Tim Potter [Thu, 28 Mar 2002 00:08:47 +0000 (00:08 +0000)]
Updated version.
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
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.
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
Gerald Carter [Wed, 27 Mar 2002 17:39:01 +0000 (17:39 +0000)]
merge from SAMBA_2_2
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?
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?
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.
Tim Potter [Wed, 27 Mar 2002 05:36:13 +0000 (05:36 +0000)]
Converted to #include *.c format.
Tim Potter [Wed, 27 Mar 2002 05:33:19 +0000 (05:33 +0000)]
Broke out stuff into other files.
Tim Potter [Wed, 27 Mar 2002 05:28:42 +0000 (05:28 +0000)]
Moved pyconv definitions across.
Fixed misc compile problems.
Tim Potter [Wed, 27 Mar 2002 05:27:08 +0000 (05:27 +0000)]
Fixed bug in guards.
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.
Tim Potter [Wed, 27 Mar 2002 05:25:13 +0000 (05:25 +0000)]
Moved general printer related calls here.
Tim Potter [Wed, 27 Mar 2002 05:23:42 +0000 (05:23 +0000)]
Moved printer driver related calls here.
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.
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
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.
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.
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.
Jeremy Allison [Wed, 27 Mar 2002 00:02:49 +0000 (00:02 +0000)]
Moved debug messages for grabbing/releasing mutex.
Jeremy.
Tim Potter [Tue, 26 Mar 2002 23:04:06 +0000 (23:04 +0000)]
Unblock sigusr1 on startup.
Jeremy Allison [Tue, 26 Mar 2002 22:36:27 +0000 (22:36 +0000)]
Don't hold the mutex for more than 20 seconds.
Jeremy.
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.
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.
Tim Potter [Tue, 26 Mar 2002 11:12:16 +0000 (11:12 +0000)]
Moved conv functions to separate file.
Converted remaining functions to methods.
Tim Potter [Tue, 26 Mar 2002 11:09:35 +0000 (11:09 +0000)]
#include "py_conv.h"
Tim Potter [Tue, 26 Mar 2002 11:09:07 +0000 (11:09 +0000)]
Added ports and conversion routines.
Tim Potter [Tue, 26 Mar 2002 11:08:25 +0000 (11:08 +0000)]
Regenerated patch.
Tim Potter [Tue, 26 Mar 2002 11:08:09 +0000 (11:08 +0000)]
Port related functions.
Tim Potter [Tue, 26 Mar 2002 11:07:45 +0000 (11:07 +0000)]
Samba structure <-> Python dictionary helper functions.
Tim Potter [Tue, 26 Mar 2002 06:25:47 +0000 (06:25 +0000)]
Moved form related functions as methods in the policy handle object.