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

3698 Commits

Author SHA1 Message Date
Michael Adam
7bdd648477 libreplace: Add tests for connect and gethostbyname.
Provide dummy replacements when a function isnt found.
The functions are also searched for in certain libraries,
and variables SOCKET_LIBS and NSL_LIBS are set accordingly.

One purpose of this is to fix the getifaddrs tests on
systems where e.g. the socket calls require special libs
for linking.

Michael
(This used to be commit c19f7a0e10)
2008-02-26 13:56:12 +01:00
Michael Adam
9f5c463415 Fix build on VOS: socklen_t is needed for rep_inet_ntop: move it up.
Michael
(This used to be commit 7b98620ef1)
2008-02-26 11:55:39 +01:00
Volker Lendecke
3176392878 Fix some warnings
warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result
(This used to be commit ad37b7b0ae)
2008-02-25 16:09:26 +01:00
Volker Lendecke
fdf4e84e2b Check return value of pipe(2)
(This used to be commit 49da21c03a)
2008-02-23 11:04:13 +01:00
Volker Lendecke
333c0aabc9 Check return value of dup(2)
(This used to be commit d34701d49c)
2008-02-23 11:04:13 +01:00
Volker Lendecke
cef18563bb Check the return value of fgets
(This used to be commit b8aaa9a69f)
2008-02-23 11:04:13 +01:00
Michael Adam
0f0998a06b libreplace: don't use socketwrapper for getifaddrs() implementations.
Michael
(This used to be commit 85eec1d1d6)
2008-02-22 14:13:28 +01:00
Michael Adam
6a27493578 libreplace: Fix comment originating from old samba source.
Michael
(cherry picked from commit 0440bcfe63)
(This used to be commit ddf7ac4f26)
2008-02-22 10:48:18 +01:00
Michael Adam
e033fdbde2 Not all implementations of struct ifaddrs define ifa_broadaddr.
E.g. the definition of libreplace doesn't. :-o

Michael
(This used to be commit 25341602ec)
2008-02-22 10:43:42 +01:00
Michael Adam
5c6db777e4 Remove the implementations of _get_interfaces and autoconf test in interfaces.c
getifaddrs() is now provided by libreplace.

Michael
(This used to be commit 7970901223)
2008-02-22 01:59:45 +01:00
Michael Adam
cc32d4c316 libreplace: fix creation of conftest files for getifaddrs tests.
Add missing includes of replace.c and defines of SOCKET_WRAPPER_NOT_REPLACE.

Michael
(This used to be commit 26e6ebc709)
2008-02-22 00:36:20 +01:00
Michael Adam
e3d1f512cf Fix linked list of ifaddrs in implementations of rep_getifaddrs.
Produce proper list instead of one-node-loop.

Michael
(This used to be commit ec9f4f5066)
2008-02-22 00:36:20 +01:00
Michael Adam
e2ec7931ff Add missing initalizations of lastif in rep_getifaddr implementations.
Michael
(This used to be commit 65710e752f)
2008-02-22 00:36:20 +01:00
Michael Adam
bf6dbf8e1b libreplace: fix compile errors in getifaddrs.c
Michael
(This used to be commit 22cdd4cb50)
2008-02-21 18:16:10 +01:00
Michael Adam
357659b1d0 Try and fix getifaddrs check on irix: dont't try to include config.h
The missing header file is judged "catastrophic" on irix.

