ira/wip.git
22 years agorpc_server/srv_srvsvc_nt.c: Don't test an uint32 for < 0.
Jeremy Allison [Tue, 19 Jun 2001 00:44:23 +0000 (00:44 +0000)]
rpc_server/srv_srvsvc_nt.c: Don't test an uint32 for < 0.
utils/smbcacls.c: Set enum correctly.
Jeremy.

22 years agoAdded $(PROFILE_OBJ) to winbindd objects.
Tim Potter [Tue, 19 Jun 2001 00:29:00 +0000 (00:29 +0000)]
Added $(PROFILE_OBJ) to winbindd objects.

22 years agoSet support for info levels...
Jeremy Allison [Tue, 19 Jun 2001 00:11:12 +0000 (00:11 +0000)]
Set support for info levels...
Jeremy.

22 years agoBest-effort so far implementation of new W2K info levels.
Jeremy Allison [Mon, 18 Jun 2001 23:42:41 +0000 (23:42 +0000)]
Best-effort so far implementation of new W2K info levels.
An-embrace-and-extending we will go...
Jeremy.

22 years agoNew info level tester.
Jeremy Allison [Mon, 18 Jun 2001 23:31:22 +0000 (23:31 +0000)]
New info level tester.
Jeremy.

22 years agoFix for assert fail - left over when moved to dynamic allocation.
Jeremy Allison [Mon, 18 Jun 2001 21:34:01 +0000 (21:34 +0000)]
Fix for assert fail - left over when moved to dynamic allocation.
Jeremy.

22 years agoAdded patches to remove Linux specific XFS ACLs. These are now handled by the
Jeremy Allison [Mon, 18 Jun 2001 20:27:35 +0000 (20:27 +0000)]
Added patches to remove Linux specific XFS ACLs. These are now handled by the
generic Linux ACL code.
rpc_server/srv_samr_nt.c: Don't delete a policy handle before it's created.
Jeremy.

22 years agoAdded "Jim McDonough" <jmcd@us.ibm.com> patches for directory support
Jeremy Allison [Mon, 18 Jun 2001 17:52:58 +0000 (17:52 +0000)]
Added "Jim McDonough" <jmcd@us.ibm.com> patches for directory support
for Win9x.
Jeremy.

22 years agoadded a oplock break handler hook to the client code, this allows for more complete...
Andrew Tridgell [Mon, 18 Jun 2001 08:26:15 +0000 (08:26 +0000)]
added a oplock break handler hook to the client code, this allows for more complete testing of oplocks from smbtorture and would also be essential if a client app ever really did want to use oplocks properly

22 years agoRemoved silly Get_Hostbyname() wrapper as DNS names are case-insensitive
Tim Potter [Mon, 18 Jun 2001 05:42:18 +0000 (05:42 +0000)]
Removed silly Get_Hostbyname() wrapper as DNS names are case-insensitive
and the use of this function only increased timeouts when Samba queries
a broken DNS server.

22 years agoFixed typo in nmblookup example.
Tim Potter [Mon, 18 Jun 2001 02:29:02 +0000 (02:29 +0000)]
Fixed typo in nmblookup example.

22 years agoFixed typo in configure error message.
Tim Potter [Mon, 18 Jun 2001 02:27:33 +0000 (02:27 +0000)]
Fixed typo in configure error message.

22 years agoModified version of Jim's 0x27 and 0x28 Win9x Secdesc patch.
Jeremy Allison [Sat, 16 Jun 2001 00:32:13 +0000 (00:32 +0000)]
Modified version of Jim's 0x27 and 0x28 Win9x Secdesc patch.
Jeremy.

22 years agoJim McDonough's parse patches for Win9x get SD calls.
Jeremy Allison [Fri, 15 Jun 2001 20:08:12 +0000 (20:08 +0000)]
Jim McDonough's parse patches for Win9x get SD calls.
Jeremy.

22 years agoFixed typo spotted by "Jim McDonough" <jmcd@us.ibm.com>....
Jeremy Allison [Fri, 15 Jun 2001 19:48:03 +0000 (19:48 +0000)]
Fixed typo spotted by "Jim McDonough" <jmcd@us.ibm.com>....
Jeremy.

22 years agoBe sure to not use strlen with NULL pointer.
Simo Sorce [Fri, 15 Jun 2001 08:00:36 +0000 (08:00 +0000)]
Be sure to not use strlen with NULL pointer.

22 years agoPrototype update.
Tim Potter [Fri, 15 Jun 2001 07:22:27 +0000 (07:22 +0000)]
Prototype update.

22 years agoAdded a unix error code for NT_STATUS_PATH_NOT_COVERED.
Tim Potter [Fri, 15 Jun 2001 07:13:12 +0000 (07:13 +0000)]
Added a unix error code for NT_STATUS_PATH_NOT_COVERED.

