1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

1191 Commits

Author SHA1 Message Date
Günther Deschner
ffce0461de r13657: Let winbindd try to obtain the gecos field from the msSFU30Gecos
attribute when "winbind nss info = sfu" is set. Fixes #3539.

Guenther
2007-10-10 11:10:21 -05:00
Günther Deschner
c201e51de3 r13639: Never overwrite the acct_flags in rpccli_netlogon_sam_network_logon().
Guenther
2007-10-10 11:10:20 -05:00
Gerald Carter
b65be8874a r13571: Replace all calls to talloc_free() with thye TALLOC_FREE()
macro which sets the freed pointer to NULL.
2007-10-10 11:10:14 -05:00
Gerald Carter
a918e4ac24 r13515: Make sure to store the correct domain name in the server affinity cache. 2007-10-10 11:10:09 -05:00
Günther Deschner
e6d52c1e9d r13492: As noone objected on the mailing-list:
Fix parse_domain_user to fail when splitting a full name like "DOM\user"
when "winbind use default domain" and "winbind trusted domains only" are
not enabled.

This allows pam_winbind to behave correctly when more modules are
stacked in the "account" or "password" PAM facility. pam_winbindd calls
WINBINDD_GETPWNAM which can decide whether or not a user is a winbind
user and return correct PAM error codes.

Guenther
2007-10-10 11:10:06 -05:00
Günther Deschner
f60eddc0a4 r13442: Implement samr_chgpasswd_user3 server-side.
Guenther
2007-10-10 11:10:03 -05:00
Günther Deschner
286f6fc233 r13409: No functional changes, just some DEBUG cleanup.
Guenther
2007-10-10 11:09:59 -05:00
Günther Deschner
e9ccebf45a r13391: Only fall into password change when ACB_PWNOEXP is not set
(got it wrong the first time as administrator has this flag set by
default).

Guenther
2007-10-10 11:09:58 -05:00
Günther Deschner
a04a5e40b7 r13377: Fix from Volker: Make offline authentication work with NT4 as well
(handle no ACB_NORMAL flag and save name2sid as early as possible).

Guenther
2007-10-10 11:09:57 -05:00
Günther Deschner
24c6b9fecb r13375: Match XP behaviour: Don't force 'Administrator' to change an expired
password on logon. (this might be true for all domain admins as well).

Guenther
2007-10-10 11:09:56 -05:00
Volker Lendecke
dde8322b5c r13371: Remove an unused function 2007-10-10 11:06:26 -05:00
Gerald Carter
17e63ac4ed r13316: Let the carnage begin....
Sync with trunk as off r13315
2007-10-10 11:06:23 -05:00
Gerald Carter
6c3480f9ae r13310: first round of server affinity patches for winbindd & net ads join 2007-10-10 11:06:23 -05:00
Volker Lendecke
d62da3e987 r13309: If the sid in the winbind name2sid cache is not valid (NT_STATUS_NONE_MAPPED),
we have S-0-0 as a SID in the cache. This leads to ugly level 0 messages from
string_to_sid. Avoid them.

Volker
2007-10-10 11:06:23 -05:00
Gerald Carter
9947943833 r13232: defensive programming in an attempt to prevent crashes due to a PDC rebooting 2007-10-10 11:06:19 -05:00
Gerald Carter
485f037094 r13229: * fix bad comparison caught by the AIX compiler in wbinfo code
* update output from mkversion.sh to include the SAMBA_VENDOR_PATCH
2007-10-10 11:06:19 -05:00
Derrell Lipman
f2a24de769 r13212: r12414@cabra: derrell | 2006-01-28 17:52:17 -0500
lp_load() could not be called multiple times to modify parameter settings based
 on reading from multiple configuration settings.  Each time, it initialized all
 of the settings back to their defaults before reading the specified
 configuration file.

 This patch adds a parameter to lp_load() specifying whether the settings should
 be initialized.  It does, however, still force the settings to be initialized
 the first time, even if the request was to not initialize them.  (Not doing so
 could wreak havoc due to uninitialized values.)
