Günther Deschner
4dbd743e46
s3-util_sid: use shared dom_sid_compare_auth and dom_sid_equal_X functions.
...
Guenther
2010-09-20 14:04:37 -07:00
Björn Jacke
1c82ca01c3
s3/winbind: remove unused winbindd_check_cache_size
2010-09-19 22:58:33 -07:00
Simo Sorce
db46b2bdb0
s3-winbindd: Use rpc_open_pipe_interface in winbindd.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-15 12:53:43 +02:00
Pierre Carrier
eeb24afd78
Allows changing the maximum number of simultaneous clients in winbindd through an smb.conf option.
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2010-09-14 16:43:39 -07:00
Volker Lendecke
adfa071c5a
s3: Remove a nesting level in winbindd_dual_pam_chauthtok
2010-09-12 18:30:38 +02:00
Andrew Bartlett
d1bb21b0d5
s3:auth Remove NT_USER_TOKEN
...
The all UPPER case typedef is no longer the preferred Samba style
and this makes it easier to see that this is the IDL-derivied structure
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-11 18:46:06 +10:00
Andrew Bartlett
4bfc8d3b1a
s3-auth Change struct nt_user_token -> struct security_token
...
This common structure is defined in security.idl
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-11 18:46:05 +10:00
Andrew Bartlett
4bf783d4d6
s3-auth Change type of num_sids to uint32_t
...
size_t is overkill here, and in struct security_token in the num_sids
is uint32_t.
This includes a change to the prototype of add_sid_to_array()
and add_sid_to_array_unique(), which has had a number of
consequnetial changes as I try to sort out all the callers using
a pointer to the number of sids.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-11 18:46:05 +10:00
Volker Lendecke
f76983ae3f
s3: Simplify the logic in generate_krb5_ccache
...
gd, jra, others, please check!
2010-09-11 00:02:02 +02:00
Björn Jacke
306465a5a4
s3/winbind: use mono time for startup timeout check
2010-09-10 23:10:26 +02:00
Volker Lendecke
aa00d331a6
s3: Simplify generate_krb5_ccache slightly
...
strequal deals with a NULL string input just fine
2010-09-10 12:36:07 -07:00
Volker Lendecke
789a162989
s3: Ensure NULL termination for "workstation" in auth_crap
2010-09-09 14:26:28 -07:00
Volker Lendecke
18962ea385
s3: These assignments are overwritten immediately
...
Dump them
2010-09-09 14:08:23 -07:00
Volker Lendecke
eedf476c24
s3: Remove "mem_ctx" from a few functions
2010-09-09 06:19:25 +02:00
Volker Lendecke
eaf778593f
s3: Remove "mem_ctx" from wcache_save_creds()
2010-09-09 06:19:24 +02:00
Volker Lendecke
d38e1d13ea
s3: Remove "mem_ctx" from lookup_cached_name()
2010-09-09 06:19:24 +02:00
Volker Lendecke
c7d6e6f571
s3: Remove a nested if-statement
2010-09-09 06:19:24 +02:00
Volker Lendecke
6f1916524b
s3: Fill in workstation in winbindd_pam_auth_crap_send
2010-09-09 06:19:24 +02:00
Volker Lendecke
f506871538
s3: Fill in domain in winbindd_pam_auth_crap_send
2010-09-09 06:19:23 +02:00
Volker Lendecke
c2048db59d
s3: Remove redundant flag checks
...
We're checking these in the parent already (winbindd_pam_auth_send and
winbindd_pam_auth_crap_send). No point in doing it in the child as well
2010-09-09 06:19:23 +02:00
Volker Lendecke
4e4228bd5d
s3: Remove unused arg "user_sid" from winbindd_store_creds
...
All callers have passed in NULL
2010-09-09 06:19:23 +02:00
Volker Lendecke
7372a50a03
s3: Remove unused winbindd_update_creds_by_sid
2010-09-09 06:19:23 +02:00
Volker Lendecke
a0de3fc690
s3: Remove unused winbindd_dual_show_sequence()
2010-09-09 06:19:23 +02:00
Volker Lendecke
4f0b190a30
s3: "== false" looks wrong :-)
2010-09-08 15:31:33 -07:00
Volker Lendecke
e2b63996e8
s3: Make winbind_add_failed_connection_entry static
2010-09-08 21:10:18 +02:00
Volker Lendecke
3928565bc9
s3: Fix a typo
2010-09-08 21:00:03 +02:00
Volker Lendecke
2226347182
s3: Simplify cm_connect_sam a bit
2010-09-08 18:28:16 +02:00
Volker Lendecke
bcad45ed43
s3: Check for sid instead of name in cm_connect_sam
2010-09-08 18:28:16 +02:00
Stefan Metzmacher
d5355dda81
s3:winbindd: implement wbint_bh_set_timeout() as dummy
...
metze
2010-09-04 09:01:16 +02:00
Volker Lendecke
ac317eba25
s3: Remove unused nss_info_adex_init()
2010-09-02 22:14:55 +02:00
Andrew Bartlett
8c15cf54ae
s3-auth Rename NT_USER_TOKEN user_sids -> sids
...
This is closer to the struct security_token from security.idl
2010-08-31 10:20:14 +10:00
Pierre Carrier
4b3630b7e7
winbindd: Add the client status in the clients list output
...
Hello list,
Considered relevant by a customer.
As I suppose one doesn't send SIGUSR2 very often, I didn't bother adding another DEBUGLEVEL.
--
Pierre
2010-08-26 18:23:00 +02:00
Pierre Carrier
b219bfe699
winbindd: useless function
...
Hello list,
Seems simple enough for my first patch :)
--
Pierre
2010-08-26 18:23:00 +02:00
Günther Deschner
8b4f5319ef
s3-build: use talloc_dict.h only where needed.
...
Guenther
2010-08-26 00:25:58 +02:00
Günther Deschner
7a05ca2c9c
s3-build: use dbwrap.h only where needed.
...
Guenther
2010-08-26 00:25:55 +02:00
Günther Deschner
2b41f421fd
s3-idmap: only include idmap headers where needed.
...
Guenther
2010-08-26 00:20:29 +02:00
Günther Deschner
7ff7eb0b52
s3-build: only include nsswitch header where needed.
...
Guenther
2010-08-26 00:20:28 +02:00
Jeremy Allison
33060f67be
Final part of fix for bug #7636 - winbind internal error, backtrace.
...
Ensure cm_get_schannel_creds() returns NTSTATUS.
Jeremy.
2010-08-23 16:53:45 -07:00
Stefan Metzmacher
c9621a8c00
s3:winbindd: fix error handling in wb_next_grent_fetch_done()
...
We should not use 'result' uninitialized.
metze
2010-08-20 14:23:41 +02:00
Günther Deschner
28ba023b4c
s3-idmap: fix uninitialized variable in idmap_tdb_sids_to_unixids_action().
...
Michael, please check.
Guenther
2010-08-19 14:08:06 +02:00
Volker Lendecke
4b5e252354
s3: Add "client_id" to pipes_struct
2010-08-18 11:18:23 +02:00
Stefan Metzmacher
aca7b22e96
s3:winbindd: don't ignore 'result' in wb_dsgetdcname_done()
...
Ignoring it could cause a segfault in winbindd_getdcname_recv()
metze
2010-08-17 12:46:53 +02:00
Stefan Metzmacher
760948a5d4
s3:winbindd: remove rpc_pipe_client references from winbind_dual_ndr code
...
metze
2010-08-16 14:30:21 +02:00
Stefan Metzmacher
13c744fa30
s3:winbindd: use dcerpc_wbint_* functions instead of rpccli_wbint_*
...
metze
2010-08-16 14:30:21 +02:00
Stefan Metzmacher
2ccaa23558
s3:winbindd: add binding_handle to struct winbindd_child
...
metze
2010-08-16 14:30:20 +02:00
Stefan Metzmacher
7f2343be12
s3:winbindd: remove unused wb_ndr_dispatch* functions
...
metze
2010-08-16 14:30:19 +02:00
Andrew Bartlett
70211ea6a3
s3:auth Change winbindd -> auth interface to more standard structures
...
This removes conversions to and from the source3 varient of the
server_info structure when replaced in s3compat, and presents a tidier
interface to winbindd in any case.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-08-14 11:58:13 +10:00
Andrew Bartlett
23994e1b53
s3:auth Make Samba3 use the new common struct auth_usersupplied_info
...
This common structure will make it much easier to produce an auth
module for s3compat that calls Samba4's auth subsystem.
In order the make the link work properly (and not map twice), we mark
both that we did try and map the user, as well as if we changed the
user during the mapping.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-08-14 11:58:13 +10:00
Michael Adam
60eae5a134
s3:idmap: fix sid_to_unixid for builtin and own domain.
...
The old idmap code created a new mapping if asking the backends failed.
Now with the new layering, if passdb (which is used for our own domain
and builtin), then we need to continue and ask the backends, giving
tdb or whatever the default backend is a chance to create a mapping.
2010-08-14 02:10:57 +02:00
Michael Adam
9f60eb8c1b
s3:idmap: fix spacing/indentation
2010-08-14 02:10:57 +02:00