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

2343 Commits

Author SHA1 Message Date
Volker Lendecke
abe1431ad3 Remove external refs to winbindd_fd
(This used to be commit 18bf2b2028)
2008-04-06 12:27:08 +02:00
Michael Adam
0000eeb9b8 net_rpc_registry: return available error code on failure in deletevalue.
Michael
(This used to be commit 0dc9840cef)
2008-04-04 17:52:35 +02:00
Michael Adam
c7aa3dd3c0 net_rpc_registry: consistently return error upon wrong use.
Michael
(This used to be commit 26e3d71cd0)
2008-04-04 17:50:41 +02:00
Michael Adam
ae790f9b89 net: change split_hive_key() to properly allocate subkeyname
instead of returning a pointer into another string.

Michael
(This used to be commit 68d08ecf92)
2008-04-04 17:24:53 +02:00
Michael Adam
65088387c0 net_rpc_registry: use split_hive_key to normalize hive befor open.
THis allows to specify keys in the form "HKLM/Software/samba",
i.e. "/" instead of "\\".

Michael
(This used to be commit 61d09caef3)
2008-04-04 17:05:00 +02:00
Michael Adam
0bd2ac7130 net_rpc_registry: use utility function print_registry_value().
Michael
(This used to be commit 3d039b518f)
2008-04-04 17:05:00 +02:00
Michael Adam
2ce236cbaf net_rpc_registy: use function print_registry_key
Michael
(This used to be commit cc1da3ee2c)
2008-04-04 17:05:00 +02:00
Michael Adam
06466de5e9 net_registry: split utility function of common interest out into util module.
Michael
(This used to be commit 3bf890783f)
2008-04-04 17:05:00 +02:00
Günther Deschner
832adaa5ab Fix "net rpc trustdom establish" for win2k8 trusts.
When establishing trusts to a windows 2008 dc, the NetServerEnum2 RAP call fails
with some exotic RAP failure. Let's just try a netlogon getdcname call in
that case to convince ourselve we're talking to a proper machine.

Rafael, looks ok?

Guenther
(This used to be commit b12edbeffe)
2008-04-02 12:29:24 +02:00
Günther Deschner
99d3590455 Fix NETLOGON credential chain with Windows 2008 all over the place.
In order to avoid receiving NT_STATUS_DOWNGRADE_DETECTED from a w2k8
netr_ServerAuthenticate2 reply, we need to start with the AD netlogon negotiate
flags everywhere (not only when running in security=ads). Only for NT4 we need
to do a downgrade to the returned negotiate flags.

Tested with w2k8, w2ksp4, w2k3r2 and nt4sp6.

Guenther
(This used to be commit 0970369ca0)
2008-04-02 11:12:47 +02:00
Günther Deschner
003472ae23 Fix SRVSVC NetShareInfo level 502 client-side.
Guenther
(This used to be commit 8b4eac0ab1)
2008-04-01 00:26:32 +02:00
Volker Lendecke
7f71d1e8bd Fix a segfault (an uninitialized variable)
(This used to be commit 75eb30884a)
2008-03-29 13:28:37 +01:00
Günther Deschner
9e328fe942 Zero initial return_authenticator in net rpc samdump.
Guenther
(This used to be commit 73ead752c5)
2008-03-29 00:49:09 +01:00
Michael Adam
fb6fb69966 net: add a "net registry" subcommand to locally access the registry.
The interface is like that of net rpc registry.
Access is direct local access to the registry tdb through reg_api.

Michael
(This used to be commit 3250068eb9)
2008-03-28 16:19:35 +01:00
Günther Deschner
fae5873cad Fix blob used in pull_netr_AcctLockStr().
Thanks metze.

Guenther
(This used to be commit 565a30ac32)
2008-03-28 09:59:01 +01:00
Günther Deschner
3d62b269c5 Re-add support for display and vampire of account policies in "net".
Guenther
(This used to be commit c61499ce02)
2008-03-27 21:55:42 +01:00
Günther Deschner
20d77db81f Minor fix for net rpc samdump.
Guenther
(This used to be commit 2f5e25be27)
2008-03-27 21:04:31 +01:00
Michael Adam
65b4a93c4a net_conf: fix non-testmode import function.
Michael
(This used to be commit cd17cc745a)
2008-03-27 00:32:09 +01:00
Michael Adam
0bdcc557ee net_conf: reformat - re-indent one function call.
Michael
(This used to be commit 9ef9d4c4e7)
2008-03-26 14:55:06 +01:00
Michael Adam
3253cffced net_conf: add casts to avoid compiler warnings.
Michael
(This used to be commit 1c6b9a0ac3)
2008-03-26 14:55:06 +01:00
Michael Adam
0234cc8bdd net_conf: rename "ctx" to "mem_ctx" for clarity.
There are also smbconf contexts arount...

Michael
(This used to be commit 5171df66eb)
2008-03-26 14:55:06 +01:00
Michael Adam
c2acc30bcb net_conf: use talloc_stackframe() instead of talloc_init().
Michael
(This used to be commit ab4fd03705)
2008-03-26 14:55:06 +01:00
Michael Adam
ca2f9297c2 net_conf: fix import function by using the new text backend of smbconf.
Originally, lp_load() was used to import files to registry.
This had several bugs. Most notably, options explicitly set to
default values were silently dropped, and all parametric options
were ignored.

This new implementation reads config from the text backend and
stuffs everything verbatim in to the registry backend.