2007-10-10 11:06:18 -05:00
Gerald Carter
1c7787e4a1 r13089: quick fix to work around building ilbnss_winbind.so on SOlaris when --enable-developer is specified 2007-10-10 11:06:13 -05:00
Jeremy Allison
a2bb2e3e81 r13042: Fix for bug #3248 Stefan Burkei <stefan@burkei.de>.
When doing auth_crap authentication use the client
given workstation name not our own.
Jeremy.
2007-10-10 11:06:11 -05:00
Günther Deschner
3a6e41a0cb r13024: Add is_null_sid.
GUenther
2007-10-10 11:06:11 -05:00
Günther Deschner
4cb662ffd7 r12900: Merge from trunk:
Correctly handle the case where users logon with an expired password.

In that case pam_sm_authenticate has to return PAM_SUCESS instead of
PAM_NEW_AUTHTOK_REQD or PAM_AUTHTOK_EXPIRED and pam_sm_acct_mgmt has to
take care of requesting an immediate password change. (see the Linux PAM
documentation).

Fixes Bugzilla #1524, #3205. Tested with login, sshd, kdm and gdm on
Linux.

Thanks to Scott Barker <Scott_Barker@mtechIT.com>.

Guenther
2007-10-10 11:06:06 -05:00
Günther Deschner
2456832a6d r12788: Since we have agreed on the case of winbindd names, we can store a
sid_to_name lookup result already after doing a sucessfull name_to_sid
lookup.

Guenther
2007-10-10 11:06:03 -05:00
Günther Deschner
348d309688 r12787: Revert last commit that removed our logic of memorizing negative
name_to_sid lookups in the cache.

Guenther
2007-10-10 11:06:03 -05:00
Volker Lendecke
7d0956f0bd r12771: Apply patch from bug 3374, attempt to fix build on tru64.
Thanks to "The Written Word" -- whoever that is :-)

Volker
2007-10-10 11:06:03 -05:00
Günther Deschner
1e0124efc5 r12742: Don't write null sid mappings into the winbindd_cache.tdb.
Guenther
2007-10-10 11:06:02 -05:00
Jeremy Allison
4473ac4ef9 r12713: Remove use of uint8_t -> uint8.
Jeremy.
2007-10-10 11:06:01 -05:00
Jeremy Allison
c970d7d0a5 r12555: Fix more load_case_table swegfaults. Arggg.
What I'd give for a global constructor...
Jeremy.
2007-10-10 11:05:59 -05:00
Volker Lendecke
9ca8edc26e r12544: Fix segfaults in winbind, smbpasswd and net 2007-10-10 11:05:59 -05:00
Günther Deschner
3ca735f7ad r12407: Fix returning wrong error codes and better sort out errors and stdout
messages.

Guenther
2007-10-10 11:05:55 -05:00
Günther Deschner
d50098518d r12341: add DEBUG statement.
Guenther
2007-10-10 11:05:54 -05:00
Volker Lendecke
be6c9012da r12313: Introduce yet another copy of the string_sub function:
talloc_string_sub. Someone with time on his hands could convert all the
callers of all_string_sub to this.

realloc_string_sub is *only* called from within substitute.c, it could be
moved there I think.

Volker
2007-10-10 11:05:53 -05:00
Günther Deschner
266f5fc9af r12273: Fix copy paste error.
Guenther
2007-10-10 11:05:51 -05:00
Günther Deschner
499224f02a r12193: Fix some typos.
Guenther
2007-10-10 11:05:48 -05:00
Volker Lendecke
8b30cf8e09 r12170: Fix a segfault -- this is post-3.0.21 code 2007-10-10 11:05:47 -05:00
Volker Lendecke
b15815c804 r12163: Change lookup_sid and lookup_name to return const char * instead of char *,
use a temporary talloc_ctx for clarity.

