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

7910 Commits

Author SHA1 Message Date
Andrew Bartlett
792951a365 r12891: We no longer manually set the 'name' attribute.
Andrew Bartlett
(This used to be commit 7b169aad3f)
2007-10-10 13:50:58 -05:00
Andrew Bartlett
992f274d2e r12887: Add the icon from samba.org to SWAT.
Andrew Bartlett
(This used to be commit 630b4b4dc5)
2007-10-10 13:50:58 -05:00
Andrew Bartlett
d790d8d6ed r12886: Rename 'secure_channel_type' parameter to domain join as 'join_type'.
Andrew Bartlett
(This used to be commit a3b3e09a9a)
2007-10-10 13:50:58 -05:00
Andrew Bartlett
f2df13958c r12883: Fix the build...
Andrew Bartlett
(This used to be commit 8f7d14048f)
2007-10-10 13:50:57 -05:00
Andrew Bartlett
e15136af9e r12882: Allow the netbios name to be specified at all times.
Andrew Bartlett
(This used to be commit f4f4dcf217)
2007-10-10 13:50:57 -05:00
Andrew Bartlett
7d90b3f802 r12881: Hard-coded defaults are silly. We have smb.conf for a reason.
Andrew Bartlett
(This used to be commit c9402f9227)
2007-10-10 13:50:57 -05:00
Simo Sorce
a7a79d2b25 r12880: Remove ldap partitions useless now and probably we
will not use it anyway as we plan to support
partitions in ldb directly like with rootdse

Merge ldap_simple_ldb into ldap_backend, it is
not simple anymore and makes no sense to have
it separated now that ldap partitions are gone

Initial attempt at working to some limit to avoid DOSs
for the ldap server.

Simo.
(This used to be commit 97bff3e049)
2007-10-10 13:50:57 -05:00
Andrew Bartlett
0ac6b5232d r12874: Try to give the startup a few more seconds, so that hosts with
gnutls-devel installed do not miss the first test.

Andrew Bartlett
(This used to be commit 6e17864c5d)
2007-10-10 13:50:57 -05:00
Andrew Bartlett
99125b6510 r12873: Fix valgrind-found uninitialised value.
Andrew Bartlett
(This used to be commit 38e8a6477a)
2007-10-10 13:50:56 -05:00
Andrew Bartlett
e0f69bf1d3 r12872: Add some more detail to debug message.
Andrew Bartlett
(This used to be commit cefba10bd5)
2007-10-10 13:50:56 -05:00
Andrew Bartlett
15421cd7a2 r12869: I have removed this hack. We now just do the lookups (netbios for now).
Andrew Bartlett
(This used to be commit 18eb3ca7cc)
2007-10-10 13:50:56 -05:00
Andrew Bartlett
2fad2c945b r12868: Remove unused code. This has moved to libcli/finddcs.c.
Andrew Bartlett
(This used to be commit a30a359c45)
2007-10-10 13:50:56 -05:00
Andrew Bartlett
67b9c16f1d r12867: Remove deleted header.
(This used to be commit a6833db4e6)
2007-10-10 13:50:56 -05:00
Andrew Bartlett
f18194edae r12866: This removes the abstraction layer in winbindd intended to deal with
multiple protocols, replacing it with the packet handling subsystem.

We don't have multiple protocols at present, and the abstraction layer
only serves to confuse matters.  Also, the new packet subsystem removes
the need to handle partial reads.

We can easily add new protocols from the socket up instead, becaue the
difficult bits are done by the packet layer.

Andrew Bartlett
(This used to be commit acf9dc8fe9)
2007-10-10 13:50:55 -05:00
Andrew Bartlett
a5a79e8b8c r12865: Upgrade the librpc and libnet code.
In librpc, always try SMB level authentication, even if trying
schannel, but allow fallback to anonymous.  This should better
function with servers that set restrict anonymous.

There are too many parts of Samba that get, parse and modify the
binding parameters.  Avoid the extra work, and add a binding element
to the struct dcerpc_pipe

The libnet vampire code has been refactored, to reduce extra layers
and to better conform with the standard argument pattern.  Also, take
advantage of the new libnet_Lookup code, so we don't require the silly
'password server' smb.conf parameter.

To better support forcing traffic to be sealed for the vampire
operation, the dcerpc_bind_auth() function now takes an auth level
parameter.

