1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

26438 Commits

Author SHA1 Message Date
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
Günther Deschner
fe1a6668c8 Add error mapping for WERR_SERVICE_NEVER_STARTED.
Guenther
(This used to be commit 818044d877)
2008-03-20 00:54:20 +01:00
Günther Deschner
e3731bd148 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
(This used to be commit dbc7237a8a)
2008-03-20 00:54:20 +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
Michael Adam
bb1b4403b4 libreplace: replace.c does not need system/network.h anymore.
Michael
(cherry picked from commit 2d3c2f34f3)
(This used to be commit 03a980d8f6)
2008-03-19 22:40:45 +01:00
Michael Adam
b57d67c406 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)
(This used to be commit 6c53753246)
2008-03-19 22:40:45 +01:00
Volker Lendecke
b2ec8372ba !NT_STATUS_IS_OK != NT_STATUS_IS_ERR
When reading from a pipe, Windows return STATUS_BUFFER_OVERFLOW which is *not*
an error.
(This used to be commit 24018d882d)
2008-03-19 22:38:13 +01:00
Volker Lendecke
31c83b7505 Fix a warning
(This used to be commit c40648ea4d)
2008-03-19 17:04:50 +01:00
Volker Lendecke
ca63c6e079 Merge dd9e0bea31751 from 3-0-ctdb -- use NetSamLogonEx when possible
NetSamLogonEx has the advantage that it does not use the credential chain
(This used to be commit cfceb063f5)
2008-03-19 17:00:53 +01:00
Volker Lendecke
bf10e7f939 Fix some "nexted extern" warnins
(This used to be commit 32fc759d94)
2008-03-19 16:23:28 +01:00
Volker Lendecke
130b474e47 Fix bug 5338 -- thanks to Yuya Katayama <yuya999@gmail.com>
(This used to be commit 5ec2dbd144)
2008-03-19 15:05:30 +01:00
Günther Deschner
56c97115ec Fix the build (by calling NDR_SRVSVC_NETFILEENUM).
Guenther
(This used to be commit 3b1f3d8a6c)
2008-03-19 02:47:22 +01:00
Günther Deschner
a307107c3c Remove unused marshalling for SRV_NET_FILE_ENUM.
Guenther
(This used to be commit fcdc096745)
2008-03-19 02:18:51 +01:00
Günther Deschner
63a6acdfa8 Use pidl for _srvsvc_NetFileEnum.
Guenther
(This used to be commit 6c6700ed71)
2008-03-19 02:18:46 +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
Andrew Tridgell
f152fe2103 [samba-3-0-ctdb.tridge @ tridge@samba.org-20070602053809-kpw5kjkcyjs8yjbl]
suppress that darn message
(cherry picked from commit 542e46a21898f6fcc8a0aeb63925607a60e0b99f)
(This used to be commit 5e8c624c9c)
2008-03-18 17:12:08 +01:00
Michael Adam
d8b6902c24 libreplace: remove duplicate entry of inet_ntoa from README.
Michael
(cherry picked from commit 98ee8c8430)
(This used to be commit a4f22d6e2b)
2008-03-18 16:45:20 +01:00
Michael Adam
e88e6568e4 libreplace: remove trailing white spaces.
Michael
(cherry picked from commit 1f9ca7eed9)
(This used to be commit a1d24f110b)
2008-03-18 16:45:10 +01:00
Michael Adam
5c73dabd49 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)
(This used to be commit edcf2712bc)
2008-03-18 16:44:59 +01:00
Michael Adam
a4d7cbcb2f libreplace: put inet_aton.c under LGPL instead of GPL.
Michael
(cherry picked from commit cca5d6626f)
(This used to be commit f69e51f56f)
2008-03-18 16:35:46 +01:00
Stefan Metzmacher
32b756258c libreplace: remove unused SOCKET_LIBS and NSL_LIBS
metze
(cherry picked from commit 62bb177a6e)
(This used to be commit f27d5e0cf8)
2008-03-18 16:34:12 +01:00
Stefan Metzmacher
ecf70c9a54 libreplace: for samba4 create LIBREPLACE_NETWORK as EXT_LIB
metze
(cherry picked from commit 79037c3133)
(This used to be commit b141fce01d)
2008-03-18 16:34:12 +01:00
Stefan Metzmacher
aa42e5ecac libreplace: use LIBREPLACE_NETWORK_LIBS within some configure checks
...instead of using SOCKET_LIBS and NSL_LIBS.

