samba.git
16 years agor7646: - only allow modification of SPOOLSS_FORM_USER Froms
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)

16 years agor7644: - remove some dublicate structures SetForm and AddForm uses the same struct
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)

16 years agor7643: This patch adds a new NTPTR subsystem:
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)

16 years agor7642: - test NULL server_name in GetPrinterDriverDirectory() too, (same result as "")
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)

16 years agor7641: Fix based on work from "Shlomi Yaakobovich" <Shlomi@exanet.com> to catch
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)

16 years agor7638: krb5_closelog in heimdal-0.7 not longer leaks memory, so remove that comment
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)

16 years agor7637: Another useful Heimdal feature we need.
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)

16 years agor7635: change the license of this file to lgpl like the rest of ldb
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)

16 years agor7634: move TestSleep functions so that all of them are together
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)

16 years agor7633: this patch started as an attempt to make the dcerpc code use a given
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)

16 years agor7631: - remove unused function, as the disgn of samba4 doesn't allow the old style
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)

16 years agor7630: Unused variable.
Tim Potter [Thu, 16 Jun 2005 06:56:48 +0000 (06:56 +0000)]
r7630: Unused variable.
(This used to be commit 0c1f54461cea633dbacb9692925b8c971a34a831)

16 years agor7629: Unused labels.
Tim Potter [Thu, 16 Jun 2005 06:55:55 +0000 (06:55 +0000)]
r7629: Unused labels.
(This used to be commit c01c176da640c012e1e6c9f0553b5075ef0e93bf)

16 years agor7628: Unused variables.
Tim Potter [Thu, 16 Jun 2005 06:55:07 +0000 (06:55 +0000)]
r7628: Unused variables.
(This used to be commit b2529307aaf1e47ce74632b4e516494ac71fe8d1)

16 years agor7627: Fix warning in unused (?) function.
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)

16 years agor7626: a new ldap client library. Main features are:
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)

16 years agor7621: Trivial reformatting while trying to understand share modes. Still survives
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)

16 years agor7615: fix the build and simplify gendb_search_dn
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)

16 years agor7608: bug fix after yesterday's change
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)

16 years agor7605: Display properties in header files again.
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)

16 years agor7604: Bunch of small pidl updates. Mostly removing unused functions,
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)

16 years agor7602: fix some compiler warnings
Derrell Lipman [Wed, 15 Jun 2005 02:45:11 +0000 (02:45 +0000)]
r7602: fix some compiler warnings
(This used to be commit ce9966e091d36f66d409ac6f7b5e462c9dc37325)

16 years agor7601: ldb_sqlite3 work in progress
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)

16 years agor7599: it turns out we were not using the ldif code in libcli/ldap/ at all,
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)

16 years agor7598: take advantage of struct data_blob and struct ldb_val being the same
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)

16 years agor7597: removed the bogus get_myfullname() and get_mydomname() calls, and put
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)

16 years agor7596: next step in ldap cleanup. I'm aiming to get rid of the cut&pasted
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)

16 years agor7594: abartlet is right that this hack is not actually necessary, it just
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)

16 years agor7593: simplified the memory management in the ldap code. Having a mem_ctx
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)

16 years agor7590: Cleanups, add more notes on new string code.
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)

16 years agor7588: Fix lacking space in the comment.
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)

16 years agor7587: More comments.
Rafal Szczesniak [Tue, 14 Jun 2005 22:08:00 +0000 (22:08 +0000)]
r7587: More comments.

rafal
(This used to be commit 265b1ab0cc2597d277630c56553a1c6243f6994b)

16 years agor7586: ldb_sqlite3 making progress. add and search have indicated a willingness...
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)

16 years agor7582: Better way to have a fast path searching for a specific DN.
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)

16 years agor7580: - add GetPrinterDriverDirectory() idl, torture test and server code
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)

16 years agor7575: - fix GetPrinterData() push side
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)

16 years agor7574: - seperate [in] and [out] buffers and buf_sizes
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)

16 years agor7572: fixed filter in test suite
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)

