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

19996 Commits

Author SHA1 Message Date
Simo Sorce
a77b18c781 r17063: Update debian-sarge for 3.0.23 2007-10-10 11:19:22 -05:00
Volker Lendecke
2e7afa9e19 r17060: Some c++ warnings 2007-10-10 11:19:22 -05:00
Volker Lendecke
c0d9114706 r17047: Fix a typo and a possible NULL dereference 2007-10-10 11:19:22 -05:00
Jeremy Allison
a8df1863bf r17046: Ensure we're using the right pointers ...
Jeremy.
2007-10-10 11:19:22 -05:00
Jeremy Allison
1201383e7a r17043: Fix memleak when processing CIFS POSIX lock/unlock
requests. Maybe the Linux kernel OOM killer will
be kinder to smbd now :-). Back to tdbtorture
tests on cifsfs.
Jeremy.
2007-10-10 11:19:21 -05:00
Jeremy Allison
43d24fbd41 r17041: Trying to track down a *big* memory leak in the new lock code.
Fix a small one first.... (easy to valgrind).
Jeremy
2007-10-10 11:19:21 -05:00
Volker Lendecke
c5e393d5ed r17039: Eliminate snum from enumshares and getshareinfo. Get rid of some pstrings.
Volker
2007-10-10 11:19:21 -05:00
Volker Lendecke
6e98f8d6c6 r17033: Restructure init_srv_share_info_ctr so that there's only one loop, not a dozen
or so. Next step will be to eliminate the explicit snum reference.

Volker
2007-10-10 11:19:21 -05:00
Volker Lendecke
c89471e157 r17032: I thought I had already merged this from trunk:
> r16959 | vlendec | 2006-07-11 23:10:44 +0200 (Di, 11 Jul 2006) | 1 line
>
> get_share_security does not need snum, activate RPC-SAMBA3-SRVSVC

Volker
2007-10-10 11:19:21 -05:00
Jeremy Allison
50dbb66d73 r17030: Partially fix standalone build of tdb directory
(tdbtool still fails).
Jeremy.
2007-10-10 11:19:21 -05:00
Jeremy Allison
13e7fe540a r17025: Remove one blank line - test checking in to two
branches simultaneously.....
Jeremy.
2007-10-10 11:19:21 -05:00
Gerald Carter
6eb77442a5 r17023: security = server should not be considerd ROLE_DOMAIN_MEMBER 2007-10-10 11:19:20 -05:00
Volker Lendecke
19d0269000 r17022: Fix the build farm -- maybe this is the real fix, testing more 2007-10-10 11:19:20 -05:00
Gerald Carter
07c67fbfc0 r17021: remove unsupported smbwrapper code 2007-10-10 11:19:20 -05:00
Gerald Carter
8d62188258 r17017: BUG 3916: fix pam config file parsing in pam_winbind.
Patch from Dietrich Streifert <dietrich.streifert@visionet.de>
2007-10-10 11:19:20 -05:00
Volker Lendecke
f6e3ee147f r17016: Different and smaller fix for the valid users = username problem.
If no winbind is around, the best we can do to get the user's token correct is
to ask unix via create_token_from_username. More investigation is needed if
this also fixes the +groupname for unmapped groups problems more cleanly.

Volker
2007-10-10 11:19:20 -05:00
Volker Lendecke
7a629118ee r17011: Back out r17010 after talking to Jerry. Another fix pending...
Volker
2007-10-10 11:19:19 -05:00
Volker Lendecke
5e07ab750a r17010: If winbind is not around, add S-1-22-1-<uid> to the user's token.
See the comment in the patch for the reason.

Volker
2007-10-10 11:19:19 -05:00
Andrew Bartlett
ed51b6293b r17007: Increment winbind protocol version number.
Andrew Bartlett
2007-10-10 11:19:18 -05:00
Andrew Bartlett
967292b713 r17005: Add a new helper mode to ntlm_auth: ntlm-change-password-1
This mode proxies pre-calculated blobs from a remote (probably VPN)
client into the domain.  This allows clients to change their password
over a PPTP connection (where they would not be able to connect to
SAMR directly).