Michael
(This used to be commit 5778c90819)
2008-02-21 17:56:33 +01:00
Tim Potter
abf8465659 Fix possible close of invalid fd if call to socket() returns -1.
(This used to be commit f7d2f69299)
2008-02-20 17:58:50 -08:00
Jelmer Vernooij
9c3f0170b3 Support dlopen(NULL, ...) on HPUX.
(cherry picked from commit 53c70b5f77)
(This used to be commit 8883ee2418)
2008-02-20 21:12:54 +01:00
Michael Adam
3ac36c3caf libreplace: change samba_cv_ to libreplace_cv_ in libreplace.m4.
Michael
(cherry picked from commit 83387ecccf)
(This used to be commit 12ec7dfb10)
2008-02-20 14:14:50 +01:00
Michael Adam
9ba696cb68 libreplace: change samba_cv_ to libreplace_cv_ in system/config.m4.
Michael
(cherry picked from commit 00c173bfba)
(This used to be commit 450034582b)
2008-02-20 14:14:41 +01:00
Michael Adam
2356cc6586 libreplace: change samba_cv_ to libreplace_cv_ in getpass.m4.
Michael
(cherry picked from commit d3b3d3ec9f)
(This used to be commit d6719f1c2f)
2008-02-20 14:14:31 +01:00
Michael Adam
b277aa2893 libreplace: change samba_cv_ to libreplace_cv_ in getifaddrs.m4
Michael
(cherry picked from commit acab9def2a)
(This used to be commit f790cb4aed)
2008-02-20 14:14:20 +01:00
Michael Adam
89ad7e4ed1 libreplace: Remove double item in case statement.
This was by accident introduced in cherry-pick commit
7a7dcd9b12: This tiny portion
had already been ported in 64ff1dad86.

MIchael
(This used to be commit 69b2ebc797)
2008-02-19 22:29:34 +01:00
Michael Adam
3e02cdcaa8 Remove relict SAMBA_CONFIGURE_CPPFLAGS from lib/replace.
Michael
(cherry picked from commit d10cbb533c)
(This used to be commit 12e5b9b406)
2008-02-19 22:14:12 +01:00
Jelmer Vernooij
c4265bd3e8 r26554: Fix test for getifaddr on FreeBSD. Patch by Timur Bakeyev.
(cherry picked from commit 37c7b65546)
(This used to be commit bc523382ae)
2008-02-19 22:12:50 +01:00
James Peach
5dd51159df r26551: Make sure NULL is defined before using it to test for getifaddrs().
Patch from Timur I. Bakeyev <timur@com.bat.ru>.
(cherry picked from commit 188156228b)
(This used to be commit b4a2ec01fc)
2008-02-19 22:12:32 +01:00
Jelmer Vernooij
f75d7a6992 r26507: Fix function signature for freeifaddrs.
(cherry picked from commit cc873bdd2e)
(This used to be commit ccfb04d185)
2008-02-19 22:00:15 +01:00
Jelmer Vernooij
f822f4150b r26497: Fix return type for freeifaddrs().
(cherry picked from commit 8c65053f51)
(This used to be commit 57587e49f5)
2008-02-19 21:59:51 +01:00
Jelmer Vernooij
1caa9cbd9d r26495: Add defines for getifaddrs/freeifaddrs.
(cherry picked from commit c9e5a3078f)
(This used to be commit f2f5521068)
2008-02-19 21:59:27 +01:00
Jelmer Vernooij
ea9ce8f9ac r26492: Some hosts have a define called ifa_dstaddr.
(cherry picked from commit c4cd935ee7)
(This used to be commit 839d128a42)
2008-02-19 21:58:50 +01:00
Jelmer Vernooij
5fb2d5b086 r26491: Fix syntax.
(cherry picked from commit 2513230e28)
(This used to be commit d9c3b27c3f)
2008-02-19 21:58:12 +01:00
Jelmer Vernooij
1de665002c r26487: Cope with systems that don't have struct sockaddr.sa_len.
(cherry picked from commit 56080469ab)
(This used to be commit ce222d07ba)
2008-02-19 21:57:46 +01:00
Jelmer Vernooij
621983ed6d r26470: Update README.
(cherry picked from commit 51a78cfc3e)
(This used to be commit 556b6b9a2f)
2008-02-19 21:57:15 +01:00
Jelmer Vernooij
7728a23d43 r26469: Fix paths, only include IPv4 addresses for now.
(cherry picked from commit fa9e3b6fa8)
(This used to be commit a2d6f6b4ae)
2008-02-19 21:56:52 +01:00
Jelmer Vernooij
d0d4fc5f54 r26468: Match getifaddrs more closely, add trivial test.
(cherry picked from commit 92898c043b)
(This used to be commit 3f9c0c2100)
2008-02-19 21:56:41 +01:00
Jelmer Vernooij
2235ffe2f7 r26467: Use getifaddrs() for interface enumeration and provide replacements for platforms that don't have it in lib/replace.
(lib/replace part of 9b4924fbd8 - Michael)
(This used to be commit 789bf2d36b)
2008-02-19 21:55:09 +01:00
Günther Deschner
b1d09a82f4 Use netr_SamInfo3 in sid_array_from_info3.
Guenther
(This used to be commit 06095e8c70)
2008-02-17 02:11:58 +01:00
Michael Adam
8d703d66d2 Use the proper boolean constants.
Michael
(This used to be commit 1c215325d1)
2008-02-14 16:32:29 +01:00
Günther Deschner
08f019d973 Use pidl for _lsa_AddPrivilegesToAccount and _lsa_RemovePrivilegesFromAccount.
Guenther
(This used to be commit 0c9904864b)
2008-02-14 13:53:28 +01:00
Stefan Metzmacher
cedfcaec0c nsswitch: convert winbind_env_set(), winbind_on() and winbind_off() into macros
metze
(This used to be commit 5f623f54a9)
2008-02-13 10:44:52 +01:00
Günther Deschner
0622fd72a3 Merge data_blob_talloc_zero() from samba4.
Guenther
(This used to be commit 9fca3ca37e)
2008-02-13 10:20:10 +01:00
Michael Adam
114fe09af7 Raise version of talloc from 1.1.0 to 1.2.0 after adding talloc pools.
Michael
(cherry picked from commit 38855a9f14)
(This used to be commit 303a3eb128)
2008-02-13 01:40:12 +01:00
Jelmer Vernooij
3519e91a85 Make sure talloc.so is build before installing.
(cherry picked from commit 51769f5cfc)
(This used to be commit da98f4d223)
2008-02-13 01:40:12 +01:00
Jelmer Vernooij
9a7e977a73 Fix out of tree builds.
(cherry picked from parts of commit 35c8ebdca2)

