1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-11 16:58:40 +03:00

992 Commits

Author SHA1 Message Date
Jeremy Allison
6d5757395a r11511: A classic "friday night check-in" :-). This moves much
of the Samba4 timezone handling code back into Samba3.
Gets rid of "kludge-gmt" and removes the effectiveness
of the parameter "time offset" (I can add this back
in very easily if needed) - it's no longer being
looked at. I'm hoping this will fix the problems people
have been having with DST transitions. I'll start comprehensive
testing tomorrow, but for now all modifications are done.
Splits time get/set functions into srv_XXX and cli_XXX
as they need to look at different timezone offsets.
Get rid of much of the "efficiency" cruft that was
added to Samba back in the day when the C library
timezone handling functions were slow.
Jeremy.
(This used to be commit 414303bc0272f207046b471a0364fa296b67c1f8)
2007-10-10 11:05:19 -05:00
Jeremy Allison
5678e4abb0 r11492: Fix bug #3224 (I hope). Correctly use machine_account_name
and client_name when doing netlogon credential setup.
Jeremy.
(This used to be commit 37e6ef9389041f58eada167239fd022f01c5fecb)
2007-10-10 11:05:18 -05:00
Volker Lendecke
df1ab2639d r11381: Correctly connect to 445 and 139 after a successful getdcname.
Volker
(This used to be commit 440e7b3342e6b7b12208b789853962de72a9cac2)
2007-10-10 11:05:14 -05:00
Volker Lendecke
20299e5bf5 r11368: Remove a memleak that just cost me half an hour: If we terminate inside a
message handler, the list of messages from retrieve_all_messages is not
properly freed. Not important, just confusing :-)

Volker
(This used to be commit d20388750dcfe7e0680246f7e3e6beb3a6d51a4a)
2007-10-10 11:05:14 -05:00
Jeremy Allison
7aecd20c00 r11338: Move knowledge of \\ needed into rpc_client/cli_netlogon
(this is the way it's been done in other functions). Instead
of moving this into the IDL, I think the best solution would
be to write a wrapper function around any call that needs
this (this is what we already do for many of the calls).
Jeremy.
(This used to be commit aeca4efa11728be53b81967bb5442b5b09d1a975)
2007-10-10 11:05:13 -05:00
Volker Lendecke
66eaf508db r11328: Actually verify that the bind on a pipe succeeded with a samr_connect or
lsa_openpolicy and fall back appropriately. In particular an ntlmssp bind
failure can not be detected before the first real rpc request, at least
according to abartlet :-)

Works for me against w2k3, w2k and nt4. Sooner or later I should test against
samba4 ... :-)

Volker
(This used to be commit 48a9e35208ae7b6271508085f59833e5def640e8)
2007-10-10 11:05:13 -05:00
Volker Lendecke
b577787ee3 r11324: Re-formatting before I can get a very *narrow* focus on the bugs in here. ;-)
We can only tell if the bind succeeded on the first real RPC call. So we have
to decide according to success of samrconnect whether we have to fall
back. Similarly for lsaopenpolicy.

