1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-22 05:57:43 +03:00

174 Commits

Author SHA1 Message Date
Günther Deschner
65b4cb20ea Use sid_array_from_info3 in lookup_usergroups_cached().
Guenther
2008-04-04 02:53:40 +02:00
Simo Sorce
f6069126e5 Fix trusted users on a DC that uses the old idmap syntax. There was no default backend therefore on IDs were mapped by default. 2008-04-03 00:26:35 +02:00
Günther Deschner
0970369ca0 Fix NETLOGON credential chain with Windows 2008 all over the place.
In order to avoid receiving NT_STATUS_DOWNGRADE_DETECTED from a w2k8
netr_ServerAuthenticate2 reply, we need to start with the AD netlogon negotiate
flags everywhere (not only when running in security=ads). Only for NT4 we need
to do a downgrade to the returned negotiate flags.

Tested with w2k8, w2ksp4, w2k3r2 and nt4sp6.

Guenther
2008-04-02 11:12:47 +02:00
Gerald W. Carter
3414eac439 Fix enumeration of forest trusts from our root domain.
Do not overwrite the domain->domain_flags when setting infomation
in set_dc_type_and_flags_connect().
2008-03-31 13:40:58 -05:00
Steven Danneman
e7827bb6af Augmented "wbinfo -m" to list additional information about the type, direction, and transitivty of trusts.
* added several helper functions to convert the trust_flags field in the
winbindd_tdc_domain to more useful administrator ideas of trust type, trust
direction, and trust transitivity.

* converted winbindd_list_trusted_domains() to enumerate the trusted domain
cache, instead of the domain list, and return additional trust information to
the calling process

* modified wbinfo to pretty print this additional trust information when a new
--verbose switch is given with -m.  Thus "wbinfo -m" and "wbinfo -all-domains"
output as before, but "wbinfo --verbose -m" prints extra trust info.

* updated some comments and fixed typos
2008-03-31 13:40:58 -05:00
Steven Danneman
6aac972d79 Forest root trust flags won't overwrite child trust flags
* changed the behavior of winbind_ads.c:trusted_domains() to not overwrite
existing trust information if we're joined to a child domain, and querying the
forest root domain.  Previously if we were joined to a child domain, we'd
request all known trust information from this child domain (our primary domain)
and store it in the tdc.  We'd then request all trust information from our tree
root (to get the forests we transitively trust) and overwrite the existing trust
information we already had from the perspective of the tree root.

* updated several comments and fixed typos
2008-03-31 13:40:58 -05:00
Michael Adam
6d3fc63bfa winbindd_cache: add missing validation function for pwinfo cache entry
Michael
2008-03-29 02:10:41 +01:00
Günther Deschner
6a576cfe9b Don't let winbind getgroups crash when we have no gids in the token.
Guenther
2008-03-29 00:47:42 +01:00
Volker Lendecke
e04fc36f22 Make some fns static 2008-03-28 13:44:30 +01:00
Günther Deschner
fed6443729 Fix typo.
Guenther
2008-03-27 18:05:02 +01:00
Gerald W. Carter
4de4949e3b Don't fill password policy structure for any domain other than our own.
The samr connects will fail.  This is not independent of the CONTACT_TRUSTDOM
flag neede by krb5 logins.
2008-03-27 11:56:29 -05:00
Volker Lendecke
0d617f639a Fix wbinfo -a trusted\\user%password on a Samba DC with trusts
Winbind can't be allowed to connect to the local smbd.
2008-03-27 13:11:10 +01:00
Günther Deschner
fa64c76ac8 Move LOGON_KRB5_FAIL_CLOCK_SKEW to winbindd_pam.
Guenther
2008-03-27 13:06:43 +01:00
Günther Deschner
2586dc34e0 Fix winbind NETLOGON cred chain on a samba dc for w2k8 trusts.
Guenther
2008-03-26 21:11:53 +01:00
Volker Lendecke
559cd9e5a7 Fix a segfault
When we get a NT_STATUS_WRONG_PASSWORD for example, my_info3 is not initialized
at all. So first check that we have NT_STATUS_IS_OK(status) before we
dereference my_info3.
2008-03-25 23:36:06 +01:00
Volker Lendecke
38683a7301 Fix typo 2008-03-25 21:35:41 +01:00
Volker Lendecke
cfceb063f5 Merge dd9e0bea31751 from 3-0-ctdb -- use NetSamLogonEx when possible
NetSamLogonEx has the advantage that it does not use the credential chain
2008-03-19 17:00:53 +01:00
Volker Lendecke
32fc759d94 Fix some "nexted extern" warnins 2008-03-19 16:23:28 +01:00
Volker Lendecke
f94a63cd8f Use a separate tdb for mutexes
Another preparation to convert secrets.c to dbwrap: The dbwrap API does not
provide a sane tdb_lock_with_timeout abstraction. In the clustered case the DC
mutex is needed per-node anyway, so it is perfectly fine to use a local mutex
only.
2008-03-10 21:08:45 +01:00
Stefan Metzmacher
1b8ed6c0ff winbind: use a struct element for WBFLAG_PAM_UNIX_NAME
To not conflict with WBFLAG_PAM_INFO3_TEXT.

