Günther Deschner
4e36657275
Move MAX.*ENTRY definitions out of old rpc srvsvc parsing code.
...
Guenther
2008-03-21 04:16:21 +01:00
Günther Deschner
54554683d6
Remove unused marshalling for SRV_NET_SESS_ENUM.
...
Guenther
2008-03-21 04:16:21 +01:00
Günther Deschner
5d14938b14
Use pidl for _srvsvc_NetSessEnum().
...
Guenther
2008-03-21 04:16:21 +01:00
Günther Deschner
a01588d65f
Add support for setting resume handle in netsessenum rpcclient command.
...
Guenther
2008-03-21 04:16:21 +01:00
Günther Deschner
51467443f7
Remove unused marshalling for SRV_NET_CONN_ENUM.
...
Guenther
2008-03-21 04:16:21 +01:00
Günther Deschner
b8714e03e7
Use pidl for _srvsvc_NetConnEnum().
...
Guenther
2008-03-21 04:16:21 +01:00
Günther Deschner
f1b93c24fe
Allow to set or unset resume_handle in netconnenum in rpcclient.
...
Guenther
2008-03-21 04:16:21 +01:00
Michael Adam
1a5e5bf38f
libsmbconf: reformaat - fix some whispacing/tabs
...
Michael
2008-03-21 02:29:09 +01:00
Michael Adam
b3f6920ccb
libsmbconf: add backend specific init function.
...
Hide generic init function taking smbconf_ops argument
from public api.
Michael
2008-03-21 02:25:56 +01:00
Michael Adam
acbd1f40e0
libsmbconf: add shutdown handler to smbconf_ops.
...
Michael
2008-03-21 02:25:56 +01:00
Michael Adam
24f32d9bd9
libsmbconf: fix comments
...
Michael
2008-03-21 02:25:56 +01:00
Michael Adam
797b26ad3f
libsmbconf: rename smbconf_close() to smbconf_shutdown().
...
Michael
2008-03-21 02:25:56 +01:00
Michael Adam
d7bd9bb8aa
libsmbconf: rename smbconf_open() to smbconf_init().
...
That's more appropriate.
Michael
2008-03-21 02:25:56 +01:00
Michael Adam
77dbdf82ef
libsmbconf: add open and close operations to the smbconf_ops.
...
Note: currently, reg_init_smbconf opens the registry, but does
not close it. This has to be changed. so that it is closed.
And then libsmbconf will need these open/close functions
Michael
2008-03-21 02:25:56 +01:00
Michael Adam
a857f643d1
libsmbconf: introduce a smbconf_ops layer to allow interchangeable backends.
...
Michael
2008-03-21 02:25:56 +01:00
Michael Adam
f2d605006c
libsmbconf: move smbconf_reg_initialize() down to the smbconf operations.
...
Michael
2008-03-21 02:25:56 +01:00
Michael Adam
d44c2ef0b7
libsmbconf: add existence check for service to smbconf_delete_share().
...
Michael
2008-03-21 02:25:56 +01:00
Michael Adam
26208d3e96
libsmbconf: add existence check for service to smbconf_get_share().
...
Michael
2008-03-21 02:25:56 +01:00
Michael Adam
5dac66c82a
libsmbconf: add check for NULL servicename to smbconf_share_exists().
...
Michael
2008-03-21 02:25:56 +01:00
Michael Adam
103a37ac8e
libsmbconf: fix a comment
2008-03-21 02:25:56 +01:00
Michael Adam
9448a7a298
libsmbconf: refactor out registry implementation of smbconf operations.
...
This leaves most of the api functions mere wrappers except for some
common initial checks.
Michael
2008-03-21 02:25:55 +01:00
Michael Adam
aeaf66c064
libsmbconf: refactor autocreation of [global] into a helper function.
...
Michael
2008-03-21 02:25:55 +01:00
Michael Adam
a99ee5e536
libsmbconf: put the smbconf context struct into a private header.
...
Michael
2008-03-21 02:25:55 +01:00
Michael Adam
304dba6cb2
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
2008-03-21 02:25:55 +01:00
Michael Adam
7460697ea4
libsmbconf: fix indentation.
...
Michael
2008-03-21 02:25:55 +01:00
Michael Adam
5b6b90900a
libsmbconf: change smbconf_get_seqnum() to smbconf_changed().
...
The former seqnum is hidden inside a struct smbconf_csn.
And the get_seqnum is united with a changed function that
stores the seqnum inside the given csn.
Michael
2008-03-21 02:25:55 +01:00
Michael Adam
e6b60f6cad
libsmbconf: fix a comment
...
Michael
2008-03-21 02:25:55 +01:00
Volker Lendecke
f65cb5d4b5
A level 25 setuserinfo does change the pwdlastset
2008-03-20 23:19:33 +01:00
Michael Adam
008c4bdbe5
smbd: fix session setup with security = share.
...
Broken by pstring removal in 9ed12bfc48
.
Jeremy, please check.
Thanks to Yannick Bergeron <yaberger@ca.ibm.com> for noting this.
Michael
2008-03-20 17:00:36 +01:00
Volker Lendecke
4cc09ec406
Fix an uninitialized variable warning
2008-03-20 16:54:05 +01:00
root
ddc989886d
Port 3c1f1f0797e from 3-0-ctdb
...
We need to inform ctdb about the client's TCP connection so that after a fail
over ctdbd can trigger the client to reconnect very quickly
2008-03-20 16:54:05 +01:00
Volker Lendecke
df574fd2ee
Fix some warnings in the tsmsm module
...
Alexander, please check!
2008-03-20 16:54:05 +01:00
Michael Adam
7dc64d1021
loadparm: reenable checking files for updates while in registry configuration.
...
This is necessary now that includes (to files) are enabled from registry.
Michael
2008-03-20 15:01:52 +01:00
Michael Adam
5c3f14e02f
loadparm: remove unneeded include.
...
libnet.h unneeded after separation of libsmbconf from libnet.
Michael
2008-03-20 15:01:52 +01:00
Michael Adam
6bac03a2ec
registry: use available string constant in debug statement.
...
Michael
2008-03-20 15:01:52 +01:00
Michael Adam
27d67365ad
registry: in regdb_init, not only complain about INFO/version, store it...
...
Michael
2008-03-20 15:01:52 +01:00
Michael Adam
11da885f1e
registry: reformat regdb_init() slightly, breaking long lines.
...
Michael
2008-03-20 15:01:52 +01:00
Michael Adam
504058df97
registry: untangle assignment and if-statement in regdb_init().
...
Michael
2008-03-20 15:01:52 +01:00
Michael Adam
59fdd30c78
registry: separate initialization of registry data from regdb_init().
...
Leave this to the users (currently registry_init_smbconf() and
init_registry()) to initialize as much of preliminary registry data
as needed.
Michael
2008-03-20 15:01:52 +01:00
Michael Adam
8b9cff84d5
registry: add a transaction wrapper to init_registry_key_internal().
...
Michael
2008-03-20 15:01:52 +01:00
Michael Adam
55233f875e
registry: refactor creation of subkeys out of init_registry_data().
...
Michael
2008-03-20 15:01:51 +01:00
Günther Deschner
5838d81346
Remove unused marshalling for SVCCTL_ENUM_DEPENDENT_SERVICES.
...
Guenther
2008-03-20 01:40:04 +01:00
Günther Deschner
988291a9c0
Use pidl for _svcctl_EnumDependentServicesW().
...
Guenther
2008-03-20 01:38:23 +01:00
Günther Deschner
fe7203090c
Re-run make idl.
...
Guenther
2008-03-20 01:35:58 +01:00
Günther Deschner
46bfded43d
Fix IDL for svcctl_EnumDependentServicesW().
...
Guenther
2008-03-20 01:32:20 +01:00
Günther Deschner
2860ae2eb2
Move svc_status_string() out of rpc_client/cli_svcctl.c
...
Guenther
2008-03-20 01:26:37 +01:00
Günther Deschner
b5291d4773
No need to compose CLI_SERVER_NAME_SLASH in "net rpc service" anymore.
...
Guenther
2008-03-20 01:24:55 +01:00
Günther Deschner
818044d877
Add error mapping for WERR_SERVICE_NEVER_STARTED.
...
Guenther
2008-03-20 00:54:20 +01:00
Günther Deschner
dbc7237a8a
Fix crash bug in check_sam_security() when make_server_info_sam() did a
...
talloc_steal and talloc_free on the sam account already.
Guenther
2008-03-20 00:54:20 +01:00
Kai Blin
098380760d
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.
2008-03-19 23:49:43 +01:00
Michael Adam
03a980d8f6
libreplace: replace.c does not need system/network.h anymore.
...
Michael
(cherry picked from commit 2d3c2f34f3
)
2008-03-19 22:40:45 +01:00
Michael Adam
6c53753246
libreplace: move rep_socketpair() to its own module.
...
Prototype is now in system/network.h,
implementation in socketpair.c, and
check in socketpair.m4.
Now the last networking function has vanished from replace.c.
Michael
(cherry picked from commit 94ac8a25be
)
2008-03-19 22:40:45 +01:00
Volker Lendecke
24018d882d
!NT_STATUS_IS_OK != NT_STATUS_IS_ERR
...
When reading from a pipe, Windows return STATUS_BUFFER_OVERFLOW which is *not*
an error.
2008-03-19 22:38:13 +01:00
Volker Lendecke
c40648ea4d
Fix a warning
2008-03-19 17:04:50 +01:00
Volker Lendecke
cfceb063f5
Merge dd9e0bea31751 from 3-0-ctdb -- use NetSamLogonEx when possible
...
NetSamLogonEx has the advantage that it does not use the credential chain
2008-03-19 17:00:53 +01:00
Volker Lendecke
32fc759d94
Fix some "nexted extern" warnins
2008-03-19 16:23:28 +01:00
Volker Lendecke
5ec2dbd144
Fix bug 5338 -- thanks to Yuya Katayama <yuya999@gmail.com>
2008-03-19 15:05:30 +01:00
Günther Deschner
3b1f3d8a6c
Fix the build (by calling NDR_SRVSVC_NETFILEENUM).
...
Guenther
2008-03-19 02:47:22 +01:00
Günther Deschner
fcdc096745
Remove unused marshalling for SRV_NET_FILE_ENUM.
...
Guenther
2008-03-19 02:18:51 +01:00
Günther Deschner
6c6700ed71
Use pidl for _srvsvc_NetFileEnum.
...
Guenther
2008-03-19 02:18:46 +01:00
Günther Deschner
e9c56250eb
Bind Group Policy processing closer to the samba registry.
...
Guenther
2008-03-18 21:31:24 +01:00
Andrew Tridgell
5e8c624c9c
[samba-3-0-ctdb.tridge @ tridge@samba.org-20070602053809-kpw5kjkcyjs8yjbl]
...
suppress that darn message
(cherry picked from commit 542e46a21898f6fcc8a0aeb63925607a60e0b99f)
2008-03-18 17:12:08 +01:00
Michael Adam
a4f22d6e2b
libreplace: remove duplicate entry of inet_ntoa from README.
...
Michael
(cherry picked from commit 98ee8c8430
)
2008-03-18 16:45:20 +01:00
Michael Adam
a1d24f110b
libreplace: remove trailing white spaces.
...
Michael
(cherry picked from commit 1f9ca7eed9
)
2008-03-18 16:45:10 +01:00
Michael Adam
edcf2712bc
libreplace: replace inet_ntoa() when it is missing
...
...not only replace it when it is broken.
This moves the defintion of rep_inet_ntoa from replace.c
to inet_ntoa.c and adds configure checks for existence
of inet_ntoa(). Checks are moved to an include file of its own.
NOTE: The original rep_inet_ntoa in replace.c was wrapped
into a "#ifndef WITH_PTHREADS" but the prototype in replace.h
and the define in system/network.h were not. I removed that
ifndef since the inet_ntoa() function is usually not thread safe
anyways, since it returns a pointer to a static buffer.
So whoever calls inet_ntoa() should be aware that it is not
thread safe anyways.
Michael
(cherry picked from commit 974c0c45ad
)
2008-03-18 16:44:59 +01:00
Michael Adam
f69e51f56f
libreplace: put inet_aton.c under LGPL instead of GPL.
...
Michael
(cherry picked from commit cca5d6626f
)
2008-03-18 16:35:46 +01:00
Stefan Metzmacher
f27d5e0cf8
libreplace: remove unused SOCKET_LIBS and NSL_LIBS
...
metze
(cherry picked from commit 62bb177a6e
)
2008-03-18 16:34:12 +01:00
Stefan Metzmacher
b141fce01d
libreplace: for samba4 create LIBREPLACE_NETWORK as EXT_LIB
...
metze
(cherry picked from commit 79037c3133
)
2008-03-18 16:34:12 +01:00
Stefan Metzmacher
7854ed24a5
libreplace: use LIBREPLACE_NETWORK_LIBS within some configure checks
...
...instead of using SOCKET_LIBS and NSL_LIBS.
metze
(cherry picked from commit cef2e8d748
)
2008-03-18 16:34:12 +01:00
Stefan Metzmacher
2dee62ed12
libreplace: combine SOCKET_LIBS and NSL_LIBS to LIBREPLACE_NETWORK_LIBS
...
But keep the old ones untill the callers are fixed.
metze
(cherry picked from commit e7115dcc8a
)
2008-03-18 16:34:12 +01:00
Michael Adam
af12b24c4f
testparm: only check for %u und passwd program when passwd program is given.
...
Michael
2008-03-18 15:52:45 +01:00
Michael Adam
0567f50698
testparm: correctly check for empty lp_passwd_prog().
...
Michael
2008-03-18 15:52:45 +01:00
Michael Adam
a74f07243d
testparm: fix irritating indentation.
...
Michael
2008-03-18 15:52:45 +01:00
Michael Adam
46a021f27c
testparm: fix a segfault triggered by setting "unix password sync = yes".
...
(introduced by pstring removal 0411635511
)
Michael
2008-03-18 15:52:45 +01:00
Volker Lendecke
7d7a73944c
Fix bug 5334
...
I did not test with a zero length file :-)
2008-03-18 13:49:46 +01:00
Volker Lendecke
b59b436997
Some simplifications
2008-03-17 21:10:16 +01:00
Marc VanHeyningen
3fc85d2259
Coverity fixes
2008-03-17 20:52:25 +01:00
Michael Adam
097af0309d
libsmbconf: rename all occurrences of libnet_conf_ to smbconf_ .
...
Michael
2008-03-17 18:03:02 +01:00
Michael Adam
5315ef41f4
Move libnet_conf to a library lib/smbconf/ of its own, fixing the api.
...
The libnet_conf code to access the registry based configuration has
become more of a library used in several places in samba (e.g. loadparm)
than an abstraction of "net conf". So I move it to a location lib/smbconf/.
In the same breath, the api is fixed (not generated by make proto anymore).
Michael
2008-03-17 18:03:02 +01:00
Stefan Metzmacher
c22204aa85
socket_wrapper: make pcap code more portable
...
Now the pcap support works on x86_64.
metze
(cherry picked from commit 61a87bed61
)
2008-03-17 16:41:02 +01:00
Derrell Lipman
38eab68dfb
Fix use of AuthDataWithContext capability
...
During my initial plans for, and the subsequent discussion of a more
significant change to the API for libsmbclient, I had removed the
AuthDataWithContext usage, in favor of a more generalized planned interface.
When the API returned to its original state, I neglected to reinsert this
code.
Use of an authentication function with the context can be tested using
examples/libsmbclient/testbrowse -C
Derrell
2008-03-17 11:34:25 -04:00
Volker Lendecke
065938ccb7
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
2008-03-17 14:56:45 +01:00
Volker Lendecke
64b1625f8e
Merge leftovers of 0e1a86bc845 in 3-0-ctdb
2008-03-17 14:56:45 +01:00
Volker Lendecke
46e50da0d5
Use right control to attach to persistent databases
...
This is a merge of 2a8f8b26f08ab09c34dff82417e541d8eb1ec91c and
4e6508dfee0d872a7fa42c9e58ba565137a27b3f from 3-0-ctdb
2008-03-17 14:56:45 +01:00
Volker Lendecke
f5e26d28be
Add "net idmap aclmapset"
...
This is a merge from 3-0-ctdb that goes along with 1daad835
, the option
nfs4:sidmap option
2008-03-17 14:56:45 +01:00
Michael Adam
64664d25cf
registry: untangle assignment and if-clause in init_registry_data().
...
Michael
2008-03-17 13:12:47 +01:00
Volker Lendecke
948ab77863
Convert pdb_tdb to use dbwrap
2008-03-17 11:51:50 +01:00
Michael Adam
3ea0a0beb4
registry: convert regdb REGISTRY_OPS to named struct initializers.
...
Michael
2008-03-17 08:22:33 +01:00
Michael Adam
df848d8eee
registry: use talloc instead of malloc and provide common exit point
...
in regdb_get_secdesc().
Michael
2008-03-17 08:22:33 +01:00
Michael Adam
76dad05e4c
registry: remove an unused variable from regdb_set_secdesc().
...
Michael
2008-03-17 08:22:33 +01:00
Michael Adam
d553b5d725
registry: untangle assignments and if statements in regdb_set_secdesc().
...
Michael
2008-03-17 08:22:33 +01:00
Michael Adam
e4f2c856ec
registry: use talloc_stackframe instead of hand crafted temporary context.
...
Michael
2008-03-17 08:22:33 +01:00
Michael Adam
860316cbe7
registry: use talloc instead of malloc for tdb data in regdb_store_values().
...
Michael
2008-03-17 08:22:33 +01:00
Michael Adam
7454e426f2
registry: don't use talloc_stackframe() instead of talloc_tos() als temp ctx
...
in regdb_store_values(). Also provide common exit path for
freeing memory.
Michael
2008-03-17 08:22:33 +01:00
Michael Adam
3a1d79116b
registry: don't leak to talloc stack in regdb_fetch_keys().
...
Michael
2008-03-17 08:22:33 +01:00
Michael Adam
93ea27a3e2
registry: explicitly use talloc context instead of talloc_tos()
...
in regdb_fetch_keys().
Michael
2008-03-17 08:22:33 +01:00
Michael Adam
331d7fd2ea
registry: don't leak on success path in regdb_store_keys().
...
Michael
2008-03-17 08:22:33 +01:00
Michael Adam
a99b51159a
registry: allocate tempory data in talloc stack in regdb_store_keys().
...
Michael
2008-03-17 08:22:33 +01:00
Michael Adam
e1d4a2fa5b
registry: separate cancel and failur exit paths in regdb_store_keys().
...
Michael
2008-03-17 08:22:33 +01:00
Michael Adam
9315de4048
registry: don't leak memory on transaction fail in regdb_store_keys().
...
Michael
2008-03-17 08:22:33 +01:00