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

13955 Commits

Author SHA1 Message Date
Jelmer Vernooij
8a48ee1337 Regenerate manpages
(This used to be commit ace326ffe5adc957f4e058926e5af4e0c97bd892)
2003-07-02 00:57:34 +00:00
Jeremy Allison
b55b664539 Whitespace reformat before applying a patch.
Jeremy.
(This used to be commit bbe1276b516e1803a4a9285691674784b989b72f)
2003-07-02 00:08:29 +00:00
Jelmer Vernooij
3878085eca regenerate docs
(This used to be commit cc02d3bc170fe5c8c4474156edb6c83720a47aa0)
2003-07-01 22:58:52 +00:00
Jeremy Allison
b32d48533f Fix for bug 189 from MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>. Incorrect
call for Japanese characters.
Jeremy.
(This used to be commit c6de5df01d470c2dab48cdd6298f450fa94f9a8e)
2003-07-01 22:07:27 +00:00
Jeremy Allison
58fca50742 Adding jcmd's share ACL on XP patch. Thanks Jim !
Jeremy.
(This used to be commit 7ed1118ae61a13de2c781a94fc2394090efd1f9b)
2003-07-01 21:47:13 +00:00
Jelmer Vernooij
15ac8bbed5 Generate docs.
(This used to be commit 4255b96134e4cd8cbb29219ac2702ad8346f62f8)
2003-07-01 21:46:11 +00:00
Jelmer Vernooij
624f1b569c Use entities
(This used to be commit d2ceb1ada0e8ae4b0154904ab450c3153e679feb)
2003-07-01 21:23:13 +00:00
Jelmer Vernooij
06d88cf7fa Fix some syntax errors and typo's
(This used to be commit 371c9796bb3d6c0705f2e5af055a713cc9b4a652)
2003-07-01 21:21:03 +00:00
John Terpstra
8a686bfd57 Adding idmap uid/gid smb.conf man page entries. Marking winbind uid/gid as deprecated.
(This used to be commit 8bfaf39680ea1fa2a347fa19052f69d6789ed99d)
2003-07-01 21:10:25 +00:00
Jelmer Vernooij
03934a26a9 Fix a typo
(This used to be commit aba86db38f2f930d2f7d9d1f9bb70d1eaa3118c0)
2003-07-01 21:00:50 +00:00
Jelmer Vernooij
aba5ea59df Document "client use spnego"
(This used to be commit b7b45794c233e37d3b78db19852ef1d44d63288c)
2003-07-01 20:58:55 +00:00
Gerald Carter
e5bdfa5485 sync with release branch
(This used to be commit 57f9333668cc56f338d8b2252a6217612b694a9f)
2003-07-01 20:41:50 +00:00
John Terpstra
149e66e8da JMCD's fixes also.
(This used to be commit adc1ca8fccbae8452026b66a473b72f459ac33ff)
2003-07-01 20:33:52 +00:00
John Terpstra
513b151e99 Fix typos, add a little clarification.
(This used to be commit 8a063280cd7d547944f5c61a94a601c09fac53db)
2003-07-01 20:29:38 +00:00
Gerald Carter
89c3447c7f being a responsible developer for a change. Make sure to
update the docs wrt to the recent code changes.

Can someone regenerate these in the SAMBA_3_0 tree please?
Thanks.
(This used to be commit ba448e6eb866d70daf5fe629c0f1c8c5afb1d312)
2003-07-01 18:34:31 +00:00
Gerald Carter
8cf2ab577f syncing newer files to SAMBA_3_0
(This used to be commit 1bd76a320e92b4c9d5de6ffceaf5f6ebac1ad459)
2003-07-01 18:09:29 +00:00
Gerald Carter
34f7dddab0 removing nisplussam
(This used to be commit f75683995cf0d17df55a70dacd72ab2d6cd17989)
2003-07-01 18:08:11 +00:00
Gerald Carter
814968d41b * fixed volker's wbinfo -a lockup again. This one was my fault.
It was caused by the winbind_ping() call in is_trusted_domain()

  o if we are a DC then we check our own direct trust relationships
    we have to rely on winbindd to update the truatdom_cache
  o if we are a domain member, then we can update the trustdom_cache
    ourselves if winbindd is not there