22 years agoAdd password length field to SAM_USER_INFO24 structure and fix init
Tim Potter [Fri, 15 Jun 2001 05:09:40 +0000 (05:09 +0000)]
Add password length field to SAM_USER_INFO24 structure and fix init
and parse function.

22 years agoMerged encode_pw_buffer() and nt_owf_genW() functions from TNG branch.
Tim Potter [Fri, 15 Jun 2001 04:47:05 +0000 (04:47 +0000)]
Merged encode_pw_buffer() and nt_owf_genW() functions from TNG branch.

23 years agoFixed some return code checks for cli_initialise() from False to NULL.
Tim Potter [Thu, 14 Jun 2001 00:08:42 +0000 (00:08 +0000)]
Fixed some return code checks for cli_initialise() from False to NULL.
Spotted by Joe Doran <joed@interlude.eu.org>

23 years agoOops - proto.h contained junk from another workarea.
Tim Potter [Wed, 13 Jun 2001 06:54:45 +0000 (06:54 +0000)]
Oops - proto.h contained junk from another workarea.

23 years agoAdded some msdfs client routines.
Tim Potter [Wed, 13 Jun 2001 06:37:02 +0000 (06:37 +0000)]
Added some msdfs client routines.

23 years agoRenamed -d option (make verbose) on smbstatus to -v.
Tim Potter [Wed, 13 Jun 2001 05:36:28 +0000 (05:36 +0000)]
Renamed -d option (make verbose) on smbstatus to -v.

Added -d <debuglevel> option.

23 years agoMake message receive fn static.
Jeremy Allison [Wed, 13 Jun 2001 01:08:27 +0000 (01:08 +0000)]
Make message receive fn static.
Jeremy.

23 years agoFix from TAKAHASHI Motonobu <monyo@samba.gr.jp> for multibyte conversion
Jeremy Allison [Tue, 12 Jun 2001 18:20:26 +0000 (18:20 +0000)]
Fix from TAKAHASHI Motonobu <monyo@samba.gr.jp> for multibyte conversion
problems.
Jeremy.

23 years agoFixed typo in debug message.
Tim Potter [Tue, 12 Jun 2001 10:13:24 +0000 (10:13 +0000)]
Fixed typo in debug message.

23 years agoRemoved commented out msdfs code that was being called anyway.
Tim Potter [Tue, 12 Jun 2001 09:51:03 +0000 (09:51 +0000)]
Removed commented out msdfs code that was being called anyway.

23 years agolib/util_getent.c: removed debug code.
Jeremy Allison [Tue, 12 Jun 2001 01:49:30 +0000 (01:49 +0000)]
lib/util_getent.c: removed debug code.
smbd/posix_acls.c: Attempt to fix the "lose default acl" problem in Solaris.
Needs testing.
lib/sysacls.c: Typo fix.
Jeremy.

23 years agoFound & fixed memory bug. num+1 * sizeof(x) != (num+1)*sizeof(x)........
Jeremy Allison [Mon, 11 Jun 2001 22:06:11 +0000 (22:06 +0000)]
Found & fixed memory bug. num+1 * sizeof(x) != (num+1)*sizeof(x)........
Jeremy.

23 years agoFixed potential free of NULL found by SGI speedshop.
Jeremy Allison [Mon, 11 Jun 2001 20:56:18 +0000 (20:56 +0000)]
Fixed potential free of NULL found by SGI speedshop.
Jeremy.

23 years agoFixed typo in Solaris and UnixWare ACLs.
Jeremy Allison [Sat, 9 Jun 2001 03:10:27 +0000 (03:10 +0000)]
Fixed typo in Solaris and UnixWare ACLs.
Jeremy.

23 years ago*Wonderful* patch from Andrew Bartlett that will help ensure tdb's are
Jeremy Allison [Sat, 9 Jun 2001 01:38:54 +0000 (01:38 +0000)]
*Wonderful* patch from Andrew Bartlett that will help ensure tdb's are
cleaned on clients abending connections. Thanks Andrew !
Jeremy.

23 years agoHerb's IRIX fix for deleting default ACLs.
Jeremy Allison [Fri, 8 Jun 2001 21:27:46 +0000 (21:27 +0000)]
Herb's IRIX fix for deleting default ACLs.
Jeremy.

23 years agoLog tdb failures.
Jeremy Allison [Fri, 8 Jun 2001 20:26:46 +0000 (20:26 +0000)]
Log tdb failures.
Jeremy.

23 years agoAIX has no default acls.
Jeremy Allison [Fri, 8 Jun 2001 19:56:15 +0000 (19:56 +0000)]
AIX has no default acls.
Jeremy.

