1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

3753 Commits

Author SHA1 Message Date
Volker Lendecke
cee268b5cb Make convert_samr_dispinfo_to_NET_DISPLAY() static
(This used to be commit a30a26d471a572167ee13bf10be1a275a6592851)
2008-04-20 14:08:17 +02:00
Volker Lendecke
b9cc055062 Introduce rpc_pipe_np_smb_conn()
This abstracts away all references to rpc_pipe_client->cli, the only reference
is now in cli_pipe.c.
(This used to be commit c56e1c08cef107ff33a34346ceeca3475a102b19)
2008-04-20 14:08:16 +02:00
Volker Lendecke
f56eedb95c Remove the pipe_idx variable from rpc_pipe_client
(This used to be commit 4840febcd481563c3d9b2fabc1fe1b2ae5a76cf6)
2008-04-20 11:47:33 +02:00
Volker Lendecke
2a2188591b Add "desthost" to rpc_pipe_client
This reduces the dependency on cli_state
(This used to be commit 783afab9c891dd7bcb78895b2a639b6f3a0edf5b)
2008-04-20 00:13:09 +02:00
Volker Lendecke
9ccbef219c Fix bug 5400
Thanks to Jason Mader!

Volker
(This used to be commit 87d8a63ce4e6dd91ea3193d0a2574520a5857be2)
2008-04-19 17:04:09 +02:00
Volker Lendecke
a8ab283508 Fix an uninitialized variable
(This used to be commit 825f78d9f12b5b3e835bd91961e00402cab0bf60)
2008-04-19 17:03:09 +02:00
Stefan Metzmacher
bd1b120c2d util: add reinit_after_fork() function
metze
(This used to be commit 5f6c3a4f6db68c985884cbe9401a4dbe515f756b)
2008-04-18 14:43:07 +02:00
Stefan Metzmacher
4f6089be35 messages_ctdbd: autocreate a ctdb connection, this will fix segfaults in the client tools
metze
(This used to be commit 6f67c4ddf8101b1d06889055e3767a6ce0db360c)
2008-04-18 14:43:07 +02:00
Stefan Metzmacher
b86b442a1e messages_ctdbd: make sure a ctdbd connection is only used in the process that created it
metze
(This used to be commit 259786980a3a65fa67a4de12a65d33095fa53ce2)
2008-04-18 14:43:06 +02:00
Jeremy Allison
e90b4061c1 Janitor for tridge. Keep lib/replace in sync with the gcc4
changes.
Jeremy.
(This used to be commit b496f133228b74bf613dab81167a5b9670511c51)
2008-04-18 00:30:50 -07:00
Günther Deschner
08cc63f814 libnetapi: Disable talloc_enable_leak_report.
Guenther
(This used to be commit 4ba98dd0cc13984a8dc54e4d4935487fc8938039)
2008-04-17 14:13:13 +02:00
Günther Deschner
73754b98f4 netdomjoin-gui: Fix label alignment showing up with lower screen-resolution.
Guenther
(This used to be commit e06a54aa7da857e006649469e7eb8d76711221c1)
2008-04-17 14:13:13 +02:00
Michael Adam
4a9e0e6034 libsmbconf: fix segfault in listing share names / config.
Discovered by Günther while giving a talk. - Sorry Günther!

Michael
(This used to be commit 518f4d4e6662138a2e71acc2296acedefc7c739a)
2008-04-16 22:44:04 +02:00
Gerald W. Carter
72556d4c8c Fix out of tree build. Remove the embedded srcdir path from talloc and tdb.
(This used to be commit 359921acd436684a0b4cf76ba15f82a224d2c337)
2008-04-16 15:48:00 +02:00
Günther Deschner
b105108939 libnetapi: Add initial inline doxygen comments.
Guenther
(This used to be commit 01bc4b6ac03b98c2371b4dfc0948f5ef8d06bcbc)
2008-04-16 10:14:40 +02:00
Günther Deschner
3455702721 libnetapi: Let NetUserAdd_l/NetUserDel_l talk to the local RPC server.
Guenther
(This used to be commit 9bbb6cea0b21d98ae13f7a41226b437515bd5a2f)
2008-04-16 02:38:13 +02:00
Günther Deschner
46e6bc1153 libnetapi: do not overwrite status in libnetapi_get_error_string().
Guenther
(This used to be commit 143e2b573043dd04a6404fc91d781e8a727bd092)
2008-04-16 00:15:39 +02:00
Günther Deschner
7d7283fb0e libnetapi: Add missing headers.
Guenther
(This used to be commit 3fda711f2526914bf18ec004d553453e692b1e85)
2008-04-15 22:30:06 +02:00
Michael Adam
bcaac7fa36 libmsbconf: add handling of NULL share parameters to registry backend.
Michael
(This used to be commit 6c1181fda2f040d9555917b10a65bc0dfc1f0593)
2008-04-15 17:40:28 +02:00
Michael Adam
be504b9d32 libsmbconf: don't complain with WERR_ALREADY_EXISTS for NULL share in smbconf_create_share().
These are values stored inside the base key for registry.
This is not getting deleted.

