1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

20201 Commits

Author SHA1 Message Date
Stefan Metzmacher
35a616e82c r25074: as all requests in the winbindd child are sync, we can use talloc_tos()
metze
(This used to be commit 6e238fe5b4)
2007-10-10 12:30:38 -05:00
Günther Deschner
2569a25433 r25068: Older samba3 DCs will return DCERPC_FAULT_OP_RNG_ERROR for every opcode on the
LSARPC_DS pipe, continue with no_lsarpc_ds mode here as well to get
domain->initialized set to True. This avoids permanent scanning of Samba3 DCs
in winbindd. Thanks Michael, for pointing this out.

Guenther
(This used to be commit 9b85f7ca43)
2007-10-10 12:30:38 -05:00
Simo Sorce
bd45eab008 r25064: We use BOOL/True/False not bool/true/false
(This used to be commit f624a269bf)
2007-10-10 12:30:38 -05:00
Simo Sorce
ac1642508f r25063: Fix segfault in smbldp_set_creds when we want to use anonymous, the
code was not passing in the "anon" flag correctly and was passing
NULL pointers.
(This used to be commit 6316a9c14d)
2007-10-10 12:30:38 -05:00
Simo Sorce
bb9fbe6221 r25062: Reformat, remove trailing spaces and fit lines into 80 columns
(This used to be commit 1850d1c10f)
2007-10-10 12:30:37 -05:00
Volker Lendecke
bbbac99ecb r25061: Pro-actively shut up Coverity :-)
(This used to be commit f2ce4a803c)
2007-10-10 12:30:37 -05:00
Simo Sorce
d19d3e7126 r25060: Fix formatting, remove trailing spaces and cut lines longer than 80 chars
(This used to be commit 7a4d465890)
2007-10-10 12:30:37 -05:00
Simo Sorce
3f8e1f9ad2 r25059: Apply to 3.2 as well
(This used to be commit 17a7d33b3b)
2007-10-10 12:30:37 -05:00
Volker Lendecke
4ee8b2937d r25055: Add file_id_string_tos
This removes file_id_string_static and file_id_string_static2
(This used to be commit 638c848c9a)
2007-10-10 12:30:36 -05:00
Andrew Bartlett
3428c63aa7 r25049: Set new, more secure defaults for Samba 3.2.
Andrew Bartlett
(This used to be commit 87d39f61b4)
2007-10-10 12:30:36 -05:00
Volker Lendecke
54d3c7f61d r25040: Add "net sam rights"
Not strictly in the SAM, but close enough. This command acts directly on
the local tdb, no running smbd required

This also changes the root-only check to a warning
(This used to be commit 0c5657b5ef)
2007-10-10 12:30:36 -05:00
Volker Lendecke
325b342f31 r25036: Fix a become/unbecome_root() pair
(This used to be commit 9e53f50e94)
2007-10-10 12:30:36 -05:00
Lars Müller
a747e8bdcf r25032: Contact an off site DC if non is available on site.
(This used to be commit 50879e6de5)
2007-10-10 12:30:36 -05:00
Lars Müller
9fa56b9ae9 r25030: ip_srv_nonsite and count_nonsite are initialized in get_kdc_list() in any
case.
(This used to be commit 287604a1c7)
2007-10-10 12:30:36 -05:00
Volker Lendecke
de708c344a r25025: Remove an unused function
(This used to be commit 858f7b7d78)
2007-10-10 12:30:35 -05:00
Volker Lendecke
56a029258f r25024: Fix a whole bunch of Coverity bugs
The callers of get_domain_group_from_sid() with some justification
expected map->gid to be initialized when get_domain_group_from_sid
returned True.
(This used to be commit bc8b74dbfe)
2007-10-10 12:30:35 -05:00
Jeremy Allison
fe6644fb5a r25023: Coverity #455. Not actually a bug, but this clarifies
the code a lot.
Jeremy.
(This used to be commit 5ba12eefbe)
2007-10-10 12:30:35 -05:00
Jeremy Allison
2400758fbe r25022: Fix coverity #395. Resource leak on error.
Jeremy.
(This used to be commit 6a237600b8)
2007-10-10 12:30:35 -05:00
Jeremy Allison
923f14ff37 r25021: Fix coverity #435. Use of -1.
Jeremy.
(This used to be commit f789186086)
2007-10-10 12:30:35 -05:00
Jeremy Allison
5d49b172e0 r25020: Fix coverity #374, possible null deref.
Jeremy.
(This used to be commit 82b3656b4b)
2007-10-10 12:30:34 -05:00
Jeremy Allison
fc213876d5 r25019: Fix coverity bug #105, run #332. Use of uninitialized variable.
Jeremy.
(This used to be commit a58de8cee5)
2007-10-10 12:30:34 -05:00
Jeremy Allison
62e3caf0fe r25011: We don't use mangle_map any more.
Jeremy.
(This used to be commit 2e0999c1df)
2007-10-10 12:30:33 -05:00
Jeremy Allison
132ee3990a r25009: Large patch discussed with Volker. Move unix_convert to a talloc-based
interface. More development will come on top of this. Remove the
"mangled map" parameter.
Jeremy.
(This used to be commit dee8beba7a)
2007-10-10 12:30:32 -05:00
Michael Adam
c5d8fd3772 r25002: Refactor out code duplication created by the previous
unification of r24998.