23 years agoAdded sys_acl_delete_def_file for UnixWare and Solaris from
Jeremy Allison [Fri, 8 Jun 2001 19:55:47 +0000 (19:55 +0000)]
Added sys_acl_delete_def_file for UnixWare and Solaris from
Michael Davidson <michael_davidson@pacbell.net>.
Jeremy.

23 years agoAdded sys_acl_delete_def_file() - needed as part of NT ACL editing fix.
Jeremy Allison [Fri, 8 Jun 2001 19:29:57 +0000 (19:29 +0000)]
Added sys_acl_delete_def_file() - needed as part of NT ACL editing fix.
Will add changes for other supported ACL systems shortly (Herb, I may
need help with the IRIX one).
Jeremy.

23 years agosyc up docs with 2.2
Gerald Carter [Fri, 8 Jun 2001 15:43:39 +0000 (15:43 +0000)]
syc up docs with 2.2

23 years agoExtra stuff for large readwrite support.
Jeremy Allison [Fri, 8 Jun 2001 03:02:34 +0000 (03:02 +0000)]
Extra stuff for large readwrite support.
Jeremy.

23 years agoCorrectly make max pathlength 255.
Jeremy Allison [Fri, 8 Jun 2001 02:49:30 +0000 (02:49 +0000)]
Correctly make max pathlength 255.
Jeremy.

23 years agoFix up the problems with calling smbc_init multiple times.
Richard Sharpe [Thu, 7 Jun 2001 22:17:01 +0000 (22:17 +0000)]
Fix up the problems with calling smbc_init multiple times.

23 years agoFixed typo in #ifndef at head of file.
Tim Potter [Thu, 7 Jun 2001 07:14:17 +0000 (07:14 +0000)]
Fixed typo in #ifndef at head of file.

23 years agoAdded comment about possible optimisation to winbindd_pam_auth()
Tim Potter [Thu, 7 Jun 2001 04:35:01 +0000 (04:35 +0000)]
Added comment about possible optimisation to winbindd_pam_auth()

23 years agoFixed bug in winbind_sid_to_gid() function.
Tim Potter [Thu, 7 Jun 2001 00:38:16 +0000 (00:38 +0000)]
Fixed bug in winbind_sid_to_gid() function.

23 years agoCorrection to winbind nss library install process. So how do I update the
Tim Potter [Wed, 6 Jun 2001 23:56:53 +0000 (23:56 +0000)]
Correction to winbind nss library install process.  So how do I update the
manual/html pages???

23 years agoAdded getconf flags for RH7.1 lfs support. Changed while() to a for()
Jeremy Allison [Wed, 6 Jun 2001 23:07:10 +0000 (23:07 +0000)]
Added getconf flags for RH7.1 lfs support. Changed while() to a for()
loop in Simo's code (removes much grp = gep->next code).
Jeremy.

23 years agoChanges to use new genrand code that got missed while I was in Japan.
Jeremy Allison [Wed, 6 Jun 2001 22:04:26 +0000 (22:04 +0000)]
Changes to use new genrand code that got missed while I was in Japan.
Jeremy.

23 years agoFix for cli_samr_connect() arg change.
Tim Potter [Wed, 6 Jun 2001 07:43:47 +0000 (07:43 +0000)]
Fix for cli_samr_connect() arg change.

23 years agoConverted SAMR_Q_LOOKUP_NAMES structure to tallocated memory instead of
Tim Potter [Wed, 6 Jun 2001 07:35:37 +0000 (07:35 +0000)]
Converted SAMR_Q_LOOKUP_NAMES structure to tallocated memory instead of
static arrays.

23 years agoAdded stub dfs client commands to rpcclient.
Tim Potter [Wed, 6 Jun 2001 07:35:08 +0000 (07:35 +0000)]
Added stub dfs client commands to rpcclient.

23 years agoAdded stubs for dfs rpc client routines.
Tim Potter [Wed, 6 Jun 2001 07:32:51 +0000 (07:32 +0000)]
Added stubs for dfs rpc client routines.

23 years agoPrototypes update.
Tim Potter [Wed, 6 Jun 2001 07:29:12 +0000 (07:29 +0000)]
Prototypes update.

23 years agoIndent dodgy function prototype to avoid make proto picking it up and
Tim Potter [Wed, 6 Jun 2001 07:27:44 +0000 (07:27 +0000)]
Indent dodgy function prototype to avoid make proto picking it up and
causing mayhem throughout the tree.

23 years agoFixups for new args to cli_samr_connect()
Tim Potter [Wed, 6 Jun 2001 07:18:58 +0000 (07:18 +0000)]
Fixups for new args to cli_samr_connect()

Added samlookupnames and samlookuprids rpcclient commands.

23 years agoFixed bug in cli_samr_create_dom_user()
Tim Potter [Wed, 6 Jun 2001 07:17:31 +0000 (07:17 +0000)]
Fixed bug in cli_samr_create_dom_user()

