1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

12841 Commits

Author SHA1 Message Date
Gerald Carter
9cfd26141c don't call ads_destroy() twice; fixes segfault in winbindd when DC goes down; bug 437
(This used to be commit 9da4d1f7db)
2003-10-03 21:43:56 +00:00
Gerald Carter
48958b0105 don't call ads_destroy() twice; fixes segfault in winbindd when DC goes down; bug 437
(This used to be commit 1cfbd92404)
2003-10-03 21:43:09 +00:00
Jeremy Allison
c81c09d66f Grrr. compile patches before you apply !
Jeremy.
(This used to be commit dfbde4be71)
2003-10-03 20:13:11 +00:00
Gerald Carter
ec7716734e cleaning out patch list; patch from Steve L. to change the cwd before the postexec script
(This used to be commit bbc403ec6e)
2003-10-03 15:11:38 +00:00
Gerald Carter
cd141e33fa cleaning out patch list; patch from Steve L. to change the cwd before the postexec script
(This used to be commit 497e14ba19)
2003-10-03 15:11:24 +00:00
Gerald Carter
8ae168b46d abstract UUID parsing code to an individual function; patch from Anthony
(This used to be commit 6cbdbdf9e1)
2003-10-03 15:08:16 +00:00
Gerald Carter
faca10b35d abstract UUID parsing code to an individual function; patch from Anthony
(This used to be commit 9365c619d6)
2003-10-03 15:07:15 +00:00
Tim Potter
635dff7528 Moving towards better i18n support in SWAT. This commit contains a
bunch of updates to bug 413 from Monyo:

1) pick up proper strings to call msg strings for example to add
  strings in wizard menu in web/swat.c, web/statuspage.c and
  param/loadparm.c.

2) define N_() macro in include/intl.h to pick up some strings
  in param/loadparm.c

3) quote all name and value tag with '"'
  For example in swat.c:720 the "Edit Parameter Values" string is
  displayd only as "Edit" because value tag is not quoted like:
  value=Edit Parameter Values
  These tags should be quoted though it sometimes works well
  without quotation.

4) modify the msg strings not to contain HTML tags or other
  non-message strings. For example
  dprintf(_("test\n")); is modified to dprintf("%s\n", _("test"));
(This used to be commit 351d16956d)
2003-10-03 01:42:53 +00:00
Tim Potter
89eb0f6918 Explicitly initialise the value of AR for vendor makes that don't do
this (HPUX 11).  Currently it's initialised to 'ar' but this may have
to be changed if any systems pop up that have archivers that aren't
named 'ar'. Closes bug #552.
(This used to be commit 6aada3bd3e)
2003-10-03 00:06:46 +00:00
Tim Potter
b914f2ab6c Portability fix from Joachim Schmitz. Closes bug #546.
(This used to be commit 803ae45172)
2003-10-02 23:50:22 +00:00
Gerald Carter
a234b822d4 fixed for /sbin/mount.smbfs link when using $DESTDIR; bug 525
(This used to be commit dc6d14c2bd)
2003-10-02 21:22:58 +00:00
Jeremy Allison
19953ff72e Portability fixes from schmitz@hp.com (Joachim Schmitz). Bug #549.
Jeremy.
(This used to be commit 93669f329e)
2003-10-02 18:22:51 +00:00
Jeremy Allison
4ed89be00f Portability fixes from schmitz@hp.com (Joachim Schmitz). Bug #549.
Jeremy.
(This used to be commit 6defe43e6d)
2003-10-02 18:22:48 +00:00
Jeremy Allison
567caaf5f9 Portability fix from schmitz@hp.com (Joachim Schmitz). Bug #547.
Jeremy.
(This used to be commit bbc7b189b9)
2003-10-02 17:53:57 +00:00
Jeremy Allison
e8fb38d8dd Portability fix from schmitz@hp.com (Joachim Schmitz). Bug #547.
Jeremy.
(This used to be commit 9519ffc7cb)
2003-10-02 17:53:55 +00:00
Jeremy Allison
3092718ab1 Portability fix from schmitz@hp.com (Joachim Schmitz) for bug #548.
Jeremy.
(This used to be commit 6677eba28a)
2003-10-02 17:36:47 +00:00
Jeremy Allison
460aa84639 Portability fix from schmitz@hp.com (Joachim Schmitz) for bug #548.
Jeremy.
(This used to be commit a0828a2a1c)
2003-10-02 17:36:45 +00:00
Jeremy Allison
64f88c008c Correct fix for excel read-only bug. Add panic for logic error in developer mode.
Jeremy.
(This used to be commit 0857932c1c)
2003-10-02 17:26:44 +00:00
Jeremy Allison
b1ca1d9134 Correct fix for excel read-only bug. Add panic for logic error in developer mode.
Jeremy.
(This used to be commit f00af98f37)
2003-10-02 17:26:42 +00:00
Volker Lendecke
ec6c16d7b1 Make pdb_ldap.c compile with SUN iPlanet headers. Whether this works will be
tested soon, but this fix is somewhat obvious.

Volker
(This used to be commit 227882d6f7)
2003-10-02 09:26:51 +00:00
Jeremy Allison
c5b34aa7e6 Fix for not opening Excel 2000 files that are read-only. Needs tidying
up but works for now.
Jeremy.
(This used to be commit 9ad9e0dfaf)
2003-10-02 00:55:22 +00:00
Jeremy Allison
418749050b Fix for not opening Excel 2000 files that are read-only. Needs tidying
up but works for now.
Jeremy.
(This used to be commit d9b9113a08)
2003-10-02 00:55:20 +00:00
Andrew Bartlett
ad12b87aeb Remove duplicate function (now in rpc_parse/parse_prs.c) and fix a RPC debug
(I renamed the element of the structure).

Andrew Bartlett
(This used to be commit 641652cad9)
2003-10-01 23:04:34 +00:00
Gerald Carter
e9568f8df2 commit sign only patch from Andrew; bug 167; tested using 2k & XP clientspreviously joined to the Samba domain
(This used to be commit 9d2e585e5e)
2003-10-01 22:00:19 +00:00
Gerald Carter
cbe69f65f6 commit sign only patch from Andrew; bug 167; tested using 2k & XP clientspreviously joined to the Samba domain
(This used to be commit 3802f5895e)
2003-10-01 21:18:32 +00:00
Jeremy Allison
b8092fbf99 Fixed silly typo checking for signal_handler not signal.
Jeremy.
(This used to be commit 202d4e4652)
2003-10-01 21:17:46 +00:00
Jeremy Allison
27ef4dbc76 Fixed silly typo checking for signal_handler not signal.
Jeremy.
(This used to be commit 6c38a79be7)
2003-10-01 21:17:22 +00:00
Jeremy Allison
c01f27c9ff Allow ^C to interrupt smbpasswd if using our getpass.
Jeremy.
(This used to be commit 7d79a55d9a)
2003-10-01 19:33:30 +00:00
Jeremy Allison
73953efac3 Allow ^C to interrupt smbpasswd if using our getpass.
Jeremy.
(This used to be commit 8a28446345)
2003-10-01 19:33:27 +00:00
Gerald Carter
4d0f0c0594 save and restore CFLAGS before/after AC_PROG_CC; this macro seems to overwrite the CFLAGS variable
(This used to be commit aa7fccf6ad)
2003-10-01 18:54:29 +00:00
Gerald Carter
96128e1ea7 save and restore CFLAGS before/after AC_PROG_CC; this macro seems to overwrite the CFLAGS variable
(This used to be commit dbf7fc4feb)
2003-10-01 18:54:06 +00:00
Gerald Carter
e1f16f3321 merge of parameter changes from 3.0 and fix for bug 550
(This used to be commit b6433f5db7)
2003-10-01 17:02:09 +00:00
Gerald Carter
b526d07d54 wrap internals of sys_setgroups() so the sys_XX() call can be done unconditionally; bug 550
(This used to be commit 9df3f53e6a)
2003-10-01 17:01:21 +00:00
Gerald Carter
60c8778a60 mark 'mangled map' as depcreated and remove 'mangled stack'
(This used to be commit cd06472e42)
2003-10-01 16:18:31 +00:00
Andrew Tridgell
9e0e0d67ca when we don't have a working iconv library we must default to using only builtin charsets. Defaulting to CP850 when we have just determined that it doesn't work just guarantees that Samba won't work at all (in fact it just seg faults at startup). This fixes Samba on AIX, and I expect on a bunch of other platforms.
(This used to be commit 9635a28181)
2003-09-30 01:30:15 +00:00
Jeremy Allison
57c863190d Take care of condition where DOS and NT error codes must differ. Found by
DOS program test by Amir Hardon <hardon@actcom.co.il>.
Jeremy.
(This used to be commit c11a7e5846)
2003-09-29 23:35:41 +00:00
Jeremy Allison
0dde70c233 Take care of condition where DOS and NT error codes must differ. Found by
DOS program test by Amir Hardon <hardon@actcom.co.il>.
Jeremy.
(This used to be commit 294f376aa9)
2003-09-29 23:35:39 +00:00
Tim Potter
10ab4ce58a Merge from 3.0:
>iconv isn't const safe. Neither should smb_iconv be.
>Jeremy.
(This used to be commit 7bd450f8b6)
2003-09-29 06:23:56 +00:00
Tim Potter
1052b52178 Merge from 3.0:
>Apply some NULL pointer paranoia to previous wins hook fix.