The precalculated blobs do not reveal the plaintext password.

Original patch by Alexey Kobozev <cobedump@gmail.com>
2007-10-10 11:19:17 -05:00
Jeremy Allison
144067783d r17003: Fix coverity #303 - possible null deref. Jerry please
check this is your new code.
Jeremy.
2007-10-10 11:19:17 -05:00
Jeremy Allison
2f8cabe98d r17000: Allow CIFS POSIX locks to coexist with Windows locks.
We shouldn't allow this on the same smbd, but the cifsfs
client negotiates POSIX locks then sends Windows ones.
Doh ! Can't fix shipped client code....
Jeremy.
2007-10-10 11:19:17 -05:00
Gerald Carter
34ad8e183c r16998: patch from Paul Griffith <paulg@cs.yorku.ca> to fix compile of the test.c pdb file 2007-10-10 11:19:17 -05:00
Gerald Carter
6413df8348 r16997: Simo's patch (based on repotr from Seth Elssworth of Quest) to try to be more robust in the precense of more broken /etc/hosts files when determining our fwdn 2007-10-10 11:19:17 -05:00
Jeremy Allison
738b99078c r16994: Fix bug #3923, reported by jason@ncac.gwu.edu. Incorrect type
used.
Jeremy.
2007-10-10 11:19:17 -05:00
Jeremy Allison
f11933b3ac r16992: Fix bug #3922 reported by jason@ncac.gwu.edu, correctly
look at the return code.
Jeremy.
2007-10-10 11:19:17 -05:00
Jeremy Allison
f62c01316e r16990: Fix bug #3921 spotted by jason@ncac.gwu.edu. Correctly
obey blocking/non-blocking request for POSIX locks.
Jeremy.
2007-10-10 11:19:16 -05:00
Jeremy Allison
edd72d37de r16987: Fix the logic errors in ref-counting Windows locks.
Hopefully will fix the build farm. Still a few errors
in RAW-LOCK to look at though...
Jeremy.
2007-10-10 11:19:16 -05:00
Jeremy Allison
53094435d8 r16973: Fix subtle logic error in lock ref counting found by
cifsfs client code.
Jeremy.
2007-10-10 11:19:16 -05:00
Jeremy Allison
596497ccc2 r16971: Ensure we use the correct separator for pathnames
in POSIX mode (clitar needs fixing too). Add test
posix lock/unlock commands.
Jeremy.
2007-10-10 11:19:16 -05:00
Jeremy Allison
883bb398e5 r16968: The function parse_processed_dfs_path() is dependent on the
fact that check_path_syntax() will convert '\\' characters to '/'.
When POSIX pathnames have been selected this doesn't happen, so we
must look for the unaltered separator of '\\' instead of the modified '/'.
Stevef please check this with the CIFSFS MS-DFS code !
Jeremy
2007-10-10 11:19:16 -05:00
Jeremy Allison
2d8d4bd77b r16962: Add a few utility fns into client. Allow POSIX capabilities
to be selected.
Jeremy.
2007-10-10 11:19:16 -05:00
Volker Lendecke
083ef11cc9 r16960: Some warnings from host "opi" 2007-10-10 11:19:15 -05:00
Gerald Carter
baf554c793 r16957: fix cut-n-paste error. The check for 'if (\!salt)' make no sense when fetching the DES salting principal 2007-10-10 11:19:15 -05:00
Volker Lendecke
bf701f5129 r16955: Fix an uninitialized var -- Jerry, please check. 2007-10-10 11:19:15 -05:00
Gerald Carter
ce7091fda1 r16954: Volker reminded me we already have code to do this check.
Reuse can_create() to prevent renameing a group to
an existing user or group.
2007-10-10 11:19:15 -05:00
Gerald Carter
7d619f127e r16953: Don't allow groups to be renamed to an existing user or other group 2007-10-10 11:19:15 -05:00
Gerald Carter
6261dd3c67 r16952: New derive DES salt code and Krb5 keytab generation
Major points of interest:

