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

1541 Commits

Author SHA1 Message Date
Stefan Metzmacher
f45b0ff698 r12408: as we always add the destinguishedName as autogenerated value,
don't store it on disk, as this would cause confusing results

metze
(This used to be commit c3d3309ba1)
2007-10-10 13:47:34 -05:00
Stefan Metzmacher
50bb996dc0 r12385: call pidl with the perl found by configure
metze
(This used to be commit 00b7800695)
2007-10-10 13:47:33 -05:00
Stefan Metzmacher
64b611a18e r12364: add UINT32_MAX and UINT64_MAX replacement defines
(hopefully fix the build on OpenBSD)

metze
(This used to be commit cbe06ade21)
2007-10-10 13:47:31 -05:00
Andrew Bartlett
bceca72304 r12361: Add a new function: ldb_binary_encode_string()
This is for use on user-supplied arguments to printf style format
strings which will become ldb filters.  I have used it on LSA, SAMR
and the auth/ code so far.

Also add comments to cracknames code.

Andrew Bartlett
(This used to be commit 8308cf6e04)
2007-10-10 13:47:30 -05:00
Andrew Bartlett
46de306f13 r12320: Add command-line processing hooks for simple bind DN, and password callback.
We may change this in future.

Andrew Bartlett
(This used to be commit 5fec784d47)
2007-10-10 13:47:28 -05:00
Andrew Bartlett
97b54b007e r12310: Link simple bind support in our internal LDAP libs to LDB and the
command line processing system.

This is a little ugly at the moment, but works.  What I cannot manage
to get to work is the extraction and propogation of command line
credentials into the js interface to ldb.

Andrew Bartlett
(This used to be commit f34ede763e)
2007-10-10 13:47:28 -05:00
Stefan Metzmacher
a2013b16b9 r12286: handle absolute path and url in lock_path() as in private_path()
metze
(This used to be commit 35d76f7337)
2007-10-10 13:47:27 -05:00
Stefan Metzmacher
c0277892d0 r12285: move the smbd.tmp into piddir, --with-fhs piddir is different
from lockdir and they are typically set to piddir=/var/run/samba
and lockdir=/var/lib/samba, and we should keep the temporary stuff
under /var/run/samba

metze
(This used to be commit 571a870618)
2007-10-10 13:47:26 -05:00
Jelmer Vernooij
ab31a44216 r12254: Add some (hopefully correct) descriptions for libraries that are installed.
Install pkg-config files.
(This used to be commit a86abe84e2)
2007-10-10 13:47:24 -05:00
Stefan Metzmacher
bdc2a850da r12239: as we only get error from our events system when we wait for read events,
we need to initialy ask for read events too, otherwise we'll never get an
error back from socket_connect()

metze
(This used to be commit 7d94054d0f)
2007-10-10 13:47:23 -05:00
Andrew Bartlett
a1827a1deb r12227: I realised that I wasn't yet seeing authenticated LDAP for the ldb
backend.

The idea is that every time we open an LDB, we can provide a
session_info and/or credentials.  This would allow any ldb to be remote
to LDAP.  We should also support provisioning to a authenticated ldap
server.

(They are separate so we can say authenticate as foo for remote, but
here we just want a token of SYSTEM).

Andrew Bartlett
(This used to be commit ae2f3a64ee)
2007-10-10 13:47:22 -05:00
Jelmer Vernooij
efe67458c1 r12216: Couple of small fixes: reduce include/includes.h a bit, simplify headers
in build/smb_build/, remove unused pstring macros
(This used to be commit 4322962074)
2007-10-10 13:47:19 -05:00
Jelmer Vernooij
d0f4663771 r12209: Fix some issues with XML entities.
(This used to be commit 754e51b19d)
2007-10-10 13:47:18 -05:00
Andrew Bartlett
f4f1d37b48 r12178: Make ldb_ildap work against localhost again, by setting the event
context into the ldb opaque.  I'm sure this was done before, and must
have been lost by some other change.

Andrew Bartlett
(This used to be commit dddedf1371)
2007-10-10 13:47:16 -05:00
Andrew Tridgell
d811ea17bb r12158: added ldif handlers for the ntSecurityDescriptor attribute, so when
displaying security descriptors in ldbsearch or ldbedit you can see
the SDDL version.

