tprouty/samba.git
16 years agoUpdate Makefile ...
Richard Sharpe [Thu, 13 Nov 2003 21:42:07 +0000 (21:42 +0000)]
Update Makefile ...
(This used to be commit b92fd87b2461dff0e05ad4a7b0a475539c21d4c0)

16 years agoAdd this to samba-head.
Richard Sharpe [Thu, 13 Nov 2003 21:40:27 +0000 (21:40 +0000)]
Add this to samba-head.
(This used to be commit d761175f131f80ae24549adca6ffc629f84a9803)

16 years ago* Fix from SATOH Fumiyasu for bug 660 (failing to view print
Gerald Carter [Thu, 13 Nov 2003 20:16:28 +0000 (20:16 +0000)]
* Fix from SATOH Fumiyasu for bug 660 (failing to view print
  jobs) by only enforce the 'max reported print jobs' parameter
  when it is non-zero.

* Fixed bug 338 by making sure that data values are written
  out when we are marshalling an EnumPrinterDataEx() reply.
  This probably fixes other bugs reported against point-n-print
  feature in 3.0.0
(This used to be commit d7026f6d178f6ed531bbf7d681d4efde0828616c)

16 years agoKeep configure.in in sync with SAMBA-3.0.0
Richard Sharpe [Thu, 13 Nov 2003 17:04:59 +0000 (17:04 +0000)]
Keep configure.in in sync with SAMBA-3.0.0
(This used to be commit 664cc4f46cf1be08c704a9d163ee33c8629ad065)

16 years agoshow locked files for -u <user>; bug 590
Gerald Carter [Wed, 12 Nov 2003 22:37:09 +0000 (22:37 +0000)]
show locked files for -u <user>; bug 590
(This used to be commit 3290582cb0542d1e2a7e1e5213614fca8788b070)

16 years ago> Omit html documentation tree because it has been moved to the separate
Rafal Szczesniak [Wed, 12 Nov 2003 21:47:25 +0000 (21:47 +0000)]
> Omit html documentation tree because it has been moved to the separate
> module. Install though, in case one recreates the tree as it was before.
>
>
> rafal

Same as in SAMBA_3_0 source tree.

rafal
(This used to be commit af972c76158069efe3817a4e6dce4826d883edf1)

16 years agofix crash bug due to empyrt munged dial string; patch from metze
Gerald Carter [Tue, 11 Nov 2003 19:22:44 +0000 (19:22 +0000)]
fix crash bug due to empyrt munged dial string; patch from metze
(This used to be commit aef7f54355a71e36963ed7427e9c2f05d26cc222)

16 years agoPatch from Andrew Bartlett <abartlet@samba.org> for security=server core
Jeremy Allison [Mon, 10 Nov 2003 19:33:40 +0000 (19:33 +0000)]
Patch from Andrew Bartlett <abartlet@samba.org> for security=server core
dump if server goes away.
Jeremy.
(This used to be commit a646cb60a24498451d379967a1da272fcd40875f)

16 years agoFrom 3_0:
Volker Lendecke [Sun, 9 Nov 2003 17:24:16 +0000 (17:24 +0000)]
From 3_0:

Skip over the winbind separator when looking up a user.

Volker
(This used to be commit efe36a44d3d35f2bbb3381916dfdfda80560b67c)

16 years agoMerge from 3.0:
Andrew Bartlett [Sun, 9 Nov 2003 09:30:21 +0000 (09:30 +0000)]
Merge from 3.0:

source/passdb/pdb_get_set.c:
I agree with vl's #if 0 here, and am not quite sure what I was
thinking with regard to the original code.

Let's keep samba simple, and just remove it.

source/rpc_server/srv_netlog_nt.c:
Remove compleatly wrong comments.  (There were correct, 2 years ago...)

source/intl/lang_tdb.c:
Add newline to debug message

Andrew Bartlett
(This used to be commit 2a8dbe03690b60f3d9c83de3cf6ce873aa0657bc)

16 years ago* only install swat html files once
Gerald Carter [Fri, 7 Nov 2003 23:04:52 +0000 (23:04 +0000)]
* only install swat html files once
* revert the change that prevent the guest
  account from being added to a passdb backend
  since it broke the build farm.
* apply patch from Alex Deiter to fix the
  "smbldap_open: cannot access when not root
  error" messages when looking up group
  information (bug 281)
(This used to be commit 20bd309239199d85accb2b7aac6d4dd73e414f85)

16 years agoHandle munged dial string. Patch from Aur?lien Degr?mont <adegremont@idealx.com>
Jeremy Allison [Fri, 7 Nov 2003 18:32:29 +0000 (18:32 +0000)]
Handle munged dial string. Patch from Aur?lien Degr?mont <adegremont@idealx.com>
with memory leak fixes by me.
Jeremy.
(This used to be commit daceed37387c517b3f0ab9c173f419215e3d676b)

16 years agofix for bug 680 (heads up). This gist is to map the
Gerald Carter [Fri, 7 Nov 2003 14:41:08 +0000 (14:41 +0000)]
fix for bug 680 (heads up).  This gist is to map the
UNIX entity foo to DOMAIN\foo instead of SERVER\foo
on members of a Samba domain when all UNIX accounts
are shared via NIS, et. al.

  * allow winbindd to match local accounts to domain SID
    when 'winbind trusted domains only = yes'

  * remove code in idmap_ldap that searches the user
    suffix and group suffix.  It's not needed and
    provides inconsistent functionality from the tdb backend.

This has been tested.  I'm still waiting on some more feedback
but This needs to be in 3.0.1pre2 for widespread use.
(This used to be commit cac4723e206bd001882011c9e12327064d032268)

16 years agodon't allow setting of the guest account
Gerald Carter [Fri, 7 Nov 2003 14:32:55 +0000 (14:32 +0000)]
don't allow setting of the guest account
(This used to be commit 1e461f06ec492dc3f139165932c3518a6dd416f9)

16 years agoFrom 3_0:
Volker Lendecke [Fri, 7 Nov 2003 10:12:43 +0000 (10:12 +0000)]
From 3_0:

Implement %i-Macro for the locally used IP address. With this you can again
have virtual hosts with different configurations on a single smbd even on port
445.

Volker
(This used to be commit 3a5130f231a0fd6f7490d3b028361ff0458bfae1)

16 years agoFrom 3_0:
Volker Lendecke [Fri, 7 Nov 2003 09:04:57 +0000 (09:04 +0000)]
From 3_0:

Simple rename of get_socket_addr to get_peer_addr and get_socket_name to
get_peer_name. This is to get closer to the getsockname/getpeername system
functions.

Next step will be the %i macro for the local IP address. I still want to play
%L-games in times of port 445.

Volker
(This used to be commit 99311b437be050fd9ee656cd184f299993d20bfb)

16 years agoFix bug #471. (const needed in lp_set_name_resolve_order).
Jeremy Allison [Thu, 6 Nov 2003 22:07:10 +0000 (22:07 +0000)]
Fix bug #471. (const needed in lp_set_name_resolve_order).
Jeremy.
(This used to be commit 5d52e6b3016960cc3be33d3cd15725cce5fd0580)

16 years agomerge's tpot build fix from 3.0
Gerald Carter [Thu, 6 Nov 2003 17:39:01 +0000 (17:39 +0000)]
merge's tpot build fix from 3.0
(This used to be commit ac9f9f9ea83b0419d3f1f95b57ff3ead625d7576)

16 years agorun krb5 logins through the username map if the winbindd lookup fails; bug 698
Gerald Carter [Thu, 6 Nov 2003 17:31:43 +0000 (17:31 +0000)]
run krb5 logins through the username map if the winbindd lookup fails; bug 698
(This used to be commit f7798571178d18aae9c0be5f437838222bfc25b9)

16 years agopatch from MORIYAMA Masayuki to save LDFLAGS during iconv detection; bug 570
Gerald Carter [Thu, 6 Nov 2003 17:24:24 +0000 (17:24 +0000)]
patch from MORIYAMA Masayuki to save LDFLAGS during iconv detection; bug 570
(This used to be commit 2277c6e06c2e5b3ace4b231ff8af03d2d29fac36)

16 years agobug 624; make sure to set the GUEST SID rather than using the PDB_DEFAULT flag
Gerald Carter [Thu, 6 Nov 2003 05:46:23 +0000 (05:46 +0000)]
bug 624; make sure to set the GUEST SID rather than using the PDB_DEFAULT flag
(This used to be commit 7a60693a47823c2a174886ad44e7af102440ba4d)

16 years agoMake the recent changes more pretty.
Richard Sharpe [Thu, 6 Nov 2003 05:37:30 +0000 (05:37 +0000)]
Make the recent changes more pretty.
(This used to be commit e490efd29a8a6b1fc7087b7dd51bbd41465803c3)

16 years agoBetter handling of iconv support and etc because gnu libiconv on FreeBSD
Richard Sharpe [Wed, 5 Nov 2003 23:36:00 +0000 (23:36 +0000)]
Better handling of iconv support and etc because gnu libiconv on FreeBSD
changed where it puts things :-)
(This used to be commit 123a516a6095e3fb6c2ad372b2800a825bbd2a13)