>Fix broken wins hook functionality.  A i18n fixe caused the name type
>to be appended to the netbios name between angle brackets.  This interfered
>the 'sh -c' used to implement smbrun().  Closes bug #528.
(This used to be commit 12659ae749)
2003-09-29 06:22:55 +00:00
Tim Potter
981c82b16e Merge from 3.0:
>Allow d_printf() to handle strings with escaped quotation marks since the
>msg file includes the escape character.
>
>Fixes bug #489.
(This used to be commit 0871be2bfa)
2003-09-29 06:22:04 +00:00
Tim Potter
22634870b8 Merge from 3.0:
>Fix to parse the level-2 strings. From Anthony Liguori aliguor@us.ibm.com.
>Jeremy.
(This used to be commit 3420320714)
2003-09-29 06:20:55 +00:00
Tim Potter
4663c471a3 Merge from 3.0:
>More bug #413.  Fix bad html table row termination in SWAT wizard code found by
>Monyo.  Also remove debugging d_printf() which snuck in the last commit.

>Change title of SWAT globals page from 'Global Variables' to 'Global
>Parameters' to be more consistent with the other pages.
(This used to be commit 1ab70b41a9)
2003-09-29 06:20:11 +00:00
Tim Potter
a21e1f781f Merge from 3.0:
>Ensure %S gets expanded in read/write lists.
>Jeremy.
(This used to be commit 424acd6ee9)
2003-09-29 06:18:42 +00:00
Tim Potter
3f5f051d00 Merge from 3.0:
>Fix for valid users = %S in homes share.
>Jeremy.
(This used to be commit 799da7092c)
2003-09-29 06:18:00 +00:00
Tim Potter
5400952f7f Merge from 3.0:
>Fix for #480. Change the interface for init_unistr2 to not take a length
>but a flags field. We were assuming that 2*strlen(mb_string) == length of ucs2-le string.
>This is not the case. Count it after conversion.
>Jeremy.
(This used to be commit e2ab9e54cd)
2003-09-29 06:17:09 +00:00
Tim Potter
64dbd7cbff Merge from 3.0:
>Change AC_CHECK_LIB_EXT to prepend libraries instead of append.  This
>is the same way AC_CHECK_LIB works.  Fix for bug 508.
>
>This may have to go a few rounds on the build farm to ensure it works
>everywhere.
(This used to be commit e2da7c8a9d)
2003-09-29 06:07:30 +00:00
Tim Potter
ecd8cc4ef2 Apply some NULL pointer paranoia to previous wins hook fix.
(This used to be commit 0281c5b764)
2003-09-29 04:57:20 +00:00
Tim Potter
1148875a15 Fix broken wins hook functionality. A i18n fixe caused the name type
to be appended to the netbios name between angle brackets.  This interfered
the 'sh -c' used to implement smbrun().  Closes bug #528.
(This used to be commit 92b37b3ef0)
2003-09-29 04:41:45 +00:00
Jelmer Vernooij
fbb85e4b42 Testparm fixes:
- Also check global 'hosts allow'/'hosts deny' when checking access to share
 - Warn when user specifies 2 arguments instead of 1 or 3.

Patch from Jay Fenlason <fenlason@redhat.com>
(This used to be commit 034fe96f9c)
2003-09-29 02:40:09 +00:00
Jelmer Vernooij
cda8fc2915 Testparm fixes:
- Also check global 'hosts allow'/'hosts deny' when checking access to share
 - Warn when user specifies 2 arguments instead of 1 or 3.

Patch from Jay Fenlason <fenlason@redhat.com>
(This used to be commit 2690c185f0)
2003-09-29 02:39:41 +00:00
Tim Potter
2569906e5a Change AC_CHECK_LIB_EXT to prepend libraries instead of append. This
is the same way AC_CHECK_LIB works.  Fix for bug 508.

This may have to go a few rounds on the build farm to ensure it works
everywhere.
(This used to be commit afe8c708f1)
2003-09-28 11:11:07 +00:00
Jeremy Allison
fa7932296d iconv isn't const safe. Neither should smb_iconv be.
Jeremy.
(This used to be commit 238bb74c16)
2003-09-27 01:29:18 +00:00
Jeremy Allison
05b178ab82 Ensure %S gets expanded in read/write lists.
Jeremy.
(This used to be commit 7d7096fc3a)
2003-09-26 21:03:32 +00:00
Jeremy Allison
26e4e6208a Fix for valid users = %S in homes share.
Jeremy.
(This used to be commit c7f4e56ad5)
2003-09-26 19:28:20 +00:00
Gerald Carter
8efca15a8b don't write to static pointers; patch from Anthony
(This used to be commit b766fe78a7)
2003-09-26 14:44:11 +00:00
Gerald Carter
45814e729c don't write to static pointers; patch from Anthony
(This used to be commit 5840cbe5f6)
2003-09-26 14:43:36 +00:00
Jeremy Allison
0fea43eb60 Fix to parse the level-2 strings. From Anthony Liguori aliguor@us.ibm.com.
Jeremy.
(This used to be commit e4c955c98e)
2003-09-26 06:35:11 +00:00
Tim Potter
af921c452d More bug #413. Fix bad html table row termination in SWAT wizard code found by
Monyo.  Also remove debugging d_printf() which snuck in the last commit.
(This used to be commit 0192f41003)
2003-09-26 02:04:03 +00:00
Tim Potter
d2596d418f Change title of SWAT globals page from 'Global Variables' to 'Global
Parameters' to be more consistent with the other pages.
(This used to be commit 02725d4a3c)
2003-09-26 01:32:20 +00:00
Tim Potter
f83d4ba428 Allow d_printf() to handle strings with escaped quotation marks since the
msg file includes the escape character.

Fixes bug #489.
(This used to be commit 8ce279e471)
2003-09-26 01:24:09 +00:00
Jeremy Allison
d3b9384308 Fix for #480. Change the interface for init_unistr2 to not take a length
but a flags field. We were assuming that 2*strlen(mb_string) == length of ucs2-le string.
This is not the case. Count it after conversion.
Jeremy.
(This used to be commit f82c273a42)
2003-09-25 21:26:16 +00:00
Gerald Carter
602ad283b4 * sync more files from 3.0
* set version string to "CVS 3.1.0alpha1"
(This used to be commit c6a61ffcbd)
2003-09-24 15:16:57 +00:00
Volker Lendecke
4bea4ecc74 Don't #ifdef an AFS option with WITH_ADS. Thanks, jerry!
Volker
(This used to be commit a6c54cbe20)
2003-09-24 06:42:32 +00:00
Tim Potter
43004ba883 Another round of merges from 3.0:
>Fix return of result. Patch from Yasuma Takeda <yasuma@miraclelinux.com>
>Jeremy.