This also allows us to specify security descriptors in our
setup/*.ldif files in SDDL format, which is much more convenient than
the NDR binary format!
(This used to be commit 8185731c18)
2007-10-10 13:47:16 -05:00
Andrew Tridgell
7b090b06bf r12157: ldb_dump_results() is useful to call from within gdb, so you can see a
set of results
(This used to be commit 2be62eb2dd)
2007-10-10 13:47:15 -05:00
Stefan Metzmacher
126f8b8b6a r12153: work arround the fact that epoll reports EPOLLERR and EPOLLHUP, even if
you don't ask for.

with this patch the epoll mode behaves like the select mode

metze
(This used to be commit f26c28a3ae)
2007-10-10 13:47:15 -05:00
Stefan Metzmacher
2b589a7691 r12146: as epoll notifies EPOLLERR and EPOLLHUP implicit,
let our code make it explicit, to make it clear

metze
(This used to be commit cf733e2684)
2007-10-10 13:47:14 -05:00
Stefan Metzmacher
040fc5aef5 r12141: - move epoll related code into one big #ifdef, and use dummy #define's
for the case where, epoll isn't available at compile time
- only pass the private std_event_context, to the local function,
  to get rid of the talloc_get_type() calls
- use the private pointer to std_event_context_init() to decide if we want to
  disable epoll at runtime

metze
(This used to be commit de322ea8b7)
2007-10-10 13:47:14 -05:00
Stefan Metzmacher
96180f2cac r12140: - add an additional_flags field to the fd_event struct, so that
the events backend can store private flags
- add function to access the gtk event loop ops struct

metze
(This used to be commit a5cc0758a3)
2007-10-10 13:47:13 -05:00
Stefan Metzmacher
91cf3943d3 r12124: we don't need this comment twice
metze
(This used to be commit 62c4ae8dde)
2007-10-10 13:47:11 -05:00
Stefan Metzmacher
91abd131e6 r12123: handle fde == NULL at the correct level
metze
(This used to be commit 1dd5bb60a5)
2007-10-10 13:47:11 -05:00
Andrew Tridgell
111a920fdb r12116: got rid of composite_trigger_done() and composite_trigger_error(), and
instead make the normal composite_done() and composite_error()
functions automatically trigger a delayed callback if the caller has
had no opportunity to setup a async callback

this removes one of the common mistakes in writing a composite function
(This used to be commit f9413ce792)
2007-10-10 13:47:11 -05:00
Stefan Metzmacher
529b03be13 r12074: in accept() we need to set socket name of the child socket by looking
up what address the client has used, as the socket is maybe bound to '0.0.0.0'

metze
(This used to be commit 81d322f91a)
2007-10-10 13:47:05 -05:00
Stefan Metzmacher
c53a5c4f3e r12073: fix vlgrind error, calculate the correct size for memcpy()
and don't assume out_len is >= sizeof(*in_addr)

metze
(This used to be commit 61dbe9e507)
2007-10-10 13:47:05 -05:00
Andrew Tridgell
da574945ca r12057: fixed authentication in ldb client tools
(This used to be commit 020de11a61)
2007-10-10 13:47:02 -05:00
Stefan Metzmacher
150848248a r12014: free the irpc_request structure with the irpc_call_recv functions,
to match all other _recv functions we have

metze
(This used to be commit bd4f85ab5f)
2007-10-10 13:46:59 -05:00
Andrew Bartlett
0a1b8f58a2 r11988: Setup the sessionInfo just before the connect, rather than earlier
when we havn't finished popt.

Andrew Bartlett
(This used to be commit e5c5eb97a0)
2007-10-10 13:46:55 -05:00
Andrew Tridgell
4476dfd3bd r11984: LGPL on header and testsuite as well
(This used to be commit ed90975bf5)
2007-10-10 13:46:55 -05:00
Andrew Tridgell
51a8581dea r11983: make talloc LGPL. This makes more sense given that ldb depends on
talloc, and ldb is now LGPL
(This used to be commit 5bdd50fa38)
2007-10-10 13:46:54 -05:00
Andrew Tridgell
7d960dfc39 r11981: we should allocate request specific memory in ldb modules off the
request strucutre. It will take a while for this to happen everywhere.
(This used to be commit b1d38153b8)
2007-10-10 13:46:54 -05:00
Tim Potter
03d301ead5 r11967: Fix more 64-bit warnings.
(This used to be commit 9c4436a124)
2007-10-10 13:46:52 -05:00
Andrew Tridgell
6eabad9c9d r11958: - fixed memory leaks in the ldb_result handling in ldb operations
- removed an unnecessary level of pointer in ldb_search structure
(This used to be commit b8d4afb14a)
2007-10-10 13:46:51 -05:00
Andrew Tridgell
400f03b9ea r11953: enabled the rootdse module in the ldb modules code
(This used to be commit 7d8b11174c)
2007-10-10 13:46:50 -05:00
Andrew Tridgell
69c531b75c r11870: fixed the problem volker reported with the RPX-XPLOGIN test. The
problem was caused by a callback destroying the packet processing
context while that context was being used in packet_recv()

This is the first time we have used the ability of talloc destructors
to 'refuse' a free request. It works well in this case as it makes the
composite API simpler to use for other code, and isolates the
complexity of having callbacks destroying the packet context to the
packet.c code.
(This used to be commit b1b2d86541)
2007-10-10 13:46:38 -05:00
Volker Lendecke
2a311277e5 r11869: talloc has been ported :-)
(This used to be commit aad52d9a5f)
2007-10-10 13:46:38 -05:00
Andrew Tridgell
93e83f4086 r11823: make the socket_connect_send() context a child of the local state
this fixes a valgrind error
(This used to be commit db9c0887bd)
2007-10-10 13:46:34 -05:00
Andrew Tridgell
eeb093f6a9 r11822: reworked the socket_connect_multi() code so it is built on top of
socket_connect_send() rather than the lower level socket code. Also
simplified the state structures a fair bit, and added name resolution,
fixing a bug where the multi-port connect code did a separate name
resolution for each port being tried.
(This used to be commit 3e6888156c)
2007-10-10 13:46:34 -05:00
Andrew Tridgell
8486606576 r11821: got rid of two more unnecessary variables and made the variable names
a bit more consistent
(This used to be commit 4b6e9c7c97)
2007-10-10 13:46:33 -05:00
Andrew Tridgell
37279b1363 r11820: fixed some problems with the socket socket.c code.
- removed the duplicate calls to socket_connect(), instead creating a
   common function socket_send_connect() used by both code paths

 - fixed some NULL ptr checks (probably was cut-and-paste bugs)

 - ensure we use the result of the name resolution

 - added a few comments

 - use 'fde' for the file description event. The variable name
  'connect_ev' immediately made me think of an event context, not a
  fde. Using common variable name conventions makes code a bit easier
  to read
(This used to be commit 37b73521b4)
2007-10-10 13:46:33 -05:00
Volker Lendecke
b31fe2d42b r11811: Revert 11808, this broke the selftest. No idea why though. Why do we to the
resolve_name if it's not used?

I know this is my code, but I don't understand why it breaks tests.

Volker
(This used to be commit 577a5639d3)
2007-10-10 13:46:31 -05:00
Volker Lendecke
218ea5a5c7 r11808: Fix socket_connect_ev
(This used to be commit 95bd3ffaf7)
2007-10-10 13:46:31 -05:00
Jeremy Allison
931b1974a2 r11797: Added OpenSSH fix for "%.*s" format crash. From Darren Tucker
<dtucker@zip.com.au>
Jeremy.
(This used to be commit a2006c1628)
2007-10-10 13:46:29 -05:00
Andrew Tridgell
614950aed3 r11713: separate out the setting of the fde in the packet context from the
enabling of packet serialisation
(This used to be commit 6a47cd65a8)
2007-10-10 13:46:17 -05:00
Andrew Tridgell
763d862fee r11712: avoid changing the fde flags unless really needed
(This used to be commit 48e6424b0c)
2007-10-10 13:46:16 -05:00
Andrew Tridgell
df4624870b r11710: added function iface_same_net()
(This used to be commit 3e36b30194)
2007-10-10 13:46:16 -05:00
Tim Potter
b5fdc3609e r11709: Comment out unused function.
(This used to be commit 8fe5eadafe)
2007-10-10 13:46:16 -05:00
Stefan Metzmacher
f0c7fca780 r11642: add some error checks
metze
(This used to be commit 9d6406d8da)
2007-10-10 13:46:05 -05:00
Andrew Tridgell
872b821fca r11636: a bit neater solution to the nt_cancel problem
(This used to be commit ba7864b07e)
2007-10-10 13:46:03 -05:00
Stefan Metzmacher
62346e2b65 r11634: - make crc table static
- const uint8_t * in all places
- update header prototype

metze
(This used to be commit 91dfa4c28d)
2007-10-10 13:46:03 -05:00