16 years agoMinor comment updates ...
Richard Sharpe [Wed, 5 Nov 2003 19:16:56 +0000 (19:16 +0000)]
Minor comment updates ...
(This used to be commit d7a0c6da0baf41faf0eb0b71f3576d3c3fbf7c62)

16 years agoMerge of 64-bit printf warning fixes.
Tim Potter [Wed, 5 Nov 2003 18:28:29 +0000 (18:28 +0000)]
Merge of 64-bit printf warning fixes.
(This used to be commit a6cc763333943bc6e360bb7e78cf9bfb1bc936e8)

16 years agoCompile tdbdump by default.
Volker Lendecke [Wed, 5 Nov 2003 17:39:24 +0000 (17:39 +0000)]
Compile tdbdump by default.

Volker
(This used to be commit 11da19dd5c2a6434b73a03eadedb5b877776b1f7)

16 years agoMerge from 3.0:
Tim Potter [Wed, 5 Nov 2003 17:37:08 +0000 (17:37 +0000)]
Merge from 3.0:

      Revision 1.82.2.24:

       Patch from James Henstridge to allow rpcclient adddriver
       command to specify printer driver version.  Closes bug #514.
(This used to be commit b873832e33ba251741ae4f091f93f4bb79d57bee)

16 years agoMerge of some compiler warning fixes.
Tim Potter [Wed, 5 Nov 2003 17:34:33 +0000 (17:34 +0000)]
Merge of some compiler warning fixes.
(This used to be commit 6a001dbd13c11f22b5d3c444fd1da3055f3afb67)