Volker
(This used to be commit 0603e1c8456ee87b87b051e0303a35fdbfbcf7ca)
2007-10-10 11:05:12 -05:00
Volker Lendecke
5872c9e60b r11323: Fix usage of rpccli_netlogon_getdcname. Add some debug messages.
Volker
(This used to be commit 770ad2a8a72ae7bfcdc1b86b72142e11f662d975)
2007-10-10 11:05:11 -05:00
Volker Lendecke
bd935df617 r11319: read_buf_len and write_buf_len are no longer used, remove them.
Volker
(This used to be commit 6948f748f689708c396e52097553ff222b1af744)
2007-10-10 11:05:11 -05:00
Gerald Carter
844290e9a0 r11280: BUG 3201: make sure request structure is cleared prior to sending the request to winbindd (prevents the WB_RECURSE flags from accidentially getting set
(This used to be commit 8c63d6d8a7f50d9a101117338242a9c8b243b43f)
2007-10-10 11:05:10 -05:00
Volker Lendecke
3eadd7e5df r11253: Fix an annoying timeout when no nmbd is around
(This used to be commit 10fb32ec52b32b72a46a783b73c6dd1f24625d9b)
2007-10-10 11:05:09 -05:00
Volker Lendecke
e7dba27685 r11251: Fix a comment
(This used to be commit 1ce6d12898c6f24c83e54561862735586b5a41b4)
2007-10-10 11:05:09 -05:00
Günther Deschner
0698148b44 r11242: use LDAP bitwise machting rule when searching for groups in ADS.
This avoids that each time a full-group-dump is requested from ADS; the
bitwise match allows to only query those groups we are interested in.

The ADS LDAP server changed to RFC compliant behaviour when decoding the ldap
filter with extensible match in the latest SPs (fixes). From the patch:

/* Workaround ADS LDAP bug present in MS W2K3 SP0 and W2K SP4 w/o
  * rollup-fixes:
  *
  * According to Section 5.1(4) of RFC 2251 if a value of a type is it's
  * default value, it MUST be absent. In case of extensible matching the
  * "dnattr" boolean defaults to FALSE and so it must be only be present
  * when set to TRUE.
  *
  * When it is set to FALSE and the OpenLDAP lib (correctly) encodes a
  * filter using bitwise matching rule then a buggy AD fails to decode
  * the extensible match. As a workaround set it to TRUE and thereby add
  * the dnAttributes "dn" field to cope with those older AD versions.
  * It should not harm and won't put any additional load on the AD since
  * none of the dn components have a bitmask-attribute.
  *
  * Thanks to Ralf Haferkamp for input and testing */

Guenther
(This used to be commit db38ed6be607d08515920d46fb8a12f8cb4ddd6e)
2007-10-10 11:05:09 -05:00
Jeremy Allison
8d7c886671 r11137: Compile with only 2 warnings (I'm still working on that code) on a gcc4
x86_64 box.
Jeremy.
(This used to be commit d720867a788c735e56d53d63265255830ec21208)
2007-10-10 11:05:02 -05:00
Jeremy Allison
3d081be06b r10688: Fix from Volker for bugid #3068 - winbindd crash with
alt_names.
Jeremy.
(This used to be commit 35dda6920c9e318726473b6bc9d8495cf8f7b7cc)
2007-10-10 11:04:50 -05:00
Gerald Carter
54abd2aa66 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)
(This used to be commit 939c3cb5d78e3a2236209b296aa8aba8bdce32d3)
2007-10-10 11:04:48 -05:00
Gerald Carter
e403d11fcb r10556: BUG 3083: patch from Alex Deiter <tiamat@komi.mts.ru> to fix checking trusted account for winbindd running on a Samba PDC
(This used to be commit 24b43af642c9d41c14b9ad64704e13cc9150378d)
2007-10-10 11:04:47 -05:00
Günther Deschner
da1640d5a1 r10474: We better ignore builtin SIDs from the Active Directory DC to prevent
that AD's builtin groups mixup with our own builtin groups.

Guenther
(This used to be commit 9930013161f1ae59e7aed1b397b79792d384f1ba)
2007-10-10 11:03:42 -05:00
Jeremy Allison
7bd1888cdf r10321: Fix winbindd recursion bug found by Ingo Steuwer <steuwer@univention.de>.
Jeremy.
(This used to be commit 6795c818a3d63737d5b40faffa3a0b91c71b427b)
2007-10-10 11:03:40 -05:00
Günther Deschner
5d5d0b2f3b r10270: lowercase groupnames and groupmembers again.
Guenther
(This used to be commit 736dffb2a9907a6ca3fee51eb4a9f1da837303a0)
2007-10-10 11:03:40 -05:00
Jeremy Allison
bc9c617b16 r10268: Fix for bug #3095 - winbindd checking credentials.
Jeremy.
(This used to be commit e58d8ee0555a5de0a25757b26cc22e02b9aace31)
2007-10-10 11:03:40 -05:00
Volker Lendecke
3368280b94 r10267: Exit if winbind can't find or generate a SID -- there's no point in
continuing. Found during investigation of bug 3105.

Volker
(This used to be commit 72546f185696235c9d5cb6196448178d9e15e858)
2007-10-10 11:03:39 -05:00
Günther Deschner
802437774d r10263: Fix debug which got more instead of less confusing.
Guenther
(This used to be commit ac3786a7a7dfc77d3b305ae67c97ab4f7f63961e)
2007-10-10 11:03:39 -05:00
Günther Deschner
9cc1892865 r10262: * Fix for getgrnam not returning builtin group (which is done by getent
group)
* Give a better debug message when returning builtin groups.

Guenther
(This used to be commit ec79971dc7606c1dfea3acf87cd19fa4153ae417)
2007-10-10 11:03:39 -05:00
Günther Deschner
fdcc645973 r10261: Don't bother to peek rids in builtin-sids.
Guenther
(This used to be commit d75bfce8cc9122ddcad149704e467c784f0a0872)
2007-10-10 11:03:39 -05:00
Volker Lendecke
8b1d990fdd r10152: 64-bit fix for bug #3082. Thanks to Robin Hill for tracking this down with
valgrind.

Jerry, if this patch proves to fix his problem, it is definitely a candidate
for the recommended patches page.

Volker
(This used to be commit 5232034b0daca8486fd55e53c2d910e4fbf0299d)
2007-10-10 11:03:34 -05:00
James Peach
8c072021ef r9780: Clean up a bunch of compiler warnings.
(This used to be commit 623d2e69319ffead31a780a4d6156dae45f386d7)
2007-10-10 11:03:26 -05:00
Gerald Carter
39c05dca3c r9758: make sure to lower case usernames in winbindd's getpwnam()
(This used to be commit 9fc539088eda7f9b5d212b7df50594bec51e16f5)
2007-10-10 11:03:25 -05:00
Volker Lendecke
86dc60492a r9709: Fix two bugs found by Brian Moran: Any request sent to winbind while the child
in question is still initializing overwrites domain->dcname. Only overwrite if
the parent actually has sent a dcname and thus really knows it. Second,
ntlm_auth needs the error code, not just the fact it failed.

Jerry, the 3_0 part might qualify as a "recommended patch".

Thanks,

Volker
(This used to be commit d79b179b7f9d2efa4f8ee47bfe386e90d8b58322)
2007-10-10 11:03:24 -05:00
Gerald Carter
dab71bed4e r9588: remove netsamlogon_cache interface...everything seems to work fine. Will deal with any fallout from special environments using a non-cache solution
(This used to be commit e1de6f238f3981d81e49fb41919fdce4f07c8280)
2007-10-10 11:03:22 -05:00
Gerald Carter
4abc899e18 r9366: patch from Toomas.Soome@mls.ee to include hosts lookups via the winbind pipe on solaris
(This used to be commit e822a7539065c12d23b491e85f2cce7e98195f77)
2007-10-10 11:00:34 -05:00
Gerald Carter
67066e865b r9362: formatting cleanup
(This used to be commit f6b8af1ce13a0fa306bdd2a8aa1f0b7c6b185d81)
2007-10-10 11:00:34 -05:00
Gerald Carter
59f6f650ec r9361: patch from Ed Plese to fix a faulty error in winbindd
caused by users with no supplementary groups.
(This used to be commit dbdf8c631531c499965630bfae3b381f3dc8314a)
2007-10-10 11:00:34 -05:00
Gerald Carter
b2bfa0c775 r9330: Remove the classic dual daemon since it was not being used.
It was already gone in trunk anyways.
working on fixing BUG 3000 which does work now but we are flying
without a cache.
(This used to be commit 4936d6d8b28edc59a3d17defcdf255ea6e0ba4e0)
2007-10-10 11:00:33 -05:00
Gerald Carter
3cc6c5cf99 r9322: fixing debug log and ensuring that we set the right winbind_methods
pointer in get_cache() by requiring that all domain structure be
initialized with the set_dc_type_and_flags().
(This used to be commit c064609b942e88c70fe0a868e52c57ad1016850c)
2007-10-10 11:00:33 -05:00
James Peach
8def0da1da r9301: Allow user-defined list and lookup timeouts on IRIX. Bugzilla bug #2284.
(This used to be commit bb579141d86202ac891a7b777c137cb87effefe3)
2007-10-10 11:00:32 -05:00
Jeremy Allison
2ab5b8594e r9252: 2 type fixes from Luke Mewburn <lukem@NetBSD.org>. Bugid #2934.
Jeremy.
(This used to be commit c63ad85b8c1aedd04a65e46c27a6e2661093847a)
2007-10-10 11:00:29 -05:00
Gerald Carter
b344de3f83 r8800: grr...get logic right when checking #define
(This used to be commit c2f69827de13a6e63077bfc4a62738c0f88e0835)
2007-10-10 11:00:18 -05:00
Gerald Carter
ba43b128e2 r8799: disabling schannel on samr and lsa until I figure out
the latest MS changes in 2003 sp1 and 2004 sp4 sr1
(This used to be commit 7588c32baa50994bdc6e351d79da3edff1fdc876)
2007-10-10 11:00:17 -05:00
Gerald Carter
1106d1fa6b r8796: disable schannel on the lsa client pipe for now to deal with Windows 2003 sp1 and Windows 2000 SP4 SR1
(This used to be commit bc1443837c81bebbac7894075a15fe96338f8b0a)
2007-10-10 11:00:17 -05:00
Tim Potter
ab398643a4 r8572: Remove crufty #define NO_SYSLOG as it's not used at all anymore.
(This used to be commit 985dbb47d925e79c1195ca219f7ab5d6648b22b8)
2007-10-10 11:00:11 -05:00
Günther Deschner
944ecbdbb0 r8145: When inventing a new parameter for SFU-support, be aware of Volker's
upcoming changes for "unixinfo"-pipe.

Therefor (after speaking with Volker) replace "winbind sfu support" with
the list-parameter "winbind nss info" which defaults to "template". For
SFU-support set it to "winbind nss info = template sfu".

Note that nss_info_use() is just a dummy function at the moment.

Guenther
(This used to be commit 91596330ea3c4ba0fb9ddc52ad9d4a7c8e5b2d3f)
2007-10-10 10:58:12 -05:00
Günther Deschner
2e7f22e833 r7994: This adds support in Winbindd's "security = ads"-mode to retrieve the POSIX
homedirectory and the loginshell from Active Directory's "Services for Unix".

Enable it with:

        winbind sfu support = yes

User-Accounts without SFU-Unix-Attributes will be assigned template-based
Shells and Homedirs as before.

Note that it doesn't matter which version of Services for Unix you use (2.0,
2.2, 3.0 or 3.5). Samba should detect the correct attributes (msSFULoginShell,
msSFU30LoginShell, etc.) automatically.

