1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

605 Commits

Author SHA1 Message Date
Günther Deschner
0ad00a452f Add debug statement in auth_winbind to display wbcAuthenticateUserEx error code.
Guenther
2008-03-26 01:29:56 +01:00
Günther Deschner
dbc7237a8a Fix crash bug in check_sam_security() when make_server_info_sam() did a
talloc_steal and talloc_free on the sam account already.

Guenther
2008-03-20 00:54:20 +01:00
Volker Lendecke
f18a805759 Fix bug 5317
Thanks to oster@cs.usask.ca
2008-03-14 22:23:44 +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
Günther Deschner
18b8c2c19e Be more verbose why create local token has failed during
NTLMSSP and Kerberos session setup

Guenther
2008-03-06 12:27:11 +01:00
Günther Deschner
92fca97951 Use netr_SamInfo3 in remaining places.
Guenther
2008-02-17 02:12:01 +01:00
Günther Deschner
5866c11b28 Use netr_SamInfo3 in make_server_info_info3().
Guenther
2008-02-17 02:11:59 +01:00
Jeremy Allison
b7628f3a47 Allow auth_ntlmssp_end() to ignore null pointers passed in.
Jeremy.
2008-02-14 18:05:37 -08:00
Stefan Metzmacher
e3435930a3 auth_winbind: use wbcAuthenticateUserEx()
smbd doesn't need $(WBCOMMON_OBJ) anymore,
it works with any libwbclient.so now
and may talk to an older winbindd.

metze
2008-02-13 13:30:16 +01:00
Karolin Seeger
906e19bad4 Fix typo.
Karolin
2008-02-05 16:23:09 +01:00
Volker Lendecke
e2c9fc4cf5 Always pass a TALLOC_CTX to str_list_make and str_list_copy 2008-02-04 20:57:49 +01:00
Volker Lendecke
22e49ef2c0 tiny simplification 2008-02-04 19:41:04 +01:00
Andreas Schneider
5aadfcdaac Windows 2008 (Longhorn) auth2 flag fixes.
Interop fixes for AD specific flags. Original patch from Todd Stetcher.
2008-01-23 14:55:22 -08:00
Jeremy Allison
d61831164b Fix CID 460 - resource leak on error.
Jeremy.
2008-01-08 18:48:04 -08:00
Michael Adam
6b2b9a60ef Convert add_sid_to_array() add_sid_to_array_unique() to return NTSTATUS.
Michael
2008-01-09 01:47:10 +01:00
Jeremy Allison
e289a0c859 More logical operations on booleans. IBM checker.
Jeremy.
2008-01-04 23:24:15 -08:00
Volker Lendecke
22a98bf7b8 Fix a panic
get_root_nt_token asks for "struct nt_user_token". talloc_get_type is not smart
enough to see that this is the same as NT_USER_TOKEN... :-)
2007-12-29 21:42:56 +01:00
Volker Lendecke
fada689893 Convert get_root_nt_token to memcache 2007-12-28 17:24:39 +01:00
Volker Lendecke
dbcc213710 Remove static zeros 2007-12-28 17:02:34 +01:00
James Peach
22ac34a329 Fix "may be used uninitialized" compiler warnings. 2007-12-22 14:10:06 -08:00
Gerald (Jerry) Carter
42787bccff De-couple smbd from staticly linking against winbindd client files.
Implements a wrapper layer in winbind_util.c which are just stubs
if compiled --without-winbind.  When building with winbindd, it
is now required to build the libwbclient DSO first (in the Makefile)
and then either set LD_LIBRARY_PATH or /etc/ld.so.conf to pick up the
library PATH.
2007-12-21 11:59:56 -06:00
Volker Lendecke
735f593154 Remove Get_Pwnam and its associated static variable
All callers are replaced by Get_Pwnam_alloc
2007-12-19 21:09:10 +01:00
Jeremy Allison
299ea5d122 Correctly define prototypes for accessor functions.
Jeremy.
2007-12-17 17:13:31 -08:00
Jeremy Allison
dcf624aa02 More static fstring removal.
Jeremy.
2007-12-17 17:02:48 -08:00
Michael Adam
5249b3d204 Reformat: Remove trailing spaces.
Michael
2007-12-17 13:25:49 +01:00
Michael Adam
46bfbf5c8a Fix flags in caller of lookup_name() in create_builtin_administrators().
Michael
2007-12-17 13:06:09 +01:00
Jeremy Allison
2a700c5a57 Remove another static string and static passwd.
Jeremy.
2007-12-16 18:32:03 -08:00
Volker Lendecke
bb35e794ec Replace sid_string_static by sid_string_dbg in DEBUGs 2007-12-15 22:09:36 +01:00
Volker Lendecke
f00ab810d2 Use sid_string_talloc where we have a tmp talloc ctx 2007-12-15 22:09:35 +01:00
Michael Adam
da23684261 Fix typo in debug statement.
Michael
2007-12-13 14:38:05 +01:00
Michael Adam
0cde7ac9cb Rename get_trust_pw() to get_trust_pw_hash().
Michael
2007-12-13 10:15:19 +01:00
Michael Adam
6ced4a7f88 Let get_trust_pw() determine the machine_account_name to use.
Up to now each caller used its own logic.