This should fix pam_winbind.

metze
2008-02-28 23:00:42 +01:00
Günther Deschner
b1a4b21f8c Let dsgetdcname() return a struct netr_DsRGetDCNameInfo.
Guenther
2008-02-28 12:40:55 +01:00
Günther Deschner
d078a87571 Add my copyright.
Guenther
2008-02-27 19:38:48 +01:00
Günther Deschner
d9502eb753 Use netr_SamInfo3 everywhere in winbindd.
Guenther
2008-02-17 02:12:00 +01:00
Günther Deschner
f22ba8aee2 Getting rid of net_io_user_info3() when sending an NDR encoded netr_SamInfo3.
Guenther
2008-02-17 02:12:00 +01:00
Stefan Metzmacher
c5e6dd1ca9 winbindd: add rids and other_sids arrays in WBFLAG_PAM_INFO3_TEXT mode
metze
2008-02-13 13:30:15 +01:00
Günther Deschner
33a97b447c Convert last caller (in winbindd) to rpccli_samr_EnumDomainAliases.
Guenther
2008-02-13 11:18:36 +01:00
Günther Deschner
8890bc481f Convert last caller (in winbindd) to rpccli_samr_EnumDomainGroups.
Guenther
2008-02-13 11:18:36 +01:00
Günther Deschner
34c2566f02 Convert last caller (in winbindd) to rpccli_samr_LookupRids.
Guenther
2008-02-13 10:56:56 +01:00
Stefan Metzmacher
5f623f54a9 nsswitch: convert winbind_env_set(), winbind_on() and winbind_off() into macros
metze
2008-02-13 10:44:52 +01:00
Günther Deschner
c62c89c8f0 Fix the build of winbindd, sorry.
Guenther
2008-02-13 01:29:52 +01:00
Günther Deschner
a25e7ffbca Use rpccli_lsa_EnumTrustDom all over the place.
Guenther
2008-02-13 00:29:37 +01:00
Günther Deschner
a9ff676090 Use rpccli_samr_QueryUserInfo in net and winbindd.
Guenther
2008-02-12 18:16:56 +01:00
Günther Deschner
4f3e97cbae Use rpccli_netr_DsRGetDCName() in rpcclient and winbindd.
Guenther
2008-02-08 23:38:13 +01:00
Günther Deschner
e196e527ae Fix winbindd msrpc_lookup_useraliases.
Guenther
2008-02-08 10:59:31 +01:00
Günther Deschner
ce22abcea3 Use rpccli_lsa_QueryInfoPolicy() all over the place.
Guenther
2008-02-08 10:26:20 +01:00
Günther Deschner
ccf79cfa88 Use rpccli_lsa_QueryInfoPolicy2 in winbindd.
Guenther
2008-02-08 10:15:50 +01:00
Günther Deschner
66b79add35 Use rpccli_samr_QueryDisplayInfo() all over the place.
Guenther
2008-02-08 00:10:55 +01:00
Günther Deschner
d1c669920e Use rpccli_samr_GetGroupsForUser() all over the place.
Guenther
2008-02-07 14:25:18 +01:00
Günther Deschner
8abeea9922 Use rpccli_netr_GetAnyDCName and rpccli_netr_GetDCName everywhere.
Guenther
2008-02-07 10:29:26 +01:00
Günther Deschner
ffbfd19ad7 Let rpccli_samr_chgpasswd3 use rpccli_samr_ChangePasswordUser3 internally.
Guenther
2008-02-07 10:07:00 +01:00
Günther Deschner
dd9fa33e96 Use rpccli_samr_QueryDomainInfo() in winbindd.
Guenther
2008-02-06 02:09:44 +01:00
Jeremy Allison
654484b9a2 Small whitespace cleanup + check for null returns on talloc_strdup.
Jeremy.
2008-02-05 16:51:46 -08:00
Günther Deschner
1793ed10df Use rpccli_samr_QueryGroupMember() all over the place.
Guenther
2008-02-05 13:19:47 +01:00
Günther Deschner
5c16716285 Use rpccli_samr_GetAliasMembership() in winbindd and rpcclient.
Guenther
2008-02-05 10:13:08 +01:00
Günther Deschner
bdf8d56262 Use rpccli_samr_Connect2() all over the place.
Guenther
2008-02-04 22:12:40 +01:00
Michael Adam
3865a7e6a1 Fix a typo in a debug message.
Michael
2008-02-04 16:42:08 +01:00
Volker Lendecke
af40b71023 Convert read_data() to NTSTATUS 2008-02-02 11:03:23 +01:00
Simo Sorce
7dbfc7bdc6 Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test 2008-02-01 14:24:31 -05:00
Simo Sorce
9347d34b50 Fix winbindd running on a Samba DC,
This patch make sure we do not try to contact smbd in the main dameon
to avoid deadlocks.
All the operations that require connecting to smbd are performed in
the domain child anyway.
2008-02-01 14:23:43 -05:00
Günther Deschner
da90eb7653 Use rpccli_samr_OpenUser() all over the place.
Guenther
2008-02-01 12:30:15 +01:00