1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

3517 Commits

Author SHA1 Message Date
Volker Lendecke
fa5391a919 Return NOTFOUND from db_tdb_delete if the record does not exist
(This used to be commit 1ff924c436)
2008-02-02 11:03:21 +01:00
Volker Lendecke
57ea457140 NetBSD needs LD_LIBRARY_PATH
(This used to be commit d64b19e77a)
2008-02-01 23:32:51 +01:00
Volker Lendecke
680a0f0c69 Fix a typo
(This used to be commit 1efdef08ae)
2008-02-01 23:32:51 +01:00
Jeremy Allison
b9b75f37ac Ensure that convert_string_allocate() allocates 2 extra
bytes and null terminates them to ensure NDR wire-reads
of string types are always null terminated. Bug found by
Volker after great pain :-).
Jeremy.
(This used to be commit aab736e607)
2008-02-01 14:23:54 -08:00
Volker Lendecke
00075c4924 NetBSD does not support AI_ADDRCONFIG
(This used to be commit fb3f7f4046)
2008-02-01 14:49:34 +01:00
Günther Deschner
2e0a1fcf3f Re-run make idl.
Guenther
(This used to be commit b658270518)
2008-01-31 14:10:22 +01:00
Andrew Tridgell
6b5980e47e merged tdb transaction fix
(This used to be commit 1a1c795436)
2008-01-31 09:48:20 +11:00
Günther Deschner
5ab43ae0d8 Eliminate remote tree of dsgetdcname (which will happen in libnetapi then).
Guenther
(This used to be commit fd490d236b)
2008-01-29 15:09:56 +01:00
Volker Lendecke
fe478af26a We need to leave the corepath around
In case we need to dump core, in line 191 we dereference corepath to be able to
chdir there.

Jeremy, please check!

Volker
(This used to be commit 3959b1954b)
2008-01-27 10:24:31 +01:00
Tim Potter
54db183987 Adding missing calls to va_end().
Just a small commit to get a handle on this git thingy.  This patch
fixes some missing calls to va_end() to match various calls to va_start()
and VA_COPY().

Tim.
(This used to be commit ec367f307d)
2008-01-27 09:33:42 +01:00
Volker Lendecke
e2ad28509c Tiny simplification
(This used to be commit e78f6872bf)
2008-01-25 20:55:51 +01:00
Volker Lendecke
31a6f80784 Remove a pointless while loop
(This used to be commit f591bd68ea)
2008-01-25 20:55:51 +01:00
Günther Deschner
c04b738a13 Add LIBNETAPI_LOCAL_SERVER() macro.
Guenther
(This used to be commit 4bdcf07bcc)
2008-01-25 17:21:29 +01:00
Günther Deschner
a30361ede3 No need to close registry on libnetapi_free() anymore.
Guenther
(This used to be commit 6bf75652ef)
2008-01-25 17:21:19 +01:00
Volker Lendecke
9344628bef More read_data -> read_socket_with_timeout
(This used to be commit f1d7de462c)
2008-01-24 09:41:22 +01:00
Volker Lendecke
a925a53f61 read_socket_with_timeout has timeout=0 handling
(This used to be commit 7101026061)
2008-01-23 17:09:10 +01:00
Volker Lendecke
587cf54c61 strtok -> strtok_r
(This used to be commit fd34ce4370)
2008-01-23 15:08:04 +01:00
Michael Adam
a60b913a37 Fix tab_depth: it should not create an extra debug header.
In pstring removal 4ae4b23586, the behaviour of tab_depth was
changed to create an extra debug header (by using the DEBUGLVL
macro).

This extracts the debug level check from DEBUGLVL into
a macro CHECK_DEBUGLVL without the debug header creation
and uses this instead of DEBUGLVL in tab_depth.