Michael
(This used to be commit 6026d13253)
2007-10-10 12:30:32 -05:00
Michael Adam
30ee281cae r24999: Use the new regval_compose() function in regval_ctr_addvalue().
Michael
(This used to be commit dab9ffe602)
2007-10-10 12:30:32 -05:00
Michael Adam
cc7bc29757 r24998: Add a function regval_compose() to compose a REGISTRY_VALUE from
input data. Use this function in a first step to refactor
the canonicalization code of smbconf_store_values().

Michael
(This used to be commit f4caa2d7d4)
2007-10-10 12:30:32 -05:00
Michael Adam
628e4d9009 r24996: Eliminate more trailing spaces...
(This used to be commit 1ee1b75113)
2007-10-10 12:30:32 -05:00
Volker Lendecke
8401971a87 r24993: Apply some const
(This used to be commit 613b9fcd18)
2007-10-10 12:30:32 -05:00
Michael Adam
85811b273d r24991: Kill all those lots of trailing whitespaces from secrets.c.
These red bars in vi really hurt my eyes... :-o

Michael
(This used to be commit 2e99e141c3)
2007-10-10 12:30:31 -05:00
Michael Adam
f09b0d72f4 r24990: Kill an incredible amount of trailing whitespaces...
Further reformat get_trust_pw to conform to coding rules.

Michael
(This used to be commit b9e76a479e)
2007-10-10 12:30:31 -05:00
Derrell Lipman
9044d03489 r24981: - Use the formal syntax for calling functions through pointers. I've wanted
to make this change for ages, but now with the issue of "open" requiring it,
  this is the time to just do all of them.

Derrell
(This used to be commit e746aaaf4d)
2007-10-10 12:30:31 -05:00
Stefan Metzmacher
abe7e04244 r24978: move domain_init_recv() near the functions that uses it
metze
(This used to be commit 18e830a935)
2007-10-10 12:30:31 -05:00
Rafal Szczesniak
663b922852 r24977: Ensure negative caching for name2sid, sid2name and rids2names
mappings.