If you also want to share the same uid/gid-space as SFU then also use PADL's
ad-idmap-Plugin:

        idmap backend = ad

When using the idmap-plugin only those accounts will appear in Name Service
Switch that have those UNIX-attributes which avoids potential uid/gid-space
clashes between SFU-ids and automatically assigned idmap-ids.

Guenther
(This used to be commit 28b59699425b1c954d191fc0e3bd357e4a4e4cd8)
2007-10-10 10:58:07 -05:00
Jeremy Allison
919af50f27 r7949: Work around for broken Solaris header files.
Jeremy
(This used to be commit 4d5002931056d2a88d49ce060c10bc0fecf4ba50)
2007-10-10 10:58:04 -05:00
Volker Lendecke
40de272fe6 r7903: Attempt to fix the AIX build
(This used to be commit bb884b0bf96899bf3cf477bfe2220cdfc7aa596d)
2007-10-10 10:58:03 -05:00
Jeremy Allison
19ca97a70f 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
(This used to be commit 9506b8e145982b1160a2f0aee5c9b7a54980940a)
2007-10-10 10:58:00 -05:00
Volker Lendecke
702dd3da62 r7877: Attempt to fix a smb_panic reported by Pavel Rochnyack.
Volker
(This used to be commit 7d1b890fead61551465e2a972e4097d9c1a4d6fd)
2007-10-10 10:58:00 -05:00
Volker Lendecke
b62247f1ee r7785: This looks much larger than it is. It changes the top-level functions of the
parent winbind not to return winbindd_result. This is to hopefully fix all the
problems where a result has been scheduled for write twice.

The problematic ones have been the functions that might have been delayed as
well as under other circumstances immediately gets answered from the cache.

Now a request needs to be explicitly replied to with a request_error() or
request_ok().

Volker
(This used to be commit 7365c9accf98ec1dd78a59dd7f62462bbb8528d4)
2007-10-10 10:57:20 -05:00
Gerald Carter
1dfe111a09 r7454: couple of winbindd fixes
* make sure to use our domain as the account name in the net_req_auth2()
  request when running on a Samba DC
* make sure to lookup the correct domain (not default to ours) when getting an async
  getpwnam() call
(This used to be commit c9c3e3c122a6a04847c448d298b6f1adb4f35a60)
2007-10-10 10:57:09 -05:00
Gerald Carter
129b461673 r7440: * merge registry server changes from trunk (so far) for more
printmig.exe work
* merge the sys_select_signal(char c) change from trunk
  in order to keeo the winbind code in sync
(This used to be commit a112c5570a7f8ddddde1af0fa665f40a6067e8cf)
2007-10-10 10:57:09 -05:00