Andrew Tridgell [Fri, 17 Jun 2005 02:48:48 +0000 (02:48 +0000)]
r7668: - setup HAVE_ILDAP to enable the ildap backend in ldb
- fixed a bug in socket_connect_ev()
(This used to be commit
3f77b879a035929a843e02b798d54eba6625bde7)
Andrew Tridgell [Fri, 17 Jun 2005 02:47:26 +0000 (02:47 +0000)]
r7667: added a ldb ildap backend, using our internal ldap client library. Next step is to
remove the check for the ldap libraries in configure
(This used to be commit
74841dbb2a86bb1c584b5c26c4cd24a818a65a34)
Andrew Tridgell [Fri, 17 Jun 2005 02:46:25 +0000 (02:46 +0000)]
r7666: fixed a memory leak in the ldap ldb backend
(This used to be commit
ac3f33c61555a2afa30fe446676013564982e257)
Andrew Tridgell [Fri, 17 Jun 2005 02:45:40 +0000 (02:45 +0000)]
r7665: - added a ildap_*() interface to our internal ldap library. This
interface is very similar to the traditional ldap interface, and will
be used as part of a ldb backend based on the current ldb_ldap backend
- fixed some allocation issues in ldb_msg.c
(This used to be commit
b34a29dcf26f68a2f47380a6c74a4095fdfd2fbe)
Andrew Tridgell [Fri, 17 Jun 2005 00:48:00 +0000 (00:48 +0000)]
r7661: patch from tburdi1@uic.edu to fix autogen.sh on freebsd
(This used to be commit
ffe1b5e6f4cd8cc9ddd0ceda882ad76917ebd1d3)
Andrew Tridgell [Fri, 17 Jun 2005 00:10:13 +0000 (00:10 +0000)]
r7660: improved error handling in socket_connect_ev() (it matters when name
resolution fails)
(This used to be commit
4013c2ddea0cd03f875e2acf40d2a34344017d05)
Andrew Tridgell [Fri, 17 Jun 2005 00:09:17 +0000 (00:09 +0000)]
r7659: fixup the ordering of socket destruction for ncacn_ip_tcp so we don't try and
remove an epoll descriptor for a closed fd
(This used to be commit
bec5e9f80a934e6472e8d227214a9baba4f15054)
Andrew Tridgell [Thu, 16 Jun 2005 23:47:06 +0000 (23:47 +0000)]
r7658: don't timeout at the smb level for rpc requests as otherwise some rpc
level sign/seal mechanisms can break
(This used to be commit
9df569f023f9a1e0d8c35de8135a344933bc69bf)
Andrew Tridgell [Thu, 16 Jun 2005 23:30:02 +0000 (23:30 +0000)]
r7657: test addone again after request timeout and destruction to ensure the pipe is still OK
(This used to be commit
9f7f70124fc67109bc9ace7a57490851341ad759)
Andrew Tridgell [Thu, 16 Jun 2005 23:28:24 +0000 (23:28 +0000)]
r7656: added testing of rpc request timeouts and destruction
(This used to be commit
eddf41d5e4ca43073b96f96b96dbadf7b8b91df5)
Andrew Tridgell [Thu, 16 Jun 2005 23:19:35 +0000 (23:19 +0000)]
r7655: test the evnt friendly socket_connect() in the LOCAL-SOCKET test
(This used to be commit
b9ed92d550f1b821c5402a516eb2dfc2c8d69f0a)
Andrew Tridgell [Thu, 16 Jun 2005 23:19:03 +0000 (23:19 +0000)]
r7654: - add a timeout to all smb requests (default 60 seconds)
- add a request destructor, to make it safe to destroy a pending
request with talloc_free()
(This used to be commit
72c6988767249caa585f37fec4c0afbf41557ec2)
Andrew Tridgell [Thu, 16 Jun 2005 23:02:40 +0000 (23:02 +0000)]
r7653: when a dcerpc request times out, we need to ensure that if the server
does finally answer the request and it is on the smb transport that we
don't die in the callback code as the rpc request state is gone.
(This used to be commit
d47477c5c3acbaa7242fa3a06d4095258db86297)
Andrew Tridgell [Thu, 16 Jun 2005 23:01:42 +0000 (23:01 +0000)]
r7652: use event friendly connect in dcerpc socket code
(This used to be commit
154effd781c901abfcd8f89721c4a6d03c07b670)
Andrew Bartlett [Thu, 16 Jun 2005 22:45:30 +0000 (22:45 +0000)]
r7651: Only convert SERVER requests to KRBTGT requests.
Andrew Bartlett
(This used to be commit
a948e743bbc691798e6a956b35d8e09cfc91f988)
Andrew Tridgell [Thu, 16 Jun 2005 21:07:45 +0000 (21:07 +0000)]
r7650: fixed a typo
(This used to be commit
331afee4ca5bc6a6f7e4fe3333846881424314fe)
Stefan Metzmacher [Thu, 16 Jun 2005 20:25:19 +0000 (20:25 +0000)]
r7646: - only allow modification of SPOOLSS_FORM_USER Froms
- some minor fixes and comments
metze
(This used to be commit
87b1f9a2e027f4318a3104d13c091ca8ec5f16f4)
Stefan Metzmacher [Thu, 16 Jun 2005 19:53:14 +0000 (19:53 +0000)]
r7644: - remove some dublicate structures SetForm and AddForm uses the same struct
- fix some typos in EnumPrintServerForms()/GetPrintServerForms()
- add AddPrintServerForms()/SetPrintServerForms() and DeletePrintServerForms
metze
(This used to be commit
73906388421beebb34f2a00c9e0d1fc8b400a42a)
Stefan Metzmacher [Thu, 16 Jun 2005 17:27:57 +0000 (17:27 +0000)]
r7643: This patch adds a new NTPTR subsystem:
- this is an abstraction layer for print services,
like out NTVFS subsystem for file services
- all protocol specific details are still in rpc_server/spoolss/
- like the stupid in and out Buffer handling
- checking of the r->in.server_name
- ...
- this subsystem can have multiple implementation
selected by the "ntptr providor" global-section parameter
- I currently added a "simple_ldb" backend,
that stores Printers, Forms, Ports, Monitors, ...
in the spoolss.db, and does no real printing
this backend is basicly for testing, how the spoolss protocol
works
- the interface is just a prototype and will be changed a bit
the next days or weeks, till the simple_ldb backend can
handle all calls that are used by normal w2k3/xp clients
- I'll also make the api async, as the ntvfs api
this will make things like the RemoteFindFirstPrinterChangeNotifyEx(),
that opens a connection back to the client, easier to implement,
as we should not block the whole smbd for that
- the idea is to later implement a "unix" backend
that works like the current samba3 code
- and maybe some embedded print server vendors can write there own
backend that can directly talk to a printer without having cups or something like this
- the default settings are (it currently makes no sense to change them :-):
ntptr providor = simple_ldb
spoolss database = $private_dir/spoolss.db
metze
(This used to be commit
455b5536d41bc31ebef8290812f45d4a38afa8e9)
Stefan Metzmacher [Thu, 16 Jun 2005 16:46:42 +0000 (16:46 +0000)]
r7642: - test NULL server_name in GetPrinterDriverDirectory() too, (same result as "")
- test EnumForms() on the PrintServer (NT4 returns WERR_BADFID)
(jerry: how do it get the lists of forms in the printserver gui)
metze
(This used to be commit
fddfe1f04b3ae594e75d702aba4d17ee4d103b8e)
Jeremy Allison [Thu, 16 Jun 2005 16:43:23 +0000 (16:43 +0000)]
r7641: Fix based on work from "Shlomi Yaakobovich" <Shlomi@exanet.com> to catch
loops in corrupted tdb files.
Jeremy.
(This used to be commit
f9f3037d6855259edd56fd5a23d63dbb37f0a751)
Love Hörnquist Åstrand [Thu, 16 Jun 2005 12:45:35 +0000 (12:45 +0000)]
r7638: krb5_closelog in heimdal-0.7 not longer leaks memory, so remove that comment
(This used to be commit
3aa80b8e585a0acc57d4b7738dcccfba232948ca)
Andrew Bartlett [Thu, 16 Jun 2005 12:18:52 +0000 (12:18 +0000)]
r7637: Another useful Heimdal feature we need.
Andrew Bartlett
(This used to be commit
57ddedc954f49fd370225494758326fcbd0bb500)
Simo Sorce [Thu, 16 Jun 2005 11:58:31 +0000 (11:58 +0000)]
r7635: change the license of this file to lgpl like the rest of ldb
(This used to be commit
8735188b46d4bb6c3d63d22a8c6f3fad2c82df89)
Stefan Metzmacher [Thu, 16 Jun 2005 11:52:15 +0000 (11:52 +0000)]
r7634: move TestSleep functions so that all of them are together
metze
(This used to be commit
520d5c67329e957121e3b71c1ffc0be3893c2033)
Andrew Tridgell [Thu, 16 Jun 2005 11:36:09 +0000 (11:36 +0000)]
r7633: this patch started as an attempt to make the dcerpc code use a given
event_context for the socket_connect() call, so that when things that
use dcerpc are running alongside anything else it doesn't block the
whole process during a connect.
Then of course I needed to change any code that created a dcerpc
connection (such as the auth code) to also take an event context, and
anything that called that and so on .... thus the size of the patch.
There were 3 places where I punted:
- abartlet wanted me to add a gensec_set_event_context() call
instead of adding it to the gensec init calls. Andrew, my
apologies for not doing this. I didn't do it as adding a new
parameter allowed me to catch all the callers with the
compiler. Now that its done, we could go back and use
gensec_set_event_context()
- the ejs code calls auth initialisation, which means it should pass
in the event context from the web server. I punted on that. Needs fixing.
- I used a NULL event context in dcom_get_pipe(). This is equivalent
to what we did already, but should be fixed to use a callers event
context. Jelmer, can you think of a clean way to do that?
I also cleaned up a couple of things:
- libnet_context_destroy() makes no sense. I removed it.
- removed some unused vars in various places
(This used to be commit
3a3025485bdb8f600ab528c0b4b4eef0c65e3fc9)
Stefan Metzmacher [Thu, 16 Jun 2005 08:40:10 +0000 (08:40 +0000)]
r7631: - remove unused function, as the disgn of samba4 doesn't allow the old style
auto homedir share stuff
- add TODO: for checking the password on share mode security
metze
(This used to be commit
d9a0c61801f19e55a41c573ea96565946314ecb3)
Tim Potter [Thu, 16 Jun 2005 06:56:48 +0000 (06:56 +0000)]
r7630: Unused variable.
(This used to be commit
0c1f54461cea633dbacb9692925b8c971a34a831)
Tim Potter [Thu, 16 Jun 2005 06:55:55 +0000 (06:55 +0000)]
r7629: Unused labels.
(This used to be commit
c01c176da640c012e1e6c9f0553b5075ef0e93bf)
Tim Potter [Thu, 16 Jun 2005 06:55:07 +0000 (06:55 +0000)]
r7628: Unused variables.
(This used to be commit
b2529307aaf1e47ce74632b4e516494ac71fe8d1)
Tim Potter [Thu, 16 Jun 2005 06:39:41 +0000 (06:39 +0000)]
r7627: Fix warning in unused (?) function.
(This used to be commit
a4d05988637b4e607c3cdad83bfb1e9cf923b7f0)
Andrew Tridgell [Thu, 16 Jun 2005 05:39:40 +0000 (05:39 +0000)]
r7626: a new ldap client library. Main features are:
- hooked into events system, so requests can be truly async and won't
interfere with other processing happening at the same time
- uses NTSTATUS codes for errors (previously errors were mostly
ignored). In a similar fashion to the DOS error handling, I have
reserved a range of the NTSTATUS code 32 bit space for LDAP error
codes, so a function can return a LDAP error code in a NTSTATUS
- much cleaner packet handling
(This used to be commit
2e3c660b2fc20e046d82bf1cc296422b6e7dfad0)
Volker Lendecke [Wed, 15 Jun 2005 21:03:43 +0000 (21:03 +0000)]
r7621: Trivial reformatting while trying to understand share modes. Still survives
smbtorture *DENY* .
Volker
(This used to be commit
da78ed1a4d1f7966d8013278436a710d258879e1)
Simo Sorce [Wed, 15 Jun 2005 17:15:01 +0000 (17:15 +0000)]
r7615: fix the build and simplify gendb_search_dn
(This used to be commit
b38bb63175ae0bdcf833c017e5fbbfc2c0769506)
Simo Sorce [Wed, 15 Jun 2005 13:01:39 +0000 (13:01 +0000)]
r7608: bug fix after yesterday's change
(This used to be commit
0218fc678e375a05fbc4da5500706199340918e2)
Jelmer Vernooij [Wed, 15 Jun 2005 10:44:56 +0000 (10:44 +0000)]
r7605: Display properties in header files again.
(This used to be commit
5f37f7a524611ff8227662fd19c37496c83cac7f)
Jelmer Vernooij [Wed, 15 Jun 2005 10:11:33 +0000 (10:11 +0000)]
r7604: Bunch of small pidl updates. Mostly removing unused functions,
cleanups and more flexibility (all output options
now take an optional filename).
(This used to be commit
e3496732c66c2f9474fde58bb3930552511cb12a)
Derrell Lipman [Wed, 15 Jun 2005 02:45:11 +0000 (02:45 +0000)]
r7602: fix some compiler warnings
(This used to be commit
ce9966e091d36f66d409ac6f7b5e462c9dc37325)
Derrell Lipman [Wed, 15 Jun 2005 02:43:42 +0000 (02:43 +0000)]
r7601: ldb_sqlite3 work in progress
(This used to be commit
0a64948152a446b5e127578d49b1ed8a90a1a222)
Andrew Tridgell [Wed, 15 Jun 2005 01:22:30 +0000 (01:22 +0000)]
r7599: it turns out we were not using the ldif code in libcli/ldap/ at all,
so best to just remove it. If we need it again, then it will be easy
to just use a wrapper around the ldb code.
(This used to be commit
b316e1c2d3e4dc09c321ec72b40d78ffb855e101)
Andrew Tridgell [Wed, 15 Jun 2005 01:12:31 +0000 (01:12 +0000)]
r7598: take advantage of struct data_blob and struct ldb_val being the same
structure in a couple of places
(This used to be commit
bcd4671acae2be51958cbae23a0ab2dd2b194a5e)
Andrew Tridgell [Wed, 15 Jun 2005 01:08:54 +0000 (01:08 +0000)]
r7597: removed the bogus get_myfullname() and get_mydomname() calls, and put
them in the ntlmssp code, which is the only place they are
used. Andrew, please remove them completely once you have some more
reliable way to get this info
they are bogus as gethostname() may give us a short hostname (and does
on lot of systems), so the calls often give totally the wrong result
anyway
(This used to be commit
35ec292f86bf663618b4bd03133d9bbd6e2faf10)
Andrew Tridgell [Wed, 15 Jun 2005 01:02:53 +0000 (01:02 +0000)]
r7596: next step in ldap cleanup. I'm aiming to get rid of the cut&pasted
ldif parsing code in libcli/ldap/ldap_ldif.c, and instead use the ldb
ldif code. To do that I have changed the ldap code to use 'struct
ldb_message_element' instead of 'struct ldap_attribute'. They are
essentially the same structure anyway, so by making them really the
same it will be much easier to use the ldb code in libcli/ldap/
I have also made 'struct ldb_val' the same as a DATA_BLOB, which will
simplify data handling in quite a few places (I haven't yet removed
all the code that maps between these two, that will come later)
(This used to be commit
87fc3073392236221a3a6b933284e9e477c24ae5)
Andrew Tridgell [Wed, 15 Jun 2005 00:30:03 +0000 (00:30 +0000)]
r7594: abartlet is right that this hack is not actually necessary, it just
prevents a bogus:
GSS Update failed: Miscellaneous failure (see text): ASN.1 identifier doesn't match expected value
error on every ldap connection. I'll remove it and let the error remain until Andrew
works out a better fix.
(This used to be commit
6123eb2ecad6f53521b546f76954523fbc0fb981)
Andrew Tridgell [Wed, 15 Jun 2005 00:27:51 +0000 (00:27 +0000)]
r7593: simplified the memory management in the ldap code. Having a mem_ctx
element in a structure is not necessary any more.
(This used to be commit
912d0427f52eac811b27bf7e385b0642f7dc7f53)
Jelmer Vernooij [Tue, 14 Jun 2005 22:47:14 +0000 (22:47 +0000)]
r7590: Cleanups, add more notes on new string code.
(This used to be commit
66a418a532f30a14353d923317dd6d766f62d926)
Rafal Szczesniak [Tue, 14 Jun 2005 22:08:29 +0000 (22:08 +0000)]
r7588: Fix lacking space in the comment.
rafal
(This used to be commit
cd89cf991923ee1184af41be4d48b372ca963062)
Rafal Szczesniak [Tue, 14 Jun 2005 22:08:00 +0000 (22:08 +0000)]
r7587: More comments.
rafal
(This used to be commit
265b1ab0cc2597d277630c56553a1c6243f6994b)
Derrell Lipman [Tue, 14 Jun 2005 21:52:35 +0000 (21:52 +0000)]
r7586: ldb_sqlite3 making progress. add and search have indicated a willingness to operate properly on initial testing
(This used to be commit
86ca8639e0ddc2525f8ed0ca9879d9f98c0cd00e)
Simo Sorce [Tue, 14 Jun 2005 19:15:17 +0000 (19:15 +0000)]
r7582: Better way to have a fast path searching for a specific DN.
Old way was ugly and had a bug, you couldn't add an attribute named
dn or distinguishedName and search for it, tdb would change that search in a dn search.
This makes it also possible to search by dn against an ldap server as the old method was
not supported by ldap syntaxes.
sss
(This used to be commit
a614466dec2484a0d39bdfae53da822cfcf80926)
Stefan Metzmacher [Tue, 14 Jun 2005 18:44:22 +0000 (18:44 +0000)]
r7580: - add GetPrinterDriverDirectory() idl, torture test and server code
- add EnumMonitors() server code and return "Standard TCP/IP Port"
- add parsing for opening Ports and Monitors with OpenPrinterEx()
metze
(This used to be commit
08e6de37bc293e2f000d03b51642964d92d6e95e)
Stefan Metzmacher [Tue, 14 Jun 2005 17:01:36 +0000 (17:01 +0000)]
r7575: - fix GetPrinterData() push side
- add somemore checks in the Emun*() pull/push glue code
metze
(This used to be commit
075fe1eb4b6b2d00cdd9965656598aaec53da638)
Stefan Metzmacher [Tue, 14 Jun 2005 15:52:31 +0000 (15:52 +0000)]
r7574: - seperate [in] and [out] buffers and buf_sizes
- use the same names as etherel (offered,needed) for the buffer sizes
(and they are really independently used)
metze
(This used to be commit
f5532a5b74e972f44ed8aa19ee9c5851a4b40f65)
Andrew Tridgell [Tue, 14 Jun 2005 07:50:18 +0000 (07:50 +0000)]
r7572: fixed filter in test suite
(This used to be commit
73d2e5df0ccf4ab1b78a1044058efd8e2479aa1a)
Andrew Tridgell [Tue, 14 Jun 2005 07:48:44 +0000 (07:48 +0000)]
r7571: fixed the generation of the filter string for extended filters
(This used to be commit
348a86e64392245571204ac5004e73221ac441f5)
Tim Potter [Tue, 14 Jun 2005 07:14:59 +0000 (07:14 +0000)]
r7570: Add tree, session and socket disconnect ejs functions.
(This used to be commit
63577628b0ee7e6b33053484190189e99cb56a5b)
Tim Potter [Tue, 14 Jun 2005 06:50:12 +0000 (06:50 +0000)]
r7569: Fix typo in comments.
(This used to be commit
64fb327ccf80d2d501ae559a6c4336a066191df0)
Andrew Tridgell [Tue, 14 Jun 2005 03:55:27 +0000 (03:55 +0000)]
r7568: enable the NTLMSSP bulk data sign/seal code for out ldap server. This
now works with windows clients, as I fixed the zero length bind ack packet.
Andrew, note that this has the strncmp("NTLMSSP", data, 7) hack. Please
replace with a more correct fix as we discussed.
(This used to be commit
69b02e8adb25a5152aec15f55b2b2f67457cf08a)
Andrew Tridgell [Tue, 14 Jun 2005 03:53:35 +0000 (03:53 +0000)]
r7567: added wire parsing of NOT and extended ldap search requests. This
allows us to parse and handle the complex queries we are getting from
w2k, such as
(|(|(&(!(groupType:1.2.840.113556.1.4.803=1))(groupType:1.2.840.113556.1.4.803=
2147483648)(groupType:1.2.840.113556.1.4.804=6))(samAccountType=
805306368))(samAccountType=
805306369))
(This used to be commit
041bce591306a0fb26bd31fe371e30021ea5c0c1)
Andrew Tridgell [Tue, 14 Jun 2005 03:52:27 +0000 (03:52 +0000)]
r7566: added support for LDAPString types in the asn.1 library
(This used to be commit
1a81d28456261ad77181fd12c0b4a9df6aa6a47d)
Andrew Tridgell [Tue, 14 Jun 2005 03:51:49 +0000 (03:51 +0000)]
r7565: fixed handling of sasl data in ldap server
(This used to be commit
9b7a89735f18f66ead010d5a1a0a6516ee9b93fe)
Andrew Tridgell [Tue, 14 Jun 2005 03:37:43 +0000 (03:37 +0000)]
r7564: added a test showing the search expression that w2k is actually giving
us that triggered this work
(This used to be commit
853b8cd72dbb8c50d527e66aa7b5692060b66d2b)
Derrell Lipman [Tue, 14 Jun 2005 03:08:34 +0000 (03:08 +0000)]
r7562: work in progress
(This used to be commit
d8a9ce78533639f510b60b48c8f305bd07f3f717)
Derrell Lipman [Tue, 14 Jun 2005 03:04:24 +0000 (03:04 +0000)]
r7561: moved OID constants into ldb.h and used manifest constants in ldb_match.c
(This used to be commit
42cbb155c20779c458f727488c8554842b24681b)
Andrew Tridgell [Tue, 14 Jun 2005 02:34:13 +0000 (02:34 +0000)]
r7560: added tests for extended bitop search functions
(This used to be commit
7b58b3a9c53952f606eb75f5e916e0cf994b2d06)
Andrew Tridgell [Tue, 14 Jun 2005 02:33:49 +0000 (02:33 +0000)]
r7559: support 64 bit matching in bitops
(This used to be commit
0c44a67001b9ae91c1ba7fc52f22d1eafc22dcc7)
Andrew Tridgell [Tue, 14 Jun 2005 01:35:44 +0000 (01:35 +0000)]
r7558: added support in ldb for extended ldap search requests. These are
using to perform such things as bitop tests on integers.
So far I have only added support for the 1.2.840.113556.1.4.803 and
1.2.840.113556.1.4.804 rules, which are for bitwise and/or
(This used to be commit
5f773b065f1db959e59c02de68bcf30cef1a6c2c)
Andrew Tridgell [Tue, 14 Jun 2005 01:11:24 +0000 (01:11 +0000)]
r7557: trigger a probe at tconx time to see if xattrs are really supported by
the filesystem
(This used to be commit
71e281ae2fe2ce169aeb09f72376a60d28845808)
Derrell Lipman [Tue, 14 Jun 2005 01:04:20 +0000 (01:04 +0000)]
r7556: fixed typo in documentation
(This used to be commit
77fc2036a0db7bde9e90f090dbcd75ea70b3e0a0)
Jelmer Vernooij [Mon, 13 Jun 2005 22:22:51 +0000 (22:22 +0000)]
r7552: Use ParseExpr() for [value] attributes; allows
us somewhat cleaner IDL.
(This used to be commit
b7b01bccd101654d1f5ec83cba9dea7e9431d6ce)
Stefan Metzmacher [Mon, 13 Jun 2005 18:51:02 +0000 (18:51 +0000)]
r7546: fix comment
metze
(This used to be commit
de69d87ded11ef0954e931885761e9ecd9ce4e1b)
Stefan Metzmacher [Mon, 13 Jun 2005 14:39:39 +0000 (14:39 +0000)]
r7536: doesn't spam the smbd_log in the build_farm...
metze
(This used to be commit
9f4ed54c58a1d029b171ad199dd4a7ccf1f96f64)
Andrew Tridgell [Mon, 13 Jun 2005 12:37:37 +0000 (12:37 +0000)]
r7533: don't show compile flags for each file
(This used to be commit
6a9ab148a98490e52da81d4ddedf42af2b5bf1a7)
Andrew Bartlett [Mon, 13 Jun 2005 10:54:18 +0000 (10:54 +0000)]
r7531: Finally fix lp_load(). I had left hooks in place which restricted us
to globals only (no shares).
Andrew Bartlett
(This used to be commit
9e6112eee37927cd4deaa078ea09813e07c7c386)
Andrew Bartlett [Mon, 13 Jun 2005 10:01:11 +0000 (10:01 +0000)]
r7530: Simply calling convention of lp_load().
This always loads all the services, as we now don't have an easy way
to split out smbd.
Andrew Bartlett
(This used to be commit
990e061939c76b559c4f5914c5fc6ca1b13e19dd)
Andrew Tridgell [Mon, 13 Jun 2005 09:11:21 +0000 (09:11 +0000)]
r7528: cleaned up the QueryDisplayInfo_continue test
(This used to be commit
a977dcef030605d0be1b7ce2a6500b202e35eaac)
Andrew Tridgell [Mon, 13 Jun 2005 09:10:17 +0000 (09:10 +0000)]
r7527: - added a ldb_search_bytree() interface, which takes a ldb_parse_tree
instead of a search expression. This allows our ldap server to pass
its ASN.1 parsed search expressions straight to ldb, instead of going
via strings.
- updated all the ldb modules code to handle the new interface
- got rid of the separate ldb_parse.h now that the ldb_parse
structures are exposed externally
- moved to C99 structure initialisation in ldb
- switched ldap server to using ldb_search_bytree()
(This used to be commit
96620ab2ee5d440bbbc51c1bc0cad9977770f897)
Andrew Tridgell [Mon, 13 Jun 2005 09:04:01 +0000 (09:04 +0000)]
r7526: make test should depend on the bins
(This used to be commit
646953df4c272581211ba30dc77e1052ea1f465e)
Andrew Bartlett [Mon, 13 Jun 2005 08:12:39 +0000 (08:12 +0000)]
r7525: Unify lp_load(), load_interfaces and logging setup into popt().
There is now a new --debug-stderr option to enable debug to STDERR.
popt isn't perfect, but the callbacks are used in all the main Samba
binaries, and should be used in the rest. This avoids duplicated
code, and ensures every binary is setup correctly.
This also ensures the setup happens early enough to have -s function,
and have a correct impact on the credentials code. (Fixing a bug that
frustrated tridge earlier today).
The only 'subtle' aspect of all this is that I'm pretty sure that the
SAMBA_COMMON popt code must be above the CREDENTIALS code, in the
popt tables.
Andrew Bartlett
(This used to be commit
50f3c2b3a22971f40e0d3a88127b5120bfc47591)
Andrew Tridgell [Mon, 13 Jun 2005 07:36:52 +0000 (07:36 +0000)]
r7524: make the ldap ASN.1 filter parse code go via a struct
ldb_parse_tree. This also fixes the error handling.
next step will be to pass the parse tree straight into ldb, avoiding
the string encoding completely.
(This used to be commit
235cf625e20767c8d5d30c5955ae45e1fdf88bf2)
Andrew Tridgell [Mon, 13 Jun 2005 07:11:29 +0000 (07:11 +0000)]
r7523: blergh
the error code for an invalid tid depends on the command
(This used to be commit
9dab036fbe50d84cb79d7a103c454a1c0c90a48a)
Andrew Tridgell [Mon, 13 Jun 2005 06:52:48 +0000 (06:52 +0000)]
r7522: added a ldb_filter_from_tree() function that takes a ldb_parse_tree
and forms a ldab search filter expression. Next step is to make our
ldap server code go from ASN.1 to a ldb_parse_tree, instead of trying
to construct string filters, then add a ldb_search_tree() call to
allow for searches using parse trees.
all of this is being done as I am hitting bitwise '&' ldap search
expressions from w2k, and want to handle them cleanly.
(This used to be commit
04356c1b1ed86d72934bc1b0ed60b767e10a1196)
Andrew Bartlett [Mon, 13 Jun 2005 06:42:36 +0000 (06:42 +0000)]
r7521: Remove useless loops from SAMLOGON test, which speeds it up a lot.
Andrew Bartlett
(This used to be commit
d74b7c20b6e547dba039992f69cea31b46d92286)
Andrew Bartlett [Mon, 13 Jun 2005 06:07:18 +0000 (06:07 +0000)]
r7520: Fix memory leak in hdb-ldb.c
Andrew Bartlett
(This used to be commit
7f6a7f7fc521f41c811c51fb692f408dc570f4cd)
Andrew Tridgell [Mon, 13 Jun 2005 06:06:29 +0000 (06:06 +0000)]
r7519: rip the copy of the ldap expression parser out of libcli/ldap/ and use
the original one in lib/ldb/ instead. Having two copies of this code
is silly.
(This used to be commit
0e9f18c44858b692c724c004f362de9e3dc15db5)
Andrew Tridgell [Mon, 13 Jun 2005 06:02:55 +0000 (06:02 +0000)]
r7518: don't use an uninitialised ldb debug function when failing to load modules in the ldap
backend
(This used to be commit
52e4a5b3b0c4c96bf9686ce047ccfc1846dc2c89)
Andrew Tridgell [Mon, 13 Jun 2005 05:58:49 +0000 (05:58 +0000)]
r7517: handle zero length equality tests
(This used to be commit
18c96f2b3e4d4c769354d61a4cda5c295f50536f)
Andrew Tridgell [Mon, 13 Jun 2005 05:56:46 +0000 (05:56 +0000)]
r7516: make sure binary decoding gives us something we can run string functions on
(This used to be commit
9913ab2550fae465c7a66fe7fa3a36a65b25b358)
Andrew Tridgell [Mon, 13 Jun 2005 05:33:55 +0000 (05:33 +0000)]
r7515: merge in the binary encode/decode enhancements from the libcli/ldap/
code into the ldb parse code
(This used to be commit
12647e37223847da810c2d4e5f83328b1fcf88cb)
Andrew Tridgell [Mon, 13 Jun 2005 05:18:17 +0000 (05:18 +0000)]
r7514: make the ldb_parse code not depend on a ldb_context, so we can now potentially use
it in our ldap client code, instead of replicating all the code
(This used to be commit
5b3575d9303d54a771e080a670dcd2f444b10c20)
Andrew Tridgell [Mon, 13 Jun 2005 00:06:40 +0000 (00:06 +0000)]
r7513: don't try to write to the smbd log file between tests. zeroing a file
while it is open for writing by another process causes the file to end
up with lots of nulls in it, which messes up the build farm output.
(This used to be commit
f7e636d4086b83180e76902fee739972cd6a7b26)
Andrew Tridgell [Sun, 12 Jun 2005 12:24:54 +0000 (12:24 +0000)]
r7510: fixed error code for using a bad tid.
amazingly, I have seen w2k do a session setup followed by an immediate
attempted opening of \netlogon, with no tconx to ipc$ first. So this
error code can matter.
(This used to be commit
79112d81cb9ea3fc7e94be1af282ab4247170532)
Andrew Bartlett [Sun, 12 Jun 2005 11:55:48 +0000 (11:55 +0000)]
r7509: With the update to Heimdal
20050612 we no longer need krb5_freelog(),
as krb5_closelog() no longer leaks memory.
Andrew Bartlett
(This used to be commit
b0bf8a4a5f04b65655f4005b27c80eb098039720)
Andrew Bartlett [Sun, 12 Jun 2005 11:31:57 +0000 (11:31 +0000)]
r7508: Fix memory leak of outgoing packets in the KDC.
Andrew Bartlett
(This used to be commit
6f7bb00c7e59444cde0c25b6f83e1c335d86ee32)
Andrew Tridgell [Sun, 12 Jun 2005 11:03:15 +0000 (11:03 +0000)]
r7507: fixed the problem with users being shown too many times in acl
editors, and added a test for it.
(This used to be commit
9e428881f6fc0a422ac9011d847e8f692284397a)
Andrew Tridgell [Sun, 12 Jun 2005 07:48:53 +0000 (07:48 +0000)]
r7506: handle the case where cron does not setup $USER
(This used to be commit
d4c1a1be0acbb11df4cfef5e454787b3f86f4181)
Tim Potter [Sun, 12 Jun 2005 07:03:32 +0000 (07:03 +0000)]
r7505: Add more argument forms for session_setup().
Throw an exception if tree connect fails.
(This used to be commit
5b67f2c3d91487fec38b300b4f71792cd9164a78)
Andrew Tridgell [Sun, 12 Jun 2005 06:58:20 +0000 (06:58 +0000)]
r7504: missed one
(This used to be commit
93eb9afb4deb77d1176dd021d007743c13487830)
Andrew Tridgell [Sun, 12 Jun 2005 06:56:47 +0000 (06:56 +0000)]
r7503: turn off the sleep test here too
(This used to be commit
3b9f4b61ade583e7bfd62b0be8b0724b30a07438)
Andrew Tridgell [Sun, 12 Jun 2005 06:47:27 +0000 (06:47 +0000)]
r7502: the sleep test in echo is already run on the main rpc test, so no need to run it with every combination in
this test. It takes nearly all of the time.
(This used to be commit
42754de142632ad2c02f821ce435752baf71027b)