Michael
(This used to be commit a780c0594a)
2008-02-13 01:40:11 +01:00
Jelmer Vernooij
81a44cb699 Split actual content out of talloc Makefile into talloc.mk.
(cherry picked from commit 2b89399752)
(This used to be commit 7710d3dea3)
2008-02-13 01:40:11 +01:00
Jelmer Vernooij
ff0065672e Split rules.mk out of Makefile.
(cherry picked from commit 75ffc2c50d)
(This used to be commit 6f8165e4b0)
2008-02-13 01:40:11 +01:00
Michael Adam
38b92adebc Make versions in lib/talloc/config.mk and lib/talloc/configure.ac the same.
Not sure if we can produce one from the other, so I manually made
them equal for now.

Michael
(cherry picked from commit 1c14c457be)
(This used to be commit 0d9ae82f51)
2008-02-13 01:40:11 +01:00
Jelmer Vernooij
defae9b501 build: Remove support for DESCRIPTION setting that is now unused.
(cherry picked from parts of commit 91d7ba5202)

Michael
(This used to be commit 4b03f88c1e)
2008-02-13 01:40:11 +01:00
Jelmer Vernooij
df202a4ec4 talloc/tdb: Use manually written pc file.
(cherry picked from parts of c8947fda23)

Michael
(This used to be commit 77664bc482)
2008-02-13 01:40:11 +01:00
Jelmer Vernooij
3d33ad711c r26570: - Trim size of the swig-generated Python bindings by removing a bunch of {}'s.
- Start working on Python equivalents for various EJS tests.
- Fix regression in argument order for reg_diff_apply() in EJS bindings.

