1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-21 01:59:07 +03:00

1713 Commits

Author SHA1 Message Date
Gerald Carter
ff025d451e r22730: Fix password changes via pam_winbindd when using "winbind normalize names"
and the username has been munged.  Make sure to munge it back before
performing the change_password() request.
2007-10-10 12:21:51 -05:00
Gerald Carter
e8f9bd6558 r22727: remove outdated comment about templatre shell and homedir 2007-10-10 12:21:51 -05:00
Gerald Carter
0399f52a1c r22726: When performing an offline logon for a user in a trusted domain,
take care not to expire the name2sid cache entry just because
that child does not know that the primary domain is offline.
2007-10-10 12:21:51 -05:00
Gerald Carter
693ab48408 r22725: * Don't try to update the sequence_number when offline
* Log the NTSTATUS when saving name/sid cache entry
* Allow the backend loolkup_usergroups() call in winbindd_{rpc,ads}.c
  to inform the wcache manager that the group list should not be cached
  (needed for one-way trusts).
2007-10-10 12:21:50 -05:00
Gerald Carter
c3a8dc5d13 r22724: Call an nss_info backend's init() function if the
previous call was unsuccessful.  needed for offline
logons.
2007-10-10 12:21:50 -05:00
Gerald Carter
30f9cc52bf r22720: Fixes for offline auth when using krb5_auth = yes in pam_winbind.
Assume that "NO_DOMAIN_CONTROLLERS_FOUND" means that the domain
is offline.
2007-10-10 12:21:50 -05:00
Gerald Carter
c79ae57388 r22719: Missed change for one-way trust support. Ignore password policy
settings from one trusted domain with no incoming trust path.

Guenther, I think this is ok as we only need the pw policy
to give feedback on upcoming expiration times.
2007-10-10 12:21:50 -05:00
Gerald Carter
11f81c5997 r22717: Add Everyone and AuthenticatedUsers to the user's token
for use by the require-membership-of pam_winbind option.
2007-10-10 12:21:50 -05:00
Gerald Carter
32fd8558bd r22716: Clarify comment in winbindd_domain structure 2007-10-10 12:21:50 -05:00
Gerald Carter
1b99e8b521 r22715: When our primary domain does on or offline, make sure to send a msg
to the idmap child.

Also remove the check for the global offline state in child_msg_offline()
as this means we cannot mark domains offline due to network outages.
2007-10-10 12:21:49 -05:00
Gerald Carter
4086ef15b3 r22713: Offline logon fixes for idmap manager:
(a) Ignore the negative cache when the domain is offline
(b) don't delete expired entries from the cache as these
    can be used when offline (same model as thw wcache entries)
(c) Delay idmap backend initialization when offline
    as the backend routines will not be called until we go
    online anyways.  This prevents idmap_init() from failing
    when a backend's init() function fails becuase of lack of
    network connectivity
2007-10-10 12:21:49 -05:00
Gerald Carter
24616f7d6b r22712: Inform the user when logging in via pam_winbind
and the krb5 tkt cache could not be created due to clock skew.
2007-10-10 12:21:49 -05:00
Gerald Carter
ef03042682 r22711: Fix a compile warnign in query_user(). Ensure that user_rid
is initialized.
2007-10-10 12:21:49 -05:00
Gerald Carter
dee2bce2af r22710: Support one-way trusts.
* Rely on the fact that name2sid will work for any name
  in a trusted domain will work against our primary domain
  (even in the absense of an incoming trust path)

* Only logons will reliably work and the idmap backend
  is responsible for being able to manage id's without contacting
  the trusted domain

* "getent passwd" and "getent group" for trusted users and groups
  will work but we cannot get the group membership of a user in any
  fashion without the user first logging on (via NTLM or krb5)
  and the netsamlogon_cache being updated.