Michael
(This used to be commit aa167de8252bb615bd21fb3fd9468383b8357d32)
2008-04-15 17:40:28 +02:00
Michael Adam
747d4a8f04 libsmbconf: make sure to always list the NULL section first in text backend.
Michael
(This used to be commit b50fdf321dc8056caa2b057cbd7f83792dfbcd4d)
2008-04-15 17:40:27 +02:00
Michael Adam
34e8ec54ce libsmbconf: default to the NULL section when a parameter is encountered w/o section
Michael
(This used to be commit e1b98f1cbce72d12085d86da834f0949ecbfbf67)
2008-04-15 17:40:27 +02:00
Michael Adam
e700800720 libsmbconf: allow NULL sharename in smbconf_share_exists().
Michael
(This used to be commit cb23052b2055d77924b2a593ec14f0c1de9a3b51)
2008-04-15 17:40:27 +02:00
Michael Adam
0e7497936c libsmbconf: add handling of NULL strings to smbconf_find_in_array().
Michael
(This used to be commit a5923bafe9b543d50dca06d251186948baeac8cc)
2008-04-15 17:40:27 +02:00
Michael Adam
b396ad07d1 libsmbconf: add handling of "NULL" strings to smbconf_add_string_to_array()
Michael
(This used to be commit aba261a9143bc7ab681b1c57ccfc08da0cffcfe7)
2008-04-15 17:40:27 +02:00
Stefan Metzmacher
5a2e212c0f lib/sharesec.c: fix the upgrade code, db_traverse returns the number of records!
metze
(This used to be commit ccdebe97f85b76378e42d8cf08324228bd19cf32)
2008-04-15 00:25:27 +02:00
Volker Lendecke
fe4930b7fa Enable multiple fd events on a single file descriptor
Now we can have multiple events listen on a single fd. The order in which they
are called is naturally not defined, meaning that it is only deterministic if
exactly one event is readable or writeable.
(This used to be commit 61503f822b60f98dd1f7549707ec89b48e32caeb)
2008-04-14 13:13:47 +02:00
Volker Lendecke
313abd3ac2 Fix the build of db_open_trans with CLUSTER_SUPPORT enabled
Metze, you might want to check this.
(This used to be commit 3b4a402bc5c3490000581d43a12388883bcf8150)
2008-04-14 13:13:46 +02:00
Michael Adam
4eab3d3cf0 libsmbconf: add a smbconf init dispatcher smbconf_init().
The dispatcher takes a config source argument in the form
of "backend:path" where backend can (currently) be one of
"txt" (aka "file") or "reg" (aka "registry").

When the path is omitted, it is up to the backend to provide
a default path.

When there is no separator ":" and the string is not a recognized
backend, then file backend is assumed and the string is passed
in as the path argument.

Michael
(This used to be commit cc613a60eb0f6b92cae98e8669e5e569a1eb9324)
2008-04-13 20:04:44 +02:00
Michael Adam
09c6c38deb libsmbconf: move setting of verbatim variable into a more internal function.
Michael
(This used to be commit 9efd7b515183fa28f400fe88af63e0b0126e3e00)
2008-04-13 20:04:44 +02:00
Michael Adam
935b99c84c libsmbconf: add a check for talloc failure to smbconf_txt_init().
Michael
(This used to be commit f76ec7d87e206426c795374397ba725ecdeec784)
2008-04-13 20:04:44 +02:00
Michael Adam
35d6068f25 libsmbconf: remove the bool verbatim parameter from txt backend init function.
Always be verbatim for now. Backend config options may be added later
via some private data pointer.

Michael
(This used to be commit e8bafcfbf4a7ab1dc1ce4f2acd24b0eb74933256)
2008-04-13 20:04:43 +02:00
Michael Adam
611b6bfa3b libsmbconf: rename smbconf_init() to smbconf_init_internal().
smbconf_init should be the name of the dispatcher (to be written)

Michael
(This used to be commit 3fb95ab757650712716472ebaccb7119feb27596)
2008-04-13 20:04:43 +02:00
Günther Deschner
aea1a244ee libnetapi: add libnetapi_set_use_kerberos
Don't unconditionally set the kerberos flag for authentication.