(This used to be commit 22dfcafb37f7109dc455f4fb6323a25ba4f097bc)
2003-07-01 17:51:52 +00:00
Gerald Carter
125ab5463b initial draft of changeset
(This used to be commit 0988e30ceaa76a165130e2fcb1785f2fac398b28)
2003-07-01 16:57:38 +00:00
Gerald Carter
a220e983d0 applying fix for group map conversion (patch from Kristyan Osborne)
(This used to be commit 6237fae9b8407ee04226b984a932150799191d29)
2003-07-01 15:21:43 +00:00
Gerald Carter
82676162af fix compile problem with nisplussam
(This used to be commit 2f7051e2bcaaa45a7315208fc9b5812e6ed657d9)
2003-07-01 15:16:08 +00:00
Volker Lendecke
f13e48e2ee Different fix for memleak just committed. This belongs into
tdb_search_list_free.

Volker
(This used to be commit 0f3822c8e71426983b960ad49511efa8707159f9)
2003-07-01 13:04:50 +00:00
Volker Lendecke
b78dd91e68 Fix two memory leaks. tdb_search_keys allocates space for the key
strings.

Running 'net cache list' or secrets_get_trusted_domains through
valgrind gives a *huge* amount of invalid reads of one byte beyond the
indicated string length in libc's strncpy. Annoying...

Volker
(This used to be commit 0f8933ae778064ff58cdc832ce52c843631435bb)
2003-07-01 12:40:52 +00:00
Volker Lendecke
2b0662b33a Fix a segfault found by metze & valgrind...
Don't overwrite past the end of a string.

Volker
(This used to be commit f036368efdcbe576552ea85a78e5e6199a2b2c6d)
2003-07-01 12:03:00 +00:00
Volker Lendecke
f5156c68a5 Don't set a mapping that is already there.
Volker
(This used to be commit 9d317fb533c5236bef1701d322abd537beea02d5)
2003-07-01 10:01:57 +00:00
Andrew Bartlett
7c23573a50 Grr, the order of these arguments matters
(This used to be commit 6babc35ef9c62a48a56ef63945d09e7e06229666)
2003-07-01 09:27:02 +00:00
Andrew Bartlett
95cb680393 Make smbpasswd use the higher log level for the second run - this should
help us debug failures in smbpasswd.

Andrew Bartlett
(This used to be commit dcdbd530a6c74ecf09a96067c40be5813dd646c8)
2003-07-01 07:29:23 +00:00
Gerald Carter
fb5a006c09 fix typos in log messages and comments.
(This used to be commit fd24183ec30688f3699e466bd4d908b24918e328)
2003-07-01 05:45:16 +00:00
Gerald Carter
0362868fa7 * revert change to get_global_sam_name()
* add get_default_sam_name() to be used by make_user_info_map()
* add comments describing get_*_sam_name()
(This used to be commit 90470366ea4bdb8021a3453c4bbeb29f009668c1)
2003-07-01 04:11:42 +00:00
Gerald Carter
db6ce132e3 * fix the trustdom_cache to work when winbindd is not running.
smbd will update the trustdom_cache periodically after locking
  the timestamp key
(This used to be commit 7bc4b65b91f98271089335cc301146d5f0c76c3a)
2003-07-01 03:49:41 +00:00
Jeremy Allison
8d4a397d85 Fixed the latest complaint from jcmd :-). We were storing -1 for the
CREATOR_OWNER/CREATOR_GROUP uid/gid entries in the SAMBA_PAI attribute.
Creator Owner and Creator group now show up as inherited correctly (I
think :-). Jim please test.
Jeremy.
(This used to be commit dbbd8dd15582f95fb9c160c6c42ce9f0971ac4b7)
2003-07-01 00:35:11 +00:00
Jeremy Allison
a12556742f Merge of Volkers patch to make the logic clearer (with my mod).
Jeremy.
(This used to be commit 1714eb6bef627ebcfb6db03e58fdd02ea502c6e1)
2003-06-30 22:07:47 +00:00
Jeremy Allison
81befd3c71 Fix missing ret = found by Volker.
Jeremy.
(This used to be commit ba112bb3fdb4e81d8f6ab1ccc4a68960f71ccb23)
2003-06-30 21:04:12 +00:00
Gerald Carter
e359dbcedb * cleanup more DC name resolution issues in check_*domain_security()
* is_trusted_domain() is broken without winbind.  Still working on this.
* get_global_sam_name() should return the workgroup name unless we
  are a standalone server (verified by volker)