16 years agoMerge of setenv->putenv for winbind client.
Tim Potter [Wed, 5 Nov 2003 17:32:38 +0000 (17:32 +0000)]
Merge of setenv->putenv for winbind client.
(This used to be commit a26d425f93e43641195d0aaf0f9ce5ef0e69f5e1)

16 years agoMerge from 3.0:
Tim Potter [Wed, 5 Nov 2003 17:28:18 +0000 (17:28 +0000)]
Merge from 3.0:

      Revision 1.42.2.8:

       Use the actual size of the buffer in strftime instead of a
       made up value which just happens to be less than
       sizeof(fstring).  Closes #713.
(This used to be commit 45c28f8a2723b5e942d13d1c6e5db757921fb64f)

16 years agoMerge from 3.0:
Tim Potter [Wed, 5 Nov 2003 17:26:43 +0000 (17:26 +0000)]
Merge from 3.0:

      Revision 1.10.2.6:

       Cast to fix warning on Solaris sendfile - check buildfarm
       output to see if this works!  Bug #706.
(This used to be commit 06c4fc35a7226e719c2748b818ecf4e18dd1a4fb)

16 years agoMerge from 3.0:
Tim Potter [Wed, 5 Nov 2003 17:21:22 +0000 (17:21 +0000)]
Merge from 3.0:

      Revision 1.16.2.6:

       Add prototype for smbc_remove_unused_server() to fix
       compiler warning.  Bug #706.
(This used to be commit 99f70d86fe17ce39d803fa23a135169e24d8a34e)

16 years agoMerge of uname cleanups from 3.0
Tim Potter [Wed, 5 Nov 2003 17:19:48 +0000 (17:19 +0000)]
Merge of uname cleanups from 3.0
(This used to be commit e7e17e6b4a6727088b0ea763db673de8035f2094)

16 years agoMerge from 3.0:
Tim Potter [Wed, 5 Nov 2003 17:18:46 +0000 (17:18 +0000)]
Merge from 3.0:

       Revision 1.209.2.44:

Fix crash bug in smbclient completion.  Closes bug #659.
(This used to be commit decc5d9a2525176c70a17d8928587889f5f6e6af)

16 years agoMerge from 3.0:
Tim Potter [Wed, 5 Nov 2003 17:17:35 +0000 (17:17 +0000)]
Merge from 3.0:

      Revision 1.468.2.193:

       Add ldaplibs to pdbedit link line.  Fixes bug #651.
(This used to be commit 079e00d1030130943791acd54b2af6036891c534)

16 years agoApply the changes that Derrell Lipman supplied ...
Richard Sharpe [Wed, 5 Nov 2003 16:58:25 +0000 (16:58 +0000)]
Apply the changes that Derrell Lipman supplied ...
(This used to be commit 600e056a33bd658a8e0eb41af9c83d32b9e2e082)

16 years agomake sure that we expand %H (from vl); bug 612
Gerald Carter [Wed, 5 Nov 2003 04:34:44 +0000 (04:34 +0000)]
make sure that we expand %H (from vl); bug  612
(This used to be commit d1cf39e2ecee7e76953a5eee386f723a46bf9b14)

16 years agoadded note about stripping comments from LDIF; bug 642
Gerald Carter [Wed, 5 Nov 2003 04:17:57 +0000 (04:17 +0000)]
added note about stripping comments from LDIF; bug 642
(This used to be commit 41aefed932df1938c5e6681c809150068a39292a)

16 years agoFix coredump in cli_get_backup_list.
Jeremy Allison [Wed, 5 Nov 2003 00:17:17 +0000 (00:17 +0000)]
Fix coredump in cli_get_backup_list.
Jeremy.
(This used to be commit 13d32f561b23f2d69daf103a971acbdae547703d)

16 years agoFix for bug #771. Fix packet length for browse list reply.
Jeremy Allison [Wed, 5 Nov 2003 00:12:53 +0000 (00:12 +0000)]
Fix for bug #771. Fix packet length for browse list reply.
Jeremy.
(This used to be commit dfea28a7731a0625e37ac43658f21b25e2fcce21)