(cherry picked from talloc part of commit c550c03372)

Michael
(This used to be commit a146145c28)
2008-02-13 01:40:11 +01:00
Jelmer Vernooij
5a9f0cabf6 r26454: Add simple SWIG macro for wrapping talloced types.
(cherry picked from talloc parts of commit 760fcc8bfa)

Michael
(This used to be commit f4c59316b9)
2008-02-13 01:40:11 +01:00
Jelmer Vernooij
b59da67d2f r26292: Make sure swig directory exists.
(cherry picked from commit 7962d221fc)
(This used to be commit d6198f2bd7)
2008-02-13 01:40:11 +01:00
Jelmer Vernooij
6a7dff4a73 r26280: Fix installation if swig is not available.
(cherry picked from commit 3320bd401f)
(This used to be commit f1267f74a9)
2008-02-13 01:40:11 +01:00
Jelmer Vernooij
580bb2a6ad r26276: Install SWIG files if swig is present.
(cherry picked from talloc parts of commit dfd5b456f9)

Michael
(This used to be commit 8276ec7596)
2008-02-13 01:40:11 +01:00
Jelmer Vernooij
461ad00b1f r26197: Add bindings for libsecurity.
(cherry picked from parts of commit 8625cd403b)

Michael
(This used to be commit 22d48224d3)
2008-02-13 01:40:11 +01:00
Jelmer Vernooij
fbc295fb37 r26187: Fix module name, indentation.
(cherry picked from parts of commit ef790ebf3a)

Michael
(This used to be commit 8e35bbeac2)
2008-02-13 01:40:11 +01:00
Jelmer Vernooij
4e066d4f83 r26072: Import trivial SWIG wrapper for talloc.
(cherry picked from commit 02d259c2c4)
(This used to be commit 5938a73238)
2008-02-13 01:40:10 +01:00
Stefan Metzmacher
68c7089552 r25987: libreplace: rename AC_LD_SHLDFLAGS into AC_LIBREPLACE_SHLD_FLAGS
metze

(cherry picked from parts of commit c179807165.
The changes to lib/replaces have already been merged.)

Michael
(This used to be commit 6c09291872)
2008-02-13 01:40:10 +01:00
Stefan Metzmacher
8943a43a4b r25973: talloc: fix usage of SONAMEFLAG
metze
(cherry picked from commit 7fecb8f3cd)
(This used to be commit ce3625a386)
2008-02-13 01:40:10 +01:00
Jelmer Vernooij
12c81d1b55 r25953: AIX make doesn't support $^.
(cherry picked from parts of commit 91133d2711)

Michael
(This used to be commit f231d03e53)
2008-02-13 01:40:10 +01:00
Jelmer Vernooij
07a5bd6027 r25944: Fix handling of sonameflag on AIX, which doesn't have anything like that.
(cherry picked from parts of commit 228dd6830e)

Michael
(This used to be commit 7a7dcd9b12)
2008-02-13 01:40:10 +01:00
Jelmer Vernooij
850ec9eb3a r25884: Specify shldflags first, as required by some compilers.
(cherry picked from commit 40a8cd0d2f)
(This used to be commit 42b56f77ff)
2008-02-13 01:40:10 +01:00
Jelmer Vernooij
5e914f2c13 r25882: Build shared library of talloc as well.
(cherry picked from commit 3692ba8299)
(This used to be commit ddfc86b71d)
2008-02-13 01:40:10 +01:00
Günther Deschner
419ab84b01 Use pidl for _lsa_LookupPrivDisplayName().
Guenther
(This used to be commit c866403201)
2008-02-11 19:16:04 +01:00
Karolin Seeger
2a6a2288c5 Fix some typos.
Karolin
(This used to be commit 2bec0a1fb7)
2008-02-08 10:05:32 +01:00
Andrew Tridgell
e41ca7ef1b merge tdb changes from ctdb
(This used to be commit 92503eb60e)
2008-02-08 14:16:51 +11:00
Andrew Tridgell
e3b4db8807 merge growing tdb for tdb_wipe_all() fix from ctdb
(This used to be commit eaba373747)
2008-02-07 23:08:11 +11:00
Michael Adam
b7989e2ac7 Add configure check for LBER_LOG_PRINT_FN - to intercept ldap debug.
Use the resulting HAVE_LBER_LOG_PRINT_FN to determine whether we can
use it in init_ldap_debugging to intercept LDAP debug output and print
it out in the samba logs (controlled with "ldap debug level").

