Simo Sorce [Wed, 15 Jun 2005 17:15:01 +0000 (17:15 +0000)]
r7615: fix the build and simplify gendb_search_dn
Simo Sorce [Wed, 15 Jun 2005 13:01:39 +0000 (13:01 +0000)]
r7608: bug fix after yesterday's change
Jelmer Vernooij [Wed, 15 Jun 2005 10:44:56 +0000 (10:44 +0000)]
r7605: Display properties in header files again.
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).
Derrell Lipman [Wed, 15 Jun 2005 02:45:11 +0000 (02:45 +0000)]
r7602: fix some compiler warnings
Derrell Lipman [Wed, 15 Jun 2005 02:43:42 +0000 (02:43 +0000)]
r7601: ldb_sqlite3 work in progress
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.
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
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
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)
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.
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.
Jelmer Vernooij [Tue, 14 Jun 2005 22:47:14 +0000 (22:47 +0000)]
r7590: Cleanups, add more notes on new string code.
Rafal Szczesniak [Tue, 14 Jun 2005 22:08:29 +0000 (22:08 +0000)]
r7588: Fix lacking space in the comment.
rafal
Rafal Szczesniak [Tue, 14 Jun 2005 22:08:00 +0000 (22:08 +0000)]
r7587: More comments.
rafal
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
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
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
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
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
Andrew Tridgell [Tue, 14 Jun 2005 07:50:18 +0000 (07:50 +0000)]
r7572: fixed filter in test suite
Andrew Tridgell [Tue, 14 Jun 2005 07:48:44 +0000 (07:48 +0000)]
r7571: fixed the generation of the filter string for extended filters
Tim Potter [Tue, 14 Jun 2005 07:14:59 +0000 (07:14 +0000)]
r7570: Add tree, session and socket disconnect ejs functions.
Tim Potter [Tue, 14 Jun 2005 06:50:12 +0000 (06:50 +0000)]
r7569: Fix typo in comments.
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.
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))
Andrew Tridgell [Tue, 14 Jun 2005 03:52:27 +0000 (03:52 +0000)]
r7566: added support for LDAPString types in the asn.1 library
Andrew Tridgell [Tue, 14 Jun 2005 03:51:49 +0000 (03:51 +0000)]
r7565: fixed handling of sasl data in ldap server
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
Derrell Lipman [Tue, 14 Jun 2005 03:08:34 +0000 (03:08 +0000)]
r7562: work in progress
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
Andrew Tridgell [Tue, 14 Jun 2005 02:34:13 +0000 (02:34 +0000)]
r7560: added tests for extended bitop search functions
Andrew Tridgell [Tue, 14 Jun 2005 02:33:49 +0000 (02:33 +0000)]
r7559: support 64 bit matching in bitops
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
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
Derrell Lipman [Tue, 14 Jun 2005 01:04:20 +0000 (01:04 +0000)]
r7556: fixed typo in documentation
Jelmer Vernooij [Mon, 13 Jun 2005 22:22:51 +0000 (22:22 +0000)]
r7552: Use ParseExpr() for [value] attributes; allows
us somewhat cleaner IDL.
Stefan Metzmacher [Mon, 13 Jun 2005 18:51:02 +0000 (18:51 +0000)]
r7546: fix comment
metze
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
Andrew Tridgell [Mon, 13 Jun 2005 12:37:37 +0000 (12:37 +0000)]
r7533: don't show compile flags for each file
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
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
Andrew Tridgell [Mon, 13 Jun 2005 09:11:21 +0000 (09:11 +0000)]
r7528: cleaned up the QueryDisplayInfo_continue test
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()
Andrew Tridgell [Mon, 13 Jun 2005 09:04:01 +0000 (09:04 +0000)]
r7526: make test should depend on the bins
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
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.
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
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.
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
Andrew Bartlett [Mon, 13 Jun 2005 06:07:18 +0000 (06:07 +0000)]
r7520: Fix memory leak in hdb-ldb.c
Andrew Bartlett
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.
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
Andrew Tridgell [Mon, 13 Jun 2005 05:58:49 +0000 (05:58 +0000)]
r7517: handle zero length equality tests
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
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
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
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.
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.
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
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
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.
Andrew Tridgell [Sun, 12 Jun 2005 07:48:53 +0000 (07:48 +0000)]
r7506: handle the case where cron does not setup $USER
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.
Andrew Tridgell [Sun, 12 Jun 2005 06:58:20 +0000 (06:58 +0000)]
r7504: missed one
Andrew Tridgell [Sun, 12 Jun 2005 06:56:47 +0000 (06:56 +0000)]
r7503: turn off the sleep test here too
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.
Tim Potter [Sun, 12 Jun 2005 06:40:17 +0000 (06:40 +0000)]
r7501: Fix credential initialisation in ejs session setup. Implement four
arg and anonymous version of command.
Implement ejs tconx.
Tim Potter [Sun, 12 Jun 2005 06:37:25 +0000 (06:37 +0000)]
r7500: Initialise module subsystems.
Andrew Tridgell [Sun, 12 Jun 2005 06:35:18 +0000 (06:35 +0000)]
r7499: ensure that the account we run tests as ("Administrator") maps to the
unixName that we are running as in the test suite. Otherwise files are
created as a user without any entry in the sam, so the ACL doesn't
allow that user read permission when it should. This should fix the
RAW-ACLS test in the build farm.
Derrell Lipman [Sun, 12 Jun 2005 03:07:10 +0000 (03:07 +0000)]
r7498: ldb_sqlite3 work in progress
Andrew Tridgell [Sun, 12 Jun 2005 02:42:40 +0000 (02:42 +0000)]
r7497: add timeouts to all rpc requests. The default timeout is 60
seconds. This should prevent the problem I am seeing on a solaris box
where a rpc request gets stuck forever
Andrew Tridgell [Sun, 12 Jun 2005 02:18:25 +0000 (02:18 +0000)]
r7496: removed an unused variable
Andrew Tridgell [Sun, 12 Jun 2005 01:36:56 +0000 (01:36 +0000)]
r7495: used --maximum-runtime=300 for each smbtorture call, to prevent it
running too long
Andrew Tridgell [Sun, 12 Jun 2005 01:28:20 +0000 (01:28 +0000)]
r7494: added --maximum-runtime to smbtorture as well. I have seen smbtorture
get stuck waiting on no file descriptors, with no timeout, so it sits
forever. I need to fix that bug separately, but to prevent build farm
machines being totally stuck, this timeout will be used.
Andrew Tridgell [Sun, 12 Jun 2005 00:17:23 +0000 (00:17 +0000)]
r7493: add a --maximum-runtime option to smbd. If this time is exceeeded then it exits.
This will be used in the build farm
Stefan Metzmacher [Sat, 11 Jun 2005 17:55:58 +0000 (17:55 +0000)]
r7492: give better output
metze
Rafal Szczesniak [Sat, 11 Jun 2005 10:33:31 +0000 (10:33 +0000)]
r7491: libnet functions used in tests have different names now.
rafal
Rafal Szczesniak [Sat, 11 Jun 2005 10:31:33 +0000 (10:31 +0000)]
r7490: Rename functions and prefices s/rpc_composite/libnet_rpc/
This makes more clear where the functions belong to. Also
the rule will be that lowercased function names are not
part of "official" libnet API (though it doesn't mean one
absolutely cannot use them).
rafal
Stefan Metzmacher [Sat, 11 Jun 2005 08:49:12 +0000 (08:49 +0000)]
r7489: just a cosmetic change
metze
Stefan Metzmacher [Sat, 11 Jun 2005 07:46:50 +0000 (07:46 +0000)]
r7488: update the mode in the struct too,
that fixes the RAW-RENAME test
metze
Stefan Metzmacher [Sat, 11 Jun 2005 07:01:44 +0000 (07:01 +0000)]
r7487: check both files before and after setting the attribs on file1
metze
Stefan Metzmacher [Sat, 11 Jun 2005 05:06:32 +0000 (05:06 +0000)]
r7486: fix for the build farm to display the panic messages and backtrace inside the per test frame
metze
Andrew Tridgell [Sat, 11 Jun 2005 04:07:20 +0000 (04:07 +0000)]
r7485: - allow test_xxx.sh to run outside of 'make test' by ensuring $PREFIX is setup
- use loopback interface only, otherwise nbtd will answer with a real
ip, which the socket wrapper code will fail to connect to
- enable eadb for posix testing
- sleeping to wait for smbd to start is pointless, as smbd won't start
till its fifo is opened due to the fifo redirection on stdin
- sleep for a few seconds to allow for nbt server to register names after opening fifo
- use bcast name resolution, so we don't rely on /etc/hosts being right
Andrew Tridgell [Sat, 11 Jun 2005 03:55:40 +0000 (03:55 +0000)]
r7484: the previous bug can also affect the kdc
Andrew Tridgell [Sat, 11 Jun 2005 03:53:39 +0000 (03:53 +0000)]
r7483: ensure we try reading from a socket if epoll says we can, and don't
just do the write. This is needed because the write could return
-1/EAGAIN for dgram sockets, if the socket buffer is nearly full. The
epoll loop then goes on forever.
This was causing some failures in 'make test'
Tim Potter [Sat, 11 Jun 2005 03:35:28 +0000 (03:35 +0000)]
r7482: Rename smbcli_send_tconX() to smbcli_tconX() so as not to get it
confused with an async function.
Tim Potter [Sat, 11 Jun 2005 03:34:11 +0000 (03:34 +0000)]
r7481: Add a mprVarIsPtr macro.
Derrell Lipman [Sat, 11 Jun 2005 03:20:26 +0000 (03:20 +0000)]
r7480: ldb_sqlite3 work in progress
Tim Potter [Sat, 11 Jun 2005 03:04:40 +0000 (03:04 +0000)]
r7479: ifdef out some more stuff to fix compiler warnings.
Andrew Tridgell [Sat, 11 Jun 2005 02:50:47 +0000 (02:50 +0000)]
r7478: fixed a problem with a backgrounded smbd looping to handle continuous
tty related signals
Tim Potter [Sat, 11 Jun 2005 02:39:14 +0000 (02:39 +0000)]
r7477: Add MPR_TYPE_PTR to ejs_typeof().
Andrew Tridgell [Sat, 11 Jun 2005 02:26:53 +0000 (02:26 +0000)]
r7476: ensure dgram sockets are created non-blocking. As they usually skip
the connect() stage, we were missing this
Andrew Tridgell [Sat, 11 Jun 2005 01:34:42 +0000 (01:34 +0000)]
r7475: removed RPC-SAMLOGON test until we get a lighter version of it. It is
chewing far too much cpu, which is unfair on our volunteer systems
andrew, sorry about this, I think we need RPC-SAMLOGON-FULL, and make
RPC-SAMLOGON only do a basic test
Stefan Metzmacher [Fri, 10 Jun 2005 16:19:38 +0000 (16:19 +0000)]
r7469: fix typo
metze
Stefan Metzmacher [Fri, 10 Jun 2005 16:09:41 +0000 (16:09 +0000)]
r7468: create better output
metze
Stefan Metzmacher [Fri, 10 Jun 2005 16:07:49 +0000 (16:07 +0000)]
r7467: a little fix for the build-farm
metze
Stefan Metzmacher [Fri, 10 Jun 2005 15:47:51 +0000 (15:47 +0000)]
r7466: add RPC-SPOOLSS to the supported tests
metze
Stefan Metzmacher [Fri, 10 Jun 2005 15:39:23 +0000 (15:39 +0000)]
r7465: - return empty lists for now
- return WERR_NOT_SUPPORTED on AddPort()
(we pass the RPC-SPOOLSS test now :-)
metze
Stefan Metzmacher [Fri, 10 Jun 2005 15:37:07 +0000 (15:37 +0000)]
r7464: add newline to printf
metze