16 years agoFix for bug #703, try lowercase netgroups lookups.
Jeremy Allison [Tue, 4 Nov 2003 18:24:30 +0000 (18:24 +0000)]
Fix for bug #703, try lowercase netgroups lookups.
Jeremy.
(This used to be commit b7ce6294bbff9ef82b34d900fe836ff2e3c5abe1)

16 years agoTDBSAM update code from Aur?lien Degr?mont <adegremont@idealx.com>.
Jeremy Allison [Mon, 3 Nov 2003 23:59:45 +0000 (23:59 +0000)]
TDBSAM update code from Aur?lien Degr?mont <adegremont@idealx.com>.
Adds support for an additional field (uint32) which represents the
lockout duration. I think this should be stored as an abolute
UNIX time_t that specifies when the lockout should end - set it
when the lockout is imposed. This new code also updates the on
disk tdb version on load. Being merged into HEAD so Simo can
add any other changes he wants before being back-ported to
SAMBA_3_0.
Jeremy.
(This used to be commit 0eea3f22aba25c1d0a8800bb1725238422cb30eb)

16 years agoFix for winbindd on HPUX from albert chin (china@thewrittenword.com)
Jeremy Allison [Mon, 3 Nov 2003 21:05:50 +0000 (21:05 +0000)]
Fix for winbindd on HPUX from albert chin (china@thewrittenword.com)
Jeremy.
(This used to be commit c2f38eb66578affb50cb15c73b297fb866be140b)

16 years agoremoving #include <compat.h> in hopes to avoid problems with apache header files...
Gerald Carter [Mon, 3 Nov 2003 19:23:05 +0000 (19:23 +0000)]
removing #include <compat.h> in hopes to avoid problems with apache header files; will watch the build farm on this to make sure things don't blow up
(This used to be commit b4d80ee74727a72aa8fe070d13e3ca5de71837ca)

16 years agoFrom 3_0:
Volker Lendecke [Mon, 3 Nov 2003 18:11:46 +0000 (18:11 +0000)]
From 3_0:

AC_CHECK_MEMBER seems to have problems for some versions of autoconf, at least
autoconf-2.53 on SLES8 does not correctly find the keyblock.

Volker
(This used to be commit f6cff956c441eec73360f71bbb4dd06f4f1ee897)

16 years agoFix duplicate libs problem in iconv detection code.
Tim Potter [Sun, 2 Nov 2003 16:31:38 +0000 (16:31 +0000)]
Fix duplicate libs problem in iconv detection code.
(This used to be commit a2feac08e89685c35a8cc18eaeac4c9316248f75)

16 years agoMerge of fix for bug 661 from 3.0
Tim Potter [Sun, 2 Nov 2003 04:16:14 +0000 (04:16 +0000)]
Merge of fix for bug 661 from 3.0
(This used to be commit c96d470af8dd9b5782d7c4f3e9fe5fa92f416f77)

16 years agoFrom 3_0:
Volker Lendecke [Sat, 1 Nov 2003 17:42:44 +0000 (17:42 +0000)]
From 3_0:

This binds the nmbd sending socket to the 'socket address'.

Hmmm. This is correct in 2.2. Obviously I did not test my 3.0 checkin at that
time. Now it hit me at a customer's site...

Volker
(This used to be commit b9179aed4d7e8ec95e0f8ff79e36403377773f0a)

16 years agoset- set-assword when invoking --set-auth-user and no pw
Gerald Carter [Fri, 31 Oct 2003 20:31:25 +0000 (20:31 +0000)]
set- set-assword when invoking --set-auth-user and no pw
is given (patch from Tom Dickson)
(This used to be commit aa2abd5800856120ddec6937955e961ff0c77c96)

16 years agoPatch from Aurélien Degrémont <adegremont@idealx.com>. "entry" is dependent
Jeremy Allison [Fri, 31 Oct 2003 19:16:57 +0000 (19:16 +0000)]
Patch from Aurélien Degrémont <adegremont@idealx.com>. "entry" is dependent
on "result", don't free result first.
Jeremy.
(This used to be commit 9b24715170c6ca5dd3d5df0675f430852ae6a50d)

16 years agoMerge from 3.0:
Tim Potter [Fri, 31 Oct 2003 03:17:01 +0000 (03:17 +0000)]
Merge from 3.0:

  Revision 1.50.2.12:

    Put in a work-around for ENOTSUP not being defined on OpenBSD.

  Revision 1.50.2.10-11

    Apply latest of Derrell Lippman's changes to libsmbclient.

    Commit Derrell's changes to libsmbclient plus a small change to
    configure.in to see if SGI and other platforms will build.
(This used to be commit e32826980eefeb501e4ae19c689d83153d9fe5e6)

