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

24017 Commits

Author SHA1 Message Date
Michael Adam
2ade25279c Fix logic and prevent segfaults in secrets trustdom tdb pack code.
New size calculation logic in tdb_trusted_dom_pass_pack()
and tdb_sid_pack() used accumulated sizes as successive offsets
to buffer pointer.

Michael
(This used to be commit 9c24713b402978e74dc8691be5cab71d8666eb41)
2007-12-12 09:47:41 -08:00
Michael Adam
b0469d0b69 Fix secrets_store_trusted_domain_password() after pstring removal.
Jeremy, this small "&" sign has given me a headache... :-)

Michael
(This used to be commit 7590b12a994cc3c5f299ce7f3299c76adad1c599)
2007-12-12 09:47:28 -08:00
Jeremy Allison
e3e16928c0 Allow cliconnect to loop through multiple ip addresses
for a server. We should have been doing this for a while,
but it's more critical with IPv6.
Original patch fixed up by James.
Jeremy.
(This used to be commit 5c7f7629a97ef0929e00e52f1fae4386c984000b)
2007-12-12 09:42:58 -08:00
Andreas Schneider
d818a93d07 Don't restart winbind if a corrupted tdb is found during initialization.
The tdb is validated before it gets initialized. Since then sighandlers changed
a restart isn't needed anymore.
(This used to be commit aabe9b33fcaed8af98b1ed6b736253e196d87d48)
2007-12-12 13:51:13 +01:00
Stefan Metzmacher
38f8d32d10 winbindd: remove unused WINBINDD_DUMP_MAPS support
Also the design of this function was really bad,
instead do the dump into a file, the client should get
back the list of mappings.

metze
(This used to be commit ce7fe8acf41e90553431c7cda6823700701835c7)
2007-12-12 10:07:05 +01:00
Stefan Metzmacher
3728c8b6d9 winbindd: remove unused WINBINDD_DUAL_NAME2*ID and WINBINDD_DUAL_*ID2NAME calls
WINBINDD_DUAL_UID2NAME
WINBINDD_DUAL_NAME2UID
WINBINDD_DUAL_GID2NAME
WINBINDD_DUAL_NAME2GID

metze
(This used to be commit fd4499ee438e4947990200db529363d51bd2c956)
2007-12-12 09:34:20 +01:00
Günther Deschner
b0614071bf Add lp_include_registry_globals().
Guenther
(This used to be commit d30b945e99390761e405492e40c90e84da4fe482)
2007-12-12 00:58:58 +01:00
Günther Deschner
10f1cdc797 Some cleanups for "net dom join".
Guenther
(This used to be commit 3f426f394f3b1454c52d92331c14f41dd1474516)
2007-12-12 00:58:58 +01:00
Günther Deschner
68a9bd0bf6 Add split_domain_user() (not to mix with winbind variants).
Guenther
(This used to be commit bd5308e5f63e4f692761557d0ecdee7226b66a15)
2007-12-12 00:58:58 +01:00
Günther Deschner
f0d2edb9a0 Make decode_wkssvc_join_password_buffer() return WERRORs.
Guenther
(This used to be commit 88e9da2f14b41a62bdb478f9ffc2de66643bbf14)
2007-12-12 00:58:58 +01:00
Jeremy Allison
ec7426d917 Fix warning message about data type always true.
Jeremy.
(This used to be commit 0a3be0aad7220eb97fe39460e20f36c8ae9ce474)
2007-12-11 15:10:37 -08:00
Jeremy Allison
95c2f313ce Add patches for bug #4866 from jiri sasek - Sun Microsystems - Prague Czech Republic <Jiri.Sasek@Sun.COM>
- slightly modified - Jiri please check !  to allow Solaris to get passwords > 8 chars.
Jeremy.
(This used to be commit 657bf8c3479d6192f269e3daef1517e77a9fa9cb)
2007-12-11 13:16:35 -08:00
Stefan Metzmacher
af3cc957f0 winbindd: pass const char *logfile to winbindd_dump_maps_async()
metze
(This used to be commit a52237e3a10aa4ac15cd9e7b859a54c46bfa9cdf)
2007-12-11 16:51:44 +01:00
Volker Lendecke
a347ff84bc Convert the posix_pending_close_db to dbwrap_rbt
(This used to be commit 841f4ccbfb5f79ac4f447342e9dd6ef73cacbc65)
2007-12-11 16:16:54 +01:00
Volker Lendecke
39ea0edbbe separate out create_file_unixpath()
(This used to be commit deaacf971e0fbffd0e5fe24f225ebf645a77e133)
2007-12-11 16:16:54 +01:00
Volker Lendecke
3063f85a72 Move more stuff out of the way
(This used to be commit ae422fce01cd7520d6dd72e08719a5cd003cb640)
2007-12-11 16:16:54 +01:00
Volker Lendecke
0ac113e5a2 Move INTERNAL_OPEN_ONLY calculation out of the way
(This used to be commit 0e96549b56e288c596ed8772197f97ffa5ade300)
2007-12-11 16:16:54 +01:00
Günther Deschner
353dba47df When building nsswitch, make sure to also build smbcontrol.
Guenther
(This used to be commit 3954313d4e3d3a782f0ba41afa5d81b7cc5adac9)
2007-12-11 15:26:09 +01:00
Günther Deschner
0439fdd777 Replace "unknown" with access_mask when calling samr_CreateUser2().
Guenther
(This used to be commit cfc6e7a2e657ee55364b739d9fe0093e4f7c8b27)
2007-12-11 15:26:09 +01:00
Stefan Metzmacher
35608af51d winbindd: rename child table struct elements
Add struct_ prefix to struct based protocol specific
elemetens struct winbindd_child_dispatch_table.

