1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

14032 Commits

Author SHA1 Message Date
Eloy Paris
4a12fe6044 Debian updates. Brings files in packaging/Debian on par with the
latest Debian official packages for Debian unstable. Also fixes
patches that got out of date in the beta2->beta3 development process.
(This used to be commit 03871fd574bf9c0f6d88c96423f77e9ada7b16f7)
2003-07-15 17:22:38 +00:00
Alexander Bokovoy
8c4be2bbc9 Add support for MSG_SMB_CONF_UPDATED and MSG_SHUTDOWN to all daemons (smbd, nmbd, winbindd). Reviewed by jerry and tridge.
(This used to be commit 02c5e2fc6f0721ebd82a9e6a2b34190607de55fe)
2003-07-15 17:21:21 +00:00
Volker Lendecke
cf8628e585 Fix memleaks
(This used to be commit 26134ac302f3296df6a65182f2585201a3ad833a)
2003-07-15 17:00:11 +00:00
Volker Lendecke
032232bd66 Fix memleak
(This used to be commit 6770d69942a8841fb25448a8a238af7987ec860c)
2003-07-15 16:46:20 +00:00
Volker Lendecke
7a88267a6a Jim, could you please look at this? smbpasswd -a <username> was broken
for me without this patch. I'm not sure if I interpreted your patch to
this code right.

Thanks,

Volker
(This used to be commit 46ec022f873416d2258fc8d84430b17319dce70f)
2003-07-15 16:07:50 +00:00
Gerald Carter
ce360c33be Mandrake packaging updates from Buchan
(This used to be commit 3fec31d0fd91de6196d56fc7eae145f10c12483c)
2003-07-15 16:02:51 +00:00
Alexander Bokovoy
98af0e01b3 Accept --with-expsam=no as valid option (do nothing on it). Simplifies automatic option generation for spec files
(This used to be commit 4042d965f26d8cc056792df50d0a2a6f3f640e50)
2003-07-15 13:00:20 +00:00
Alexander Bokovoy
0360710956 Fix cut&paste bug in strdup() usage example. Found by Metze
(This used to be commit 38f85593c41b5d9ea1c67beb626724b9e14a5dab)
2003-07-15 12:12:15 +00:00
Alexander Bokovoy
5c327041d6 Add mandir to installdir target. Otherwise installman fails for clean DESTDIR
(This used to be commit bb31276c3dfd10bfbc41b7e77e1e1aca1f051453)
2003-07-15 09:50:44 +00:00
Gerald Carter
4aa91a9850 odding some more docs
(This used to be commit 6fdf9f8cd53833294d34aa6dc8d660957c530ae5)
2003-07-15 04:38:20 +00:00
Gerald Carter
4eaf55ae11 adding docs on hew parameters I added.
(This used to be commit 7c91c4360ffd5683f063ac2ce8ebadb4b4db9342)
2003-07-15 04:33:37 +00:00
Gerald Carter
7a29b6df13 update docs to reflect the change in default behavior for winbindd
(This used to be commit 140e2fd5d710f5c800399e20a64c8ac4349a7003)
2003-07-15 04:24:37 +00:00
Gerald Carter
e8b4a1f8bc remove -B and default to dual-daemon mode (-Y to run as a single process)
(This used to be commit 369a914ebefd5625af19b76d71b502e5e13a7147)
2003-07-15 04:19:57 +00:00
Gerald Carter
8582358d54 make sure to fallback to rid algoruthm for users not in smbpasswd (e.g. force user = foo)
(This used to be commit 399799c68cbc91cb3908b0d83ee4f51fa3bf3023)
2003-07-15 02:27:00 +00:00
Andrew Bartlett
7ca9b855b5 SPNEGO SMB signing is now fixed for NTLMSSP, with kerberos to follow shortly.
Andrew Bartlett
(This used to be commit 2b493813fc09ed9bf21f90bce708e6145cf1b4de)
2003-07-15 01:07:12 +00:00
Gerald Carter
eb2b683022 fix cache coherency bug in print handle print_info_2 cache.
Needs to be rewritten to use a reference counter, but this
will work for now.