* Get_Pwnam() should always fall back to the username (minus domain name)
  even if it is not our workgroup so that TRUSTEDOMAIN\user can logon
  if 'user' exists in the local list of accounts (on domain members w/o
  winbind)

Tested using Samba PDC with trusts (running winbindd) and a Samba 3.0
domain member not running winbindd.

notes: make_user_info_map() is slightly broken now due to the
fact that is_trusted_domain() only works with winbindd.  disabled
checks temporarily until I can sort this out.
(This used to be commit e1d6094d066d4c16ab73075caba40a1ae6c56b1e)
2003-06-30 20:45:14 +00:00
Jeremy Allison
a32ae05744 Valgrind found a bug (subtracting a pointer from a length rather than the
length of what the pointer points to).
Jeremy.
(This used to be commit 492a96e9922c1ef96b967f2965f8bba1f5bc8f23)
2003-06-30 20:41:40 +00:00
Jeremy Allison
9fda812d01 Finally ! Fixed the ACL ordering bug reported by jcmd. I realised we were
not sorting returned ACE's correctly w.r.t. W2K - implemented the correct
algorithm.
Jeremy.
(This used to be commit fa23a4158ec23c0b8dbdc6c53f29958243107dee)
2003-06-30 18:53:48 +00:00
Gerald Carter
d27029a874 removing old code
(This used to be commit 80df684b72f273f9efc0c00646f26d17f1b4bc70)
2003-06-30 17:26:45 +00:00
Gerald Carter
f265935101 * rename samstrict auth method to sam
* rename original sam auth method to sam_ignoredomain
* remove samstrict_dc auth method (now covered by 'sam')
* fix wbinfo -a '...' and getent passwd bugs when running
  winbindd on a samba PDC (reported by Volker)
(This used to be commit 52166faee793d337e045d64f7cb27ea7ac895f60)
2003-06-30 17:24:59 +00:00
Gerald Carter
1d8cd8faf6 fix for platforms that don't have unsetenv().
we now have to check the value for _NO_WINBINDD.
"1" enables, and != "1" disables (use "0" by convention).
(This used to be commit 11eccaef1dc61d80a7db8d0fb4bc5a47d71a4390)
2003-06-30 16:18:29 +00:00
Volker Lendecke
aca3fa9149 Add the 'guest' passdb backend automatically if
guest account != ""