16 years agoWhitespace syncup with 3.0
Tim Potter [Fri, 31 Oct 2003 03:02:31 +0000 (03:02 +0000)]
Whitespace syncup with 3.0
(This used to be commit 9746ef376d2a52ef6ef6b84421d6b7e988a6ca13)

16 years agoFormatting syncup with 3.0
Tim Potter [Fri, 31 Oct 2003 03:00:33 +0000 (03:00 +0000)]
Formatting syncup with 3.0
(This used to be commit 98881672f5c094181be7988b4d39b451f292e423)

16 years agoFix another unused warning.
Tim Potter [Fri, 31 Oct 2003 02:58:32 +0000 (02:58 +0000)]
Fix another unused warning.
(This used to be commit 9032e6eb2b4c7ed3d0689b95ed318cdf7ec048d7)

16 years agoFix spelling mistake.
Tim Potter [Fri, 31 Oct 2003 02:57:02 +0000 (02:57 +0000)]
Fix spelling mistake.
(This used to be commit cbd95c5a74bef4a6c8fd54a8fc24a50f11678cb7)

16 years agoMerge from 3.0:
Tim Potter [Fri, 31 Oct 2003 02:56:11 +0000 (02:56 +0000)]
Merge from 3.0:

  Revision 1.45.2.23:

    Changed output so all debug output goes to stderr, and all file processing
    goes to stdout.

    Note: This change permits use of testparm processing of smb.conf to be
    redirected into a file that can be used as an smb.conf file. ie: All
    information that should not be in smb.conf will be on stderr, all pertinent
    smb.conf info will go to stdout.

    Example of use:
A fully documented smb.conf.master file can be maintained.
To create smb.conf do:
testparm -s > smb.conf
(This used to be commit f323b932f932a576d42a018a3e16b45758121891)

16 years agoFix some unused variable warnings.
Tim Potter [Fri, 31 Oct 2003 02:53:07 +0000 (02:53 +0000)]
Fix some unused variable warnings.
(This used to be commit 512a81c9fd4490cb6f9b1cc88cdb9238d21decb1)

16 years agoMerge from 3.0:
Tim Potter [Fri, 31 Oct 2003 01:42:21 +0000 (01:42 +0000)]
Merge from 3.0:

  Revision 1.2.2.5:

    Remove some unused variables uncovered by the build farm.
(This used to be commit c0585399ac3b6adb22b514478ba44e3c8a96b050)

16 years agoSync up with 3.0
Tim Potter [Fri, 31 Oct 2003 01:35:02 +0000 (01:35 +0000)]
Sync up with 3.0
(This used to be commit 3cd8acb6c362bca82d7268aa283d3f6360b24604)

16 years agoSync up some indentation.
Tim Potter [Fri, 31 Oct 2003 01:31:31 +0000 (01:31 +0000)]
Sync up some indentation.
(This used to be commit 160903f99782673a3ff147450d33f4a4ff88a666)

16 years agoMerge from 3.0: Sync up comments.
Tim Potter [Fri, 31 Oct 2003 01:18:41 +0000 (01:18 +0000)]
Merge from 3.0: Sync up comments.
(This used to be commit c00bd547c875a1eba3b8c427f4fed0b61ae987c5)

16 years agoMerge of some fixes from 3.0:
Tim Potter [Fri, 31 Oct 2003 01:17:37 +0000 (01:17 +0000)]
Merge of some fixes from 3.0:

  - Revision 1.468.2.187

      CP* modules are not related to development

  - Revision 1.468.2.191

      Compile fix for tdbbackup when Samba needs to override non-C99
      compliant implementations of snprintf

Sync up formatting for PAM_WINBIND_PICOBJ variable.
(This used to be commit b4f3c8d2f62e6d75a5c01529190e71289dea8df5)

16 years agoAdd string to uuid fn. Thanks aliguori.
Jim McDonough [Thu, 30 Oct 2003 23:43:18 +0000 (23:43 +0000)]
Add string to uuid fn.  Thanks aliguori.
(This used to be commit 5f9fe8304f037f91fa765e64580a7119aeb201dd)

16 years agoIf nothing to do, return success. Fix from Aur?lien Degr?mont <adegremont@idealx...
Jeremy Allison [Thu, 30 Oct 2003 20:09:44 +0000 (20:09 +0000)]
If nothing to do, return success. Fix from Aur?lien Degr?mont <adegremont@idealx.com>
Jeremy.
(This used to be commit a92555e6060294afcfecc075bfac5c836f150b01)

16 years agoLast of the GUID->struct uuid changes.
Jim McDonough [Thu, 30 Oct 2003 18:13:25 +0000 (18:13 +0000)]
Last of the GUID->struct uuid changes.

GUID has been removed.  If you are dealing with a flattened version of a
[gu]uid, use UUID_FLAT.  smb_pack_uuid and smb_unpack_uuid will switch
between the two.