also the memory allocation in the printing code needs to be cleaned
up to use talloc exclusively.
(This used to be commit 3d293027563b36411b7f84ed9d8f47f926271c6f)
2003-07-14 19:51:34 +00:00
Alexander Bokovoy
4b28f274b6 Small documentation fixes from Metze
(This used to be commit 3f63bcb47182f69a7524bf9fcd0198aa116a9c45)
2003-07-14 15:03:19 +00:00
Andrew Bartlett
0b0fa60900 Fix compile error noticed by Ken Cross, use the utility function instead
of an inline replacement...

Andrew Bartlett
(This used to be commit d941255a97fc6d0d62eae1602075b1aa0481cde5)
2003-07-14 12:56:30 +00:00
Andrew Bartlett
236702e15c Fix SMB signing when using NTLMSSP...
It's so simple now I know how it works - and it has nothing to do with
NTLMSSP (it's just a slightly different use of the old algorithm). :-).

Note:  This is actually less secure then the non-NTLMSSP code, as there is
no per-session random data included for NTLM logins.  (NTLMv2 is better,
fortunetly).

Andrew Bartlett
(This used to be commit 95ec8317d4c6817d192bcd52eec44a22286e10ee)
2003-07-14 10:38:23 +00:00
Andrew Bartlett
456f51bcbe Jeremy requested that I get my NTLMSSP patch into CVS. He didn't request
the schannel code, but I've included that anyway. :-)

This patch revives the client-side NTLMSSP support for RPC named pipes
in Samba, and cleans up the client and server schannel code.  The use of the
new code is enabled by the 'sign', 'seal' and 'schannel' commands in
rpcclient.

The aim was to prove that our separate NTLMSSP client library actually
implements NTLMSSP signing and sealing as per Microsoft's NTLMv1 implementation,
in the hope that knowing this will assist us in correctly implementing
NTLMSSP signing for SMB packets.  (Still not yet functional)

This patch replaces the NTLMSSP implementation in rpc_client/cli_pipe.c with
calls to libsmb/ntlmssp.c.  In the process, we have gained the ability to
use the more secure NT password, and the ability to sign-only, instead of
having to seal the pipe connection.  (Previously we were limited to sealing,
and could only use the LM-password derived key).

Our new client-side NTLMSSP code also needed alteration to cope with our
comparatively simple server-side implementation.  A future step is to replace
it with calls to the same NTLMSSP library.

Also included in this patch is the schannel 'sign only' patch I submitted to
the team earlier.  While not enabled (and not functional, at this stage) the
work in this patch makes the code paths *much* easier to follow.  I have also
included similar hooks in rpccleint to allow the use of schannel on *any* pipe.

rpcclient now defaults to not using schannel (or any other extra per-pipe
authenticiation) for any connection.  The 'schannel' command enables schannel
for all pipes until disabled.

This code is also much more secure than the previous code, as changes to our
cli_pipe routines ensure that the authentication footer cannot be removed
by an attacker, and more error states are correctly handled.

(The same needs to be done to our server)

Andrew Bartlett
(This used to be commit 5472ddc9eaf4e79c5b2e1c8ee8c7f190dc285f19)
2003-07-14 08:46:32 +00:00
John Terpstra
379367dd76 Typo fixes from Vorlon.
(This used to be commit 4cdadbbbe9d6311b32dfe8e9823ed55dab1c6f1c)
2003-07-14 05:17:52 +00:00
Tim Potter
9e51951e6e Don't bomb out when trying to unmarshall a zero length printerdata value.
Fixes remote printer publishing of shared printers from a Samba server.
(This used to be commit 7f363fa32d3b660567fc87d5d0b1e1d4dd58461a)
2003-07-14 05:13:30 +00:00
Tim Potter
31e6ed17a3 Delete obsolete comment.
(This used to be commit 5416c51133297e866210ec0d8454e04c25541d91)
2003-07-14 01:49:07 +00:00
Tim Potter
4b25a46624 Undo 'Fix compiler warning'. It didn't work because the value of inbuf changes so
we end up freeing a pointer we didn't mallocate.

Also, calling strdup() in a frequently called function just to clear up a
const compiler warning seems inelegant and inefficient.
(This used to be commit a0da5ae1198082d0cf18707ed2cf05f728b00d0b)
2003-07-14 01:18:43 +00:00
Simo Sorce
5345a5d721 use the specific funtion we have to check if a SID belong to our domain
(This used to be commit a926959391676d69bd7cbaf4ce0be0d3cb715418)
2003-07-13 21:41:23 +00:00
Rafal Szczesniak
ce12b32c4a Fix compiler warning.
(This used to be commit 3a71b4873034b3fe9dc7b23a95e56c865e857507)
2003-07-13 16:25:55 +00:00
Volker Lendecke
9bcc3886d0 Argl. Thinking twice and looking at the rest of callers of sid_compare_domain
proved the last patch wrong.

Sorry.

Volker
(This used to be commit d8695eccc7acdee69ca0d0593b56a417f1f89167)
2003-07-13 09:43:58 +00:00
Volker Lendecke
e9681cc658 We have an API to compare the domain parts of two SIDs, so use it.
Volker
(This used to be commit 39308ff138da88c1a4c0958cd4c7a9090261d3d5)
2003-07-13 09:38:55 +00:00
Jeremy Allison
9c15a65dc3 Fixed memory leaks, added krb5 replay cache. Now I need to add code to check
the incoming addresses....
Jeremy.
(This used to be commit 4e9359a1f67a44b2981579383327ba774e1c31f9)
2003-07-12 00:27:22 +00:00
Gerald Carter
531caf6b5d patch for domain groups with no members (rpc only) from Ken Cross
(This used to be commit 05ec9c40f40be4d4dbb10b33e0def2374468ff8a)
2003-07-11 18:12:24 +00:00
Richard Sharpe
9b9f1697ee Fix a small typo in a comment and pretty it up a bit.
(This used to be commit 3b5ddd8e1f021f6a38434c0d9a47317ab6ff2614)
2003-07-11 17:50:59 +00:00
Gerald Carter
733f767b94 fix sid_to_[uid|gid] (spotted by Volker).
Still testing this, but I'm checking it in
so Volker can test it as well.  Should be right.
(This used to be commit 8edf193722f699cc33baed410917a78a5e28d0a4)
2003-07-11 16:37:23 +00:00
Gerald Carter
24ce328662 fix unitialised variable
(This used to be commit 5efa0d7cc28d903c1986b8e40072ae49e9532a88)
2003-07-11 15:17:06 +00:00
Gerald Carter
3a40c45807 fix winbindd init sctipt
(This used to be commit 018b222f9248e6baa02e74e36adbf2332aa4431e)
2003-07-11 15:09:57 +00:00
Herb Lewis
5359b8dc97 use names from enumerated type to get rid of compiler warnings
(This used to be commit c9d6782e091406ed105b7dc34c8c83e53bfe515e)
2003-07-11 14:33:13 +00:00
Jim McDonough
e1725f0c04 Doesn't re-prompt for password when it is specified on the cmdline
(This used to be commit 6ebe87d318658f28ad9b9f8169fc4400856d5812)
2003-07-11 14:33:03 +00:00
Herb Lewis
5cd3b7c71c get rid of CFLAGS from LDSHFLAGS and WINBIND_NSS_LDSHFLAGS and instead
define it in SHLD for those systems the use CC for SHLD.
(This used to be commit d0e2f3d1098ac0b8fa9165b3a93cd8d325a7a0d9)
2003-07-11 14:20:12 +00:00
Gerald Carter
03d5867d52 moving more code around.
* move rid allocation into IDMAP.  See comments in _api_samr_create_user()
  * add winbind delete user/group functions

I'm checking this in to sync up with everyone.  But I'm going to split
the add a separate winbindd_allocate_rid() function for systems
that have an 'add user script' but need idmap to give them a RID.
Life would be so much simplier without 'enable rid algorithm'.
The current RID allocation is horrible due to this one fact.
Tested idmap_tdb but not idmap_ldap yet.  Will do that tomorrow.

Nothing has changed in the way a samba domain is represented, stored,
or search in the directory so things should be ok with previous installations.

going to bed now.
(This used to be commit 0463045cc7ff177fab44b25faffad5bf7140244d)
2003-07-11 05:33:40 +00:00
Tim Potter
d117c83ca9 Fix yet another place where we store a Samba version number. )-:
(This used to be commit caa36c2f0a935f90472caff3e48fb298067d1447)
2003-07-11 05:05:08 +00:00
Tim Potter
766d3fa2c2 Ignore autogenerated files.
(This used to be commit be28d126a944075949821d6b4af3402be2cd86d6)
2003-07-11 04:51:52 +00:00
Tim Potter
80e457bdf4 Remove references to obsolete codepage binaries, codepages and unicode
map files.