Michael
(This used to be commit 8dfc389ff6)
2008-02-06 18:16:22 +01:00
Michael Adam
7183e5811e Add support for LDAP debug output in Samba log file.
Logging of the ldap libraries appears with a [LDAP] prefix
inside the samba logs. This is controlled by two new parameters:

* "ldap debug level" sets the debug level of the ldap libraries.
  It is the bit-field as understood by the openldap server.

* "ldap debug threshold" is the samba debug level at which ldap
  logging appears inside the samba logs.

This probably needs some configure tests since it makes
use of the LBER_OPT_LOG_PRINT_FN option to redirect the
debug output of the ldap libraries.

Michael
(This used to be commit 15c25990bd)
2008-02-06 18:16:22 +01:00
Volker Lendecke
abe2fd7697 Fix a debug message
(This used to be commit 24aa3518ae)
2008-02-05 22:22:03 +01:00
Volker Lendecke
b361956942 str_list_free is not needed anymore
(This used to be commit feddc1447d)
2008-02-04 21:05:41 +01:00
Volker Lendecke
2762b9a975 Always pass a TALLOC_CTX to str_list_make and str_list_copy
(This used to be commit e2c9fc4cf5)
2008-02-04 20:57:49 +01:00
Volker Lendecke
3955801298 Simplify str_list_xxx
(This used to be commit d471dd4adb)
2008-02-04 20:05:26 +01:00
Kai Blin
174100c309 popt: Use SMB_CONF_PATH environment var if no other configfile is set.
Now --configfile (or -s) will have precedence, if that's not given
SMB_CONF_PATH is checked, otherwise the $(CONFIGDIR)/smb.conf default
value is used.