>Applied Monyo's patch for bug #412 which allows \n characters to
>appear in msg strings.

>Put in some DEBUGs for swat language selection.  Part of bug 456.
(This used to be commit 0105b72db8)
2003-09-24 02:46:59 +00:00
Tim Potter
238cac9581 Another round of merges from 3.0:
>Reformat - preparing to fix bug #480 (which will be ugly).
>Jeremy.
(This used to be commit cd91dd9cd8)
2003-09-24 02:45:43 +00:00
Tim Potter
a899daa93a Another round of merges from 3.0:
>Change error message displayed when --without-libiconv is used as
>an argument to configure.  Closes bug 468.
(This used to be commit 4b73ba7df1)
2003-09-24 02:45:00 +00:00
Tim Potter
a6b3104042 Fix bug #456 for 3.0.0 release.
More work on SWAT i18n support to appear in later releases.
(This used to be commit c326774905)
2003-09-24 01:27:39 +00:00
Gerald Carter
f6e0a10974 fixing a bug in the retry loop for winbindd_pam_auth[_crap]()
(This used to be commit a1b6e28e9c)
2003-09-24 01:24:13 +00:00
Gerald Carter
6d3af0eff0 fixing a bug in the retry loop for winbindd_pam_auth[_crap]()
(This used to be commit a83266a927)
2003-09-24 01:22:59 +00:00
Volker Lendecke
c716385220 This only touches the fake kaserver support. It adds two parameters:
afs share -- this is an AFS share, do AFS magic things
afs username map -- We need a way to specify the cell and possibly
		    weird username codings for several windows domains
		    in the afs cell

Volker
(This used to be commit 4a3f7a9356)
2003-09-23 14:52:21 +00:00
Volker Lendecke
ee868462a0 Add a descriptive comment to our usage of setresuid. lib/afs.c needs
to be changed if we decide to set our real uid. Jeremy?

Volker
(This used to be commit 1fed55aa78)
2003-09-23 14:49:17 +00:00
Jeremy Allison
f167cf594d Reformat - preparing to fix bug #480 (which will be ugly).
Jeremy.
(This used to be commit 605e257cab)
2003-09-22 22:08:53 +00:00
Gerald Carter
492072314b fix some warnings found by the Sun C compiler
(This used to be commit 585764305a)
2003-09-22 17:54:34 +00:00
Gerald Carter
88c95aa735 fix some warnings found by the Sun C compiler
(This used to be commit e1fac713e2)
2003-09-22 17:53:59 +00:00
Jeremy Allison
68e83434b5 Fix return of result. Patch from Yasuma Takeda <yasuma@miraclelinux.com>
Jeremy.
(This used to be commit 95e33b1250)
2003-09-22 17:39:44 +00:00
Tim Potter
109d5b4622 Applied Monyo's patch for bug #412 which allows \n characters to
appear in msg strings.
(This used to be commit 53a2a38990)
2003-09-22 07:25:19 +00:00
Jelmer Vernooij
8031b1655c Fix bug and do more error checking. Noticed by Wilco Baan Hofman <wilco@andoburg.nl>
(This used to be commit ec32501cef)
2003-09-21 03:16:05 +00:00
Jelmer Vernooij
2862f64374 Fix typo
(This used to be commit 68e044f60d)
2003-09-21 03:14:05 +00:00
Jelmer Vernooij
5def5d2bdb Fix typo
(This used to be commit 37db75fc95)
2003-09-21 02:58:08 +00:00
Jelmer Vernooij
52e27c4a58 Fix a bug and warn when configuration file values are incorrect. Thanks to
Wilco Baan Hofman <wilco@andoburg.nl>
(This used to be commit 2c584efae6)
2003-09-20 22:22:41 +00:00
Jeremy Allison
8139c5fcfa Ensure that dup_sec_desc copies the 'type' field correctly. This caused
me to expose a type arguement to make_sec_desc(). We weren't copying
the SE_DESC_DACL_AUTO_INHERITED flag which could cause errors on
auto inherited checks.
Jeremy.
(This used to be commit 546b2271c0)
2003-09-19 21:57:46 +00:00
Jeremy Allison
0551426657 Ensure that dup_sec_desc copies the 'type' field correctly. This caused
me to expose a type arguement to make_sec_desc(). We weren't copying
the SE_DESC_DACL_AUTO_INHERITED flag which could cause errors on
auto inherited checks.
Jeremy.
(This used to be commit 28b315a750)
2003-09-19 21:57:43 +00:00
Alexander Bokovoy
593e93b16b Fix pdb_mysql. Jelmer will look into details tonight.
(This used to be commit b00a81b543)
2003-09-19 13:09:10 +00:00
Tim Potter
84aea8346e Put in some DEBUGs for swat language selection. Part of bug 456.
(This used to be commit bbe4ae8af2)
2003-09-19 07:04:29 +00:00
Tim Potter
54b5bbb57a Merge from 3.0:
>Fix warnings on Sun cc Workshop Compilers 5.0. Reported by "Richard
>Bollinger" <rabollinger@comcast.net>. Also fixed script/gaptab.awk to
>produce compatible tables.

