1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

458 Commits

Author SHA1 Message Date
Bo Yang
e3ef19b9b9 Fix bug in get_dc_name_via_netlogon(), null pointer refrence. 2009-01-14 11:47:45 -08:00
Jeremy Allison
9aa385a090 Clean up comments a little.
Jeremy.
2009-01-14 11:12:52 -08:00
Bo Yang
54325f7ed5 Don't send message to any other child in child process.
Signed-off-by: Bo Yang <boyang@novell.com>
2009-01-14 10:42:02 -08:00
Jeremy Allison
58b680446f From boyang - ensure we never "return" from a forked child, always _exit().
Jeremy.
2009-01-13 15:42:56 -08:00
Bo Yang
0c2f8ab3ec Don't set child->requests to NULL in parent after fork 2009-01-10 14:12:08 -08:00
boyang
45c67ff244 refresh sequence number as soon as possible when domain->sequence_number == -1 or domain->last_status is not ok. 2009-01-07 11:02:04 -08:00
Volker Lendecke
00a401aa3e Remove unused struct CLI_POLICY_HND 2009-01-07 17:17:03 +01:00
Jeremy Allison
d1f7a37174 Make winbindd_cm.c use winbindd_reinit_after_fork().
Jeremy.
2009-01-06 17:34:06 -08:00
Jeremy Allison
7b77ac5365 Add winbindd_reinit_after_fork(), cleaning out all possible events
in a forked child.
Jeremy.
2009-01-06 15:14:52 -08:00
Jeremy Allison
e95101da58 Factor out lots of common code into a function.
Jeremy.
2009-01-06 13:16:46 -08:00
Günther Deschner
d2d8d7a087 s3-samr: avoid all init_samr_Domain* functions.
Guenther
2009-01-06 16:02:11 +01:00
Bo Yang
958bfaff79 set entry->refresh_time to make ccache_regain_all_now() work correctly. 2009-01-05 21:09:44 -08:00
Stefan Metzmacher
59612beea6 s3:winbindd: also handle fd events from the winbind_event_context()
metze
2009-01-05 15:07:36 +01:00
Stefan Metzmacher
c34d5f445a s3:events: change event_add_timed() prototype to match samba4
metze
2009-01-05 15:07:35 +01:00
Stefan Metzmacher
492d0e3517 s3:winbindd: regain tickets for all ccache entries, when we go online
set_event_dispatch_time() is stupid by design and only handles
the first event with a given name.

metze
2009-01-05 15:07:33 +01:00
Stefan Metzmacher
94c4376b49 s3:winbindd: cancel all ccache entry events and not just one
cancel_named_event() is stupid by design and also only cancels
one single event.

metze
2009-01-05 15:07:33 +01:00
Stefan Metzmacher
f81f21c09b s3:winbindd: recreate the per domain check_online_event without relying on global state
set_event_dispatch_time() is stupid by design and just picks the first
event with the given name.

metze
2009-01-05 15:07:32 +01:00
Stefan Metzmacher
a1c9e61643 s3:winbindd: rename fd_event => winbindd_fd_event
It's really confusing to have two versions of 'fd_event'

metze
2009-01-05 15:07:32 +01:00
Stefan Metzmacher
2428ec46d8 s3:winbindd: move WINBINDD_CCACHE_ENTRY and WINBINDD_MEMORY_CREDS to winbindd.h
metze
2009-01-05 15:07:32 +01:00
Bo Yang
f389b97c69 Fix broken krb5 refresh chain
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-01-05 15:07:31 +01:00
Bo Yang
022e2f8199 clean event context after child is forked.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-01-05 15:07:31 +01:00
Volker Lendecke
8c1691d213 Remove wb_trans_send/recv 2009-01-04 16:42:40 +01:00
Volker Lendecke
d933362cb7 Move winbindd/winbindd_reqtrans.c to lib/wb_reqtrans.c 2009-01-04 16:42:40 +01:00
Volker Lendecke
27abf6731e struct async_req doesn't really need to carry an event_context 2009-01-03 19:07:57 +01:00
Volker Lendecke
76d53e7648 Alternative fix for 45db33e73 and 0d443ae7931
Simo is right, we need to ask passdb first. At least this fixes a nasty to find
NT_STATUS_ACCESS_DENIED problem in the build farm for the test run I just did
on host "opi".

Michael, can you re-check if this also fixes the error you found, leading to
the two fixes?

Thanks,

Volker
2009-01-02 15:00:05 +01:00
Volker Lendecke
13248e8917 Revert "s:Fix uid_to_sid mapping when the idmap cache is empty."
This reverts commit 9a9b64dbdfce4414ada22d4f882c8c757b5813e1.
2009-01-02 15:00:05 +01:00
Volker Lendecke
c033ea5626 Revert "s3:idmap: Remove passd check from idmap_backends_unixid_to_sid()."
This reverts commit 45db33e73262d8e195a46fb96405dfb3dc43d6bc.
2009-01-02 15:00:05 +01:00
Jeremy Allison
bb23f5725f Fix more asprintf and "ignoring return code" warnings from gcc 4.3.
Jeremy.
2008-12-31 16:30:11 -08:00
Stefan Metzmacher
429276556a s3:winbindd: we don't need to call messaging_reinit() twice
reinit_after_fork() already calls messaging_reinit()