Thanks to Michael for his comments.
(This used to be commit 92a9c6c56f)
2008-02-04 17:41:23 +01:00
Volker Lendecke
b42a5d68a3 Convert read_data() to NTSTATUS
(This used to be commit af40b71023)
2008-02-02 11:03:23 +01:00
Volker Lendecke
88c27f83d4 Convert receive_smb_raw to NTSTATUS
(This used to be commit ba771bd858)
2008-02-02 11:03:23 +01:00
Volker Lendecke
6ddfa6ae77 read_socket_with_timeout_ntstatus->read_socket_with_timeout
(This used to be commit 90554799af)
2008-02-02 11:03:22 +01:00
Volker Lendecke
5e43eeb1b6 Get rid of read_socket_with_timeout
(This used to be commit f9c8ac83ff)
2008-02-02 11:03:22 +01:00
Volker Lendecke
9f6e983d0b Convert read_smb_length to return NTSTATUS
(This used to be commit 5750c3a51b)
2008-02-02 11:03:21 +01:00
Volker Lendecke
0afbfa4284 Convert read_smb_length_return_keepalive to return NTSTATUS
(This used to be commit 73a79a957a)
2008-02-02 11:03:21 +01:00
Volker Lendecke
3e5b98555b Convert read_smb_length_return_keepalive to read_socket_with_timeout_ntstatus
(This used to be commit 59e8f22f36)
2008-02-02 11:03:21 +01:00
Volker Lendecke
3f970f91c2 Add read_socket_with_timeout_ntstatus
(This used to be commit 546ca0414a)
2008-02-02 11:03:21 +01:00
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
Günther Deschner
86dfb55ffb Correct netapi header filename. Thanks Jeremy.
Guenther
(This used to be commit f192737ec8)
2007-12-22 00:03:15 +01:00
Jeremy Allison
0c3f431aba Fix initialization warnings.
Jeremy.
(This used to be commit 832c093830)
2007-12-21 12:11:23 -08:00
Gerald (Jerry) Carter
387288e950 Compile fix: Correct use of wbcDomainInfo() after function signature change.
Also fixes a doxygen warngin about an undocumented parameter in the same
function.
(This used to be commit 290ab64e9e)
2007-12-21 13:49:19 -06:00
Gerald (Jerry) Carter
59ce7650f2 De-couple smbd from staticly linking against winbindd client files.
Implements a wrapper layer in winbind_util.c which are just stubs
if compiled --without-winbind.  When building with winbindd, it
is now required to build the libwbclient DSO first (in the Makefile)
and then either set LD_LIBRARY_PATH or /etc/ld.so.conf to pick up the
library PATH.
(This used to be commit 42787bccff)
2007-12-21 11:59:56 -06:00
Günther Deschner
657afffaae Move gtk app to the correct location. Thanks obnox!
Guenther
(This used to be commit 740a2b080d)
2007-12-21 17:29:15 +01:00
Günther Deschner
77a2e13cb1 Move libnetapi examples into subdirs.
Guenther
(This used to be commit 0c3de6f345)
2007-12-21 17:05:55 +01:00
Günther Deschner
13d159bc2d Add netdomjoin-gui (my first gui application), another libnetapi user.
Guenther
(This used to be commit cf57ade5ec)
2007-12-21 16:36:06 +01:00
Günther Deschner
f3607f85b6 Add netdomjoin cmd line tool (another libnetapi example).
Guenther
(This used to be commit c502686f09)
2007-12-21 16:08:13 +01:00
Günther Deschner
27a58bd50c Add getdc.c, a libnetapi example (incl. Makefile).
Guenther
(This used to be commit faedc78fc7)
2007-12-21 16:02:35 +01:00
Günther Deschner
eddd190921 Add basic remote NetGetDCName and NetGetAnyDCName versions to libnetapi.
Guenther
(This used to be commit 5bc49546a3)
2007-12-21 15:51:00 +01:00
Günther Deschner
d230cd8dd5 Make libnetapi_errstr use our NTSTATUS and WERROR error string macros.
Guenther
(This used to be commit e46aa35d43)
2007-12-21 15:30:29 +01:00
Günther Deschner
9518d738b1 Add error string for access denied in libnetapi.
Guenther
(This used to be commit 4df868e3c3)
2007-12-21 15:29:11 +01:00
Günther Deschner
1a30bdb506 Remove doubled cli_set_timeout calls from libnetapi.
Guenther
(This used to be commit acc5d8e784)
2007-12-21 15:29:11 +01:00
Günther Deschner
f2fe172454 Keep libnetapi_NetX calls static for now.
Guenther
(This used to be commit c255654c68)
2007-12-21 15:29:11 +01:00
Günther Deschner
5479c50c37 Merge all headers into libnetapi.h.
Guenther
(This used to be commit a2c5beda2e)
2007-12-21 15:29:11 +01:00
Günther Deschner
991112eda7 Implement NetServerSetInfo level 1005 in local mode with smbconf registry.
Guenther
(This used to be commit 15c2bc15f2)
2007-12-21 15:29:11 +01:00
Günther Deschner
721d36df83 Add NetServerGetInfo and NetServerSetInfo (for level 1005).
Guenther
(This used to be commit 1cad549f54)
2007-12-21 15:29:11 +01:00
Günther Deschner
2bed9564db Split out local and remote paths for NetGetJoinInformation.
Guenther
(This used to be commit d1e4f9dd5c)
2007-12-21 15:29:11 +01:00
Günther Deschner
af08d8be30 Add libnetapi_errstr().
Guenther
(This used to be commit 465e61a359)
2007-12-21 15:29:11 +01:00