Other part of fix for bug 218.
(This used to be commit 00551b12c7736050fe53592d3955624e67f04994)
2003-07-11 04:48:08 +00:00
Tim Potter
988b1d8e5b Fix references to plain password registry files pointing at an old
location.  These files are now in docs/Registry.  For some reason only
the PlainPassword files are included in the packaging, not some of the
other useful Samba related registry mods such as sign or seal and
terminal server.

I also removed the reference to checkinstall as it doesn't seem to
exist on the Solaris system in the build farm and I can't figure out
what it is supposed to do (always a good reason to delete something).

docs.solaris.com says "The checkinstall script is only available with
the Solaris(TM) 2.5 and compatible releases" so maybe this file is
obsolete.

Part of fix for bug 218.
(This used to be commit 0699f362c524dc07b84ad23c57e559ec5e4681f8)
2003-07-11 04:45:33 +00:00
Tim Potter
5a02bb60e0 Fix for bug 203. Avoid using an autoconf expanded variable preceeded by a backslash
in case the variable is empty.  This apparently confuses some makes.
(This used to be commit 1e4043d54c2135b09be8c329f50f132779b4b776)
2003-07-11 03:32:11 +00:00
Tim Potter
d1ea2f9957 Ignore *.po
(This used to be commit bc4af3bdb163bd5c570dcb88cf48780b6ed66f9f)
2003-07-11 03:30:18 +00:00
Rafal Szczesniak
5af1d7cc9c Just a few formatting fixed caught while testing.
rafal
(This used to be commit 156554738cf4e4ffa5a811d9979acd19418e7908)
2003-07-10 23:22:09 +00:00
Jelmer Vernooij
38e71c101c Document 'security = ads'
(This used to be commit f197e458b59d7d0c271514bedb9ff3063023cf6f)
2003-07-10 23:12:00 +00:00
Jelmer Vernooij
d4494204fe Fix typo
(This used to be commit cbcb8a49b28ef4027c449562052600abe8c5d141)
2003-07-10 22:40:56 +00:00
Gerald Carter
c674e411c7 i guess i'm the only one this ever annyoed...
fix the confusion when we tdb_lock_bystring() but
we retrieve an entry using tdb_fetch_by_string.
It's now always tdb.*bystring()
(This used to be commit 66359531b89368939f0e8f584a45844b5f2f99e7)
2003-07-10 20:37:01 +00:00
Richard Sharpe
c56bf515ce Final piece of support needed to find iconv libraries on FreeBSD.
This has been tested on RedHat 9.0 with libiconv built in as well as
FreeBSD 4.6.2 with iconv-2.0.3 and biconv.g/libbiconv.

We should perhaps also check for other conversions that just ASCII<-->UCS-2LE
especially because those two names do not appear in charset.aliases for
iconv-2.0.3.
(This used to be commit 53d953da10dbfaf778907f19115e127c5aac1da8)
2003-07-10 17:39:05 +00:00
Richard Sharpe
d2d1bd3d7c Fix a small problem I seem to have introduced into aclocal.m4
(This used to be commit b6bb70ea1e2eefbb538290a987390728f002ceac)
2003-07-10 15:23:09 +00:00