1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-20 14:03:59 +03:00

2435 Commits

Author SHA1 Message Date
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 b12edbeffee1f7d1fd971cde9189e5137ddeb35b)
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 0970369ca0cb9ae465cff40e5c75739824daf1d0)
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 8b4eac0ab186c02666693d3f007f0c98d60e0eda)
2008-04-01 00:26:32 +02:00
Volker Lendecke
7f71d1e8bd Fix a segfault (an uninitialized variable)
(This used to be commit 75eb30884a83266fd7331d8f1e3905a0245bb3d8)
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 73ead752c5ec7104ea0eed7d963dc36467c81981)
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 3250068eb980bd0489f814f702401cdc9c925a8d)
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 565a30ac3208d89de617b28f4553911484033253)
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 c61499ce02355f5969fa0475ed6e3c278995ecdb)
2008-03-27 21:55:42 +01:00
Günther Deschner
20d77db81f Minor fix for net rpc samdump.
Guenther
(This used to be commit 2f5e25be276135e9cb4cc0c44ec573d466def66e)
2008-03-27 21:04:31 +01:00
Michael Adam
65b4a93c4a net_conf: fix non-testmode import function.
Michael
(This used to be commit cd17cc745a35db8ee158f59a5fff1f0f26cf9c6e)
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 9ef9d4c4e77523d7f3cc5fdac199559896e585bd)
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 1c6b9a0ac34c4a7b4e000300db8dffdbb09fe7da)
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 5171df66eb54c9819b3b40045755f5e9b2cf36c2)
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 ab4fd03705c61114742d8438dece69b9c37c3b38)
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 e41c6650f805eaf8bb009e34468dd2d311e52858)
2008-03-26 14:55:06 +01:00
Karolin Seeger
dec89a9322 Fix usage message for 'net idmap dump'.
Karolin
(This used to be commit c967b62dd3c924419fa4a72aa2143d6bef959d18)
2008-03-25 12:00:42 +01:00
Volker Lendecke
3b9680264a Fix Coverity ID 479
(This used to be commit 70b33397ba6e18f40087fb642a1be62ee68d5f3a)
2008-03-23 18:28:23 +01:00
Volker Lendecke
7af3ebdac0 Fix Coverity ID 480
(This used to be commit 45677e8694f0e383baa65712faec6a565ec0ce5c)
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 96434d9dc7a66773e313cc128af57493dee245a1)
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 b3f6920ccb9a27fde26e889a7f1f3afaf56b784f)
2008-03-21 02:25:56 +01:00
Michael Adam
23b1d721b8 libsmbconf: rename smbconf_close() to smbconf_shutdown().
Michael
(This used to be commit 797b26ad3fad27e085827efb61f6b4d8b37e93f0)
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 d7bd9bb8aa2003ec0a9860df26857f67255febe2)
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 304dba6cb2184437f3edad065a530d03fb704036)
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 2860ae2eb2cb99b4febb352f516b3fa9fbd2abbb)
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 b5291d477381521cd4b71674616f8c9899007002)
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 098380760d20bad2a45c3b12ab2a5e4d2b856175)
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 e9c56250eb7a2dc4e69962c5b48875834941ccfc)
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 af12b24c4f5e3b77d482a011b62a5a3e13be7d67)
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 0567f506986746173d67172cb610c10bacf0ceb9)
2008-03-18 15:52:45 +01:00
Michael Adam
010669351a testparm: fix irritating indentation.
Michael
(This used to be commit a74f07243d80294167766dfc6bcad02a96afc079)
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 041163551194102ca67fef52c57d87020a1d09bc)

Michael
(This used to be commit 46a021f27c60dc579c9193606997142f5cbeba9e)
2008-03-18 15:52:45 +01:00
Volker Lendecke
c5356479c1 Some simplifications
(This used to be commit b59b436997fba47afd02ffb6f1194dfaef229d44)
2008-03-17 21:10:16 +01:00
Marc VanHeyningen
e06aa46b9f Coverity fixes
(This used to be commit 3fc85d22590550f0539215d020e4411bf5b14363)
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 097af0309d7c3e9342058ba5266667293b23c80d)
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 065938ccb7bb0052746267c433637f0e05b95d85)
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 f5e26d28be6581149bed0b599c38b82d1a44444e)
2008-03-17 14:56:45 +01:00
Günther Deschner
0bdba8d59a Fix typo.
Guenther
(This used to be commit e12721f73db72b99aa0e4be35c51aa8636eb3f59)
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 50cab87d3ee6d701dd8847f4e0a058f5e2d80e0f)
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 348af272f7c0dc0cb316cc06780339dd13eafd0f)
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 3b21ee37388627c47177f79c16f003da06e8fdd9)
2008-03-10 16:19:25 +01:00
Günther Deschner
758ceaaaaf Use rpccli_srvsvc_NetShareAdd in net.
Guenther
(This used to be commit 6686d97617cc0a630ea1ab1c30f741943f151db6)
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 2ce76ce2bccefb4a072bed039a4837ae334dea55)
2008-03-10 05:17:09 +01:00
Günther Deschner
d09f0d281c Use rpccli_srvsvc_NetShareEnumAll in smbtree.
Guenther
(This used to be commit 0cf761f604975930f38213233e4bbf48d7ae7283)
2008-03-10 05:05:37 +01:00
Charles
ad7c3455ff Fix return code.
(This used to be commit 98b643366044f471ad69c9e5aac06022f30742d9)
2008-03-09 19:52:29 +01:00
Charles
5b8823e49a smbget: Make global variables static.
(This used to be commit c430b7831d5dc6f81cfd18ee2bf24bc3f276fe5d)
2008-03-09 13:50:56 +01:00
Günther Deschner
8e1fe6379d Use rpccli_srvsvc_NetShareDel in net.
Guenther
(This used to be commit 10d457152e8547646353f0f37f51ac92561505ef)
2008-03-07 23:51:34 +01:00
Günther Deschner
5259a7a808 Enable libnetjoin debugging for now but avoid printing passwords.
The gen_ndr needs proper fixing still.

Guenther
(This used to be commit 966d7244d7765d285a7026b97e6093fd1f8d83ce)
2008-03-07 18:31:13 +01:00
Jelmer Vernooij
63036a6f33 Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
(This used to be commit 3482cd9b0e81bbc801f1cec33fca82fc45a3ddef)
2008-03-05 19:42:15 +01:00
Jelmer Vernooij
d41d580c60 Fix formatting.
(This used to be commit e2345ce90c3f1548f63d720c5943c8d61fdc899a)
2008-03-05 17:30:18 +01:00
Charles
a7af17ef80 Add --update option to smbget.
(This used to be commit 3cfa35fca64b059b307668ca0113503679e0b1fa)
2008-03-05 15:20:29 +01:00