I'm not sure exactly what the genparse stuff is doing here, so I just
switched it to a UUID_FLAT (no functional change), but I suspect this
may not be the right way to go.
(This used to be commit 001e9d0e814109a26d598001b3c23dfdb04510ff)

16 years agoNearing the end of the GUID -> struct uuid changes.
Jim McDonough [Thu, 30 Oct 2003 17:50:56 +0000 (17:50 +0000)]
Nearing the end of the GUID -> struct uuid changes.
(This used to be commit 0e8fcfac702515f8870c979262bf881d1155efdc)

16 years agoOk, nearing the end of the GUID->struct uuid changes.
Jim McDonough [Thu, 30 Oct 2003 17:37:21 +0000 (17:37 +0000)]
Ok, nearing the end of the GUID->struct uuid changes.

Takes care of secdescs.

Had to move the uuid marshall/unmarshalling code to parse_misc, because
it's needed outside of parse_rpc.c (for no-auth calls)
(This used to be commit 5d2bb079b65ccfec14604d8dcf0ce789d1795b46)

16 years agoMore GUID->struct uuid changes.
Jim McDonough [Thu, 30 Oct 2003 17:17:51 +0000 (17:17 +0000)]
More GUID->struct uuid changes.

Printer publishing now uses struct uuid.  Also changes ads_pull_guid to
unpack it from the wire format.
(This used to be commit 671b434cc4b422144ab8f5858ae9c2179de701e1)

16 years agoAnother round of GUID->struct uuid.
Jim McDonough [Thu, 30 Oct 2003 17:07:32 +0000 (17:07 +0000)]
Another round of GUID->struct uuid.

Takes care of the lsass pipe
(This used to be commit 3dca3efa4b427fa3094a8cd392fe5744b5f6f6a8)

16 years agoFirst round of merging various UUID structures.
Jim McDonough [Thu, 30 Oct 2003 16:38:39 +0000 (16:38 +0000)]
First round of merging various UUID structures.

This eliminates RPC_UUID.  It creates the following struct:

struct uuid
{
  uint32 time_low;
  uint16 time_mid;
  uint16 time_hi_and_version;
  uint8  clock_seq[2];
  uint8  node[6];
};
which replaces RPC_UUID and various random struct uuid definitions

and a flat version:
#define UUID_FLAT_SIZE 16
typedef struct uuid_flat
{
uint8 info[UUID_FLAT_SIZE];
} UUID_FLAT;

which pretty much looks like GUID (which I will start eliminating).

I want us to use the FLAT one only on the wire (perhaps in files, too?), and
I want it to be obvious to the coder that it is the FLAT version.

This leaves a couple of compiler warnings, where GUID isn't completely
replaced by FLAT_UUID yet...I'll get to those soon.
(This used to be commit 1532b5d2e3c61df232b16394acedf6eac387588b)

16 years agobug 696; check for an invalid fid before dereferencing the fsp pointer
Gerald Carter [Thu, 30 Oct 2003 16:01:02 +0000 (16:01 +0000)]
bug 696; check for an invalid fid before dereferencing the fsp pointer
(This used to be commit 2cc43e760b02f2088a0222d1f5080913a96f3e5a)

16 years agoCheck for nsswitch.h. Patch from albert chin (china@thewrittenword.com).
Jeremy Allison [Thu, 30 Oct 2003 00:07:46 +0000 (00:07 +0000)]
Check for nsswitch.h. Patch from albert chin (china@thewrittenword.com).
Jeremy.
(This used to be commit 8d29faaa6396a46e8754ead32f6fd545e567ba46)

16 years agoJanitor for tridge.
Jeremy Allison [Wed, 29 Oct 2003 23:01:02 +0000 (23:01 +0000)]
Janitor for tridge.
parameterise the listen backlog in smbd and make it larger by default. A backlog of 5 is way too small these days.
Jeremy.
(This used to be commit 58b8f673945ad114d056dd79f509c93ab42b96d1)

16 years agoFixes to check for wraps which could cause coredumps.
Jeremy Allison [Wed, 29 Oct 2003 21:27:57 +0000 (21:27 +0000)]
Fixes to check for wraps which could cause coredumps.
Jeremy.
(This used to be commit 124a8ddae63adff4f601242a8e6d05abcaf4d9bf)

16 years agoDon't log at level zero when chdir fails. Ensure correct error message is returned.
Jeremy Allison [Tue, 28 Oct 2003 18:32:01 +0000 (18:32 +0000)]
Don't log at level zero when chdir fails. Ensure correct error message is returned.
Jeremy.
(This used to be commit a7561336e770405572c13a4607b0e808225e8916)

16 years agoFix for bug #667. DFS filenames can now have arbitrary case.
Jeremy Allison [Tue, 28 Oct 2003 00:51:19 +0000 (00:51 +0000)]
Fix for bug #667. DFS filenames can now have arbitrary case.
Jeremy.
(This used to be commit cbefb5c4f983ca49fcc563111d8704d3770daf81)