>Fix CP437 and CP850 syntax for old compilers removing ANSI C99-specifics
(This used to be commit a9f34d9fde)
2003-09-19 06:23:51 +00:00
Tim Potter
7bb5182cf8 Merge from 3.0:
>Applied Steve Langasek's patch for bug #450.
(This used to be commit 50ae61b674)
2003-09-19 06:22:54 +00:00
Jeremy Allison
30fd359914 The "unknown_5" 32 bit field in the user structs is actually 2 16-bit
fields, bad_password_count and logon_count. Ensure this is stored/fetched
in the various SAMs. As it replaces the unknown_5 field this fits
exactly into the tdb SAM without any binary problems. It also is added
to the LDAP SAM as two extra attributes. It breaks compatibility with
the experimental SAMs xml and mysql. The maintainers of these SAMs must
fix them so upgrades like this can be done transparently. I will insist
on the "experimental" status until this is solved.
Jeremy.
(This used to be commit 71ecd10181)
2003-09-18 23:54:12 +00:00
Jeremy Allison
3a48e4b287 The "unknown_5" 32 bit field in the user structs is actually 2 16-bit
fields, bad_password_count and logon_count. Ensure this is stored/fetched
in the various SAMs. As it replaces the unknown_5 field this fits
exactly into the tdb SAM without any binary problems. It also is added
to the LDAP SAM as two extra attributes. It breaks compatibility with
the experimental SAMs xml and mysql. The maintainers of these SAMs must
fix them so upgrades like this can be done transparently. I will insist
on the "experimental" status until this is solved.
Jeremy.
(This used to be commit cd7bd8c2da)
2003-09-18 23:53:48 +00:00
Jeremy Allison
8e0a88b7e2 Oops. Proper fix for #470.
Jeremy.
(This used to be commit e121a2ec0c)
2003-09-18 21:19:43 +00:00
Jeremy Allison
d4df20e96f Oops. Proper fix for #470.
Jeremy.
(This used to be commit 82f98b066d)
2003-09-18 21:19:41 +00:00
Jeremy Allison
9f50a90db1 Fix for #470 - unable to display SIDs in ACLs.
Jeremy.
(This used to be commit 56df89eff3)
2003-09-18 01:17:22 +00:00
Jeremy Allison
f4525f46ce Fix for #470 - unable to display SIDs in ACLs.
Jeremy.
(This used to be commit 1b343f7105)
2003-09-18 01:17:20 +00:00
Tim Potter
408ecbdd00 Change error message displayed when --without-libiconv is used as
an argument to configure.  Closes bug 468.
(This used to be commit 6957ecd25f)
2003-09-18 00:05:19 +00:00
Jeremy Allison
92347f2d0f Unregister event fix from metze.
Jeremy.
(This used to be commit b3b2b3d5e7)
2003-09-17 23:36:58 +00:00
Jeremy Allison
6fc85b3233 Unregister event fix from metze.
Jeremy.
(This used to be commit 0aee73d457)
2003-09-17 23:36:55 +00:00
Jeremy Allison
53185ba285 Fix coredump from Samba4 torture suite.
Jeremy.
(This used to be commit 640bc276ba)
2003-09-17 19:36:53 +00:00
Jeremy Allison
273479391f Fix coredump from Samba4 torture suite.
Jeremy.
(This used to be commit 9c1bab9445)
2003-09-17 19:36:38 +00:00
Jeremy Allison
9dab796ed5 Obviously correct typo bugfix from Lin Li <linl@xandros.com>.
Jeremy.
(This used to be commit f91da7d99b)
2003-09-17 17:57:18 +00:00
Jeremy Allison
c699cb78ac Obviously correct typo bugfix from Lin Li <linl@xandros.com>.
Jeremy.
(This used to be commit a43ca66290)
2003-09-17 17:56:16 +00:00
Alexander Bokovoy
3b66918aa7 Fix warnings on Sun cc Workshop Compilers 5.0. Reported by "Richard Bollinger" <rabollinger@comcast.net>. Also fixed script/gaptab.awk to produce compatible tables.
(This used to be commit 6134d41ff1)
2003-09-17 17:54:49 +00:00
Alexander Bokovoy
5715e01481 Fix scripts to generate correct tables for compilers which have character constants as signed chars instead of unsigned
(This used to be commit e4dda8cb22)
2003-09-17 17:49:35 +00:00
Jelmer Vernooij
bf4ab61d57 Fix typo. Found by Aurelien Degremont
(This used to be commit 4765e56f92)
2003-09-16 13:31:41 +00:00
Jelmer Vernooij
9903a9d88a Fix typo. Found by Aurelien Degremont
(This used to be commit 271111d6a7)
2003-09-16 13:31:17 +00:00
Tim Potter
eb268003f4 Applied Steve Langasek's patch for bug #450.
(This used to be commit e3cb0cd0d6)
2003-09-16 03:54:42 +00:00
Tim Potter
c2505ca394 Merge from 3.0:
>Fix OOPS when dealing with mangled names reported by several users.
>This was my bug when removing a redundant strlen.
>Jerry - last showstopper I knew about.
>Jeremy.
(This used to be commit 3266777acb)
2003-09-16 02:50:21 +00:00
Jeremy Allison
6df89dbe10 Fix #442 which Alexander considered a showstopper. Allow us to join mixed
mode domains.
Jeremy.
(This used to be commit 07cfce2830)
2003-09-16 01:28:09 +00:00
Jeremy Allison
1555cacd7c Fix #442 which Alexander considered a showstopper. Allow us to join mixed
mode domains.
Jeremy.
(This used to be commit c816aacefb)
2003-09-16 01:27:46 +00:00
Jeremy Allison
2c21d31c92 Fix from gregory@networksentry.co.za, don't clobber the comment if it
exists.
Jeremy.
(This used to be commit c8bfde5be9)
2003-09-15 21:27:36 +00:00
Jeremy Allison
77adfbf460 Fix from gregory@networksentry.co.za, don't clobber the comment if it
exists.
Jeremy.
(This used to be commit a7ef2ce349)
2003-09-15 21:27:33 +00:00
Jeremy Allison
f208ab8ac2 Ensure HEAD is also up to date.
Fix OOPS when dealing with mangled names reported by several users.
This was my bug when removing a redundant strlen.
Jeremy.
(This used to be commit 3b3e19f66f)
2003-09-15 21:22:15 +00:00
Jeremy Allison
9b8cbdfc2b Fix OOPS when dealing with mangled names reported by several users.
This was my bug when removing a redundant strlen.
Jerry - last showstopper I knew about.
Jeremy.
(This used to be commit 6e6769c206)
2003-09-15 21:19:43 +00:00
Jeremy Allison
dd50c0ed68 A *curse* upon the person who #ifdefed out the mangle debug statements
by default ! This is code that really needs to be able to be looked at
on a customer system if it's misbehaving !
Jeremy
(This used to be commit d512650340)
2003-09-15 18:53:01 +00:00
Christopher R. Hertel
4fd86794ec Fixed test and wording for long share names.
The RAP NetShareEnum() call has a length limit of 12 characters (not 8, as
previously tested).  Took DaveCB's suggested and added a note listing some
of the client systems that might be affected.
(This used to be commit cdfc0fc383)
2003-09-15 17:01:45 +00:00
Christopher R. Hertel
1e98a1b4cc Fixed test and wording for long share names.
The RAP NetShareEnum() call has a length limit of 12 characters (not 8, as
previously tested).  Took DaveCB's suggested and added a note listing some
of the client systems that might be affected.
(This used to be commit be06e52ce0)
2003-09-15 17:01:26 +00:00
Simo Sorce
5f91a15a66 fix online help
-w option need the password on the command line
(This used to be commit 0b8f32b7f5)
2003-09-15 14:21:32 +00:00
Simo Sorce
1389acb537 fix online help
-w option need the password on the command line
(This used to be commit fa7dea1710)
2003-09-15 14:13:35 +00:00
Alexander Bokovoy
bbc4f18f22 Alias charset 646 internally
(This used to be commit f4eb7acc7d)
2003-09-15 12:59:09 +00:00
Alexander Bokovoy
f9b6d0fd10 Alias charset 646 internally as it is same as ASCII. Should solve Solaris problems where ASCII was not detected and 646.so were requested through dynamic loading
(This used to be commit c248cd4784)
2003-09-15 12:42:10 +00:00
Tim Potter
abdc2695e2 Fixed typo in debug.
(This used to be commit e2b5dd7d9b)
2003-09-15 12:22:34 +00:00
Tim Potter
240d5944e3 Merge from Samba 3.0:
>Fix a nasty mess, and also bug #296. passdb/pdb_ldap.c was not converting
>to/from utf8 for some calls. The libads code gets this right. Wonder why
>the passdb code doesn't use it ?
>Jeremy.
(This used to be commit 9b6328bcfd)
2003-09-15 05:35:02 +00:00
Tim Potter
ca3d5310ce Merge from Samba 3.0:
>remove getpwnam() calls from init_sam_from_xxx().
>This means that %u & %g will no longer expand, but %U
>and %G still do.  The payback is that winbindd local
>accounts for users work with 'wbinfo -u' when winbind
>is running on a PDC.

>Fix a nasty mess, and also bug #296. passdb/pdb_ldap.c was not converting
>to/from utf8 for some calls. The libads code gets this right. Wonder why
>the passdb code doesn't use it ?
>Jeremy.
(This used to be commit 1e60bbff70)
2003-09-15 05:33:34 +00:00
Tim Potter
5b5ed5a6dc Merge from Samba 3.0:
>remove getpwnam() calls from init_sam_from_xxx().
>This means that %u & %g will no longer expand, but %U
>and %G still do.  The payback is that winbindd local
>accounts for users work with 'wbinfo -u' when winbind
>is running on a PDC.
(This used to be commit f047e24561)
2003-09-15 05:30:52 +00:00
Tim Potter
1d38ffec7a Merge from Samba 3.0:
>Ensure we consistantly translate to/from utf8 for talking to LDAP.
>Jeremy.
(This used to be commit 5b0753bd98)
2003-09-15 05:28:51 +00:00
Tim Potter
d26084868a Merge from Samba 3.0:
>fix unitiailized timestamp where merging print_jobs and lpq listing
(This used to be commit 1603d0e684)
2003-09-15 05:27:55 +00:00
Tim Potter
4d0d681911 Merge from Samba 3.0:
>Fix for typo in darwin detection.
>Jeremy.