Added cli_samr_lookup_names()

Removed redundant argument to cli_samr_connect()

23 years agoConverted init_samr_q_lookup_names() and samr_io_q_lookup_names()
Tim Potter [Wed, 6 Jun 2001 07:15:34 +0000 (07:15 +0000)]
Converted init_samr_q_lookup_names() and samr_io_q_lookup_names()
to use tallocated memory instead of dodgy static arrays.

23 years agoSet correct reply word in large writeX (greater than 64k) replies.
Jeremy Allison [Tue, 5 Jun 2001 08:17:16 +0000 (08:17 +0000)]
Set correct reply word in large writeX (greater than 64k) replies.
Also added smbtorture test for this.
Jeremy.

23 years agoDeal with incorrect large writes from old NT4.x clients.
Jeremy Allison [Tue, 5 Jun 2001 06:29:57 +0000 (06:29 +0000)]
Deal with incorrect large writes from old NT4.x clients.
We still need to set the large write reply correctly.
Jeremy.

23 years agodon't use c++ style comments
Andrew Tridgell [Tue, 5 Jun 2001 02:28:47 +0000 (02:28 +0000)]
don't use c++ style comments

23 years agofixed solaris compilation error (don't add to a void*)
Andrew Tridgell [Tue, 5 Jun 2001 02:00:47 +0000 (02:00 +0000)]
fixed solaris compilation error (don't add to a void*)

23 years agoMerge of lsa_lookup_names() i18n bugfix from appliance.
Tim Potter [Tue, 5 Jun 2001 01:26:06 +0000 (01:26 +0000)]
Merge ... lsa_lookup_names() i18n bugfix from appliance.

23 years agouse LDSHFLAGS not -shared in several places
Andrew Tridgell [Mon, 4 Jun 2001 05:13:59 +0000 (05:13 +0000)]
use LDSHFLAGS not -shared in several places

23 years agoAdded add domain user to rpcclient.
Tim Potter [Mon, 4 Jun 2001 04:34:50 +0000 (04:34 +0000)]
Added add domain user to rpcclient.

Added cli_ functions for set userinfo and userinfo2.

23 years agoMore compile fixups for winbind portability.
Tim Potter [Mon, 4 Jun 2001 04:12:38 +0000 (04:12 +0000)]
More compile fixups for winbind portability.

23 years agoCompile fix for Solaris.
Tim Potter [Mon, 4 Jun 2001 03:15:41 +0000 (03:15 +0000)]
Compile fix for Solaris.

23 years agoCompile fix for solaris.
Tim Potter [Mon, 4 Jun 2001 03:14:56 +0000 (03:14 +0000)]
Compile fix for solaris.

Fixed some compiler warnings.

23 years agoCompile fix for wbinfo on solaris.
Tim Potter [Mon, 4 Jun 2001 02:23:08 +0000 (02:23 +0000)]
Compile fix for wbinfo on solaris.

23 years agoremoved SHLIBS until someone has time to get it to compile on more platforms (Richard?)
Andrew Tridgell [Sun, 3 Jun 2001 23:49:53 +0000 (23:49 +0000)]
removed SHLIBS until someone has time to get it to compile on more platforms (Richard?)

23 years agoUpdate prototype file.
Tim Potter [Sat, 2 Jun 2001 23:03:18 +0000 (23:03 +0000)]
Update prototype file.

23 years agoMerge of i18n domain name fix for lsa_query_info_policy() from appliance
Tim Potter [Sat, 2 Jun 2001 06:14:42 +0000 (06:14 +0000)]
Merge ... i18n domain name fix for lsa_query_info_policy() from appliance
branch.

23 years agoRemoved irritating and unecessary debug message.
Tim Potter [Sat, 2 Jun 2001 05:33:43 +0000 (05:33 +0000)]
Removed irritating and unecessary debug message.

23 years agoi18n bugfix merge from appliance.
Tim Potter [Sat, 2 Jun 2001 03:03:28 +0000 (03:03 +0000)]
i18n bugfix merge from appliance.

23 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

23 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

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

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

23 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

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

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

23 years agosync with SAMBA_2_2
Gerald Carter [Fri, 1 Jun 2001 11:56:08 +0000 (11:56 +0000)]
sync with SAMBA_2_2

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

23 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

23 years agoAdded *.po to .cvsignore files.
Tim Potter [Fri, 1 Jun 2001 11:26:20 +0000 (11:26 +0000)]
Added *.po to .cvsignore files.

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

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

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

23 years agomerge from 2.2
Gerald Carter [Thu, 31 May 2001 17:28:40 +0000 (17:28 +0000)]
merge from 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 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 agofixed asprintf declaration
Andrew Tridgell [Wed, 30 May 2001 13:53:20 +0000 (13:53 +0000)]
fixed asprintf declaration

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