This eliminates code paths where there was a special treatment
of the following situation: the domain given is not our workgroup
(i.e. our own domain) and we are not a DC (i.e. it is not a typical
trusted domain situation). In situation the given domain name was
previously used as the machine account name, resulting in an account
name of DOMAIN\\DOMAIN$, which does not seem very reasonable to me.
get_trust_pw would not have obtained a password in this situation
anyways.

I hope I have not missed an important point here!

Michael
2007-12-13 10:15:17 +01:00
Volker Lendecke
aec5f15126 Correctly unbecome_root() on error 2007-12-10 12:37:37 +01:00
Volker Lendecke
60500fac30 Fix two incompatible pointer warnings
Jeremy, please check
2007-12-08 09:39:20 -08:00
Jeremy Allison
ec003f3936 Remove next_token - all uses must now be next_token_talloc.
No more temptations to use static length strings.
Jeremy.
2007-12-07 17:32:32 -08:00
Jeremy Allison
0002a9e96b Remove pstrings from everything except srv_spoolss_nt.c.
Jeremy.
2007-11-27 14:35:30 -08:00
Jeremy Allison
72c19d114b Remove pstring from auth/*
Jeremy.
2007-11-14 10:37:18 -08:00
Jeremy Allison
f1680bada9 Remove last pstring from smbd/*.c
Jeremy.
2007-11-13 12:51:31 -08:00
Jeremy Allison
963fc76852 Remove most of the remaining globals out of lib/util_sock.c.
I have a plan for dealing with the remaining..... Watch
this space.
Jeremy.
2007-11-03 23:20:10 -07:00
Jeremy Allison
95d01279a5 I can't get away without a 'length' arg. :-).
Jeremy.
2007-11-03 18:41:26 -07:00
Jeremy Allison
e848506c85 Stop get_peer_addr() and client_addr() from using global
statics. Part of my library cleanups.
Jeremy.
2007-11-03 18:15:45 -07:00
Jeremy Allison
98e154c312 This is a large patch (sorry). Migrate from struct in_addr
to struct sockaddr_storage in most places that matter (ie.
not the nmbd and NetBIOS lookups). This passes make test
on an IPv4 box, but I'll have to do more work/testing on
IPv6 enabled boxes. This should now give us a framework
for testing and finishing the IPv6 migration. It's at
the state where someone with a working IPv6 setup should
(theorecically) be able to type :
smbclient //ipv6-address/share
and have it work.
Jeremy.
2007-10-24 14:16:54 -07:00
Jeremy Allison
f35a266b3c RIP BOOL. Convert BOOL -> bool. I found a few interesting
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
2007-10-18 17:40:25 -07:00
Michael Adam
e68671b595 Add become_root/unbecome_root around one call of getsampwsid()
in create_token_from_username(). This caused set_nt_acl to
partially fail in certain circumstances.

This is expected to bring an improvement to bug #4308.

Michael
2007-10-12 13:20:07 +02:00
Jeremy Allison
3f6bd0e1ec Add start of IPv6 implementation. Currently most of this is avoiding
IPv6 in winbindd, but moves most of the socket functions that were
wrongly in lib/util.c into lib/util_sock.c and provides generic
IPv4/6 independent versions of most things. Still lots of work
to do, but now I can see how I'll fix the access check code.
Nasty part that remains is the name resolution code which is
used to returning arrays of in_addr structs.
Jeremy.
2007-10-10 18:25:16 -07:00
Gerald (Jerry) Carter
5c6c8e1fe9 [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch. 2007-10-10 15:34:30 -05:00
Michael Adam
ba8c48244e r25598: Add missing become_root/unbecome_root around calls of add_aliases.
This triggered a "cannot access LDAP when not root"-bug with
"passdb backend = ldap" and "winbind nested groups = yes".

This *might* be a step towards fixing bug #4308, since the
failure was observerd when triggered by acl code.

Michael
2007-10-10 12:31:17 -05:00
Gerald Carter
00a93ed336 r25407: Revert Longhorn join patch as it is not correct for the 3.2 tree.
The translate_name() used by cli_session_setup_spnego() cann rely
Winbindd since it is needed by the join process (and hence before
Winbind can be run).
2007-10-10 12:31:03 -05:00
Gerald Carter
611fdd95a5 r25401: BUG 4982: Don't delete lanman hashes on invalid logins when
using the "lanman auth = no".  Tested by Guenter Kukkukk.
2007-10-10 12:31:02 -05:00
Gerald Carter
8304ccba73 r25400: Windows 2008 (Longhorn) Interop fixes for AD specific auth2 flags,
and client fixes.  Patch from Todd Stetcher <todd.stetcher@isilon.com>.
2007-10-10 12:31:02 -05:00