16 years agoRemove trailing comma on typedef enum. albert chin (china@thewrittenword.com)
Tim Potter [Mon, 27 Oct 2003 23:42:38 +0000 (23:42 +0000)]
Remove trailing comma on typedef enum.  albert chin (china@thewrittenword.com)
(This used to be commit 65a4c2aa0af4572ef7da0f7907ee144faba39031)

16 years agoMissing UNIX -> DOS codepage conversion. Fix from Alexander Bokovoy <a.bokovoy@sam...
Jeremy Allison [Mon, 27 Oct 2003 20:09:12 +0000 (20:09 +0000)]
Missing UNIX -> DOS codepage conversion. Fix from Alexander Bokovoy <a.bokovoy@sam-solutions.net>.
Jeremy.
(This used to be commit f714998b44c6a1082943a399ce3b0ce316efc3a0)

16 years agoJanitorial duty for tpot. Merge tdb error log fix.
Jeremy Allison [Fri, 24 Oct 2003 17:50:19 +0000 (17:50 +0000)]
Janitorial duty for tpot. Merge tdb error log fix.
Jeremy.
(This used to be commit 2186cbf28db496b97b39b81eb1932690c6094cd8)

16 years agoAdd shutdown abort try over initshutdown pipe first, then fall back to
Jim McDonough [Fri, 24 Oct 2003 14:03:15 +0000 (14:03 +0000)]
Add shutdown abort try over initshutdown pipe first, then fall back to
winreg pipe if it doesn't work.  Fixes bug #534.

I will go back and add the same logic for the shutdown itself, even though
that works so far against win2k (haven't tested all win clients).
(This used to be commit e6d02117755d92d1b5ce029bf659d0fbe1a55585)

16 years agoAdd initshutdown pipe commands to rpcclient. Second part of fix to bug
Jim McDonough [Fri, 24 Oct 2003 13:49:25 +0000 (13:49 +0000)]
Add initshutdown pipe commands to rpcclient.  Second part of fix to bug
#534
(This used to be commit 99f4fa54497ba1c0fc0ba39d51b3ce201a8e6cd2)

16 years agoNew files for support of initshutdown pipe. Win2k doesn't respond properly
Jim McDonough [Fri, 24 Oct 2003 13:38:13 +0000 (13:38 +0000)]
New files for support of initshutdown pipe.  Win2k doesn't respond properly
to all requests on the winreg pipe, so we need to handle this new pipe.

First part of fix for bug #534
(This used to be commit 532fab74c12d8c55872c2bad2abead2647f919d7)

16 years agoCheck for va_copy before you check for __va_copy, since va_copy is the
Richard Sharpe [Fri, 24 Oct 2003 05:47:39 +0000 (05:47 +0000)]
Check for va_copy before you check for __va_copy, since va_copy is the
actual standard, and __va_copy was the proposed standard.
(This used to be commit 4ab7947e601e61cacd7ff541ee881850d9808387)

16 years agoAndrew Bartlett patch to cope with Exchange 5.5 cleartext pop password auth.
Jeremy Allison [Fri, 24 Oct 2003 01:19:23 +0000 (01:19 +0000)]
Andrew Bartlett patch to cope with Exchange 5.5 cleartext pop password auth.
Jeremy.
(This used to be commit 2d09d8c9d973f5f414d31f749db12328ff315de7)

16 years agoMerge from 3_0:
Volker Lendecke [Thu, 23 Oct 2003 16:51:08 +0000 (16:51 +0000)]
Merge from 3_0:

After a phonecall with jra finally commit this.

This changes our behaviour when the setresuid call is available. We now not
only change the effective uid but also the real uid when becoming
unprivileged. This is mainly for improved AFS compatibility, as AFS selects
the token to send to the server based on the real uid of the process.

I tested this with a W2k server with two non-root 'runas' sessions. They come
in via a single smbd as two different users using two session setups. Samba on
Linux can still switch between the two uids, proved by two different files
created via those sessions.

Volker
(This used to be commit 8a75e2dfb6ee9099e7f9a970c522e71ab144d919)

16 years agoFix bug 451. Stop net -P from prompting for machine account password.
Jim McDonough [Thu, 23 Oct 2003 14:33:21 +0000 (14:33 +0000)]
Fix bug 451.  Stop net -P from prompting for machine account password.
Based on work by Ken Cross (kcross@nssolutions.com).
(This used to be commit 32aa749bf1328e43af629ade30b3fdc11dd5e3ec)

16 years agoVolker's fix for bug #668. Change the \n after the password prompt to go
Jim McDonough [Thu, 23 Oct 2003 13:47:21 +0000 (13:47 +0000)]
Volker's fix for bug #668.  Change the \n after the password prompt to go
to tty instead of stdout.
(This used to be commit fb503bb418fcbee20d2218650904b26b512106ed)

16 years agoMerge from 3_0:
Volker Lendecke [Thu, 23 Oct 2003 13:46:32 +0000 (13:46 +0000)]
Merge from 3_0:

According to Ethereal we have a 32-Bit quantity here. And with SSVAL valgrind
reports an unitialized read which is obviously correct. And I hate valgrind
errors ;-)

