1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-12 04:23:49 +03:00
Commit Graph

143 Commits

Author SHA1 Message Date
Jeremy Allison
78dc756000 We don't need P_GSTRING or P_UGSTRING anymore.
Jeremy.
2007-12-07 12:43:10 -08:00
Volker Lendecke
31d0a846db Remove some globals 2007-12-05 14:39:07 +01:00
Jeremy Allison
f9c8d62389 Make strhex_to_str clear on string limits. Remove pstring from web/*.c
Jeremy.
2007-12-03 17:17:05 -08:00
Volker Lendecke
49949f0b85 Make remote_password_change return malloced error strings
This fixes a segfault in smbpasswd -r
2007-11-23 13:04:50 -08:00
Jeremy Allison
f652fe2bdb Remove pstrings from pam_smbpass - make local_password_change
return malloced strings.
Jeremy.
2007-11-21 17:42:52 -08:00
Jeremy Allison
1ea3ac8014 More pstring removal. This one was tricky. I had to add
one horror (pstring_clean_name()) which will have to
remain until I've removed all pstrings from the client code.
Jeremy.
2007-11-15 14:19:52 -08:00
Jeremy Allison
793a9d24a1 Fix the popt / bool issues. Some places we used BOOL
where we meant int. Fix this. Thanks to metze for
pointing this out.
Jeremy.
2007-10-19 11:38:36 -07:00
Jeremy Allison
f35a266b3c RIP BOOL. Convert BOOL -> bool. I found a few interesting
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
2007-10-18 17:40:25 -07:00
Volker Lendecke
191e1ef840 r24701: Fix the swat build
Swat has not been built by default for a while, so I did not notice that
the _ macro is actually used. Re-add the lang_msg_rotate function, this
time only to swat so that this is the only binary that has to take the
16k penalty.
2007-10-10 12:30:14 -05:00
Andrew Tridgell
b0132e94fc r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text 2007-10-10 12:28:22 -05:00
Jeremy Allison
407e6e695b r23779: Change from v2 or later to v3 or later.
Jeremy.
2007-10-10 12:28:20 -05:00
Volker Lendecke
af3308ce5a r21784: Replace smb_register_idle_event() with event_add_timed(). This fixes winbind
who did not run the idle events to drop ldap connections.

Volker
2007-10-10 12:18:33 -05:00
Jeremy Allison
9dafb7f48c r16945: Sync trunk -> 3.0 for 3.0.24 code. Still need
to do the upper layer directories but this is what
everyone is waiting for....

Jeremy.
2007-10-10 11:19:14 -05:00
Jeremy Allison
e71cc6647a r16426: Klocwork #1544, #1545, #1546, #1549, #1550, #1552, #1553, #1554
Jeremy.
2007-10-10 11:18:53 -05:00
Deryck Hodge
4ad7276cef r15465: Fix segfault in SWAT.
Fixes bug #3702.

deryck
2007-10-10 11:16:50 -05:00
James Peach
950ed28f9f r14255: Revert r14204 which was horribly broken. 2007-10-10 11:15:21 -05:00
James Peach
23328fe6fc r14204: Remove the basically unused P_GSTRING and P_UGSTRING
parameter types.
2007-10-10 11:15:16 -05:00
Gerald Carter
1b955bbf59 r13383: pulling in swat-welcome patch from SuSE packaging 2007-10-10 11:09:57 -05:00
Gerald Carter
17e63ac4ed r13316: Let the carnage begin....
Sync with trunk as off r13315
2007-10-10 11:06:23 -05:00
Derrell Lipman
f2a24de769 r13212: r12414@cabra: derrell | 2006-01-28 17:52:17 -0500
lp_load() could not be called multiple times to modify parameter settings based
 on reading from multiple configuration settings.  Each time, it initialized all
 of the settings back to their defaults before reading the specified
 configuration file.

 This patch adds a parameter to lp_load() specifying whether the settings should
 be initialized.  It does, however, still force the settings to be initialized
 the first time, even if the request was to not initialize them.  (Not doing so
 could wreak havoc due to uninitialized values.)
2007-10-10 11:06:18 -05:00
Jeremy Allison
417ef5bffa r13140: Fix swat - make sure it can list running services (ensure loopback_ip)
is defined. Jerry - this needs to be in 3.0.21b.
Jeremy.
2007-10-10 11:06:15 -05:00
Jeremy Allison
c2752347eb r12522: Try and fix bug #2926 by removing setlocale(LC_ALL, "C")
and replace calls to isupper/islower/toupper/tolower with
ASCII equivalents (mapping into _w variants).
Jeremy.
2007-10-10 11:05:58 -05:00
Gerald Carter
85ea7afd8b r12393: cleaning up swat bugs. *no one* tests swat it seems. This has been broken since r10656 2007-10-10 11:05:54 -05:00
Gerald Carter
939c3cb5d7 r10656: BIG merge from trunk. Features not copied over
* \PIPE\unixinfo
* winbindd's {group,alias}membership new functions
* winbindd's lookupsids() functionality
* swat (trunk changes to be reverted as per discussion with Deryck)
2007-10-10 11:04:48 -05:00
Gerald Carter
9c78f3b0d6 r9790: remove 'set but not used' variables (reported by Jason Mader) 2007-10-10 11:03:26 -05:00
Gerald Carter
4d50671602 r9266: fix help links in swat editor after doc layout changes 2007-10-10 11:00:29 -05:00
Jeremy Allison
9506b8e145 r7882: Looks like a large patch - but what it actually does is make Samba
safe for using our headers and linking with C++ modules. Stops us
from using C++ reserved keywords in our code.
Jeremy
2007-10-10 10:58:00 -05:00
Deryck Hodge
3732705605 r6959: Meant to fix this before commiting, just to be consistent.
deryck
2007-10-10 10:56:59 -05:00
Deryck Hodge
cd12641383 r6958: Properly display quotes in SWAT. Thanks to Jay
Fenlason <fenlason@redhat.com> for spotting this issue.

deryck
2007-10-10 10:56:58 -05:00
Deryck Hodge
b9b18a09ea r6395: Fix for Bug 2137, from Jay Fenlason <fenlason@redhat.com>
Encode quotes for display in HTML.

deryck
2007-10-10 10:56:40 -05:00
Deryck Hodge
c9cacd553f r5179: Add -P (password-menu-only) option to swat. Admins can allow users
to use swat to change their password without allowing them to see
the "View" and "Status" buttons.

deryck
2007-10-10 10:55:32 -05:00
Jeremy Allison
8de0488809 r4369: Patch for bug #2190 (SWAT displaying parameters in UNIX charset)
not utf8. Fixed by Shiro Yamada <shiro@miraclelinux.com>.
Jeremy.
2007-10-10 10:53:46 -05:00
Tim Potter
7f161702fa r2835: Since we always have -I. and -I$(srcdir) in CFLAGS, we can get rid of
'..' from all #include preprocessor commands.   This fixes bugzilla #1880
where OpenVMS gets confused about the '.' characters.
2007-10-10 10:52:55 -05:00
Günther Deschner
6d9f77c2bb r2771: Second (and last) part of Swat-i18n-Patch from Björn Jacke
<bjacke@sernet.de>

"Do not use display charset for swat output. In HTML we do not care
about the "locale charmap" because HTML code is UTF-8 only now.
Additionally take care that we convert files from statuspage from unix
charset to UTF-8. Thus we have correct HTML output under all
circumstances. We now also convert the share names correctly from unix
encoding to web encoding and vice vera.  "

Guenther
2007-10-10 10:52:52 -05:00
Gerald Carter
08fc16d7e6 r492: BUG 483: patch from Michel Gravey <michel.gravey@optogone.com> to fix password hash creation in SWAT 2007-10-10 10:51:26 -05:00
Tim Potter
2285ec9737 printf -> d_printf
Bugzilla #1066.
-
Andrew Bartlett
955436a6f6 This should be the correct fix for the lack of a prototype for
remote_password_change().

Sorry for the original bug.

Andrew Bartlett
-
Gerald Carter
5a32f9568f fix problems with proto.h -
Gerald Carter
b60f6ec30d remerge andrew's cracklib patch from HEAD and fix a compile warnings -
Gerald Carter
5bf91c79d6 Ensure that items in a list of strings containing whitespace
are written out surrounded by single quotes.  This means that
both double and single quotes are now used to surround
strings in smb.conf.  This is a slight change from the previous
behavior but needed or else things like

    printer admin = +ntadmin, 'VALE\Domain, Admin'

get written to smb.conf by SWAT.
-
Tim Potter
351d16956d 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"));
-
Tim Potter
0192f41003 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.
-
Tim Potter
02725d4a3c Change title of SWAT globals page from 'Global Variables' to 'Global
Parameters' to be more consistent with the other pages.
-
Jelmer Vernooij
dd43a29504 - Update 'preload modules' documention (bug #304)
- Fix WINS Server List in SWAT (bug #197)
- Don't segfault SWAT when adding shares (bug #254)
-
John Terpstra
de7d3063d9 Cleanup of loadparm and swat to correctly display all parameters as required.
No change to what is displayed has been made at this time. I do intend to
change the display order before 3.0.0 ships.
-
John Terpstra
805c33b089 Add buttons to Printers View -
John Terpstra
79d6e72af5 Format tidy up. -
John Terpstra
37d2eed445 Added buttons to change view mode. Fixes bug #212 -
Gerald Carter
9f835b85dd convert snprintf() calls using pstrings & fstrings
to pstr_sprintf() and fstr_sprintf() to try to standardize.
lots of snprintf() calls were using len-1; some were using
len.  At least this helps to be consistent.
-
Tim Potter
8b818ce381 Replace the eight (!) copies of dummy become/unbecome root with a single one. -