metze
(This used to be commit 4ab9a8aab72a8406659a72e87b2d2a1ec2a2eabf)
2007-12-11 12:56:24 +01:00
Stefan Metzmacher
92482e5667 idmap: add a const to idmap_dump_maps()
metze
(This used to be commit de31913f0a4fd407d935ec4e27a6123ab7847ab5)
2007-12-11 12:56:23 +01:00
Kai Blin
5c1e5b30a5 vlp: Build vlp (virtual line printer) against current git on make
everything.
(This used to be commit 212ab58a3a7f03bb97c6ad3430e2776f9faba7c9)
2007-12-11 11:53:57 +01:00
Jeremy Allison
09fcb233a3 Don't need an fstring here, we can talloc.
Jeremy.
(This used to be commit 3f6cc826378729c9157ea68e7cf5c7b584bbb585)
2007-12-10 15:31:05 -08:00
Jeremy Allison
8596a1b609 Ensure we have a non-null flags. Pointed out by Andreas Schneider <anschneider@suse.de>.
Jeremy.
(This used to be commit cafde6c37259de587d3775a2d229abd253d2376d)
2007-12-10 15:06:31 -08:00
Jeremy Allison
921bbc1331 Fix errors from next_token conversion. Spotted by
Andreas Schneider <anschneider@suse.de>.
Jeremy.
(This used to be commit b40efc2fe63a3420b62fbf1ea8936112c5a24bdc)
2007-12-10 14:21:28 -08:00
Jeremy Allison
29c104fd60 Fix bug leftover from pstring conversion noticed by ceez
on irc.
Jeremy.
(This used to be commit 70950b419a57465c38bb36722644b95b1d14f76d)
2007-12-10 13:43:12 -08:00
Volker Lendecke
ff1a79f24b Remove two completely unnecessary globals
Can someone look over this? To me it looks as if bufr was only made static to
save a malloc during an included smb.conf file. I think that's pretty much
pointless.
(This used to be commit 068e8de72ceb49ef2e02cca1913b6d2197bab5e0)
2007-12-10 12:36:43 -08:00
Jeremy Allison
6dd89174ec Fix return values for invalid printers. Found by kblin
spoolss test.
Jeremy.
(This used to be commit bb8c044d425cf62b76e487103c8fb0b6cd4c83c2)
2007-12-10 12:11:45 -08:00
Jeremy Allison
97cbaceec1 Forgot build options was generated... fix.
Jeremy.
(This used to be commit d78e081043124bbd80cf56d4a991ddf24ff46ef6)
2007-12-10 11:37:20 -08:00
Jeremy Allison
7faee02d0d Remove the char[1024] strings from dynconfig. Replace
them with malloc'ing accessor functions. Should save a
lot of static space :-).
Jeremy.
(This used to be commit 52dc5eaef2106015b3a8b659e818bdb15ad94b05)
2007-12-10 11:30:37 -08:00
Volker Lendecke
0c0054fe16 use dbwrap_rbt in loadparm.c
(This used to be commit e81629339589e2e7f464b3dca55730ff2d0877e4)
2007-12-10 16:06:32 +01:00
Volker Lendecke
307396435b Convert ServiceHash to dbwrap
(This used to be commit 66bd6837b593a7127bd5098afc990d3fb7a5a35a)
2007-12-10 16:06:32 +01:00
Volker Lendecke
d5ab80054d dbwrap_rbt
This is meant as a replacement for the internal tdb. To me it seems a bit silly
that for in-memory structures we do our own memory management. With this rbt
based approach we can make use of the system-supplied malloc.
(This used to be commit 54e5d4404619443caed32e2acff8921cdbff9ed1)
2007-12-10 16:06:32 +01:00
Volker Lendecke
8a8b146ead Make the Linux rbtrees compile within Samba
(This used to be commit c871fd802f3c0c5ef1f63b2d01a636c885f22b23)
2007-12-10 16:06:32 +01:00
Volker Lendecke
26a2e818fa Add rbtree.[ch] from the Linux kernel
These are copies taken from 94545baded0bfbabdc30a3a4cb48b3db479dd6ef from Linus' kernel tree
(This used to be commit 8a3289f913fc0432211b0e9937da1d71d4e18893)
2007-12-10 16:06:32 +01:00
Volker Lendecke
18c90ed7d8 Add db_tdb_fetch
(This used to be commit efa8764c21edfbd09f535900ba37359d72903bf8)
2007-12-10 16:06:32 +01:00
Volker Lendecke
94a354493a Add dbwrap bystring service routines
(This used to be commit 1e214b536b0628db299d701839e62a4ac52727c9)
2007-12-10 16:06:32 +01:00
Volker Lendecke
af082d096e Correctly unbecome_root() on error
(This used to be commit aec5f1512660953168a2c55b2890cd6c076b8a92)
2007-12-10 12:37:37 +01:00
Volker Lendecke
2585232054 Simplify add_session_user
(This used to be commit f98082ccf048a2de6fea8d922264879305b3d2c8)
2007-12-10 12:22:01 +01:00
Volker Lendecke
3a9576c724 Increase debug level
(This used to be commit 4e6df5547167fc235971498cb296a5f74dec8b8b)
2007-12-10 12:22:01 +01:00
Volker Lendecke
cc1664416d Move stuff from data to text
(This used to be commit 49f06a2fa70e469bcb5fe17852af011dac32994b)
2007-12-10 12:22:01 +01:00
Volker Lendecke
e9e33adc7c int->bool
(This used to be commit 874258195278bc8c6bb3011c153c5d646fff9e75)
2007-12-10 12:22:01 +01:00
Volker Lendecke
d60fac2a5a Tiny simplifications
locking.c:open_read_only was unused