metze
(cherry picked from commit cef2e8d748)
(This used to be commit 7854ed24a5)
2008-03-18 16:34:12 +01:00
Stefan Metzmacher
0a80f6bfb4 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)
(This used to be commit 2dee62ed12)
2008-03-18 16:34:12 +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
16cbc22a99 Fix bug 5334
I did not test with a zero length file :-)
(This used to be commit 7d7a73944c)
2008-03-18 13:49:46 +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
Michael Adam
670418c116 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
(This used to be commit 5315ef41f4)
2008-03-17 18:03:02 +01:00
Stefan Metzmacher
8e308b64c0 socket_wrapper: make pcap code more portable
Now the pcap support works on x86_64.

metze
(cherry picked from commit 61a87bed61)
(This used to be commit c22204aa85)
2008-03-17 16:41:02 +01:00
Derrell Lipman
8b0783072a 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
(This used to be commit 38eab68dfb)
2008-03-17 11:34:25 -04: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
1709954933 Merge leftovers of 0e1a86bc845 in 3-0-ctdb
(This used to be commit 64b1625f8e)
2008-03-17 14:56:45 +01:00
Volker Lendecke
3c02b180d0 Use right control to attach to persistent databases
This is a merge of 2a8f8b26f08ab09c34dff82417e541d8eb1ec91c and
4e6508dfee0d872a7fa42c9e58ba565137a27b3f from 3-0-ctdb
(This used to be commit 46e50da0d5)
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
Michael Adam
6a2a76bc92 registry: untangle assignment and if-clause in init_registry_data().
Michael
(This used to be commit 64664d25cf)
2008-03-17 13:12:47 +01:00
Volker Lendecke
88ee949777 Convert pdb_tdb to use dbwrap
(This used to be commit 948ab77863)
2008-03-17 11:51:50 +01:00
Michael Adam
cc2e3f180b registry: convert regdb REGISTRY_OPS to named struct initializers.
Michael
(This used to be commit 3ea0a0beb4)
2008-03-17 08:22:33 +01:00
Michael Adam
9741e07140 registry: use talloc instead of malloc and provide common exit point
in regdb_get_secdesc().

Michael
(This used to be commit df848d8eee)
2008-03-17 08:22:33 +01:00
Michael Adam
647432a40c registry: remove an unused variable from regdb_set_secdesc().
Michael
(This used to be commit 76dad05e4c)
2008-03-17 08:22:33 +01:00
Michael Adam
18a407de8c registry: untangle assignments and if statements in regdb_set_secdesc().
Michael
(This used to be commit d553b5d725)
2008-03-17 08:22:33 +01:00
Michael Adam
40e6ec16ee registry: use talloc_stackframe instead of hand crafted temporary context.
Michael
(This used to be commit e4f2c856ec)
2008-03-17 08:22:33 +01:00
Michael Adam
2ce3d4b918 registry: use talloc instead of malloc for tdb data in regdb_store_values().
Michael
(This used to be commit 860316cbe7)
2008-03-17 08:22:33 +01:00
Michael Adam
ae7f7e44ff 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
(This used to be commit 7454e426f2)
2008-03-17 08:22:33 +01:00
Michael Adam
ecd7479be2 registry: don't leak to talloc stack in regdb_fetch_keys().
Michael
(This used to be commit 3a1d79116b)
2008-03-17 08:22:33 +01:00