Andrew Bartlett
(This used to be commit d65b354959)
2007-10-10 13:50:55 -05:00
Andrew Bartlett
4c6b9c79ff r12864: Fix valgrind errors in NET-API-LOOKUP* tests.
Andrew Bartlett
(This used to be commit 21f87f87a9)
2007-10-10 13:50:55 -05:00
Andrew Bartlett
adab8d3968 r12863: As lha suggested to me a while back, it appears that the
gsskrb5_get_initiator_subkey() routine is bougs.  We can indeed use
gss_krb5_get_subkey().

This is fortunate, as there was a segfault bug in 'initiator' version.

Andrew Bartlett
(This used to be commit ec11870ca1)
2007-10-10 13:50:55 -05:00
Andrew Bartlett
3f8ee534ba r12862: Need to trim spaces off the end of the node status reply.
Andrew Bartlett
(This used to be commit 3e90e7edfa)
2007-10-10 13:50:55 -05:00
Andrew Bartlett
4b2ed199ca r12861: Cope when we are not supplied the messaging context. This is just
another case where we have to fallback to the node status request.

Andrew Bartlett
(This used to be commit 181064dbcf)
2007-10-10 13:50:54 -05:00
Andrew Bartlett
0b3fb7e04d r12860: Remove unused function. (we handle this in the password_hash module).
Andrew Bartlett
(This used to be commit daa4b76800)
2007-10-10 13:50:54 -05:00
Andrew Bartlett
dfd9b2d883 r12859: Make Samba4 match the Samba3 winbindd interface. trunk has moved too
far at this point, and there is no point being in between.

Andrew Bartlett
(This used to be commit 10fb19add6)
2007-10-10 13:50:54 -05:00
Andrew Bartlett
b135f4467f r12858: This moves the libnet_LookupPdc code to use a GetDC request to find
the remote server's name, or in the absence of a local nbt_server to
communicate with (or without root access), a node status request.

The result is that we are in a better position to use kerberos, as well
as to remove the 'password server' mandatory parameter for the samsync
and samdump commands.  (I need this to put these into SWAT).

The only problem I have is that I must create a messaging context, which
requires a server ID.  As a client process, I don't expect to get
messages, but it is currently required for replies, so I generate a
random() number.  We probably need the servers to accept connections on
streamed sockets too, for client-only tasks that want IRPC.

Because I wanted to test this code, I have put the NET-API-* tests into
our test scripts, to ensure they pass and keep passing.  They are good
frontends onto the libnet system, and I see no reason not to test them.

In doing so the NET-API-RPCCONNECT test was simplified to take a
binding string on the command line, removing duplicate code, and
testing the combinations in the scripts instead.

(I have done a bit of work on the list shares code in libnet_share.c
to make it pass 'make test')

In the future, I would like to extend the libcli/findds.c code (based
off volker's winbind/wb_async_helpers.c, which is why it shows up a bit
odd in the patch) to handle getting multiple name replies, sending a
getdc request to each in turn.

(posted to samba-technical for review, and I'll happily update with
any comments)

Andrew Bartlett
(This used to be commit 7ccddfd351)
2007-10-10 13:50:54 -05:00
Stefan Metzmacher
d68b0b12b9 r12856: make the logic much more sane
metze
(This used to be commit ed4a3e53fd)
2007-10-10 13:50:54 -05:00
Jelmer Vernooij
0b3deb20de r12851: Fix some typos
(This used to be commit 61ae77beec)
2007-10-10 13:50:53 -05:00
Stefan Metzmacher
4a8656fd65 r12850: - add Doxygen comments to ldb
- 'make doxygen' generated the api documentation under apidocs/

Many thanks to Brad Hards <bradh@frogmouth.net> for the patches!

metze
(This used to be commit e98d483174)
2007-10-10 13:50:53 -05:00
Stefan Metzmacher
c07d16d201 r12849: fix typo
metze
(This used to be commit 552e12c05d)
2007-10-10 13:50:53 -05:00
Stefan Metzmacher
61768feec6 r12847: add some ldb examples from Brad Hards (bradh@frogmouth.net)
metze
(This used to be commit 4d32d50ccd)
2007-10-10 13:50:06 -05:00
Stefan Metzmacher
4a1e289770 r12846: some fixes
metze
(This used to be commit bf6065b11f)
2007-10-10 13:50:05 -05:00
Stefan Metzmacher
224bcda061 r12845: fix some typos
metze
(This used to be commit 5d0ae1d2ae)
2007-10-10 13:50:05 -05:00
Stefan Metzmacher
b3f2db5e01 r12844: don't include system headers directly
metze
(This used to be commit 75a98047d6)
2007-10-10 13:50:05 -05:00
Stefan Metzmacher
2e8937c334 r12843: get special objects with ldbsearch -a too, to match ldbedit -a
metze
(This used to be commit bb68f2e602)
2007-10-10 13:50:05 -05:00
Stefan Metzmacher
91a37f02dd r12842: don't include system headers directly
metze
(This used to be commit 976052c656)
2007-10-10 13:50:05 -05:00
Stefan Metzmacher
69f7c004fe r12838: make the ntvfs function public
metze
(This used to be commit 41a564fdba)
2007-10-10 13:50:04 -05:00
Stefan Metzmacher
eab4a56197 r12836: use: -fvisibility=hidden -D_PUBLIC_="__attribute__((visibility(\"default\")))"
if the compiler supports it, this will cause that modules can only access
public functions (gcc 4 supports this)

