1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-19 23:17:05 +03:00

3817 Commits

Author SHA1 Message Date
Michael Adam
94a1923462 libsmbconf: testsuite: use POPT_COMMON_SAMBA instead of POPT_COMMON_CONFIGFILE
so we can for instance set the debug level on the command line.

Michael
2008-04-10 01:28:58 +02:00
Michael Adam
8c631ac2f4 libsmbconf: testsuite: add talloc_stackframe to main().
Michael
2008-04-10 01:28:58 +02:00
Michael Adam
9f6c909f46 libsmbconf: testsuite: add support for "--configfile" option.
Michael
2008-04-10 01:28:57 +02:00
Michael Adam
bc8dc8626c libsmbconf: add testsuite to the library.
Currently only the init function is tested, more tests to come...

Michael
2008-04-10 01:28:57 +02:00
Michael Adam
ed535b6b30 libsmbconf: add talloc context to the get_includes methods.
Michael
2008-04-10 01:28:57 +02:00
Michael Adam
e86eb375d9 libsmbconf: add get_includes() and set_includes() to the API.
Includes have to get a special treatment, at least for registry.
Includes are not like other smbconf parameters: they are some kind
of metainformation. "include" has two effects when stated twice so
it can not be stored boldly into registry, since there can only be
one value named "include" in registry per key.

I will provide special handling for includes for the registry backend.

This patch provides the necessary methods in the smbconf API.

Michael
2008-04-10 01:28:57 +02:00
Michael Adam
c65575f831 libsmbconf: activate the verbatim-flag in text backend: store parameters as they come.
with verbatim == true, parameters are stored as they come from the input file,
duplicates are listed multiple times, etc.

Michael
2008-04-10 01:28:57 +02:00
Michael Adam
c68cd2477c libsmbconf: pass txt_private_data instead of only cache to do_parameter/section
in preparation of using the verbatim flag.

Michael
2008-04-10 01:28:57 +02:00
Michael Adam
2ff0b693d7 libsmbconf: load file after special initialization
otherwise verbatim parameter can have no effect.

Michael
2008-04-10 01:28:56 +02:00
Michael Adam
b9e72b402d libsmbconf: add a "verbatim" parameter to smbconf_init_txt_simple().
Michael
2008-04-10 01:28:56 +02:00
Michael Adam
b79a33eb2f libsmbconf: reformat smbconf_format_registry_value() - indentations/tabs
Michael
2008-04-10 01:28:56 +02:00
Michael Adam
4339caff09 libsmbconf: untangle assignment and test in for-loop condition.
Michael
2008-04-10 01:28:56 +02:00
Michael Adam
bc1a5bdbd3 libsmbconf: fix a comment
Michael
2008-04-10 01:28:56 +02:00
Michael Adam
2eb5a681e9 libsmbconf: search from the back when getting parameter from text backend
so we make sure to always deliver the value last read.

Michael
2008-04-10 01:28:56 +02:00
Michael Adam
25e0fd8478 libsmbconf: add smbconf_reverse_find_in_array() to find last occurence of a string.
Michael
2008-04-10 01:28:55 +02:00
Michael Adam
7af79e60a3 libsmbconf: move smbconf_find_in_array() to smbconf_util.c
Michael
2008-04-10 01:28:55 +02:00
Michael Adam
0e932a0981 libsmbconf: reorder prototypes in smbconf_private.h
Michael
2008-04-10 01:28:55 +02:00
Michael Adam
9890f43726 libsmbconf: rename smbconf_txt_find_in_array() to smbconf_find_in_array()
Michael
2008-04-10 01:28:55 +02:00
Michael Adam
e0f6a9d50c libsmbconf: move utility functions from main module to new smbconf_util.c
Michael
2008-04-10 01:28:55 +02:00
Michael Adam
5f6c730cbe charcnv: add talloc_strdup_lower() - talloc variant of strdup_lower().
Michael
2008-04-10 01:27:56 +02:00
Michael Adam
a8cedfef27 registry: add support for REG_MULTI_SZ to registry_push_value().
This enables us to fetch multi_sz values from registry...