>Fix for MacOS/X which uses STUPID BROKEN UNICODE COMPOSE CHARACTERS !
>(rant off :-). Inspired by work from Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>.
>Also add MacOSX/Darwin configure fixes.
>Jerry - can we put this in 3.0 release ? :-).
>Jeremy.
(This used to be commit 7951dee600)
2003-09-15 05:26:44 +00:00
Tim Potter
ac4ae84d08 Merge from Samba 3.0:
>Patch from Gregory Hinton Nietsky <gregory@networksentry.co.za>,
>ensure the desired access is read from the incoming RPC request.
>Jeremy.
(This used to be commit a556637d0b)
2003-09-15 05:25:49 +00:00
Tim Potter
7e7d43d203 This ldap_value_free() looks like it was part of Jeremy's recent rampage
so I'm putting it back in.
(This used to be commit ec49fc8ab7)
2003-09-15 05:20:00 +00:00
Tim Potter
aafb99dc8f Merge from Samba 3.0:
>Still on my mb rampage. Ensure smbldap_make_mod() correctly detects old
>values.
>Jeremy.
(This used to be commit 9df18a6c4e)
2003-09-15 05:19:07 +00:00
Tim Potter
b7ddb77793 I think this is a bugfix that somehow was dropped from the 3.0 tree.
(This used to be commit 299eb0abd3)
2003-09-15 05:12:30 +00:00
Tim Potter
b584f74bd7 Merge from Samba 3.0:
>Fix a nasty mess, and also bug #296. passdb/pdb_ldap.c was not converting
>to/from utf8 for some calls. The libads code gets this right. Wonder why
>the passdb code doesn't use it ?
>Jeremy.
(This used to be commit 258c106e22)
2003-09-15 05:03:11 +00:00
Tim Potter
d8231592bc Merge from Samba 3.0:
>Fix for MacOS/X which uses STUPID BROKEN UNICODE COMPOSE CHARACTERS !
>(rant off :-). Inspired by work from Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>.
>Also add MacOSX/Darwin configure fixes.
>Jerry - can we put this in 3.0 release ? :-).
>Jeremy.
(This used to be commit 67acde75d3)
2003-09-15 05:02:12 +00:00
Tim Potter
a9cd4a6ae1 Merge from Samba 3.0:
>For some reason testparm runs at debug level 2 which causes the module probe functions to
>display verbose debugs.  Increase the probe debugs to level 3.
(This used to be commit be91bbd570)
2003-09-15 05:01:27 +00:00
Tim Potter
eae6e9f155 Merge from Samba 3.0:
>Fix from Craig Barratt <cbarratt@users.sourceforge.net> to fix restore
>with filenames > 100 chars.
>Jeremy.
(This used to be commit a7bbfd6367)
2003-09-15 04:59:45 +00:00
Jeremy Allison
0d9410f61d Patch from Gregory Hinton Nietsky <gregory@networksentry.co.za>,
ensure the desired access is read from the incoming RPC request.
Jeremy.
(This used to be commit fdc5dda44f)
2003-09-15 03:36:04 +00:00
Tim Potter
1d7e64e091 For some reason testparm runs at debug level 2 which causes the module probe functions to
display verbose debugs.  Increase the probe debugs to level 3.
(This used to be commit d71a7470d7)
2003-09-15 00:19:25 +00:00
Jeremy Allison
bb3f2a3e63 Fix for typo in darwin detection.
Jeremy.
(This used to be commit 8a57f1a72c)
2003-09-14 19:18:48 +00:00
Jeremy Allison
cba653c30a Fix for MacOS/X which uses STUPID BROKEN UNICODE COMPOSE CHARACTERS !
(rant off :-). Inspired by work from Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>.
Also add MacOSX/Darwin configure fixes.
Jerry - can we put this in 3.0 release ? :-).
Jeremy.
(This used to be commit f23acb4ca5)
2003-09-13 22:41:21 +00:00
Jeremy Allison
76d0a7ca08 Fix from Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>. Revered
condition meant fast-path in strchr_m was not being used. Doh !
Jeremy.
(This used to be commit f23c9d36b0)
2003-09-12 21:41:18 +00:00
Tim Potter
a0fb605c25 Fix another crash bug in samsync.
(This used to be commit 675707c33e)
2003-09-12 02:03:28 +00:00
Jeremy Allison
a4e5e3f3a5 Fix from Craig Barratt <cbarratt@users.sourceforge.net> to fix restore
with filenames > 100 chars.
Jeremy.
(This used to be commit aa40a86cbe)
2003-09-12 01:25:35 +00:00
Gerald Carter
8ce241cb80 fix unitiailized timestamp where merging print_jobs and lpq listing
(This used to be commit 8382cd6796)
2003-09-11 17:01:26 +00:00
Gerald Carter
1d0329c768 remove getpwnam() calls from init_sam_from_xxx().
This means that %u & %g will no longer expand, but %U
and %G still do.  The payback is that winbindd local
accounts for users work with 'wbinfo -u' when winbind
is running on a PDC.
(This used to be commit eb02fcf3c2)
2003-09-11 16:52:10 +00:00
Tim Potter
95bfe31c1f Merge from samba-3.0:
>Fix for bug #273 - smbd crash on machine account change.
>Someone only half changed the code to use dc_name
>instead of remote machine... Found via back trace from Dariush Forouher
><dariush@forouher.de>.
>Jeremy.
(This used to be commit 1956478dde)
2003-09-11 07:34:44 +00:00
Tim Potter
5cb0429139 Merge from samba-3.0:
>Revision 1.8.2.33
>Fix error return path memory leaks in vampire code for creating users.
>
>Display an error if we can't create a posix account for the user
>(e.g no add user/machine script was specified; bug #323).

>Revision 1.8.2.32:
>Use opt_target_workgroup instead of lp_workgroup() in vampire code so
>we can override the value in smb.conf with the -w option.
>
>Migrating accounts from another domain can now be done like:
>
># bin/net join bdc -w nt4dom -Uadministrator%password
># bin/net rpc vampire -w nt4dom -U administrator%password
(This used to be commit 36f7d88edd)
2003-09-11 07:33:05 +00:00
Tim Potter
0788e30fe1 Merge from samba-3.0:
>Formatting fixups for help output.
(This used to be commit fe7c8e3968)
2003-09-11 07:32:04 +00:00
Tim Potter
7c6b4a1d18 Merge from samba-3.0:
>Fix error message when calling namedtogid() fails adding a group map
>entry.  Bug #431.
(This used to be commit 1befe17583)
2003-09-11 07:31:39 +00:00
Tim Potter
5cf58a1b98 Fix error message when calling namedtogid() fails adding a group map
entry.  Bug #431.
(This used to be commit bc8a181477)
2003-09-11 01:57:08 +00:00
Jeremy Allison
4fd6fdd9a9 Ensure we consistantly translate to/from utf8 for talking to LDAP.
Jeremy.
(This used to be commit b5d953bc26)
2003-09-10 23:49:23 +00:00
Jeremy Allison
c068cd37b9 Still on my mb rampage. Ensure smbldap_make_mod() correctly detects old
values.
Jeremy.
(This used to be commit 41e4479aa9)
2003-09-10 23:14:18 +00:00
Jeremy Allison
ca1c6ebb11 Fix a nasty mess, and also bug #296. passdb/pdb_ldap.c was not converting
to/from utf8 for some calls. The libads code gets this right. Wonder why
the passdb code doesn't use it ?
Jeremy.
(This used to be commit 910d21d316)
2003-09-10 22:33:06 +00:00
Jelmer Vernooij
ff166384c8 Remove obsolete files.
(This used to be commit 3d71340e5c)
2003-09-10 19:47:13 +00:00
Jeremy Allison
b5f07b9ca8 Fix for bug #273 - smbd crash on machine account change.
Someone only half changed the code to use dc_name
instead of remote machine... Found via back trace from Dariush Forouher
<dariush@forouher.de>.
Jeremy.
(This used to be commit 963b24ac1a)
2003-09-10 18:34:57 +00:00
Jeremy Allison
ec9f544561 Fix stupid typo bug causing CPU spin. Spotted by Markus Ungermann <ungermann@elzet80.de>
Jeremy.
(This used to be commit c5ed59b37b)
2003-09-10 18:03:24 +00:00
Alexander Bokovoy
1c138c6181 Back out --with-good-getgrouplist patch
(This used to be commit d2fdc3955f)
2003-09-10 15:41:07 +00:00
Alexander Bokovoy
85087fbac5 Back out --with-good-getgrouplist patch
(This used to be commit 424b13823b)
2003-09-10 15:39:21 +00:00
Alexander Bokovoy
37737023a8 Support for CAN-2003-0689 port from SAMBA_3_0
(This used to be commit 69b30ec077)
2003-09-10 14:03:08 +00:00
Alexander Bokovoy
cf598c5c1c Now that CAN-2003-0689 is published officially, we need to make possible
to build on systems with fixed getgrouplist() in GNU libc < 2.3.2.
Unfortunately, we can't detect correctness of getgrouplist() functioning in
portable way so this is left up to developer/packager.

This patch adds --with-good-getgrouplist[=no] switch to configure which packagers
on Linux platforms could use to specify in their own builds if they now that glibc
on their platform is fixed w.r.t CAN-2003-0689. By default we still think that glibc
is vulnerable and perform our version check.

** This patch does not change default behaviour in Samba 3.0 -- by default we are not
vulnerable on glibc as we are not using getgrouplist()

See http://www.securityfocus.com/bid/8477 for vulnerability description.

Right now there are following Linux vendors released glibc updates for CAN-2003-0689:

RedHat -- https://rhn.redhat.com/errata/RHSA-2003-249.html
ALTLinux -- http://www.altlinux.com/index.php?module=sisyphus&package=glibc
(This used to be commit e53622c114)
2003-09-10 13:39:09 +00:00
Tim Potter
4059dfcca2 Fix error return path memory leaks in vampire code for creating users.
Display an error if we can't create a posix account for the user
(e.g no add user/machine script was specified; bug #323).
(This used to be commit 0c35ba2cd6)
2003-09-10 06:58:41 +00:00
Tim Potter
51297321ba Use opt_target_workgroup instead of lp_workgroup() in vampire code so
we can override the value in smb.conf with the -w option.

Migrating accounts from another domain can now be done like:

# bin/net join bdc -w nt4dom -Uadministrator%password
# bin/net rpc vampire -w nt4dom -U administrator%password
(This used to be commit d7bd3c1efb)
2003-09-10 06:49:13 +00:00
Tim Potter
ab87cee6cb Formatting fixups for help output.
(This used to be commit c030d14019)
2003-09-10 06:15:07 +00:00
Tim Potter
623a46b7e4 Remove tags file for distclean.
(This used to be commit 2ac5ac4950)
2003-09-10 03:59:35 +00:00
Tim Potter
2002fbd72e Remove tags file for distclean.
(This used to be commit c972fac195)
2003-09-10 03:59:07 +00:00
Tim Potter
80a11b868d Remove another dead file.
(This used to be commit a5656a5756)
2003-09-10 03:49:43 +00:00
Tim Potter
f59a010674 Remove autogenerated file.
(This used to be commit 275bdc3ff5)
2003-09-10 03:47:10 +00:00
Tim Potter
ca4dabf12c Removed accidentally re-added file.
(This used to be commit a7bffe2095)
2003-09-10 03:34:21 +00:00
Jeremy Allison
ee51d6aabe Fix mb bug in fast path code. strlen_w() returns number of *characters*
not number of bytes. Reproduce this by trying to rename the file named :
sibrseau -> sibrseaU
from Windows 2000 explorer.
Jeremy.
(This used to be commit 035f595995)
2003-09-10 02:21:24 +00:00
Gerald Carter
9a9031ec72 remove references to 'strip dot'
(This used to be commit b5c5a9dc76)
2003-09-10 00:43:00 +00:00
Gerald Carter
b33b228455 remove references to 'strip dot'
(This used to be commit 5c0c9d68b4)
2003-09-10 00:40:32 +00:00
Gerald Carter
fd5b572f55 version.h is autogenerated now
(This used to be commit 04f8cbbca6)
2003-09-09 18:29:33 +00:00
Gerald Carter
7f438c3b9e removing unused files
(This used to be commit 1a9145015d)
2003-09-09 04:14:19 +00:00
Gerald Carter
4093bf7ff8 sync 3.0 into HEAD for the last time
(This used to be commit c17a7dc9a1)
2003-09-09 04:07:32 +00:00
Gerald Carter
6a87470cdd bumping new version to CVS 3.01pre1; optmistic about RC3
(This used to be commit fb69ca974d)
2003-09-09 02:02:33 +00:00
Jeremy Allison
e99b77985d Don't double-increment p in hash calculation. Found by valgrind.
Jeremy.
(This used to be commit 514d9361c7)
2003-09-08 21:33:18 +00:00
Jeremy Allison
16e6d22408 Fix valgrind-found read of uninit variable (ensure length is right).
Jeremy.
(This used to be commit 6fc0e529f7)
2003-09-08 21:26:30 +00:00
Jeremy Allison
07c90e499e Tidy up some formatting. Get ready for allowing bad password lockout. (based
on a patch posted from Richard Renard <rrenard@idealx.com>.
Jeremy.
(This used to be commit abf54b58e9)
2003-09-08 20:42:33 +00:00
Jeremy Allison
5daacc87b5 Protect against core dump if ioctl for print job sends invalid fid. Found
by Iskantharajah T <is@tracetec.com.my>.
Jeremy.
(This used to be commit a9f9dd71da)
2003-09-08 20:27:28 +00:00
Jeremy Allison
206d0f4156 Fix for incorrect error message - found by Alex Davis <alex14641@yahoo.com>.
Jeremy.
(This used to be commit 28631ef23f)
2003-09-08 18:41:42 +00:00
Gerald Carter
e56192d0cf make sure we substitute basic variables in read/write list
(This used to be commit 52bea54d35)
2003-09-08 15:24:01 +00:00
Gerald Carter
7a0b58a012 fix compile error on HP-UX 10.20
(This used to be commit 15d53fd53c)
2003-09-08 14:00:51 +00:00
Gerald Carter
154451465b fix valgrind errors; don't access cli_state pointer after it has been shutdown
(This used to be commit 02ae82fb3f)
2003-09-08 13:53:19 +00:00
Tim Potter
66abd44c6d Set PICFLAG="-fPIC" for gcc under HPUX.
(This used to be commit 7f2533207e)
2003-09-08 06:30:49 +00:00
Tim Potter
f87bd75423 Fix for bug #299.
There was some confusion over dynamically allocated lists of pointers
(i.e you have to make space for the list of pointers and what they are
pointing too) in the memory buffer passed in from libc.

Valgrind is much happer now and as a bonus there is no segfault.
(This used to be commit 7907c44414)
2003-09-08 05:51:57 +00:00
Tim Potter
605281ef4b Rename FOOLIBS to FOO_LIBS to be consistent with the rest of the
library variable names.
(This used to be commit 9b0b0256a8)
2003-09-08 02:48:06 +00:00
Tim Potter
b42500299c Fix for bug #334. We don't unmarshall the trusted domain or secrets
info delta correctly and thus crash when doing a net rpc samdump.

The easiest thing at the moment it to comment out these functions as
they seriously don't correspond with reality (netmon/ethereal) and the
data in the containers aren't used anyway.
(This used to be commit 695aa39c5d)
2003-09-08 02:13:38 +00:00
Tim Potter
5660c449ef Reformat debug.
(This used to be commit 3aab7a3bc7)
2003-09-08 01:28:48 +00:00
Tim Potter
678de276cd When enumerating dfs shares loop from 0 to lp_numservices() instead of
relying on lp_servicename(n) to return an empty string for invalid
service numbers.  For some reason it is returning NULL now.

Fixes bug 403.
(This used to be commit cebb2abd2e)
2003-09-08 00:55:29 +00:00
Volker Lendecke
1c38391c70 Nobody complained on the team-list, so commit it ...
This implements some kind of improved AFS support for Samba on Linux with
OpenAFS 1.2.10. ./configure --with-fake-kaserver assumes that you have
OpenAFS on your machine. To use this, you have to put the AFS server's KeyFile
into secrets.tdb with 'net afskey'. If this is done, on each tree connect
smbd creates a Kerberos V4 ticket suitable for use by the AFS client and
gives it to the kernel via the AFS syscall. This is meant to be very
light-weight, so I did not link in a whole lot of libraries to be more
platform-independent using the ka_SetToken function call.

Volker
(This used to be commit 5775690ee8)
2003-09-07 16:36:13 +00:00
Jeremy Allison
c4b69a9ca1 Use djb-algorithm string hash - faster than the tdb one we used to use.
Jeremy.
(This used to be commit f094555ed9)
2003-09-06 21:43:23 +00:00
Gerald Carter
dc7ea5851c finish off bug 282. AAdd extra checks for pointers after
ads_search_XXX() calls.
(This used to be commit 74c02e5fbc)
2003-09-06 20:00:16 +00:00
Jeremy Allison
6007eae339 Change some internal interfaces to cause the hash (which is *expensive*)
to be calculated less often. No change to external interface.
Jeremy.
(This used to be commit 155c9ce666)
2003-09-06 19:59:12 +00:00
Gerald Carter
5bd4af1302 fix bug 382: make sure to free and reset the cli_state pointer after flushing connections in winbindd_pam_auth[_crap]()
(This used to be commit 60c8796edd)
2003-09-06 19:49:59 +00:00
Gerald Carter
c913fc0581 address bug #359. Andrew B's patch for implementing client
portion of NTLMv2 key exchange.  Also revert the default for
'client ntlmv2 auth' to no.  This caused no ends of grief in
different cases.

And based on abartlet's mail....

> All I care about at this point is that we use NTLMv2
> in our client code when connecting to a server that
> supports it.

There is *no* way to tell this.  The server can't tell us, because it
doesn't know what it's DC supports.  The DC can't tell us, because it
doesn't know what the trusted DC supports.  One DC might be Win2k, and
the PDC could be an older NT4.
(This used to be commit fe585d49cc)
2003-09-06 19:23:24 +00:00
Gerald Carter
d5bef211d0 revert retry loops in winbindd_ads as abartket points out, we
already have ads_search_retry() for this.  However, neither
domain_sid() nor sequence_nunber() used this function.  So modify
them to us ads_do_search_retry() so we can specify the base search
DN and scope.
(This used to be commit 89f6adf830)
2003-09-06 18:02:19 +00:00
Jelmer Vernooij
14b438e90a Only set sids when they're retrurned by the MySQL query
(This used to be commit 9a603f6f07)
2003-09-06 12:21:08 +00:00
Jeremy Allison
966b0fc7c9 More cachegrind tuning, plus fix an error message.
Jeremy.
(This used to be commit 8cb9ec5d53)
2003-09-05 21:30:50 +00:00
Jeremy Allison
94f59f5492 More tuning from cachegrind. Change most trim_string() calls to trim_char(0,
as that's what they do. Fix string_replace() to fast-path ascii.
Jeremy.
(This used to be commit f35e9a8b90)
2003-09-05 19:59:55 +00:00
Gerald Carter
7544b0c773 fixes for ads domain membership when only the realm is defined in
smb.conf

Fixes to ensure we work with disable netbios = yes
(This used to be commit 3913e43724)
2003-09-05 17:57:45 +00:00
Gerald Carter
cadff24182 revert the change from r1.414 in HEAD that removed the
ability to use variables in paths for the [homes] service.
(This used to be commit 8fd13b6310)
2003-09-05 14:53:10 +00:00
Gerald Carter
1f32535d60 fix some output formatting
(This used to be commit 0283b0152e)
2003-09-05 13:25:49 +00:00
Gerald Carter
2d5cf1d451 reformatting
(This used to be commit 5c3094ee55)
2003-09-05 13:21:35 +00:00
Gerald Carter
605caa4172 fix some problems with the findsmb script due to changes in smbclient & nmblookup
(This used to be commit 50bb063f3b)
2003-09-05 13:07:41 +00:00
Volker Lendecke
f0441479f4 Very weird. On my SLES8 installation ntlm_auth would give missing
kerberos symbols unless I do the same as smbd does. It does not hurt
on my debian, so simply give a pointer to LDAPLIBS as well.

Volker
(This used to be commit 353d527291)
2003-09-05 09:36:10 +00:00
Tim Potter
25f66c810a Fix for bug 282 that didn't get checked in.
(This used to be commit e3f5afb831)
2003-09-05 05:57:24 +00:00
Gerald Carter
5a74bdd7aa fix bug 397: use a variant of alloc_sub_basic() for string lists.
(This used to be commit 62d5611df0)
2003-09-05 05:32:32 +00:00
Gerald Carter
4fd8542cf5 should fix bug 364 & 311: Retry patch based on suggestion from
Ken Cross.  Sometimes ads conenction get stale but we don't know
they are dead until we try them. This patch may need some optimization
after people bang on it for a while.
(This used to be commit 7021cf63a4)
2003-09-05 04:46:44 +00:00
Tim Potter
e414564eb6 Fix for bug #73. Name types can be specified using name#type notation.
Also added shortcut so that 'net lookup foo#1b' works.
(This used to be commit f38679201e)
2003-09-05 04:40:10 +00:00
Tim Potter
5bbdf6a5d0 Move $(KRBCLIENT_OBJ) to libnss_wins PICOBJ variable so it is converted to
relocatable form.

Added a comment about this in the hope that it won't happen again.

Renamed PAM_WINBIND_OBJ to PAM_WINBIND_PICOBJ to make it a bit clearer.
(This used to be commit 04797e12d8)
2003-09-05 03:05:37 +00:00
Jeremy Allison
ff78c21f51 Hand optimisatinos for strrchr_m using the properties we know about MB
character sets and how we use this call.
Jeremy.
(This used to be commit a9709700ee)
2003-09-05 01:33:22 +00:00
Tim Potter
2dacf5e00c Return 0 DFS links instead of -1 when dfs support is not enabled.
Possible fix for bug 403.
(This used to be commit 6babab93ff)
2003-09-05 00:55:44 +00:00
Tim Potter
7444f0fc7b Removed {OLD,NEW}_NTDOMAIN cruft from mkproto.awk
(This used to be commit 061decb608)
2003-09-04 23:55:44 +00:00
Jeremy Allison
08c3907f4e Fastpath strchr_m for ASCII.
Jeremy.
(This used to be commit b3176f2ec2)
2003-09-04 23:26:13 +00:00
Jeremy Allison
0e8c2a4133 More hand-tuning of the fastpath. Don't do strlen() when we're doing
to walk to the end anyway.
Jeremy.
(This used to be commit 467cafdb1f)
2003-09-04 23:03:58 +00:00
Gerald Carter
bf0f3be29d Check in Andrew's fix for bug #305 (always use lp_realm() )
Also make sure thet ads_startup uses lp_realm instead of
just relying on the workgroup name.  Fixes bug in net ads join
when the workgroup defaults to "WORKGROUP" and we ignore the
realm name.
(This used to be commit b1763ace4e)
2003-09-04 19:45:04 +00:00
Jeremy Allison
22831019dc Remove convert_string_internal completely from fast path when processing
NBENCH calls. Requires fixed buffer size for strdup_upper().
Jeremy.
(This used to be commit e98fbfaf38)
2003-09-04 18:40:55 +00:00
Jeremy Allison
3c1c2ddf9a Fix UNIX passwd sync properly. I've finally understood
the as_root parameter has bugger all to do with who you *currently*
are, and everything to do with who you run the script as. Doh !
Jeremy.
(This used to be commit 17a241d9f7)
2003-09-04 18:02:17 +00:00
Tim Potter
d5bd98dd9a More FreeBSD PAM compile fixes. Don't redefine PAM_AUTHTOK_RECOVER_ERR
if it already exists.  FreeBSD 4.8 doesn't need the redefinition, 5.0 does.
(This used to be commit 4a3727b03b)
2003-09-04 03:28:40 +00:00
Tim Potter
c7accf6a72 Produce an error if --with-pam_smbpass is specified and we can't
find libpam or security/pam_appl.h

Also change the warnings when we can't do --with-pam_smbpass when
is was requested to errors.
(This used to be commit fe3fb58623)
2003-09-04 02:23:43 +00:00
Tim Potter
fb638ddf99 Quieten level 0 debug when probing for modules. We shouldn't display so loud
an error when a smb_probe_module() fails.  Also tidy up debugs a bit.

Bug 375.
(This used to be commit 24a1720472)
2003-09-04 02:02:26 +00:00
Jeremy Allison
245fbf7efb Used cachegrind to track down some bottlenecks.
Removed calls to clobber_region when not compiling with developer as
they were hiding speed problems.
Added fast path to convert_string() when dealing with ascii -> ascii,
ucs2-le to ascii and ascii to ucs2-le with values <= 0x7F. This
gives a speedup of 22% on my nbench tests.
Next I will do this on convert_string_allocate.
Jeremy.
(This used to be commit ef140d15ea)
2003-09-04 01:12:39 +00:00
Tim Potter
7da5c6a0e7 Produce an error if --with-pam is specified but no PAM headers can be
found.
(This used to be commit dc43c2dd1b)
2003-09-04 00:51:50 +00:00
Jeremy Allison
9c570af333 Fix up overlapping memcpy -> memmove found by valgrind.
Jeremy.
(This used to be commit e0c1460c6b)
2003-09-03 00:56:43 +00:00
Jim McDonough
d517c1d613 Try to add memory keytab support. It also includes much of the generic
keytab support code, but it won't be enabled until we add that to smb.conf.
Adapted from the work of Guenther Deschner (gd@suse.com).

Please hammer on this...
(This used to be commit a26fa5bee2)
2003-09-03 00:45:15 +00:00
Jeremy Allison
a7e8e39b91 Proposed patch for #308. Needs testing.
Jeremy
(This used to be commit e2b73477e7)
2003-09-02 23:58:39 +00:00
Jim McDonough
7d378e9a11 Disable rc4-hmac on broken heimdal setups. Pre-0.7 heimdal (or at least up
to a very recent snapshot) has arcfour-hmac code that doesn't work with
windows.  Love suggested detecting it via the existence of KEYTYPE_ARCFOUR_56
which only exists in working versions.
(This used to be commit e039a61e51)
2003-09-02 18:31:41 +00:00
Jim McDonough
409c6d1407 Check for support for in-memory keytabs, which are needed to make heimdal
work properly.  MIT does not support them, so this check will be used to
decide whether to use them.  First part of fixing bug #372.
(This used to be commit 85737fc937)
2003-09-02 17:02:09 +00:00
Tim Potter
ea7b4b6c32 Fix for bug 261. Create a configure #define for FreeBSD and a check in
nsswitch/pam_winbind.h so we can compile properly on this platform.
(This used to be commit 75411005fc)
2003-09-02 00:09:31 +00:00
Jeremy Allison
9b276fc77f Fix comment strings to 43 bytes as per spec.
Jeremy.
(This used to be commit f1ec43fae4)
2003-09-01 18:28:09 +00:00
Alexander Bokovoy
39abb5cacc Proper fix for #380 -- use different algorithm to generate codepages
source code which allows to take gaps into account thus making unneccessary
extended [index] = value, syntax in to_ucs2 array
(This used to be commit 4ab08a4bb8)
2003-09-01 11:33:42 +00:00
Alexander Bokovoy
bce1fcd76b Fix CP437 and CP850 syntax for old compilers removing ANSI C99-specifics
(This used to be commit 61c671bd69)
2003-09-01 11:26:57 +00:00
Tim Potter
0869073b7b Fix bug 342. Short version of --add now -a instead of -A.
(This used to be commit 233568dd6b)
2003-09-01 10:43:21 +00:00
Tim Potter
0548123153 We don't need to #include memory.h here. It's a BSD'ism and just includes
string.h anyways.
(This used to be commit 71034cede8)
2003-08-31 23:58:55 +00:00
Alexander Bokovoy
01e9f9788c Remove cap_set_quota as it is the same as default one
(This used to be commit e123f1a8c8)
2003-08-29 09:24:24 +00:00
Steve French
78e75d4f6c Update mount helper to take synonyms for file_mode and dir_mode (fmask and dmask)
(This used to be commit 89a0e97094)
2003-08-29 07:31:39 +00:00
Gerald Carter
f13957824d bumping version
(This used to be commit e5f091e795)
2003-08-29 04:15:59 +00:00
Tim Potter
48cb8f8d5f Fix some compiler warnings.
(This used to be commit f566de0541)
2003-08-29 01:33:00 +00:00
Tim Potter
d425729fd9 Add log2pcap to everything target.
(This used to be commit fb446ba811)
2003-08-29 01:25:17 +00:00
Jeremy Allison
fcdebdae6f Fix bug found by tridge in 2.2.x. Ensure that %U substitution is
restored on next valid packet if a logon fails. This has relevence
if people are using su.exe within logon scripts !
Jeremy.
(This used to be commit d405a93a9d)
2003-08-28 23:57:34 +00:00
Jeremy Allison
afe845235a Fixed warnings in secret code.
Jeremy.
(This used to be commit 86ebf99043)
2003-08-28 23:38:13 +00:00
Gerald Carter
9809c98f24 make sure using_samba 2ed. files get installed ok
(This used to be commit 55b6129bd1)
2003-08-28 21:23:04 +00:00
Gerald Carter
019349339e getting rid of copmpiler warning
(This used to be commit d3f5c5c220)
2003-08-28 20:48:04 +00:00
Gerald Carter
494bb81bb0 fixing typos pointed out by Vance in WHATSNEW
Include patch to manually set the machine trust account
password (on request from jht) to mimic 2.2. behavior.

last changes before RC2 (not counting syncing the docs).
(This used to be commit ce09037144)
2003-08-28 20:24:25 +00:00
Jeremy Allison
569c2827fa Add length warning on register name.
Jeremy.
(This used to be commit 68d02ebbcd)
2003-08-28 18:23:05 +00:00
Jeremy Allison
6872f392f1 Fixed off-by-one bugs in workgroup name comparisons. Complain when a
workgroup name is >15 characters.
Jeremy.
(This used to be commit 35a0b3c035)
2003-08-28 18:12:59 +00:00
Jeremy Allison
76bcb93c66 Fix rename of struct gap. ab - LOOK AT THIS. You changed one module
but not the other. This now compiles but I need verification.
Jeremy.
(This used to be commit 787c9764b3)
2003-08-28 18:11:11 +00:00
Alexander Bokovoy
e83031c84d Refactor charset plugins a bit and add CP437 module.
Now all 8-bit charsets with gaps (not all symbols defined) could be produced through
one macro -- SMB_GENERATE_CHARSET_MODULE_8_BIT_GAP(CHARSETNAME) within source file
with three charset tables. Full source code for such modules can be generated by
source/script/gen-8bit-gap.sh script which was taken from GNU libc and changed slightly
to follow our data types and structure.
(This used to be commit 37042c7bc0)
2003-08-28 17:16:27 +00:00
Gerald Carter
3d393502e7 revert a change to r1.397.2.91 because to operate like the docs; browseable for new home directories should be inheritied from the global defaults, not [homes]
(This used to be commit ea54bfc211)
2003-08-28 16:13:16 +00:00
Jim McDonough
53a2778363 Fix email address in copyright statement
(This used to be commit ffc82460f2)
2003-08-28 14:57:23 +00:00
Alexander Bokovoy
811bd3b3ba skel_ -> cap_
(This used to be commit 8bb033273a)
2003-08-28 12:30:35 +00:00
Jeremy Allison
ce236ad65d Remove what looks like gcc-isms.
Jeremy.
(This used to be commit ed72e0a1d5)
2003-08-27 23:23:17 +00:00
Rafal Szczesniak
06fb721d7f Typo fix.
(This used to be commit 934fb418a3)
2003-08-27 22:05:52 +00:00