Guenther
(This used to be commit 15bef5ae413adf278cccc0e547c4b8ccd180eca2)
2008-04-13 19:25:59 +02:00
Günther Deschner
6318088434 libnetapi: Add NetQueryDisplayInformation header.
Guenther
(This used to be commit 3c107934acc907e3eedd116b42d1d07ee0574183)
2008-04-13 19:25:59 +02:00
Günther Deschner
d0acdc9038 libnetapi: add NetQueryDisplayInformation example.
Guenther
(This used to be commit 5f9332cf1f60bb5a23a16776b95af3a83c5deb40)
2008-04-13 19:15:15 +02:00
Günther Deschner
b3367c9e35 libnetapi: fill in NetQueryDisplayInformation_r.
Guenther
(This used to be commit 7fb9991b4c54fd0b9629e47afc1e5bbc2cfc1088)
2008-04-13 19:12:31 +02:00
Günther Deschner
dcb9264edf libnetapi: don't reset the error code in NetUserAdd_r if the operation failed.
Guenther
(This used to be commit 9edb067f62b1e36f1da461b3eb09cb123d2089dd)
2008-04-13 19:11:01 +02:00
Günther Deschner
5647deccb1 libnetapi: add NetQueryDisplayInformation skeleton.
Guenther
(This used to be commit 6ec4a62b6d584f6745c3285474372f235614b598)
2008-04-13 19:04:18 +02:00
Günther Deschner
e39f02217a libnetapi: don't to try to free NULL struct.
Guenther
(This used to be commit eb33d30d80ab2fe770e248f5b2a70a83a43dd156)
2008-04-13 17:39:29 +02:00
Michael Adam
6c66d5d019 registry: change registry_init_smbconf() to return WERROR instead of bool
Michael
(This used to be commit 7c343c60574cda091f59861fbcb2893aefb564e9)
2008-04-13 15:33:48 +02:00
Michael Adam
01f4bd4f4d adt_tree: change pathtree_add to return WERR instead of bool.
Michael
(This used to be commit da45fb92f69221758f36db4cbb7d871e3ce60718)
2008-04-13 15:33:47 +02:00
Michael Adam
bcb19766d6 registry: make registry_init_smbconf() hook the registry ops onto given key.
This still defaults to HKLM\Software\Samba\smbconf, but is interchangeable now.
This allows us to open the libsmbconf registry backend on different registry keys.

Michael
(This used to be commit 8fe1a2f567afbecbe487f08825cb43b038065e99)
2008-04-13 15:33:47 +02:00
Günther Deschner
a75421b019 Fix ou handling in netdomjoin-gui.
The ou list was concatenated again and again...

Guenther
(This used to be commit 84608e165e24c68c12d40086f81684ef37f69159)
2008-04-13 00:46:33 +02:00
Michael Adam
2595377988 libnetapi: fix a C++ warning by making implicit cast explicit
Michael
(This used to be commit b62dd61cc56ec33601289fd4e23058c7f9ad3f0d)
2008-04-13 00:24:42 +02:00
Michael Adam
3aa565e790 dbwrap_tdb2: fix a C++ warning by making implicit cast explicit
Michael
(This used to be commit 18ced7e42072953a1968db15b0a344b54214b83d)
2008-04-13 00:23:58 +02:00
Stefan Metzmacher
138b58bcec dbwrap: use db_open_tdb2() in for db_open_trans() if "dbwrap:use_tdb2=yes"
For clustered setups you need to disable the ctdb backend for each
tdb which should use the tdb2 backend (e.g. ctdb:registry.tdb=no).

To disable tdb2 per tdb use something like "tdb2:passdb.tdb=no"

metze
(This used to be commit 5cea2bf3673c982bafeef4a8bbd3bd2ab73cc0c5)
2008-04-12 09:14:09 +02:00
Stefan Metzmacher
dfb181ab73 dbwrap: add dbwrap_tdb2 backend
This backend can be used untill ctdb knows about real
transactions.

It stores a master tdb in a shared location and a readonly copy
on the local harddisk. Reads are always on the local tdb
and writes always on both. Change notify messages are send
to all message context, which ask for them. With the notifies
it's possible to just update the changed records, instead of
copying all records (which is the fallback).

You need to configure:

dbwrap:use_tdb2=yes
dbwrap_tdb2:master directory=/some/shared/path
dbwrap_tdb2:local directory=/var/lib/samba

metze
(This used to be commit aa6230de0d5f1875aa8c12c4fc017d3a40f90890)
2008-04-12 09:14:09 +02:00
Stefan Metzmacher
c316c7ab73 messaging: add FLAG_MSG_DBWRAP message class flag
metze
(This used to be commit ee6325495f48bab43a37d740a6eca57192004d57)
2008-04-12 09:14:08 +02:00
Michael Adam
c890aef164 registry: move normalize_dbkey() from lib/util_reg.c to registry/reg_util.c
This function is only used inside registry code.

Michael
(This used to be commit 48745e3fbd6b38f39678938b8c3f145769065e7b)
2008-04-12 02:41:20 +02:00