Volker
(This used to be commit 21d330af107f744af9569b5577afc6e7ba6a269c)
2003-06-30 14:55:45 +00:00
Tim Potter
9d4b66c974 Yet more shadow variable warnings.
(This used to be commit b401e78b6eb7efa2af74a7e645c3b34091041769)
2003-06-30 05:45:27 +00:00
Tim Potter
063b515525 Fix more shadow variable warnings.
(This used to be commit 10c51bbef83dabd99f129fc7ff0e3fe47c393c67)
2003-06-30 05:44:05 +00:00
Tim Potter
47a07aef5d Fix shadow variable warnings.
(This used to be commit 5ffb8e0920be2da19ac3f442b9bf56c159011822)
2003-06-30 05:42:15 +00:00
Andrew Tridgell
0a4959d48d - added LOCALE patch from vorlon@debian.org (Steve Langasek) (bug #122)
- changed --enable-developer debug to use -gstabs as it makes the
  samba binaries about 10x smaller and is still quite functional for
  samba debugging
(This used to be commit 53bfcd478a193d4def8da872e92d7ed8f46aa4b9)
2003-06-30 02:11:13 +00:00
Gerald Carter
b8723aaa65 Here's the code to make winbindd work on a Samba DC
to handle domain trusts.  Jeremy and I talked about this
and it's going in as working code.  It keeps winbind clean
and solves the trust problem with minimal changes.

To summarize, there are 2 basic cases where the deadlock would
occur.  (1) lookuping up secondary groups for a user, and
(2) get[gr|pw]nam() calls that fall through the NSS layer because
they don't exist anywhere.

o To handle case #1, we bypass winbindd in sys_getgrouplist() unless
  the username includes the 'winbind separator'.

o Case #2 is handled by adding checks in winbindd to return failure
  if we are a DC and the domain matches our own.

This code has been tested using basic share connections, domain
logons, and with pam_winbind (both with and without 'winbind
use default domain').  The 'trustdomain' auth module should work
as well if an admin wants to manually create UNIX users for
acounts in the trusted domains.

Other misc fixes:

  * we need to fix check_ntlm_password() to be able to determine
    if an auth module is authoritative over a user (NT_STATUS_WRONG_PASSWORD,
    etc...).  I worked around my specific situation, but this needs to be
    fixed.  the winbindd auth module was causing delays.
  * fix named server mutex deadlock between trust domain auth module
    and winbindd looking up a uid
  * make sure SAM_ACCOUNT gets stored in the server_info struct for the
    _net_sam_logon() reply.

Configuration details:

The recommended method for supporting trusts is to use winbind.
The gets us around some of the server mutex issues as well.

  * set 'files winbind' for passwd: and group: in /etc/nsswitch.conf
  * create domain trusts like normal
  * join winbind on the pdc to the Samba domain using 'net rpc join'
  * add normal parameters to smb.conf for winbind
  * set 'auth method = guest sam winbind'
  * start smbd, nmbd, & winbindd

Problems that remain:

  * join a Windows 2k/XP box to a Samba domain.
  * create a 2-way trust between the Samba domain
    and an NT domain
  * logon to the windows client as a user from theh trusted
    domain
  * try to browse server in the trusted domain (or other
    workstations).  an NT client seems to work ok, but 2k
    and XP either prompt for passwords or fail with errors.

apparanently this never got tested since no one has ever been
able to logon as a trusted user to a Samba domain from a Windows
client.
(This used to be commit f804b590f9dbf1f0147c06a0a2f12e221ae6fc3b)
2003-06-29 03:39:50 +00:00
Gerald Carter
8a6fc79ad8 add check for NT_STATUS_NOT_IMPLEMENTED in auth check so that
map to guest = bad user works again when "trustdomain" is listed
as last auth method.

Also clean up some more DC location calls.
(This used to be commit 77a5b1032f39b8d20925721b719fdcfff910cb06)
2003-06-28 08:29:42 +00:00
Gerald Carter
b2fbc05c6b cleaning up after the s/in_addr/ip_service/ switch for the get_dc_list() patch
(This used to be commit 303fdc516c79b170d7c12fe2f6264d9636673347)
2003-06-28 08:24:32 +00:00
Jeremy Allison
0e983b32fd Some const correctness. Stop tdb being used as a remote backend. If an
idmap backend is specified cause smbd to ask winbindd (use winbindd if
you want a consistant remote backend solution).
Should work well enough for next beta now...
Jeremy.
(This used to be commit 8f830c509af5976d988a30f0b0aee4ec61dd97a3)
2003-06-27 20:55:48 +00:00
Jeremy Allison
8d31403fe8 Add include guards around idmap.h, change ID_NOMAP to ID_QUERY_ONLY
and ID_CACHE to ID_CACHE_SAVE. Added locking around tdb writes & deletes
for multi-process access.
Jeremy.
(This used to be commit 5b998cdc1d552234236862f6a2bbae703b0c146e)
2003-06-26 23:48:46 +00:00
Jeremy Allison
b57805dd9b As has been pointed out, ordering here doesn't matter so use normal
add.
Jeremy.
(This used to be commit 030b35ca0fc9fe49610084c6c1be95241157564b)
2003-06-26 18:26:52 +00:00