Michael
(This used to be commit e41c6650f8)
2008-03-26 14:55:06 +01:00
Karolin Seeger
dec89a9322 Fix usage message for 'net idmap dump'.
Karolin
(This used to be commit c967b62dd3)
2008-03-25 12:00:42 +01:00
Volker Lendecke
3b9680264a Fix Coverity ID 479
(This used to be commit 70b33397ba)
2008-03-23 18:28:23 +01:00
Volker Lendecke
7af3ebdac0 Fix Coverity ID 480
(This used to be commit 45677e8694)
2008-03-23 18:28:23 +01:00
Michael Adam
6f7cfeddd6 libsmbconf: add a "path" variable to the conf context.
This is passed to the module init routines.
In case of the registry, this is the path of the
basekey in registry, that is to be used, defaulting
to KEY_SMBCONF (HKLM\software\samba\smbconf), when
NULL is given. This is the only case currently used.

In order to support other keys, registry initialization
for smbconf has to be changed to support different keys.

Michael
(This used to be commit 96434d9dc7)
2008-03-21 18:19:24 +01:00
Michael Adam
fececde181 libsmbconf: add backend specific init function.
Hide generic init function taking smbconf_ops argument
from public api.

Michael
(This used to be commit b3f6920ccb)
2008-03-21 02:25:56 +01:00
Michael Adam
23b1d721b8 libsmbconf: rename smbconf_close() to smbconf_shutdown().
Michael
(This used to be commit 797b26ad3f)
2008-03-21 02:25:56 +01:00
Michael Adam
adf5bf554c libsmbconf: rename smbconf_open() to smbconf_init().
That's more appropriate.

Michael
(This used to be commit d7bd9bb8aa)
2008-03-21 02:25:56 +01:00
Michael Adam
153ed797e6 libsmbconf: change the API to always take the smbconf_ctx parameter first.
..for consistency. Exception: the open/init function, where the smbconf_ctx
is created from the given talloc context.

Michael
(This used to be commit 304dba6cb2)
2008-03-21 02:25:55 +01:00
Günther Deschner
d8acf19987 Move svc_status_string() out of rpc_client/cli_svcctl.c
Guenther
(This used to be commit 2860ae2eb2)
2008-03-20 01:26:37 +01:00
Günther Deschner
2ee6451212 No need to compose CLI_SERVER_NAME_SLASH in "net rpc service" anymore.
Guenther
(This used to be commit b5291d4773)
2008-03-20 01:24:55 +01:00
Kai Blin
b6ab1c4061 ntlm_auth: Improve compliance to the Squid helper protocol
This fixes bug #4235.

Patch from Pawel Worach <pawel.worach@gmail.com> with some linebreaks
added by me.

Also fix one BH message that the original patch didn't fix.
(This used to be commit 098380760d)
2008-03-19 23:49:43 +01:00
Günther Deschner
e8bd75ec73 Bind Group Policy processing closer to the samba registry.
Guenther
(This used to be commit e9c56250eb)
2008-03-18 21:31:24 +01:00
Michael Adam
37e04236bb testparm: only check for %u und passwd program when passwd program is given.
Michael
(This used to be commit af12b24c4f)
2008-03-18 15:52:45 +01:00
Michael Adam
7ec398b188 testparm: correctly check for empty lp_passwd_prog().
Michael
(This used to be commit 0567f50698)
2008-03-18 15:52:45 +01:00
Michael Adam
010669351a testparm: fix irritating indentation.
Michael
(This used to be commit a74f07243d)
2008-03-18 15:52:45 +01:00
Michael Adam
6c575d114b testparm: fix a segfault triggered by setting "unix password sync = yes".
(introduced by pstring removal 0411635511)

Michael
(This used to be commit 46a021f27c)
2008-03-18 15:52:45 +01:00
Volker Lendecke
c5356479c1 Some simplifications
(This used to be commit b59b436997)
2008-03-17 21:10:16 +01:00
Marc VanHeyningen
e06aa46b9f Coverity fixes
(This used to be commit 3fc85d2259)
2008-03-17 20:52:25 +01:00
Michael Adam
6274929b1e libsmbconf: rename all occurrences of libnet_conf_ to smbconf_ .
Michael
(This used to be commit 097af0309d)
2008-03-17 18:03:02 +01:00
Volker Lendecke
3ff8a21ca3 In smbstatus, mark locking.tdb and sessionid.tdb as CLEAR_IF_FIRST
This is needed to inform ctdb that it's not a persistent database, with the
O_RDONLY the tdb backend ignores this.

Merge from 491f902098d33f in 3-0-ctdb
(This used to be commit 065938ccb7)
2008-03-17 14:56:45 +01:00
Volker Lendecke
c82e848628 Add "net idmap aclmapset"
This is a merge from 3-0-ctdb that goes along with 1daad835, the option
nfs4:sidmap option
(This used to be commit f5e26d28be)
2008-03-17 14:56:45 +01:00
Günther Deschner
0bdba8d59a Fix typo.
Guenther
(This used to be commit e12721f73d)
2008-03-15 12:56:09 +01:00
Charles
3634d98784 The attached patch removes some global variables, and make them local to main().
(This used to be commit 50cab87d3e)
2008-03-11 19:49:08 +01:00
Günther Deschner
cfa16eaca0 Use rpccli_srvsvc_NetFileEnum in net and rpcclient.
Guenther
(This used to be commit 348af272f7)
2008-03-10 17:08:55 +01:00
Günther Deschner
b7b89bf808 Convert "net" to use rpccli_srvsvc_NetShare* interfaces everywhere.
Guenther
(This used to be commit 3b21ee3738)
2008-03-10 16:19:25 +01:00
Günther Deschner
758ceaaaaf Use rpccli_srvsvc_NetShareAdd in net.
Guenther
(This used to be commit 6686d97617)
2008-03-10 14:46:27 +01:00
Günther Deschner
0f64ce0179 Use rpccli_srvsvc_NetShareGetInfo in 2 places in "net".
Guenther
(This used to be commit 2ce76ce2bc)
2008-03-10 05:17:09 +01:00