Zach Loafman
06d0790c07
Fix various build warnings
...
This fixes various build warnings on our platform. I'm sure I haven't
caught them all, but it's a start.
(This used to be commit 6b73f259cb67d9dda9127907d706f9244a871fa3)
2008-07-22 15:00:48 +02:00
Volker Lendecke
99526d391d
Refactoring: Change calling conventions for cli_rpc_pipe_open_schannel
...
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit 1fcfca007f33a2c4e979abf30c2ea0db65bac718)
2008-07-20 17:37:14 +02:00
Volker Lendecke
1335da2a7c
Refactoring: Change calling conventions for cli_rpc_pipe_open_noauth
...
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit 9abc9dc4dc13bd3e42f98eff64eacf24b51f5779)
2008-07-20 17:37:11 +02:00
Jeremy Allison
799252f635
Fix the non-LDAP, non-krb5 build, fix gcc -O3 warnings.
...
Jeremy.
(This used to be commit 9e2ab30d3cf6950fc79152b2169e7aeae8d6a366)
2008-06-26 19:46:18 -07:00
Volker Lendecke
d331624fdf
Add server_info to pipes_struct
...
(This used to be commit d621867bb8767e1c4236d28dd9294a61db6cbb10)
2008-06-26 13:13:22 +02:00
Jeremy Allison
da70f8ab1e
Fix for bug #5551 , smbd recursing back into winbindd from a winbindd call.
...
Jeremy.
(This used to be commit a07fe72538e8e724b9736d5a85cc590864c5cab2)
2008-06-24 18:01:59 -07:00
Jeremy Allison
ee6b168e6e
Fix bug #5555 . Don't return NT_STATUS_PASSWORD_MUST_CHANGE error on machine account logon.
...
Jeremy.
(This used to be commit 10da498a2349bf5944183adf5a9284eafa2b8b74)
2008-06-24 16:37:15 -07:00
Volker Lendecke
40f5eab5eb
Wrap the unix token info in a unix_user_token in auth_serversupplied_info
...
No functional change, this is a preparation for more current_user ref removal
(This used to be commit dcaedf345e62ab74ea87f0a3fa1e3199c75c5445)
2008-06-19 18:51:37 +02:00
Volker Lendecke
4f0626ee09
Fix security=server, bug 5502
...
This has brown paper bag quality and is definitely needed for 3.2.0.
Thanks to Orion Poplawski for reporting this!
Volker
(This used to be commit 3b31f8cce3703645a57778bc752bc9b9e853df5d)
2008-05-30 11:46:34 +02:00
Volker Lendecke
87803073ec
Make sure we have serversupplied_info->sanitized_username everywhere
...
(This used to be commit 88423a17b966652eba4085e88f7ddb5c86b463dd)
2008-05-11 00:25:55 +02:00
Volker Lendecke
b446bb05d0
Add function make_serverinfo_from_username()
...
This will be used for 'security=share' and 'force user'
(This used to be commit 88e43097cafcd2849d9f1200a377357fde4cce99)
2008-05-10 11:17:00 +02:00
Volker Lendecke
0283e95a7c
Add a mem_ctx argument to make_server_info_guest()
...
(This used to be commit e4a9492967f3d2b64f27943f99414608e0c03d21)
2008-05-10 11:16:59 +02:00
Volker Lendecke
505205b1cb
Make copy_serverinfo non-static, add mem_ctx
...
(This used to be commit a3651ced9e0859578df8cc44da64e7a8066bde76)
2008-05-10 11:16:59 +02:00
Volker Lendecke
64ddd381b7
Rename server_info->was_mapped to server_info->nss_token
...
"nss_token" from my point of view much better reflects what this flag actually
represents
(This used to be commit b121a5acb2ef0bb3067d953b028696175432f10d)
2008-05-07 14:47:29 +02:00
Volker Lendecke
bec1dfab27
Remove "userdom_struct user" from "struct user_struct"
...
(This used to be commit 420de035237bb08bc470c9eb820f3da2edaa6805)
2008-05-05 18:28:59 +02:00
Volker Lendecke
a683625d7f
Fix a typo
...
(This used to be commit 964bd02220c04030d8cb0f97ca9b409400d1238c)
2008-05-05 18:28:59 +02:00
Volker Lendecke
dd11f1d8a8
Remove unused set_current_user_guest()
...
(This used to be commit a33e8d2ffa4daea1deba13b3571cb0b36d521476)
2008-05-05 18:28:59 +02:00
Gerald W. Carter
d6aa45d29c
BUG 5429: Clarify log msgs re: failure to create BUILTIN\{Administrators,Users}
...
Raise the debug msgs from Lvl 0 in the create_builtin_XX() functions
to prevent unnecessary panic from people reading the logs.
(This used to be commit 2983b9dc790e0f90ec1e6add131438c6bfd361b4)
2008-04-30 09:43:00 -05:00
Michael Adam
b64be89a6d
auth: add SeDiskOperatorsPrivilege to get_root_nt_token to fix registry shares.
...
Michael
(This used to be commit 6bb107b17d557c27d035ca518ab61296814a3cea)
2008-04-15 20:41:14 +02:00
Karolin Seeger
a8124367b4
Fix typos.
...
Karolin
(This used to be commit 6cee34703503fbf3629057345fe221b866560648)
2008-04-09 16:14:04 +02:00
Günther Deschner
bea4541e11
Use sid_array_from_info3 in lookup_usergroups_cached().
...
Guenther
(This used to be commit 65b4cb20ea3fb806cfd50281e08f32bea70fafce)
2008-04-04 02:53:40 +02:00
Günther Deschner
99d3590455
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
(This used to be commit 0970369ca0cb9ae465cff40e5c75739824daf1d0)
2008-04-02 11:12:47 +02:00
Günther Deschner
5b8591c05f
Add debug statement in auth_winbind to display wbcAuthenticateUserEx error code.
...
Guenther
(This used to be commit 0ad00a452f03d8af6e6b6fabd4a05ca26a9910d0)
2008-03-26 01:29:56 +01:00
Günther Deschner
e3731bd148
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
(This used to be commit dbc7237a8a566f3e86bd6e4b48593b93c5bfb94e)
2008-03-20 00:54:20 +01:00
Volker Lendecke
6b2da4d2f4
Fix bug 5317
...
Thanks to oster@cs.usask.ca
(This used to be commit f18a80575921a241c7243c5af5a0101a2956ff17)
2008-03-14 22:23:44 +01:00
Volker Lendecke
1ebfc66b2c
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.
(This used to be commit f94a63cd8f94490780ad9331da229c0bcb2ca5d6)
2008-03-10 21:08:45 +01:00
Günther Deschner
23cd8e5ea7
Be more verbose why create local token has failed during
...
NTLMSSP and Kerberos session setup
Guenther
(This used to be commit 18b8c2c19e50aee8fc900c7507244cb95014a4fa)
2008-03-06 12:27:11 +01:00
Günther Deschner
7dfeae6073
Use netr_SamInfo3 in remaining places.
...
Guenther
(This used to be commit 92fca97951bf7adf8caaeabdaff21682b18dd91f)
2008-02-17 02:12:01 +01:00
Günther Deschner
c52dcc7b92
Use netr_SamInfo3 in make_server_info_info3().
...
Guenther
(This used to be commit 5866c11b288c217f0c38240c44f8bfeff185890d)
2008-02-17 02:11:59 +01:00
Jeremy Allison
4f1cc7b495
Allow auth_ntlmssp_end() to ignore null pointers passed in.
...
Jeremy.
(This used to be commit b7628f3a47166791db4cd6451d52ea3881a45bed)
2008-02-14 18:05:37 -08:00
Stefan Metzmacher
b397b5cb8f
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
(This used to be commit e3435930a307cff3066fe2047ed8c5c48911f001)
2008-02-13 13:30:16 +01:00
Karolin Seeger
95eb2f2eba
Fix typo.
...
Karolin
(This used to be commit 906e19bad40ba0c0a473ec2601e9eb0fff169f83)
2008-02-05 16:23:09 +01:00
Volker Lendecke
2762b9a975
Always pass a TALLOC_CTX to str_list_make and str_list_copy
...
(This used to be commit e2c9fc4cf5f0ff725330fa44f53782db65fca37e)
2008-02-04 20:57:49 +01:00
Volker Lendecke
b47672656b
tiny simplification
...
(This used to be commit 22e49ef2c0c9b641068ac5419b9c82fb97d3e8e6)
2008-02-04 19:41:04 +01:00
Andreas Schneider
691c4b1a41
Windows 2008 (Longhorn) auth2 flag fixes.
...
Interop fixes for AD specific flags. Original patch from Todd Stetcher.
(This used to be commit 5aadfcdaacd6f136eab9e107a88b8544e6d2105f)
2008-01-23 14:55:22 -08:00
Jeremy Allison
b47d491489
Fix CID 460 - resource leak on error.
...
Jeremy.
(This used to be commit d61831164b482d02e0eef3c28aeed93d3e44433f)
2008-01-08 18:48:04 -08:00
Michael Adam
f3603d5a5a
Convert add_sid_to_array() add_sid_to_array_unique() to return NTSTATUS.
...
Michael
(This used to be commit 6b2b9a60ef857ec31da5fea631535205fbdede4a)
2008-01-09 01:47:10 +01:00
Jeremy Allison
99e349b35d
More logical operations on booleans. IBM checker.
...
Jeremy.
(This used to be commit e289a0c8592f9e5c58100ddcde2577b452725b88)
2008-01-04 23:24:15 -08:00
Volker Lendecke
99bd615a80
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... :-)
(This used to be commit 22a98bf7b81fb89dce1f32ef65cfe6caaba985b3)
2007-12-29 21:42:56 +01:00
Volker Lendecke
245537f9bd
Convert get_root_nt_token to memcache
...
(This used to be commit fada689893314bed2fc78588b3fd9b144f4c808a)
2007-12-28 17:24:39 +01:00
Volker Lendecke
533d6f617e
Remove static zeros
...
(This used to be commit dbcc213710a9af31b6094d4741a6f68f573dcdad)
2007-12-28 17:02:34 +01:00
James Peach
4dc0c1b88b
Fix "may be used uninitialized" compiler warnings.
...
(This used to be commit 22ac34a329c9be9cf7d1e6749ebcfb50215378e4)
2007-12-22 14:10:06 -08:00
Gerald (Jerry) Carter
59ce7650f2
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.
(This used to be commit 42787bccff4fcffafc7aae6a678e792604ecaaa5)
2007-12-21 11:59:56 -06:00
Volker Lendecke
e518e19bc0
Remove Get_Pwnam and its associated static variable
...
All callers are replaced by Get_Pwnam_alloc
(This used to be commit 735f59315497113aebadcf9ad387e3dbfffa284a)
2007-12-19 21:09:10 +01:00
Jeremy Allison
5bfe3c49a1
Correctly define prototypes for accessor functions.
...
Jeremy.
(This used to be commit 299ea5d122e173adf6edb6399fc90798747b0c97)
2007-12-17 17:13:31 -08:00
Jeremy Allison
2b0a570c77
More static fstring removal.
...
Jeremy.
(This used to be commit dcf624aa02cf7415a4a55e6d45606e813ae6b91f)
2007-12-17 17:02:48 -08:00
Michael Adam
3fa2183941
Reformat: Remove trailing spaces.
...
Michael
(This used to be commit 5249b3d204bf5f9191c2a4a7e81d09227eb5ddea)
2007-12-17 13:25:49 +01:00
Michael Adam
720c65faed
Fix flags in caller of lookup_name() in create_builtin_administrators().
...
Michael
(This used to be commit 46bfbf5c8af6c030e67219a29c49fd2d40003b18)
2007-12-17 13:06:09 +01:00
Jeremy Allison
26daf2b479
Remove another static string and static passwd.
...
Jeremy.
(This used to be commit 2a700c5a57a417add3b1975b2c396d20c8a5f301)
2007-12-16 18:32:03 -08:00
Volker Lendecke
900288a2b8
Replace sid_string_static by sid_string_dbg in DEBUGs
...
(This used to be commit bb35e794ec129805e874ceba882bcc1e84791a09)
2007-12-15 22:09:36 +01:00