Michael
(This used to be commit cbc7d921fa)
2008-01-23 08:16:37 +01:00
Volker Lendecke
d4d962f691 Move samba_extended_info_version to smbd/trans2.c
This is right now only used there, and in version.c it gave linker errors
because some binaries (e.g. smbmnt) don't link in time.o
(This used to be commit 1f0eaaa591)
2008-01-22 13:00:22 +01:00
Volker Lendecke
1d99598ca3 Avoid use of uninitialized memory
(This used to be commit 85123aacdb)
2008-01-22 12:46:51 +01:00
Corinna Vinschen
559603ad69 Get Samba version or capability information from Windows
On Jan 21 16:18, Danilo Almeida wrote:
> Corina wrote:
>
> > +	time_t samba_gitcommitdate;
>
> And:
>
> > +   SIVAL(pdata,28,extended_info.samba_gitcommitdate);
> > +   memcpy(pdata+32,extended_info.samba_version_string,32);
>
> Note that you are dropping bits on a system w/64-bit time_t, and that this has the 2038 problem.

Right.  I changed samba_gitcommitdate from time_t to NTTIME and shortened
samba_version_string to 28 bytes.  New patch below.

Thanks,
Corinna
(This used to be commit 28aa1c199d)
2008-01-22 12:39:47 +01:00
Stefan Metzmacher
f5df4a100a libreplace: getpwent_r/getgrent_r on IRIX are similar to solaris but use size_t
metze
(This used to be commit 2f46091511)
2008-01-22 12:21:55 +01:00
Kai Blin
36e3e75e06 util_sock: Don't return a pointer to freed memory.
Fix a bug in my bugfix. Thanks to vl for spotting that one.
(This used to be commit 24f68b90cc)
2008-01-21 18:02:24 +01:00
Kai Blin
7b6a439efe util_sock: Fix memcache bug in get_mydnsfullname.
get_mydnsfullname relied on memcache_add(); memcache_lookup() working.
When run from ntlm_auth, the global_cache variable in memcache is NULL, so
the add and lookup both fail. In that case, just return the result of the
getaddrinfo call.

Jeremy, please check.
(This used to be commit 1db41ff525)
2008-01-21 13:28:06 +01:00
Michael Adam
99dfd66488 Rename lib/util_reg_smbconf.c to registry/reg_init_smbconf.c
This actually is a counterpart to reg_init_full, in that is does
open and initialize the registry too, but only registeres the backends
necessary to access the SMBCONF key.

Michael
(This used to be commit 01bda3ab35)
2008-01-21 08:49:12 +01:00
Volker Lendecke
33f3eeaa00 Fix some "set but never used" warnings
(This used to be commit 4a6dadc517)
2008-01-20 17:44:40 +01:00
Volker Lendecke
014bfd35f8 Some systems do not have XATTR_ defined
(This used to be commit 2cac1d3919)
2008-01-20 00:44:14 +01:00
Volker Lendecke
2411c6cb90 Add "split_ntfs_stream_name()" together with a torture test
(This used to be commit d813bd9e02)
2008-01-19 23:10:09 +01:00
Volker Lendecke
14e7c292bc Add an error mapping for ENOATTR
(This used to be commit 9f0d778490)
2008-01-19 22:58:17 +01:00
Volker Lendecke
07e07f696a Use SAFE_FREE instead of free
(This used to be commit 9996473290)
2008-01-19 19:31:02 +01:00
Corinna Vinschen
a0bd9d97a3 Tiny memory leak in lib/version.c
Hi,

while implementing the extra_info version stuff, it occured to me that
samba_version_string() potentially allocates memory which is unused but
never free'd.

If SAMBA_VERSION_VENDOR_PATCH is defined, a second call to asprintf
takes place.  The result is stored in tmp_version.  Afterwards,
samba_version is set to tmp_version without free'ing samba_version
first.  Looks like a simple free(samba_version) is missing.  Patch
against 3.2-test below.

Ok, this only happens once over the lifetime of the application, so it's
no big deal, but I though it doesn't hurt to mention it.

Corinna

	* lib/version.c (samba_version_string): Free samba_version
	before setting to tmp_version.
(This used to be commit 373a23d48f)
2008-01-19 19:30:16 +01:00
Kai Blin
398c323f75 afs: Use talloc_stackframe() instead of talloc_init()
Thanks to vl for pointing this out.
(This used to be commit 76cf5a979b)
2008-01-19 13:17:09 +01:00
Kai Blin
805caafd44 util_str: Don't return memory from talloc_tos(), use mem_ctx instead.
(This used to be commit ab0ee6e9a6)
2008-01-19 02:20:16 +01:00
Stefan Metzmacher
db449a4c5f Revert "Host SerNet-AIX has __ss_family instead of ss_family in sockaddr_storage"
This reverts commit e33286f4a6.