Volker
(This used to be commit 73fc6da6cf2b52f65c3dbfb7705899e6cbea447a)

16 years agoApply the changes to libsmbclient that derrell has contributed. Fix some
Richard Sharpe [Thu, 23 Oct 2003 06:35:45 +0000 (06:35 +0000)]
Apply the changes to libsmbclient that derrell has contributed. Fix some
of the problems with this.

From: Derrell.Lipman@unwireduniverse.com
(This used to be commit 8e3d2708c5e5a9968aeb9a6fe6c828aa8a5b22a9)

16 years agoPut strcasecmp/strncasecmp on the banned list (except for needed calls
Jeremy Allison [Wed, 22 Oct 2003 23:38:18 +0000 (23:38 +0000)]
Put strcasecmp/strncasecmp on the banned list (except for needed calls
in iconv.c and nsswitch/). Using them means you're not thinking about multibyte at
all and I really want to discourage that.
Jeremy.
(This used to be commit 5c050a735f86927c7ef2a98b6f3a56abe39e4674)

16 years agoBe sure referent ID is updated for incoming structures, too.
Jim McDonough [Wed, 22 Oct 2003 20:59:46 +0000 (20:59 +0000)]
Be sure referent ID is updated for incoming structures, too.
(This used to be commit 00e0aba2cf97e686a0b6b4d7bab50afbc5e97ac1)

16 years agoFix segfault in mount.cifs helper when there is no options specified during mount
Alexander Bokovoy [Wed, 22 Oct 2003 15:52:36 +0000 (15:52 +0000)]
Fix segfault in mount.cifs helper when there is no options specified during mount
(This used to be commit a3b67626018ade2a823311b65202ab7f488ca0a7)

16 years agoMerge from 3_0:
Volker Lendecke [Wed, 22 Oct 2003 07:31:17 +0000 (07:31 +0000)]
Merge from 3_0:

In cli_lsa_lookup_sids don't leave the domain field uninitialized if
some sid could not be mapped. Otherwise this call is unnecessarily
complicated to call.

Volker
(This used to be commit 198b01fc54ce7a5beeddc680b30da291639b4eda)

16 years agoFix for bug #64, Win9x Nexus tools not working against Samba3.0. Missing
Jeremy Allison [Tue, 21 Oct 2003 23:14:39 +0000 (23:14 +0000)]
Fix for bug #64, Win9x Nexus tools not working against Samba3.0. Missing
map in errormap for ERROR_MORE_DATA -> ERRDOS, ERRmoredata.
Jeremy.
(This used to be commit 8458f4c52f32ef192287ddb8371638f42a370c6f)

16 years agoPatch from Stefan Metzmacher <metze@metzemix.de> to fix signing problems
Jeremy Allison [Tue, 21 Oct 2003 21:18:58 +0000 (21:18 +0000)]
Patch from Stefan Metzmacher <metze@metzemix.de> to fix signing problems
when reverse connecting back to a client for printer notify.
Jeremy.
(This used to be commit 7fde193efeb856ec325d5d563f1e710c45dc65d7)

16 years agoMerge tridge's AIX fixes.
Jeremy Allison [Tue, 21 Oct 2003 20:17:42 +0000 (20:17 +0000)]
Merge tridge's AIX fixes.
Jeremy.
(This used to be commit 96cefb4542debd8902d9bc0cd09bb01c7a41cc69)

16 years agoAdd server side support for epmapper pipe. Currently only does a fixed
Jim McDonough [Tue, 21 Oct 2003 17:59:08 +0000 (17:59 +0000)]
Add server side support for epmapper pipe.  Currently only does a fixed
mapping, but this is the base for changes to come.
(This used to be commit 73882e970a3aea1c3c9f34779b4220bbf28f6dad)

16 years agoFix signing miss-sequence noticed by Stefan Metzmacher <metze@metzemix.de>
Jeremy Allison [Tue, 21 Oct 2003 17:40:48 +0000 (17:40 +0000)]
Fix signing miss-sequence noticed by Stefan Metzmacher <metze@metzemix.de>
Jeremy.
(This used to be commit 419834edee09567c8523ad3afba674a12504282d)

16 years agoFix typo
Jim McDonough [Tue, 21 Oct 2003 16:27:46 +0000 (16:27 +0000)]
Fix typo
(This used to be commit 26956cdef902819f94616c33694641752f0f14e9)

16 years agocall initgroups before becomming the user; patch from Fabio Cecchi
Gerald Carter [Tue, 21 Oct 2003 14:20:02 +0000 (14:20 +0000)]
call initgroups before becomming the user; patch from Fabio Cecchi
(This used to be commit e0db859a312207d961e3a581dfd15d9701bca16d)