Volker
2007-10-10 11:05:46 -05:00
Volker Lendecke
4ba50c823e r12133: Fix an uninitialized variable in new code in rpc_server/srv_samr_nt.c.
Fix winbind_lookup_name for the local domain, ie for aliases on a member
server.

Volker
2007-10-10 11:05:46 -05:00
Volker Lendecke
9f99d04a54 r12051: Merge across the lookup_name and lookup_sid work. Lets see how the build farm
reacts :-)

Volker
2007-10-10 11:05:43 -05:00
Jeremy Allison
cd192ed79a r12045: More warning fixes... Just a few more to go.
Jeremy.
2007-10-10 11:05:42 -05:00
Günther Deschner
abf761c8bf r11960: add 'wbinfo --separator' to get the currently active winbind_separator.
Needed for KDM/GDM login masks.

Guenther
2007-10-10 11:05:39 -05:00
Gerald Carter
b823bcbc91 r11867: attempt at fixing the compile issue with nss_winbind.so on HP-UX caused by Solaris specific return codes 2007-10-10 11:05:33 -05:00
Günther Deschner
4d681f560e r11851: Display correct error string.
Guenther
2007-10-10 11:05:30 -05:00
Volker Lendecke
c8b67c2448 r11707: alt_names[i] might be NULL for i>0 also...
Volker
2007-10-10 11:05:24 -05:00
Volker Lendecke
4a4f85f0ef r11704: methods->alternate_name is not used anymore -- remove it 2007-10-10 11:05:24 -05:00
Volker Lendecke
d1f506fa13 r11667: Fix a debug message 2007-10-10 11:05:24 -05:00
Gerald Carter
8bead2d282 r11661: Store the INFO3 in the PAC data into the netsamlogon_cache.
Also remove the mem_ctx from the netsamlogon_cache_store() API.

Guenther, what should we be doing with the other fields in
the PAC_LOGON_INFO?
2007-10-10 11:05:23 -05:00
Gerald Carter
0c2bb5ba7b r11652: Reinstate the netsamlogon_cache in order to work
around failed query_user calls.  This fixes
logons to a member of a Samba domain as a user from a
trusted AD domain.

As per comments on samba-technical, I still need to add

(a) cache the PAC info as werll as NTLM net_user_info_3
(b) expire the cache when the SMB session goes away

Both Jeremy and Guenther have signed off on the idea.
2007-10-10 11:05:23 -05:00
Gerald Carter
aaed605206 r11651: After talking to Jeremy, commit my winbindd "Do the Right Thing" patch.
Still needs some more testing ni domains with multiple DCs. Coming next....
2007-10-10 11:05:22 -05:00
Gerald Carter
c0c181826e r11580: fix an uninitialized variable that was causing winbindd to die in winbindd_dual_getsidaliases() 2007-10-10 11:05:21 -05:00
Jeremy Allison
d1caef8663 r11573: Adding Andrew Bartlett's patch to make machine account
logons work if the client gives the MSV1_0_ALLOW_SERVER_TRUST_ACCOUNT
or MSV1_0_ALLOW_WORKSTATION_TRUST_ACCOUNT flags. This changes
the auth module interface to 2 (from 1). The effect of this is
that clients can access resources as a machine account if they
set these flags. This is the same as Windows (think of a VPN
where the vpn client authenticates itself to a VPN server
using machine account credentials - the vpn server checks
that the machine password was valid by performing a machine
account check with the PDC in the same was as it would a
user account check. I may add in a restriction (parameter)
to allow this behaviour to be turned off (as it was previously).
That may be on by default.
Andrew Bartlett please review this change carefully.
Jeremy.
2007-10-10 11:05:20 -05:00
Jeremy Allison
414303bc02 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.
2007-10-10 11:05:19 -05:00