rafal
(This used to be commit 3a9b5eabf9)
2007-10-10 12:30:31 -05:00
Stefan Metzmacher
993d64cde3 r24974: catch SIGINT and SIGQUIT like SIGTERM
metze
(This used to be commit ab15f5c3e7)
2007-10-10 12:30:30 -05:00
Michael Adam
b3fbff6eb5 r24970: Polish some comments and add my (C).
Michael
(This used to be commit aa043bb446)
2007-10-10 12:30:30 -05:00
Simo Sorce
274e35f36e r24969: Fwd port "open" patch
(This used to be commit 113d62682a)
2007-10-10 12:30:30 -05:00
Michael Adam
3edc4c6f66 r24955: Reformat some object lists in Makefile.in to minimize the diff.
(This used to be commit 5d94c3dab2)
2007-10-10 12:30:30 -05:00
Günther Deschner
99cc296968 r24954: Fix the build without krb5.
Guenther
(This used to be commit 9df961914c)
2007-10-10 12:30:30 -05:00
Günther Deschner
be3fdd8b62 r24952: Set the kdc locator env vars. This makes the krb5 locator plugin fully
operational (from within winbindd and outside).

Guenther
(This used to be commit 800645d538)
2007-10-10 12:30:30 -05:00
Volker Lendecke
6de1b0b65b r24951: Warn if "os level" > 255
Thanks to Karolin Seeger <ks@sernet.de>
(This used to be commit 3abf06efc1)
2007-10-10 12:30:29 -05:00
Volker Lendecke
ff0947fbed r24949: Remove some static buffers
(This used to be commit df648d47ff)
2007-10-10 12:30:29 -05:00
Volker Lendecke
faefb22c61 r24943: Some stackframes
(This used to be commit cddb9f11d5)
2007-10-10 12:30:29 -05:00
Günther Deschner
46928878f6 r24920: Reformatting.
Guenther
(This used to be commit 62426a0555)
2007-10-10 12:30:29 -05:00
Volker Lendecke
3bcf187a0d r24903: One more tick in #if 0 code
(This used to be commit e0b4fb55e3)
2007-10-10 12:30:29 -05:00
Volker Lendecke
2800362e3f r24902: DEBUG might use talloc_tos() itself...
(This used to be commit 1b39374a17)
2007-10-10 12:30:28 -05:00
Michael Adam
f9a177772d r24879: Activate the winbindd cache-validation message handler.
Now the winbindd cache can be checked at runtime by
calling "smbcontrol winbindd validate-cache".

For the execution of the validation code, I fork a child
and in the child restore the default SIGCHLD handler in
order for the fork/waitpid mechanism of tdb_validate to work.

Michael
(This used to be commit f379a5c47d)
2007-10-10 12:30:28 -05:00
Michael Adam
60abd094fa r24877: Don't panic in tdb validation code when the fork or waitpid fails.
Return error instead.

Michael
(This used to be commit 9b25355dd6)
2007-10-10 12:30:28 -05:00
Derrell Lipman
c3678b45df r24864: - Correct failure of libsmbclient against a version of Windows found on a NAS
device.  The device resets a NBT connection on port 139 when it receives a
  NetBIOS keepalive request.  That request should be supported when NetBIOS is
  in use; Windows is behaving badly.

  libsmbclient needs a way to determine if a connection is still alive, and
  was using a NetBIOS keepalive request if port 139 was in use (on the
  assumption that it was probably NBT), and getpeername() when port 139 was
  not being used (assuming naked transport).

  This patch simplifies the code by exclusively using getpeername() to check
  whether a connection is still alive.  The NetBIOS keepalive request is
  optional anyway (with preference being given to using TCP mechanisms for the
  same purpose), so this should be both simpler and more reliable.

Derrell
(This used to be commit 1f122352b0)
2007-10-10 12:30:28 -05:00
Rafal Szczesniak
00737da4f4 r24853: Rename function as Jerry asked.
s/net_use_upn_machine_account/net_use_krb_machine_account/

rafal
(This used to be commit 86af9fedad)
2007-10-10 12:30:28 -05:00
Michael Adam
57ac659fb6 r24848: Make tdb_validate() take an open tdb handle instead of a file name.
A new wrapper tdb_validate_open() takes a filename an opens and closes
the tdb before and after calling tdb_validate() respectively.

winbindd_validata_cache_nobackup() now dynamically calls one of
the above functions depending on whether the cache tdb has already
been opened or not.

Michael
(This used to be commit dc0b08e659)
2007-10-10 12:30:27 -05:00