16 years agor7571: fixed the generation of the filter string for extended filters
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)

16 years agor7570: Add tree, session and socket disconnect ejs functions.
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)

16 years agor7569: Fix typo in comments.
Tim Potter [Tue, 14 Jun 2005 06:50:12 +0000 (06:50 +0000)]
r7569: Fix typo in comments.
(This used to be commit 64fb327ccf80d2d501ae559a6c4336a066191df0)

16 years agor7568: enable the NTLMSSP bulk data sign/seal code for out ldap server. This
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)

16 years agor7567: added wire parsing of NOT and extended ldap search requests. This
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)

16 years agor7566: added support for LDAPString types in the asn.1 library
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)

16 years agor7565: fixed handling of sasl data in ldap server
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)

16 years agor7564: added a test showing the search expression that w2k is actually giving
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)

16 years agor7562: work in progress
Derrell Lipman [Tue, 14 Jun 2005 03:08:34 +0000 (03:08 +0000)]
r7562: work in progress
(This used to be commit d8a9ce78533639f510b60b48c8f305bd07f3f717)

16 years agor7561: moved OID constants into ldb.h and used manifest constants in ldb_match.c
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)

16 years agor7560: added tests for extended bitop search functions
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)

16 years agor7559: support 64 bit matching in bitops
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)

16 years agor7558: added support in ldb for extended ldap search requests. These are
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)

16 years agor7557: trigger a probe at tconx time to see if xattrs are really supported by
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)

16 years agor7556: fixed typo in documentation
Derrell Lipman [Tue, 14 Jun 2005 01:04:20 +0000 (01:04 +0000)]
r7556: fixed typo in documentation
(This used to be commit 77fc2036a0db7bde9e90f090dbcd75ea70b3e0a0)

16 years agor7552: Use ParseExpr() for [value] attributes; allows
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)

16 years agor7546: fix comment
Stefan Metzmacher [Mon, 13 Jun 2005 18:51:02 +0000 (18:51 +0000)]
r7546: fix comment

metze
(This used to be commit de69d87ded11ef0954e931885761e9ecd9ce4e1b)

16 years agor7536: doesn't spam the smbd_log in the build_farm...
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)

16 years agor7533: don't show compile flags for each file
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)

16 years agor7531: Finally fix lp_load(). I had left hooks in place which restricted us
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)

16 years agor7530: Simply calling convention of lp_load().
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)

16 years agor7528: cleaned up the QueryDisplayInfo_continue test
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)

16 years agor7527: - added a ldb_search_bytree() interface, which takes a ldb_parse_tree
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)

16 years agor7526: make test should depend on the bins
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)

16 years agor7525: Unify lp_load(), load_interfaces and logging setup into popt().
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)

16 years agor7524: make the ldap ASN.1 filter parse code go via a struct
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)

16 years agor7523: blergh
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)

16 years agor7522: added a ldb_filter_from_tree() function that takes a ldb_parse_tree
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)

16 years agor7521: Remove useless loops from SAMLOGON test, which speeds it up a lot.
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)

16 years agor7520: Fix memory leak in hdb-ldb.c
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)

16 years agor7519: rip the copy of the ldap expression parser out of libcli/ldap/ and use
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)

16 years agor7518: don't use an uninitialised ldb debug function when failing to load modules...
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)

16 years agor7517: handle zero length equality tests
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)

16 years agor7516: make sure binary decoding gives us something we can run string functions on
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)

16 years agor7515: merge in the binary encode/decode enhancements from the libcli/ldap/
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)

16 years agor7514: make the ldb_parse code not depend on a ldb_context, so we can now potentially use
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)

16 years agor7513: don't try to write to the smbd log file between tests. zeroing a file
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)

16 years agor7510: fixed error code for using a bad tid.
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)

16 years agor7509: With the update to Heimdal 20050612 we no longer need krb5_freelog(),
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)

16 years agor7508: Fix memory leak of outgoing packets in the KDC.
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)

16 years agor7507: fixed the problem with users being shown too many times in acl
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)