metze
2008-12-31 11:01:46 +01:00
Michael Adam
45db33e732 s3:idmap: Remove passd check from idmap_backends_unixid_to_sid().
As noted by Metzy, it makes no sense here to check id->sid.
What is worse, this might even be passed in uninitialized.

This still fixes the bug for me (of course), but we might need
to check, if another special handling of passdb is needed
(possibly changing from constant return code NT_STATUS_OK...)

Michael

Signed-off-by: Michael Adam <obnox@samba.org>
2008-12-25 12:14:03 +01:00
Michael Adam
9a9b64dbdf s:Fix uid_to_sid mapping when the idmap cache is empty.
This failed for backends other than passed, since
idmap_backends_unixid_to_sid() always asked passdb first,
which returned Success no matter whether a mapping was
found or not.

One effect wast that getpwuid failed after "net cache flush".
Only after filling the cache with a getpwnam call it succeeded.

This fix makes the behaviour of idmap_backends_unixid_to_sid()
exactly the same as that of idmap_backends_sid_to_unixid()

Michael

Signed-off-by: Michael Adam <obnox@samba.org>
2008-12-25 12:14:02 +01:00
Gerald (Jerry) Carter
5aadfe29f0 Fix "allow trusted domain" so it disables trusted domains. 2008-12-22 11:07:29 -08:00
Volker Lendecke
2504d78c82 Fix a "ignoring function call result" warning 2008-12-19 13:57:32 +01:00
Volker Lendecke
bb8ca0fdbf Make cli_negprot return NTSTATUS instead of bool 2008-12-19 10:28:30 +01:00
SATOH Fumiyasu
d46c1907fc winbindd: vars for signals must be volatile sig_atomic_t 2008-12-12 18:04:03 +01:00
Volker Lendecke
15c942657d Add wb_trans_send/revc 2008-12-08 22:09:34 +01:00
Volker Lendecke
2bd8a6e21e Add infrastructure to transfer winbindd_request/response asynchronously 2008-12-08 22:09:33 +01:00
Volker Lendecke
1db7076b8e Fix nonempty blank lines 2008-12-07 21:30:35 +01:00
Michael Adam
0f38bd9072 s3:winbindd: fix horrible mis-indentation of toplvl braces in getgrsid_sid2gid_recv
to make code more readble

Michael
2008-12-04 14:00:44 +01:00
Michael Adam
95b4baf5ad s3:winbindd: don't open a new dc connection in winbindd_getpwnam (main winbindd)
This is just to find the corresponding domain struct.
Actual connection is handled by the domain child.

Michael
2008-12-04 13:39:05 +01:00
Michael Adam
db59cbfba8 s3:winbindd: don't open a new dc connection in winbindd_getgrnam (main winbindd)
This is just to find the corresponding domain struct.
Actual connection is handled by the domain child.

Michael
2008-12-04 13:39:05 +01:00
Tim Prouty
1eb743ab8e s3: Change sockaddr util function names for consistency
Also eliminates name conflicts with OneFS system libraries
2008-12-03 10:40:20 -08:00
Tim Prouty
1bcd91366d s3: Fix 'ctx' might be used unitialized warnings 2008-12-01 21:59:00 -08:00
Michael Adam
0744c32678 s3:winbindd/nss_info: remove unused variable from nss_init()
Michael
2008-12-01 04:37:24 +01:00
Michael Adam
c77435caaf s3:winbindd/nss_info: make nss_domain_list_add_domain() static
Michael
2008-12-01 04:37:24 +01:00
Michael Adam
37be1f6d08 s3:winbindd/nss_info: fix default backend handling for ad backends.
This fixes "winbind nss info = rfc2307" (or sfu or sfu20).
Originally, only explicitly configured domains (like "rfc2307:domain")
worked with the ad module, since the domain name was not passed
backe to the module. This is fixed by recording the first backend
listed without domain in the "winbind nss info" parameter as the
default backend, and creating new nss_domain entries (using this default
backend) on the fly as requests for domains which are not explicitly
configured are encountered.

Michael
2008-12-01 04:37:24 +01:00
Michael Adam
a7e60befdc s3:winbindd/nss_info: whitespace cleanup.
Remove trailing spaces and fix tab / space mixup.

Michael
2008-12-01 04:37:23 +01:00
Michael Adam
af6f1b4085 s3:winbindd_cache: add debugging to get_nss_info_cached()
Michael
2008-12-01 04:37:23 +01:00
Michael Adam
09d05bcffe s3:winbindd/nss_info: add entry debug message to nss_get_info()
Michael
2008-12-01 04:37:23 +01:00
Michael Adam
1048c2ccbe s3:winbindd/nss_info: add debugging to nss_init()
Michael
2008-12-01 04:37:22 +01:00