* Figure the DES salt based on the domain functional level
  and UPN (if present and applicable)
* Only deal with the DES-CBC-MD5, DES-CBC-CRC, and RC4-HMAC
  keys
* Remove all the case permutations in the keytab entry
  generation (to be partially re-added only if necessary).
* Generate keytab entries based on the existing SPN values
  in AD

The resulting keytab looks like:

ktutil:  list -e
slot KVNO Principal
---- ---- ---------------------------------------------------------------------
   1    6 host/suse10.plainjoe.org@COLOR.PLAINJOE.ORG (DES cbc mode with CRC-32)
   2    6 host/suse10.plainjoe.org@COLOR.PLAINJOE.ORG (DES cbc mode with RSA-MD5)
   3    6 host/suse10.plainjoe.org@COLOR.PLAINJOE.ORG (ArcFour with HMAC/md5)
   4    6           host/suse10@COLOR.PLAINJOE.ORG (DES cbc mode with CRC-32)
   5    6           host/suse10@COLOR.PLAINJOE.ORG (DES cbc mode with RSA-MD5)
   6    6           host/suse10@COLOR.PLAINJOE.ORG (ArcFour with HMAC/md5)
   7    6               suse10$@COLOR.PLAINJOE.ORG (DES cbc mode with CRC-32)
   8    6               suse10$@COLOR.PLAINJOE.ORG (DES cbc mode with RSA-MD5)
   9    6               suse10$@COLOR.PLAINJOE.ORG (ArcFour with HMAC/md5)

The list entries are the two basic SPN values (host/NetBIOSName & host/dNSHostName)
and the sAMAccountName value.  The UPN will be added as well if the machine has
one. This fixes 'kinit -k'.

Tested keytab using mod_auth_krb and MIT's telnet.  ads_verify_ticket()
continues to work with RC4-HMAC and DES keys.
2007-10-10 11:19:15 -05:00
Jeremy Allison
508ba05a8e r16948: Sync the exmaples code from trunk.
Jeremy.
2007-10-10 11:19:14 -05:00
Jeremy Allison
441c289fd2 r16947: Fix warning with profile separator when profiles not
being used.
Jeremy.
2007-10-10 11:19:14 -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
f131bf8f16 r16943: Add Jim's code.
Jeremy.
2007-10-10 11:19:13 -05:00
Günther Deschner
f2ebc0e3de r16941: Fix crash bug when the pam conversation receives an empty token.
Thanks to Bjoern Jacke for the report and test-case.

Guenther
2007-10-10 11:19:13 -05:00
Günther Deschner
df10448e2c r16940: libnscd sets errno, use that to display error message.
Guenther
2007-10-10 11:19:12 -05:00
Günther Deschner
4121ccfc3e r16939: Still clear the winbind_cache.tdb when offline logons are not enabled.
Guenther
2007-10-10 11:19:12 -05:00
Gerald Carter
5b4c4928ac r16927: back merge of a packaging fix for release numbers (from 3.0.23) 2007-10-10 11:19:12 -05:00
Volker Lendecke
84913caebd r16866: No idea why I did not see the warning, sorry.... 2007-10-10 11:19:12 -05:00
Volker Lendecke
9ec5ccfe85 r16865: This is a proposal to fix bug 3915. Before sending patches around, this is
what svn is for.

The idea is that we fall back to a pure unix user with S-1-22 SIDs in the
token in case anything weird is going on with the 'force user'.

Volker
2007-10-10 11:19:12 -05:00
Volker Lendecke
dc403cec88 r16864: Intermediate checkin -- swap the sid_check_is_in_unix_users and
sid_check_is_in_our_domain cases.

Volker
2007-10-10 11:19:12 -05:00
Günther Deschner
6257f9af93 r16862: Reverting accidential changes in ads_try_connect() from previous commit.
Guenther
2007-10-10 11:19:12 -05:00