393bab185e0e9f02aac5740becc2aba2762133c8 is the v4-0-test fix
for the same problem.

metze
(This used to be commit b8a57a24c3)
2008-01-18 17:02:13 +01:00
Jelmer Vernooij
a0e04a9417 libreplace: Escape asterisk.
(cherry picked from commit df36c78549)
(This used to be commit 174a45ec18)
2008-01-18 17:02:13 +01:00
Jelmer Vernooij
f8ad02305f Try to fix the build on Tru64; avoid single quotes because they get expanded by perl in the build system.
(cherry picked from commit bba8914af5)
(This used to be commit a0e663ff2c)
2008-01-18 17:02:12 +01:00
Stefan Metzmacher
1e5418edbc r26550: libreplace: fallback to __ss_family of struct sockaddr_storage
metze
(cherry picked from commit 11bdc9bed8)
(This used to be commit c11122afda)
2008-01-18 17:02:12 +01:00
Stefan Metzmacher
a2bfb1749c r26102: libreplace: remove system/printing.h as it only contains samba3 stuff
metze
(cherry picked from commit 1ecb4ec01b)
(This used to be commit ff8a001f0d)
2008-01-18 17:02:11 +01:00
Stefan Metzmacher
0e1348869e r25976: libreplace: not all platforms like _XOPEN_SOURCE=600
- Only use _XOPEN_SOURCE=600 on Tru64
- _OSF_SOURCE is also Tru64 specific

metze
(cherry picked from commit d19ab62081)
(This used to be commit dbff70b2eb)
2008-01-18 17:02:11 +01:00
Stefan Metzmacher
f75898d5b5 r25974: libreplace: see what the build-farm says if we use _XOPEN_SOURCE=600
On Tru64 this brings in socklen_t and some other socket stuff

metze
(cherry picked from commit d42f2e5759)
(This used to be commit af3772e22f)
2008-01-18 17:02:11 +01:00
Stefan Metzmacher
2e0dc77bda r25971: libreplace: remove AC_EXTENSION_FLAG as it's the same as AC_N_DEFINE
metze
(cherry picked from commit 05b4619c5b)
(This used to be commit 58932ca791)
2008-01-18 17:02:10 +01:00
Stefan Metzmacher
928f899948 r25970: libreplace: fix AC_N_DEFINE() so that some appears in config.h
metze
(cherry picked from commit a07c983fde)
(This used to be commit 3db37038b3)
2008-01-18 17:02:10 +01:00
Günther Deschner
db40120c73 Fix the build w/o ADS.
Guenther
(This used to be commit 645f2376d4)
2008-01-18 08:50:33 +01:00
Günther Deschner
9dd8940e5f Add header for NetGetJoinableOUs to libnetapi.
Guenther
(This used to be commit f297ea259d)
2008-01-18 08:49:24 +01:00
Andrew Tridgell
313a21b4d9 merged changes from v4-0-test
(This used to be commit 8c89d60924)
2008-01-18 15:46:15 +11:00
Günther Deschner
b18fd380bd Add NetGetJoinableOUs() to libnetapi (incl. example).
Guenther
(This used to be commit 8858e403e1)
2008-01-18 02:55:19 +01:00
Günther Deschner
b1424846c6 Cosmetics and error string reporting for libnetapi.
Guenther
(This used to be commit 4ca3392851)
2008-01-18 02:55:10 +01:00
Günther Deschner
cfb7e25466 Add some more debugging into netdomjoin-gui.
Guenther
(This used to be commit d4c5b32322)
2008-01-18 02:54:49 +01:00
Günther Deschner
bb97b272a9 Fix local hostname detection in netdomjoin-gui.
Guenther
(This used to be commit 30458116b3)
2008-01-18 02:54:36 +01:00
Günther Deschner
c2ff6c94f2 Improve libnetapi_set_error_string().
Guenther
(This used to be commit 96f645553a)
2008-01-18 02:54:29 +01:00
Günther Deschner
d1abd4d866 Use new pidl-generated netlogon client calls in NetApi GetDcName().
Guenther
(This used to be commit 733e07a06c)
2008-01-17 16:54:46 +01:00
Jeremy Allison
bd8abea49f Fix IPv6 bug #5204, which caused krb5 DNS lookups
for a name '[<ipv6 addr>'.
Jeremy.
(This used to be commit f2aa921505)
2008-01-16 13:21:46 -08:00
Volker Lendecke
5b37e815b4 Don't try ftruncate when the tdb is opened read-only
Tridge, Jeremy, please check!