16 years agor7506: handle the case where cron does not setup $USER
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)

16 years agor7505: Add more argument forms for session_setup().
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)

16 years agor7504: missed one
Andrew Tridgell [Sun, 12 Jun 2005 06:58:20 +0000 (06:58 +0000)]
r7504: missed one
(This used to be commit 93eb9afb4deb77d1176dd021d007743c13487830)

16 years agor7503: turn off the sleep test here too
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)

16 years agor7502: the sleep test in echo is already run on the main rpc test, so no need to...
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)

16 years agor7501: Fix credential initialisation in ejs session setup. Implement four
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.
(This used to be commit 3b7df1037de813d93b284d3b4438b083e668e29f)

16 years agor7500: Initialise module subsystems.
Tim Potter [Sun, 12 Jun 2005 06:37:25 +0000 (06:37 +0000)]
r7500: Initialise module subsystems.
(This used to be commit 564dfe14d00e80a0d373ab0fc17803ffaac0892e)

16 years agor7499: ensure that the account we run tests as ("Administrator") maps to the
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.
(This used to be commit 30445483e4facb0a1d8a5979a2eac6c166193c09)

16 years agor7498: ldb_sqlite3 work in progress
Derrell Lipman [Sun, 12 Jun 2005 03:07:10 +0000 (03:07 +0000)]
r7498: ldb_sqlite3 work in progress
(This used to be commit 797263330b9eada019e432ff201bf5c872e35b5d)

16 years agor7497: add timeouts to all rpc requests. The default timeout is 60
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
(This used to be commit c24ab34813d675b9b81f3062fb6f30aae5697805)

16 years agor7496: removed an unused variable
Andrew Tridgell [Sun, 12 Jun 2005 02:18:25 +0000 (02:18 +0000)]
r7496: removed an unused variable
(This used to be commit a8c99d0e37b5ca37cabc201c1290c6cd26a16549)

16 years agor7495: used --maximum-runtime=300 for each smbtorture call, to prevent it
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
(This used to be commit 3d70755abfb7764379d648e9bc1697ae9289d02b)

16 years agor7494: added --maximum-runtime to smbtorture as well. I have seen smbtorture
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.
(This used to be commit 5cccf0a770e0c1069f940fa8f4853f64327dc90c)

16 years agor7493: add a --maximum-runtime option to smbd. If this time is exceeeded then it...
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
(This used to be commit 3cec5b3c8656efcb00df530071c2badca914126a)

16 years agor7492: give better output
Stefan Metzmacher [Sat, 11 Jun 2005 17:55:58 +0000 (17:55 +0000)]
r7492: give better output

metze
(This used to be commit 134f5defa0f1eb240207f593866ab75f20943938)

16 years agor7491: libnet functions used in tests have different names now.
Rafal Szczesniak [Sat, 11 Jun 2005 10:33:31 +0000 (10:33 +0000)]
r7491: libnet functions used in tests have different names now.

rafal
(This used to be commit d54bf09701b1085451479a32569849998c53c811)

16 years agor7490: Rename functions and prefices s/rpc_composite/libnet_rpc/
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
(This used to be commit f6ef7b882acc6ee07422944a417a8d9013c9d8d2)

16 years agor7489: just a cosmetic change
Stefan Metzmacher [Sat, 11 Jun 2005 08:49:12 +0000 (08:49 +0000)]
r7489: just a cosmetic change

metze
(This used to be commit 2dcbf07d0cc105a49c7b086f340c7ec9b5c97b6a)

16 years agor7488: update the mode in the struct too,
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
(This used to be commit e27c1ab89b21726d3c9e7f8f7af22d1ff38f2413)

16 years agor7487: check both files before and after setting the attribs on file1
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
(This used to be commit 376c0560e0cb453fa8a378ff2983b34310956ae8)

16 years agor7486: fix for the build farm to display the panic messages and backtrace inside...
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
(This used to be commit 5cf27b4af33fd7e30a59e53e4b08d67ac83ddccd)