1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-17 02:05:21 +03:00

10091 Commits

Author SHA1 Message Date
Tim Potter
a72eafee54 Rewrite of smbcontrol - it was a bit of a mess. It should now be much
nicer to use and more hackable.

 - converted to popt

 - text message destinations (except for broadcast smbd) are resolved
   using files in piddir so the string 'winbindd' is now a destination

 - added --timeout option to specify timeout value

 - deleted complicated handling of debug args as separate command line
   arguments: use shell quoting instead

 - deleted interactive mode as punishment for using strtok() (-:

 - much improved command line argument checking

Some of this stuff was broken before I started (print notify,
profiling) but the basics still work (ping, pool-usage, debug,
debuglevel).
(This used to be commit 269f838dee257ee9badcae190f2c70b898676bc5)
2003-04-09 05:52:01 +00:00
Martin Pool
5b70d85047 Set character set to default (UTF-8) before running tests.
(This used to be commit b20d8b49701b532d4770197c5d08fa092234bf8e)
2003-04-09 05:31:39 +00:00
Martin Pool
80cd7c552f t_push_ucs2, t_strcmp: Run tests only once by default, rather than
10000 times.  (In theory they should be pure functions....)  You can
specify a parameter to repeat them if you want to e.g. measure
performance.
(This used to be commit 92acecd28c3374abcadbff0ab9cb765411f453f4)
2003-04-09 05:22:17 +00:00
Gerald Carter
ff8d6da5a3 forgotten merge left on disk; remove extra SAFE_FREE()
(This used to be commit 4d42067cb89220a1b275bc8408c9c1ba2ef7766a)
2003-04-09 04:38:56 +00:00
Tim Potter
0aad60636d Install libsmbclient.h from $(srcdir)
(This used to be commit d396f57678056af6b0c384df324f94992cca85d0)
2003-04-09 04:20:29 +00:00
Tim Potter
e725e6a0b7 Autoconfiscate the name of the winbind shared library file. Under
IRIX this is libns_winbind - everyone else is libnss_winbind.

This simplifies the Makefile a bit and also fixes the 'nsswitch' target
under IRIX.
(This used to be commit 69c392bc127bf69876f4dedae8c3a6976219d448)
2003-04-09 04:05:42 +00:00
Tim Potter
117b2d78f0 Winbind client for AIX. Written by Steve Roylance.
(This used to be commit e37d025e6724196925c43c8ce558064ed5c072c5)
2003-04-09 03:51:52 +00:00
Jeremy Allison
667e6d8279 Ensure print queue array is zeroed out before returning.
Jeremy.
(This used to be commit 337cac7810369430045d7a136176bd57e55adcde)
2003-04-09 00:00:50 +00:00
Simo Sorce
90290b166b reworked to not malloc PATH_MAX long strings
corrected path_name creation
(This used to be commit f4be4e70a12edae83b9b89622ca5077a7d3d5602)
2003-04-08 17:34:16 +00:00
Alexander Bokovoy
a87d3b2cba Update smbmount to include unicode and lfs capabilities options -- smbfs supports this already
(This used to be commit a003a5f052a9ef7ad14f6f79157669d1bbd37f96)
2003-04-08 15:38:09 +00:00
Simo Sorce
1eda5b4987 some more debugging in case of failure
(This used to be commit 9374f8692f6587b5f773c72b7847b64edeee9614)
2003-04-08 10:46:46 +00:00
Martin Pool
bce94d35f1 Integrate abartlet's t_push_ucs2 test into test framework:
- Build t_push_ucs2 as part of check-programs, the prerequisite for
   "make check".

 - t_push_ucs2.c: Load configuration from /dev/null so that we get a
   unix_charset of UTF-8 and can do meaningful UCS2 tests.  Better
   comment.

 - Add a test to strings.py which tries conversion UTF8->UCS2->UTF8
   and checks the results.  Do this for English, Latin-1, and Katakana
   strings.

 - Add Python module with symbolic names for a handful of UNICODE
   characters.
(This used to be commit 275e095c92ac74815ab9e388a0e83cdb7ddd85f3)
2003-04-08 08:05:01 +00:00
Martin Pool
d3d0951a28 Merge from 1.2.2.2:
Update for new ComfyChair interface.
(This used to be commit 9de9899165fbf403e369d8ebadd171ffdde8c3b7)
2003-04-08 05:01:18 +00:00
John Terpstra
b610c18bd9 Patch from Steve Langasek <corlon@netexpress.net>
fix up two issues in
pam_smbpass.  The first, more important issue is adding support for the
(apparently new) LOCAL_SET_PASSWORD flag to local_password_change(),
without which pam_smbpass is a complete and utter no-op.  The second,
lesser issue is that with the advent of ldapsam, it's possible for
pam_smbpass to generate a SIGPIPE that isn't handled by the calling
application.  The most basic signal wrapping is put in place to prevent
this.

Beyond that, the only thing in the patch is a bit of reformatting to
make pam_smb_passwd.c look a bit more like the rest of the code in CVS.
(This used to be commit 7cb5af35273097f913bff6894fe03050a18e1def)
2003-04-08 04:44:26 +00:00
Tim Potter
09e9e5a2fd Added some preprocessor tricks to stop TRUE and FALSE from continually
creeping back in to the source.  Use True and False instead.
(This used to be commit 5a5a7ce7479a56ca2d472658511a47c9147c0d5b)
2003-04-08 04:07:22 +00:00
Martin Pool
65289c353b Merge from 3_0: Build a lookup table of valid DOS characters just
once, when init_iconv is first called.  Use this in check_dos_char
rather than doing the conversion every time.  Much faster.
(This used to be commit e8f1399323745a93ba9df97553effcf2d7629850)
2003-04-08 03:01:02 +00:00
Andrew Bartlett
38ec539cf5 We never actually got an 'ads' auth module, so don't send the auth subsystem
off on a wild probing spree looking for it.

Andrew Bartlett
(This used to be commit 7c7c5594b3dfd460d09bccd409ccbf64c6b42338)
2003-04-07 23:45:22 +00:00
Jim McDonough
1d247da97a Some comment updates, notably that I haven't seen the group membership arrays
yet (the ones that are rid-only).
(This used to be commit 0a5b5d00db42de868c72ec3d9d1d747c9ef391e4)
2003-04-07 20:34:46 +00:00
Jelmer Vernooij
d1c6c05ab0 BUGS.txt -> Bugs Appendix in HOWTO collection
(This used to be commit 1e1ef7a7b52f34ab784a7bac570235de221a64b6)
2003-04-07 18:26:58 +00:00
Simo Sorce
eac27adfb3 remove unnened and wrong instructions
(This used to be commit 671579874e51b28ffdfc094cdf34a0090567e0cc)
2003-04-07 18:05:35 +00:00
Simo Sorce
3b89c0656c fix wrong string handling
thanks to Stefan (metzte) Metzmacher
(This used to be commit 99c2e11ccfe04867e84b467b0e82de8415c1dcee)
2003-04-07 18:03:02 +00:00
Jim McDonough
31e21b67d9 Decode the PAC! This patch just decodes it and then frees it, so it's just
for doc purposes right now (you can see it in the debug logs).
(This used to be commit 046c2087a11b9ce7a02aece34ffb129ce0d66b08)
2003-04-07 18:01:40 +00:00
Jelmer Vernooij
c2fc81156c make installclientlib depend on the shared-linked or statically-linked version
of libsmbclient, depending on what is possible - pointed out by Paul Green
(This used to be commit 69e37469c4de6c3716ebb65e477009b9f4da54ea)
2003-04-07 17:36:59 +00:00
Jelmer Vernooij
b11e5b1342 Don't make installclientlib depend on the shared-linked version of libsmbclient - we need it to work on other platforms as well
(This used to be commit 77b1589188ba27b107f11232b7b7df4dea364948)
2003-04-07 16:44:08 +00:00
Jelmer Vernooij
e5f2a77971 Fix build of static libsmbclient
(This used to be commit 8f2975cc94c766b184bbbca276d5a05801dc835a)
2003-04-07 11:46:44 +00:00
Andrew Bartlett
a8f7eaee51 Only warn about short packets if we are already 'doing signing'.
Andrew Bartlett
(This used to be commit 9656b8709128f24dd63094d504a6646f99933c57)
2003-04-07 09:35:35 +00:00
Tim Potter
6254b9bd44 Create a pidfile, even when running in interactive mode.
(This used to be commit 1d7400e679df136f03daf79788ea998c5a787f89)
2003-04-07 07:12:25 +00:00
Tim Potter
69e41084b9 privilaged -> privileged
(This changes the location of the winbindd privileged pipe)
(This used to be commit f111f10076c7797e5fd39edcc0aad7d860bb5ac5)
2003-04-07 06:43:16 +00:00
Tim Potter
25b1c37f6f Remove duplicate "tallocdump" message from tdb messaging system. The
same functionality exists as "pool-usage".

Move initialisation of this and dmalloc messages inside message_init().
(This used to be commit af6ecafcbbf65dbedc49b3a86da39ce608bdadac)
2003-04-07 06:13:36 +00:00
Andrew Bartlett
998d65d502 Restore previous behaviour to update on pdb_unix (auto-upgrade to new account)
(This used to be commit 0509cbc59174354b7c57206a07f7bd222cc87db4)
2003-04-07 04:52:30 +00:00
Richard Sharpe
f4cc85c6c9 Fix the handling of smb.conf in libsmbclient.
The right thing to do is to try for the user's local one in ~/.smbc/smb.conf,
and if that fails, try the one in dyn_CONFIGFILE, and if that fails, keep
going with the defaults but log a message.
(This used to be commit 15fa48d19d178cf8bf214ea02f6c7a4c38890f71)
2003-04-06 17:22:41 +00:00
Simo Sorce
df883f35b2 fix commit
(This used to be commit ad1a2ab0d6330a0b0fbce7b30ec5f6f502133921)
2003-04-06 16:01:18 +00:00
Andrew Bartlett
ffe91a3526 Clean up error messages on cli pipe disconnection, including adding the message
for broken-due-to-bad-sig.

Andrew Bartlett
(This used to be commit b010b6c2dc400a97eb2ad038cd1fdb34bbde2ef0)
2003-04-06 13:19:49 +00:00
Alexander Bokovoy
a1283a6bf0 Fix some mixture of FLAG_GLOBAL|FLAG_SHARE in synonyms
(This used to be commit e46177acecef375aaea35704a513d9e7f8bf04a8)
2003-04-06 13:16:28 +00:00
Andrew Bartlett
6187ebe30c Fix the interface of pull_ucs2_charcnv() to take a (char **) arg, not a (void **)
(This used to be commit dc04b732baa0848e391baf7f148218a10e0af032)
2003-04-06 13:11:29 +00:00
Andrew Bartlett
88ed48d0f9 SMB signing updates - this gets NTLMSSP signing workin to the point where I
just need to get the verifiction code working - we get back a signiture from
the server, and just can't verify it yet.

This also brings the short-packet checks into common code, and breaks the
connection if the server sends a signed reply, on an established connection,
that fails the test.

This breaks our read/write code at the moment, as we need to keep a list
of outstanding packets.

(signing is not enabled by default, unless the server demands it)

Not for 3.0 till I fix the outstanding packet list.

Andrew Barlett
(This used to be commit 808d1fcf20153970d587cb631a08607beb09703a)
2003-04-06 13:08:07 +00:00
Andrew Bartlett
c5ab17567c Fix memory leak of the key.
(This used to be commit 9daf41c41f901b46d6016c6ec63773d0b7cec617)
2003-04-06 13:00:46 +00:00
Andrew Bartlett
00a8443a51 Don't bail if we have a badly formed record, just move on to the next one.
(This used to be commit febd966b10b23238c93444256b8ad30b50b20ef8)
2003-04-06 12:59:53 +00:00
Andrew Tridgell
f82c61cefe strequal() returns True for equal, not an int
(This used to be commit b96590ad092e32259ce24a20a6a8a30d98dfae7d)
2003-04-06 12:28:50 +00:00
Andrew Tridgell
06ee9702a0 don't rely on realloc() working on NULL
(This used to be commit bd00355c1d5ca4ce77fa28c53ea46834365f22d7)
2003-04-06 12:28:00 +00:00
Andrew Bartlett
854c5d60bd If the string does not convert back, print the buggy result.
(This used to be commit 98f76325542c0ab2e0bbcf082a15c6f8db27e37c)
2003-04-06 12:01:44 +00:00
Andrew Bartlett
fbd5367245 Fix bigballofmud.so, and add a test to show a bug I'm having with push_ucs2.
Andrew Bartlett
(This used to be commit a60fd29b43537935500f40a32fec553f2b52c0d3)
2003-04-06 11:19:26 +00:00
Simo Sorce
0ac2b38001 This commit make winbindd copy winbindd_idmap.tdb into idmap.tdb on the
first run if idmap.tdb is not found, and then eventually convert it to the
new format.
This is done to unify winbind and idmap databases and to make a backup of
winbindd_idmap.tdb in case you want to downgrade (of course it will not be
updated).
This is needed because idmap.tdb contains also local mappings, not only
foreign domains mappings.

Added some other fixes/improvements

Simo.
(This used to be commit cf17261519fd8775500f9b9d6caa2bc462e04633)
2003-04-06 09:35:16 +00:00
Richard Sharpe
588b1978a1 Make autogen.sh more portable by having it work on both Linux and FreeBSD
under sh and bash.
(This used to be commit 4070ff1c6907c0cc3a86db735e7df25352dfb625)
2003-04-06 02:46:10 +00:00
Jelmer Vernooij
35833e5aaf Fix building on platforms without ldap
(This used to be commit 3f78ea7d06ae911f97c0a1a451e67fe00547e873)
2003-04-06 01:08:39 +00:00
Richard Sharpe
35292596d8 Fix debug handling in libsmbclient.c.
Also, PLEASE, PLEASE, PLEASE, do not include bashism and Cisms in shell
scripts.
(This used to be commit 7f6367aac8c5440e1d4e97b26571b205140488ae)
2003-04-05 19:41:33 +00:00
Simo Sorce
2c1f725820 some more idmapping :)
(This used to be commit 5ac94535d7b7ce0cc0d44b9a77d6e42ddfd0cd26)
2003-04-05 08:53:23 +00:00
Richard Sharpe
a59565bf38 Some more good stuff from coolo.
(This used to be commit 41b320ffc560117c0184999e30cc69723f40acbe)
2003-04-04 23:39:16 +00:00
Jelmer Vernooij
8f19f82256 Replace 'so' by $SHLIBEXT
(This used to be commit d0a767a7653f3fef846c62e9a0a20bcc68d87559)
2003-04-04 23:31:09 +00:00
Jelmer Vernooij
509e6221a2 Use $SHLIBEXT, not .so
(This used to be commit 319d41201dcf07fc18a39df4f362aa2a0eb16200)
2003-04-04 23:11:38 +00:00