don't export the silly boolean flag locking_init(bool read_only)
(This used to be commit 2f3c865707010bc7c463a02782dbee3dc2479da1)
2007-12-10 12:22:01 +01:00
Volker Lendecke
0527d3758a Remove a static
(This used to be commit 1f317f471af72f8bbc6c9fdd3e79a27c59e6fb6e)
2007-12-10 12:22:01 +01:00
Volker Lendecke
f4fe725ff1 Remove two statics
(This used to be commit 8ee502e1e59960fd8db037f0adf1171b2a18cec5)
2007-12-10 12:22:01 +01:00
Volker Lendecke
a1ceee904c remove a static
(This used to be commit 0006b14d38b80562458b37f616c9b68a3168fe64)
2007-12-10 12:22:01 +01:00
Jeremy Allison
632ab7dc2e Many systems don't have sa_len as part of struct sockaddr.
Revert 5c347cb46d85d04bbba7c99dca7ff9628f977d84
"Choose a better default for sockaddr length.".
Jeremy.
(This used to be commit 677ac6adc38b0747f825ee597e0502277a8f74b1)
2007-12-09 14:59:07 -08:00
James Peach
f78ce189c2 Support fetching very long server lists with RAP_NetServerEnum3.
Use the RAP_NetServerEnum3 server list continuation API for retrieving
server lists that are too long to fit in a single reply.

Patch from George Colley <gcolley@apple.com>.
(This used to be commit 40c26d55736ae08934e18c27168fff10dd15442f)
2007-12-09 14:18:54 -08:00
James Peach
8892c7a235 Choose a better default for sockaddr length.
(This used to be commit 5c347cb46d85d04bbba7c99dca7ff9628f977d84)
2007-12-09 14:02:23 -08:00
James Peach
39f0e6d22c Specifically ask for IP4 addresses if we don't have IP6 support.
(This used to be commit 4786654992e3cb2280b77406f9217fcec981602c)
2007-12-09 14:01:57 -08:00