Michael
2008-04-10 01:18:10 +02:00
Günther Deschner
7d9f64fd84 Add NetUserEnum example.
Guenther
2008-04-09 13:50:30 +02:00
Günther Deschner
6c933d0b38 Add NetUserEnum to libnetapi.
Guenther
2008-04-09 13:47:51 +02:00
Günther Deschner
3123e68bda Add Add NetUserDel example.
Guenther
2008-04-09 13:39:27 +02:00
Günther Deschner
92ba18fcd0 Add NetUserDel to libnetapi.
Guenther
2008-04-09 13:35:49 +02:00
Günther Deschner
0d79560665 Add NetUserAdd example.
Guenther
2008-04-09 13:28:30 +02:00
Günther Deschner
cb98996ed2 Add NetUserAdd to libnetapi.
Guenther
2008-04-09 13:23:09 +02:00
Jeremy Allison
5525dc5f09 Check x_fflush returns.
Jeremy.
2008-04-08 15:08:47 -07:00
Günther Deschner
aae4d91e72 Move is_valid_policy_hnd() out of net.
Guenther
2008-04-08 19:54:57 +02:00
Günther Deschner
9cfce22295 Try to use kerberos in libnetapi.
Guenther
2008-04-08 19:42:26 +02:00
Günther Deschner
0216e55fa8 Add DsGetDcName libnetapi example.
Guenther
2008-04-08 19:40:47 +02:00
Günther Deschner
27780e9841 Add DsGetDcName call to libnetapi library.
Guenther
2008-04-08 19:40:47 +02:00
Günther Deschner
922ff9d016 Fix includes in libnetapi examples common.c
Guenther
2008-04-08 19:40:47 +02:00
Günther Deschner
6f239df3f5 Use popt in libetapi example code.
Guenther
2008-04-08 14:34:30 +02:00
Günther Deschner
394bdb89ef Prefill in username in libnetapi ctx.
Guenther
2008-04-08 14:29:21 +02:00
Günther Deschner
a4e3bc2bad Restructure inner workings of libnetapi a bit.
Guenther
2008-04-08 03:08:49 +02:00
Michael Adam
04cd914a1f dbwrap: fix more "tdb_chainunlock failed" messages
TALLOC_FREE(rec) before transaction_cancel also in dbwrap_trans_delete().

Michael
2008-04-07 23:40:18 +02:00
Björn Jacke
42bc4ff7fd increase log level for this failed setsockopt call. EINVAL is a normal error on Solaris when we do this on an already resetted connection. 2008-04-07 11:49:54 +02:00
Volker Lendecke
d3c31aa36c Fix bug 5375
Thanks to Moskvin for testing
2008-04-07 10:20:39 +02:00
Günther Deschner
65b4cb20ea Use sid_array_from_info3 in lookup_usergroups_cached().
Guenther
2008-04-04 02:53:40 +02:00
Michael Adam
2a8029985f libsmbconf: move initialization of registry value down after error checks.
Michael
2008-04-03 15:43:04 +02:00
Günther Deschner
4714bae0db Some fixes for netdomjoin-gui and support for browsing/joining OUs.
Guenther
2008-04-02 11:18:10 +02:00
Günther Deschner
0058ab30de Make sure to hand down the domain name in libnetapi NetUnjoinDomain.
Guenther
2008-04-02 11:14:15 +02:00
Stefan Metzmacher
888c2802b7 account_pol: use db_open_trans()
metze
2008-04-01 14:04:23 +02:00
Stefan Metzmacher
b1d63c8c11 account_pol: use dbwrap_trans_store_uint32()
metze
2008-04-01 14:04:23 +02:00
Volker Lendecke
0b36871a0d Convert account_pol.tdb to dbwrap
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-04-01 14:04:23 +02:00
Stefan Metzmacher
d70a8e9c41 dbwrap: fix a confusing "tdb_chainunlock failed" message
Unlock before we cancel the transaction...

metze
2008-04-01 14:04:23 +02:00
Stefan Metzmacher
9e739b4c99 dbwrap: add dbwrap_trans_store_uint32()
metze
2008-04-01 14:04:23 +02:00
Volker Lendecke
2cf2684a11 Add dbwrap_trans_*_bystring
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-04-01 14:04:22 +02:00
Volker Lendecke
dead193f46 Convert dbwrap_trans_delete to NTSTATUS
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-04-01 14:04:22 +02:00