metze
(This used to be commit bcf4c36255)
2007-10-10 13:50:04 -05:00
Rafal Szczesniak
2470034e54 r12835: RpcConnect test expansion to test connecting using ncacp_ip_tcp
as well as ncacn_np.

rafal
(This used to be commit 70cf8a4b67)
2007-10-10 13:50:04 -05:00
Simo Sorce
5ecc64dcab r12833: complete ldbsearch support for controls
now the three supported controls (paged_results,
server_sort, extended_dn) are fully functional
and the infrastructure to add more is in place.

valgrind is happy too :)

Simo.
(This used to be commit bd8e262937)
2007-10-10 13:50:04 -05:00
Stefan Metzmacher
720041d078 r12832: make it possible to pass -D_PUBLIC_... to the compiler
metze
(This used to be commit 5540509f10)
2007-10-10 13:50:04 -05:00
Stefan Metzmacher
3c2c57a711 r12831: add 'extern' to public prototypes
metze
(This used to be commit d4d2f011e2)
2007-10-10 13:50:03 -05:00
Stefan Metzmacher
b424fdd253 r12830: this can be const
metze
(This used to be commit 1876e245c4)
2007-10-10 13:50:03 -05:00
Stefan Metzmacher
4d1c5a023c r12829: fix ldb headers, to not include '<...>' files in .c files
this helps in getting symbol -fvisibility=hidden (GCC 4 feature) working later.

metze
(This used to be commit 380938e97f)
2007-10-10 13:50:03 -05:00
Simo Sorce
2b7d932656 r12828: add a test to check white spaces comparison
(This used to be commit ad189553f4)
2007-10-10 13:50:03 -05:00
Simo Sorce
428ef08930 r12827: This was a very well concealed bug.
Thank to Andrew Bartlet for finding out a test case that showed it up.

Simo.
(This used to be commit 72a86d74a9)
2007-10-10 13:50:03 -05:00
Andrew Bartlett
a6a007d0c4 r12826: The base DN is very tied to the realm. Allowing it to be changed here
only allows stuffups, but doesn't benifit anyone.  (If we were to
allow it, we should have it change every time the realm is modified,
character by character).

The command line provision script doesn't allow this either.

Andrew Bartlett
(This used to be commit fd176997b6)
2007-10-10 13:50:02 -05:00
Günther Deschner
1e98ecd032 r12825: Add \n
Guenther
(This used to be commit 909ef011b1)
2007-10-10 13:50:02 -05:00
Andrew Bartlett
bceaf62d2f r12824: Another typo.
Andrew Bartlett
(This used to be commit 08f8b2aadb)
2007-10-10 13:50:02 -05:00
Andrew Bartlett
75ef0ba513 r12823: Fix up the provison and newuser code in SWAT. This also cleans up the
main provision script a bit, as the argument list was getting out of
control.  (It has been replaced in part with an object).

This also returns the session_info from the auth code into ejs.

We still need access control allowing only root to re-provision.

Andrew Bartlett
(This used to be commit 002cdcf3ca)
2007-10-10 13:50:02 -05:00
Andrew Bartlett
195f5c3635 r12822: Given that talloc gives us this extra level of safety, use it.
Andrew Bartlett
(This used to be commit a6028558dc)
2007-10-10 13:50:02 -05:00
Andrew Bartlett
ca90a75ba0 r12821: Fix typos.
Andrew Bartlett
(This used to be commit f4386f7af1)
2007-10-10 13:50:01 -05:00
Andrew Bartlett
9cda264ec0 r12820: Remove duplicate entry caused by merge.
Andrew Bartlett
(This used to be commit 8d5156f98c)
2007-10-10 13:50:01 -05:00
Andrew Bartlett
8f86ddcd93 r12819: Fix swat authentication again. We need to pass the socket_address
structure around, so the auth code knows where the request came from.

Andrew Bartlett
(This used to be commit 7a7b2668c0)
2007-10-10 13:50:01 -05:00