2007-10-10 12:21:49 -05:00
Gerald Carter
3d2123383d r22709: we can only use tschannel when commectcing to our primary (might need some fixing here for a Samba DC) 2007-10-10 12:21:48 -05:00
Gerald Carter
3a9152a2ac r22708: disable saving the trusted domain list as we want to the parent daemon to manage the complete trusted domain cache 2007-10-10 12:21:48 -05:00
Gerald Carter
3d814862af r22707: missed merge from local tree: pass the correct state to the domain when calling the async lookupsid() routine 2007-10-10 12:21:48 -05:00
Gerald Carter
aa2ac5a194 r22706: missed one reference to domain->native_mode in the previous commit 2007-10-10 12:21:48 -05:00
Gerald Carter
4b4148a964 r22705: Implement new set_dc_type_and_flags() called based on the
information return from our DC in the DsEnumerateDomainTrusts()
call.   If the fails, we callback ot the older
connect-to-the-remote-domain method.

Note that this means we can only reliably expect the native_mode
flag to be set for our own domain as this information in not
available outside our primary domain from the trusted information.
This is ok as we only really need the flag when trying to
determine to enumerate domain local groups via RPC.

Use the AD flag rather than the native_mode flag when using
ldap to obtain the seq_num for a domain.
2007-10-10 12:21:47 -05:00
Gerald Carter
9cf6068f1e r22704: Implement three step method for enumerating domain trusts.
(a) Query our primary domain for trusts
(b) Query all tree roots in our forest
(c) Query all forest roots in trusted forests.

This will give us a complete trust topology including
domains via transitive Krb5 trusts.  We also store the
trust type, flags, and attributes so we can determine
one-way trusted domains (outgoing only trust path).
Patch for one-way trusts coming in a later check-in.

"wbinfo -m" now lists all domains in the domain_list() as held
by the main winbindd process.
2007-10-10 12:21:47 -05:00
Gerald Carter
d12b8147d6 r22703: Convert winbindd_getgrgid() and winbindd_getgetpwnam()
to use the same code path after we resolve the name/gid to
a SID.  Use the async lookupname/lookupsid interface.
2007-10-10 12:21:47 -05:00
Gerald Carter
b442644bac r22702: Convert both lookup name and lookup sid to follow the
same heuristic.  First try our DC and then try a DC in the
root of our forest.  Use a temporary state since
winbindd_lookupXXX_async() is called from various winbindd
API entry points.

Note this will break the compile.  That will be fixed in the
next commit.
2007-10-10 12:21:47 -05:00
Gerald Carter
2da62a3d96 r22700: Add a simple wcache TRUSTDOM api for maintaing a complete
list of trusted domains without requiring each winbindd process
to aquire this on its own.  This is needed for various idmap
plugins and for dealing with different trust topoligies.

list_trusted_domain() patches coming next.
2007-10-10 12:21:47 -05:00
Simo Sorce
e04ca2d7f8 r22677: One line fix to make net idmap restore work again
Jerry, please add this for 3.0.25 final
2007-10-10 12:19:54 -05:00
Jeremy Allison
80d981265c r22675: Simo's patch for 0 size allocation. Still need
to examine parse_misc.c fix.
Jeremy.
2007-10-10 12:19:54 -05:00
Günther Deschner
0f436eab5b r22666: Expand kerberos_kinit_password_ext() to return NTSTATUS codes and make
winbindd's kerberized pam_auth use that.

Guenther
2007-10-10 12:19:54 -05:00
Günther Deschner
5b149967cc r22647: Avoid leaking a full info3 structure on each winbindd cached login by making
netsamlogon_cache_get() return a talloc'ed structure.

Guenther
2007-10-10 12:19:52 -05:00
Simo Sorce
565d7d0b18 r22646: segfault fix in idmap_ldap.c from 3_0_25 2007-10-10 12:19:52 -05:00
Günther Deschner
37f9f466fd r22643: Don't clear cached U/SID and UG/SID entries when we want to logon offline.
Guenther
2007-10-10 12:19:52 -05:00
Günther Deschner
bfcd10766b r22636: Fix logic bug.
We certainly don't want to crash winbind on each sucessfull
centry_uint{8,16,32,64} read.

Jeremy, please check :-)