Thanks,

Volker
(This used to be commit e4f46d5274)
2008-01-16 21:18:26 +01:00
Volker Lendecke
7084854bd9 Next try to fix the max dead record calculation
(This used to be commit 4f95c58040)
2008-01-16 21:04:52 +01:00
Volker Lendecke
c308d76305 Fix some C++ warnings
(This used to be commit 625241c477)
2008-01-16 20:29:41 +01:00
Volker Lendecke
b0950557f9 Fix a missing prototype warning
(This used to be commit 871cee04f2)
2008-01-16 20:25:57 +01:00
Michael Adam
8c41366a98 Add "config backend" to the parameters forbidden in registry config.
Make registry based configs more fool-proof.

Michael
(This used to be commit 2ea55c03b2)
2008-01-16 17:31:44 +01:00
Michael Adam
7bfceba4bc Use lp_config_backend_is_registry() instead of lp_include_registry_globals().
Michael
(This used to be commit c5a7d421c5)
2008-01-16 17:10:02 +01:00
Alexander Bokovoy
68694369fc Merge CTDB-related fixes from samba-ctdb 3.0 branch (http://samba.org/~tridge/3_0-ctdb)
Signed-off-by: Alexander Bokovoy <ab@samba.org>(This used to be commit 0c8e23afbb)
2008-01-16 12:09:48 +03:00
Jeremy Allison
7e2b8eb079 Port from ctdb:
minor fix to transaction_write_existing: tridge.

Jeremy.
(This used to be commit 874425c8f6)
2008-01-15 17:20:50 -08:00
Jeremy Allison
19e4e99bfb From Alexander Bokovoy
names is a 'const char **names' here, passed from upper level. Passing
'names' as a talloc context will break things as 'names' is usually
likely is a local variable, not a talloc'd. And we want to have array
elements on a context of the array anyway.

Jeremy.
(This used to be commit 22a4129fab)
2008-01-14 11:06:46 -08:00
Andrew Tridgell
63b1c765de samba3 already has tdb_validate()
(This used to be commit 9f002eeff9)
2008-01-14 16:26:52 +11:00
Andrew Tridgell
a1902700c4 merged tdb fix from ctdb tree
(This used to be commit c91e9c785b)
2008-01-14 15:38:43 +11:00
Volker Lendecke
5b6520044b Fix the max_dead_record calculations
(This used to be commit 4aaf4e7e73)
2008-01-13 22:58:41 +01:00
Michael Adam
1ee6d3e1ee Introduce a libnet_conf context created by libnet_conf_open().
The libnet_conf_ctx stores the information necessary to interoperate
with the configuration. It is created by calling libnet_conf_open()
and destroyed by calling libnet_conf_close(). The context is passed
to all the libnet_conf functions. It currently stores the token to
access the registry. Later, it could store more data, e.g. the server
to connect to, credentials, and so on. For support of other backends
than registry or support of remote configuration, only the open
function will have to be changed.

In net_conf, the calls to the actual net_conf functions is wrapped
into a function that calls libnet_conf_open()/_close(). Thus an
individual variant of net_conf_runfunction2() and functable2 is
used to cope with functions being called by the wrapper with the
additional libnet_conf_ctx argument.

Michael
(This used to be commit c2a9346faa)
2008-01-13 02:14:34 +01:00
Volker Lendecke
4af27ec877 Restructure dbwrap_rbt
In this low-level code, play tricks to reduce the number of allocations to the
possible minimum. I would not recommend this for higher-level code, but here it
pays off.
(This used to be commit 71b1e6ff15)
2008-01-12 20:11:10 +01:00
Jeremy Allison
360673e80e CID 458. Don't leak dlopen handles on failing to load
module.
Jeremy.
(This used to be commit 8809eaeb15)
2008-01-12 00:15:46 -08:00
Jeremy Allison
2ec41571a3 Sync tdb with the tdb changes in ctdb. Spoke to tridge about
this. Fixes insidious problem with order n^2 freelist merging.
Jeremy.
(This used to be commit c6609c042b)
2008-01-11 15:08:37 -08:00
Günther Deschner
c79ce2ffa3 As long as DsGetDcName is not part of libnetapi, lowercase the fn name.
Guenther
(This used to be commit 19a980f520)
2008-01-11 15:32:20 +01:00
Günther Deschner
efcf285e27 Fix libnetapi error string callers.
Guenther
(This used to be commit 1ad7a0a361)
2008-01-11 15:28:24 +01:00
Günther Deschner
7a87256cd1 Include some basic headers in netapi.h.
Guenther
(This used to be commit 23b92a6fa5)
2008-01-11 15:10:15 +01:00
Günther Deschner
4eed7883bb Refactor libnetapi error string functions a bit.
Guenther
(This used to be commit 3b450a8bcc)
2008-01-11 15:09:54 +01:00
Volker Lendecke
b7d222c690 Tiny cosmetic fix
(This used to be commit c82c1d462b)
2008-01-10 22:12:57 +01:00
Michael Adam
ba2a255282 Move transfer_file and transfer_file_internal to a module of their own.
Also, don't auto-generate prototypes of the (two) exported functions
but make a start in having handwritten prototypes in dedicated header
files (not in includes.h ... :-)

Michael
(This used to be commit 395f29d8b7)
2008-01-10 14:31:25 +01:00
Michael Adam
386caead47 Reformat some code I just touched.
Michael
(This used to be commit 4ed238b1e4)
2008-01-10 14:28:12 +01:00
Michael Adam
9f6d0479d7 Fix a really silly typo.
Michael
(This used to be commit 7b0af7cdc9)
2008-01-10 14:18:46 +01:00
Michael Adam
5661ac6a38 Correctly abstract the transfer_file mechanism with callbacks and void ptrs.
This removes the in_fsp and out_fsp global variables hack from smbd/vfs.c.

Michael
(This used to be commit b2e7cdc6e8)
2008-01-10 13:30:46 +01:00
Volker Lendecke
9f67ee6334 use talloc_tos() in share_access_check()
(This used to be commit ac2bb838d5)
2008-01-10 13:19:59 +01:00
Volker Lendecke
138954e70e Fix a c++ warning
(This used to be commit ee905a085f)
2008-01-10 12:28:20 +01:00
Volker Lendecke
97a50593fe talloc_free_children can only reset pool if it's empty
(This used to be commit 0272b46515)
2008-01-10 12:28:20 +01:00
Volker Lendecke
4803cc5d3c Mark talloc_pool memory for valgrind
(This used to be commit d89e42f1d2)
2008-01-10 12:28:20 +01:00
Volker Lendecke
7579e08599 Form a proper hierarchy in talloc_stack
This way talloc_stackframe() can benefit from a pool put on the stack further
up. No need to remove talloc_stackframe().
(This used to be commit be6fe38116)
2008-01-10 09:54:06 +01:00
Jeremy Allison
980ac09849 Fixup hot paths - add macro for toupper (c < 0x80).
This now matches 3.0.x on my micro-tests.
Jeremy.
(This used to be commit 329b924cba)
2008-01-09 17:32:26 -08:00
Jeremy Allison
5df6018114 Add the calls to make use of talloc_pools in a talloc_stackframe.
Jeremy.
(This used to be commit d27e6c0548)
2008-01-09 17:07:58 -08:00
Volker Lendecke
1ed4fcb271 Implement talloc_pool()
A talloc pool is a chunk of memory that can be used as a context for further
talloc calls. Allocations with the pool as the parent just chew from that
memory by incrementing a pointer. If the talloc pool is full, then we fall back
to the normal system-level malloc(3) to get memory.

The use case for talloc pools is the transient memory that is used for handling
a single SMB request. Incrementing a pointer will be way faster than any malloc
implementation.

There is a downside of this: If you use talloc_steal() to move something out of
the pool, the whole pool memory is kept around until the last object inside the
pool is freed. So if you talloc_free() the pool, it might happen that the
memory is freed later. So don't hang anything off a talloc pool that should
live long.

Volker
(This used to be commit 287e29d988)
2008-01-09 17:05:19 -08:00
Volker Lendecke
66d6eb27a4 Fix the max_dead_record calculations
(This used to be commit 2a5c53220a)
2008-01-09 23:24:30 +01:00
Michael Adam
22068a0c16 Change registry_create_admin_token() to return NTSTATUS.
Michael
(This used to be commit 9cd30fb25c)
2008-01-09 01:47:10 +01:00
Michael Adam
f269ed866d Move content of comment.
Michael
(This used to be commit ed4dd00c5a)
2008-01-09 01:47:10 +01:00
Michael Adam
f3603d5a5a Convert add_sid_to_array() add_sid_to_array_unique() to return NTSTATUS.
Michael
(This used to be commit 6b2b9a60ef)
2008-01-09 01:47:10 +01:00
Michael Adam
2e3ac4d3fe Add a comment.
Michael
(This used to be commit 3a4bf4b7c3)
2008-01-09 01:35:43 +01:00
Michael Adam
ebb21268df Fix talloctort: move size check after referenced ptr check.
Michael
(This used to be commit 45b219642c)
2008-01-09 01:34:21 +01:00
Volker Lendecke
148f1eee43 Save one popular malloc
(This used to be commit 2150663d9e)
2008-01-09 00:10:43 +01:00
Volker Lendecke
0af2efcdc4 Don't shrink a talloc area if we have less than 1k to gain
(This used to be commit 28a72ebd45)
2008-01-09 00:10:16 +01:00
Volker Lendecke
5274d8cda3 Only realloc the talloc stack if necessary
(This used to be commit c7cb98d486)
2008-01-08 22:18:08 +01:00
Jelmer Vernooij
bfab6ab14b Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
(This used to be commit ea36c3add5)
2008-01-08 15:43:11 +01:00
Günther Deschner
67f2afe3c4 Correctly free buffers in netdomjoin-gui.
Guenther
(This used to be commit 04d78d4d9a)
2008-01-08 11:59:01 +01:00
Günther Deschner
200bba3ad6 Make name_buffer in NetGetJoinInformation() talloced.
Guenther
(This used to be commit 421905fb60)
2008-01-08 11:59:01 +01:00
Günther Deschner
a01dc30db7 Add NetApiBufferFree() to libnetapi.
Guenther
(This used to be commit c49196954d)
2008-01-08 11:59:01 +01:00
Günther Deschner
ab216a1b4e Fix crash bug when strequal is used too late in libnetapi_free.
Guenther
(This used to be commit ba2b8a310e)
2008-01-08 11:59:01 +01:00
Michael Adam
5921607f26 Remove redundant parameter fd from SMB_VFS_SYS_ACL_SET_FD().
Michael
(This used to be commit 9296e93588)
2008-01-08 01:54:19 +01:00
Michael Adam
62e9d503d8 Remove redundant parameter fd from SMB_VFS_SYS_ACL_GET_FD().
Michael
(This used to be commit 42663e8736)
2008-01-07 23:54:07 +01:00
Günther Deschner
e3ea1e1391 Enable talloc reporting in libnetapi if DEVELOPER compiled.
Guenther
(This used to be commit 01e9151546)
2008-01-07 22:57:30 +01:00
Volker Lendecke
c3c19615c1 make db_tdb_fetch use tdb_parse_record
(This used to be commit 88d82d0623)
2008-01-07 21:18:12 +01:00
Volker Lendecke
6dc988c918 Change db_tdb_fetch_locked to use only one talloc
(This used to be commit 921c8657e2)
2008-01-07 21:18:07 +01:00
Volker Lendecke
8d261ee580 talloc_stackframe only needs 1 talloc
(This used to be commit c0c2084d40)
2008-01-07 21:18:00 +01:00
Günther Deschner
74fc0bf9e5 In libnetapi example, use libnetapi_get_error_string().
Guenther
(This used to be commit b624db92d6)
2008-01-07 20:13:40 +01:00
Günther Deschner
d6659f8ac8 In the local path of NetJoinDomain, try to get error string from libnetjoin.
Guenther
(This used to be commit 0f0f0e1302)
2008-01-07 20:13:26 +01:00
Günther Deschner
751fc874be Add libnetapi_set_error_string and libnetapi_get_error_string.
Guenther
(This used to be commit f8806bad81)
2008-01-07 20:13:18 +01:00
Günther Deschner
1b3520db88 Add krb5 cc env to libnetapi_ctx.
Guenther
(This used to be commit df2b078fa1)
2008-01-07 20:13:02 +01:00
Günther Deschner
1fba8c8019 Let libnetapi use it's own krb5 cred cache in memory if necessary.
Guenther
(This used to be commit 863fb30038)
2008-01-07 20:12:38 +01:00
Günther Deschner
528d253cc8 Rearrange order of libnet join context init.
Guenther
(This used to be commit 89669c66f2)
2008-01-07 19:38:35 +01:00
Günther Deschner
0b92d8bc79 Free libnet_JoinCtx after joining.
Guenther
(This used to be commit 5abae9ef15)
2008-01-07 19:38:22 +01:00
Günther Deschner
cc1982ab1c Close registry in libnetapi_free().
Guenther
(This used to be commit e7258a4408)
2008-01-07 19:38:10 +01:00
Günther Deschner
fa1e5e95d5 Add NET_API_STATUS_SUCCESS define.
Guenther
(This used to be commit a72ad63163)
2008-01-07 19:37:54 +01:00
Günther Deschner
02f67cfcfa Add free_local_machine_name().
Guenther
(This used to be commit f3ebb4f96b)
2008-01-07 14:53:07 +01:00
Günther Deschner
be7df54c39 Fix two memleaks in libnetapi.
Guenther
(This used to be commit d73bde99e8)
2008-01-07 12:48:21 +01:00
Günther Deschner
68ec314277 In gfree_debugsyms() free the format_bufr as well.
Guenther
(This used to be commit 48f09ca376)
2008-01-07 12:48:21 +01:00
Günther Deschner
e6c3ac59c5 Failure while unjoining a domain is non-critical.
Just continue joining to the workgroup in that case.

Guenther
(This used to be commit bf9ce2a928)
2008-01-07 12:48:21 +01:00
Jelmer Vernooij
aaa2770666 Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
(This used to be commit 5a30f6377d)
2008-01-05 23:09:38 +01:00
Jelmer Vernooij
3ba8fbef29 selftest: Use platform-specific equivalents of LD_LIBRARY_PATH for Samba4's smbtorture.
(This used to be commit 64ff1dad86)
2008-01-05 23:09:25 +01:00
Jeremy Allison
3d7a8a9fa1 Fix missing return - should be void.
Jeremy.
(This used to be commit 45ae90b77e)
2008-01-05 01:16:09 -08:00
Jeremy Allison
9baa97a46e Add general '-e' option to enable smb encryption
on tools.
Jeremy.
(This used to be commit 757653966f)
2008-01-05 00:23:35 -08:00
Günther Deschner
395c366237 Do not pass emtpy wkssvc_PasswordBuffers to rpc functions.
Guenther
(This used to be commit fe75e5ccdf)
2008-01-04 23:03:55 +01:00
Jeremy Allison
9254bb4ef1 Refactor the crypto code after a very helpful conversation
with Volker. Mostly making sure we have data on the incoming
packet type, not stored in the smb header.
Jeremy.
(This used to be commit c4e5a50504)
2008-01-04 12:56:23 -08:00
Günther Deschner
28ef4878d9 Rename server_name to dc_name in libnet join structures.
Guenther
(This used to be commit ff5e15b1ba)
2008-01-04 17:43:15 +01:00
Günther Deschner
0399df22f0 In libnet_join finally separate the admin from the machine pwd entirely.
Guenther
(This used to be commit d88bb94f0e)
2008-01-04 17:43:02 +01:00
Günther Deschner
f78c318eb0 Add debug switch to netdomjoin.
Guenther
(This used to be commit 2b221708c0)
2008-01-04 15:21:41 +01:00
Günther Deschner
564a54aa16 Minor cosmetic cleanup for netdomjoin-gui.
Guenther
(This used to be commit 02e3887f39)
2008-01-04 15:21:35 +01:00
Günther Deschner
cf6e59de2b Fix some error strings in netdomjoin-gui.
Guenther
(This used to be commit aaea8f1ed7)
2008-01-04 11:55:08 +01:00
Günther Deschner
be88a67388 Minor libnetapi join cosmetic cleanup.
Guenther
(This used to be commit 4deef80bed)
2008-01-03 18:15:22 +01:00
Michael Adam
5655ae7a24 Rename libnet_smbconf_set_global_param() to libnet_conf_set_global_parameter().
Now all functions are converted to the consistent naming scheme.

Michael
(This used to be commit a559533c0c)
2008-01-03 14:17:49 +01:00
Günther Deschner
6afaafe083 Let DsGetDCName figure out whether domain_name is a flat_name when unjoining.
Guenther
(This used to be commit 75165ba4e7)
2008-01-03 13:41:36 +01:00
Volker Lendecke
149e86b842 Trivial simplification
... things you come across when you review code
(This used to be commit 1e006bcfb1)
2008-01-03 10:24:45 +01:00
Jeremy Allison
cc957c7f6d Convert the little caches in util_sock.c to use
the singleton memcache. Vl please check (passes
make valgrindtest).
Jeremy.
(This used to be commit a4d613cde8)
2008-01-02 17:37:39 -08:00
Gerald (Jerry) Carter
59f5b4c9d7 Merge branch 'work/v3-2-test' into v3-2-test
(This used to be commit 761858312b)
2008-01-02 17:15:10 -06:00
Gerald (Jerry) Carter
23b3b7c2b3 use C99 bool return types (true & false).
(This used to be commit f22c9d6296)
2008-01-02 14:54:25 -06:00
Gerald (Jerry) Carter
701a56a698 Make sure that wbcLookupSid() and wbcLookupRids() use talloc()'d memory.
Follows existing convention that all returned memory should be freed with
wbcFreeMemory() and not directly with free().  Noticed by Volker.  Txs.
(This used to be commit 39c2059f66)
2008-01-02 14:50:59 -06:00
Michael Adam
a5d2449fe1 Use the proper boolean constants.
Michael
(This used to be commit f731fee408)
2008-01-02 17:08:28 +01:00
Volker Lendecke
7cbdb48475 Remove tiny code duplication
ndr_size_security_descriptor does the same as sec_desc_size
(This used to be commit bc3bd7a8e7)
2007-12-29 23:13:26 +01:00
Volker Lendecke
7be5525792 Make [un]marshall_sec_desc use librpc/ndr
(This used to be commit 387936ec39)
2007-12-29 23:13:17 +01:00
Volker Lendecke
a59280792c Remove tiny code duplication
sid_size did the same as ndr_size_dom_sid
(This used to be commit 8aec5d09ba)
2007-12-29 23:12:51 +01:00
Volker Lendecke
245537f9bd Convert get_root_nt_token to memcache
(This used to be commit fada689893)
2007-12-28 17:24:39 +01:00
Volker Lendecke
3ba59d4616 don't store cache_readonly in gencache
tdb won't allow us to write anyway
(This used to be commit 069cd6d63a)
2007-12-28 17:09:57 +01:00
Volker Lendecke
3c99b7773e Convert csamuser to memcache
(This used to be commit 476d3abf9c)
2007-12-28 13:13:29 +01:00
Jeremy Allison
afc93255d1 Add SMB encryption. Still fixing client decrypt but
negotiation works.
Jeremy.
(This used to be commit d78045601a)
2007-12-26 17:12:36 -08:00
Volker Lendecke
07867ec373 Fix some memleaks
(This used to be commit 78b0b66cba)
2007-12-26 23:45:10 +01:00
Volker Lendecke
8b88fa53b5 Host SerNet-AIX has __ss_family instead of ss_family in sockaddr_storage
(This used to be commit e33286f4a6)
2007-12-25 18:37:42 +01:00
Volker Lendecke
1c26f38c16 Interface detection should not go through the socket wrapper
Next try to get the build farm more in line again than it is now
(This used to be commit 38e178df12)
2007-12-25 12:35:44 +01:00
Volker Lendecke
921d8782cc Fix the build
(This used to be commit 72dc717108)
2007-12-25 11:38:26 +01:00
Volker Lendecke
9cd009b031 tiny simplification
(This used to be commit 8bd2484562)
2007-12-23 00:49:32 +01:00