Guenther
2007-10-10 12:19:51 -05:00
James Peach
4c58b6b194 r22633: Fix typo in debug message. 2007-10-10 12:19:51 -05:00
Jeremy Allison
603233a98b r22590: Make TALLOC_ARRAY consistent across all uses.
That should be it....
Jeremy.
2007-10-10 12:19:49 -05:00
Jeremy Allison
8968808c3b r22589: Make TALLOC_ARRAY consistent across all uses.
Jeremy.
2007-10-10 12:19:49 -05:00
Volker Lendecke
561f3c67f4 r22553: Fix the build 2007-10-10 12:19:44 -05:00
Jeremy Allison
f6fa3080fe r22542: Move over to using the _strict varients of the talloc
calls. No functional changes. Looks bigger than it is :-).
Jeremy.
2007-10-10 12:19:44 -05:00
Günther Deschner
31a193b02a r22511: Remove unused LDAPMessage.
Guenther
2007-10-10 12:19:41 -05:00
James Peach
e027322b76 r22507: Wrap the method of obtaining sockets to listen on. 2007-10-10 12:19:40 -05:00
Gerald Carter
a60c3f6a5a r22473: Correct fix for setting a default compat tdb idmap backend.
Previous code would always fill in "idmap backend = tdb"
even if you defined idmap domains.  My fault.  I should
have tested the original patch more before committing.
2007-10-10 12:19:37 -05:00
Günther Deschner
d6f259e918 r22466: Fix build warning.
Guenther
2007-10-10 12:19:36 -05:00
Günther Deschner
eb1566869c r22461: Use ranged LDAP queries in lookup_usergroups_member() and start to optinmize
lookup_groupmem(). In the later, at least try to avoid those massive LDAP
dn_lookups by looking in the cache before.

Guenther
2007-10-10 12:19:35 -05:00
Gerald Carter
2fa12753da r22447: Patch from Ying Li <ying.li2@hp.com> to default tdb idmap
plugin when neither idmap domains nor idmap backend have
been defined.
2007-10-10 12:19:34 -05:00
Gerald Carter
1787fcb8c1 r22444: * Validate a SID before trying to convert it to a uid/gid via the public
winbindd interface

* Add nss_info/*so files to the RHEL/Fedora packaging
2007-10-10 12:19:34 -05:00
Gerald Carter
0890cb941e r22430: Add SID validate to sid2uid() and sid2gid() public entry points in winbindd 2007-10-10 12:19:34 -05:00
James Peach
fc8589a337 r22418: Support running under launchd. We abstract the method of obtaining
sockets to listen on a little, because in the launchd case these
are provided for us. We also add an idle timeout so that a daemon
can exit after a period of inactivity.
2007-10-10 12:19:33 -05:00
James Peach
19c929c633 r22417: Refactor the various daemon run-mode options to make the semantics
of the various flags explicit.
2007-10-10 12:19:33 -05:00
Günther Deschner
bf9131fed3 r22402: Fix build warning.
Guenther
2007-10-10 12:19:32 -05:00
Simo Sorce
70878d6985 r22393: fix cut&paste error 2007-10-10 12:19:31 -05:00
Simo Sorce
ff5e0b2986 r22392: Remove leftover potentially segfaulty code.
Check we are online before actually trying to connect anywhere
2007-10-10 12:19:30 -05:00
Gerald Carter
3b24dae9e7 r22390: Patchset sent to samba-technical to address the winbind
loop when allocating a new id for a SID:

auth_util.patch		Revert create_local_token() to
			the 3.0.24 codebase

idmap_type.patch	Have the caller fillin the
			id_map.xid.type field when
			resolving a SID so that if we allocate
			a new id, we know what type to use

winbindd_api.patch	Remove the WINBINDD_SIDS_TO_XIDS calls
			from the public winbindd interface
			for the 3.0.25 release

idmap_rid.patch		Cleanup the idmap_rid backend to not
			call back into winbindd to resolve
			the SID in order to verify it's type.
2007-10-10 12:19:30 -05:00
Simo Sorce
7961476784 r22388: clearer message, thanks David 2007-10-10 12:19:29 -05:00