1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
Commit Graph

4874 Commits

Author SHA1 Message Date
Tim Potter
51041427f2 r7630: Unused variable.
(This used to be commit 0c1f54461c)
2007-10-10 13:18:15 -05:00
Tim Potter
757278118a r7629: Unused labels.
(This used to be commit c01c176da6)
2007-10-10 13:18:15 -05:00
Tim Potter
fb201ec2af r7628: Unused variables.
(This used to be commit b2529307aa)
2007-10-10 13:18:15 -05:00
Tim Potter
289845ff77 r7627: Fix warning in unused (?) function.
(This used to be commit a4d0598863)
2007-10-10 13:18:14 -05:00
Andrew Tridgell
bab977dad7 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 2e3c660b2f)
2007-10-10 13:18:14 -05:00
Volker Lendecke
9105bf4054 r7621: Trivial reformatting while trying to understand share modes. Still survives
smbtorture *DENY* .

Volker
(This used to be commit da78ed1a4d)
2007-10-10 13:18:14 -05:00
Simo Sorce
4864c329c4 r7615: fix the build and simplify gendb_search_dn
(This used to be commit b38bb63175)
2007-10-10 13:18:14 -05:00
Simo Sorce
9378cca1ae r7608: bug fix after yesterday's change
(This used to be commit 0218fc678e)
2007-10-10 13:18:14 -05:00
Jelmer Vernooij
ee2b5ae0eb r7605: Display properties in header files again.
(This used to be commit 5f37f7a524)
2007-10-10 13:18:13 -05:00
Jelmer Vernooij
bdc1f52ea4 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 e3496732c6)
2007-10-10 13:18:13 -05:00
Derrell Lipman
93e03bd272 r7602: fix some compiler warnings
(This used to be commit ce9966e091)
2007-10-10 13:18:13 -05:00
Derrell Lipman
f021dffb69 r7601: ldb_sqlite3 work in progress
(This used to be commit 0a64948152)
2007-10-10 13:18:13 -05:00
Andrew Tridgell
ec4a99ffe8 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 b316e1c2d3)
2007-10-10 13:18:13 -05:00
Andrew Tridgell
49bc2672f8 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 bcd4671aca)
2007-10-10 13:18:13 -05:00
Andrew Tridgell
6be47e9bc2 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 35ec292f86)
2007-10-10 13:18:12 -05:00
Andrew Tridgell
3e92471d4c 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 87fc307339)
2007-10-10 13:18:12 -05:00
Andrew Tridgell
a7d6185f41 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 6123eb2eca)
2007-10-10 13:18:12 -05:00
Andrew Tridgell
c0947b0d7f 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 912d0427f5)
2007-10-10 13:18:12 -05:00
Jelmer Vernooij
74a3621089 r7590: Cleanups, add more notes on new string code.
(This used to be commit 66a418a532)
2007-10-10 13:18:12 -05:00
Rafal Szczesniak
21fd11ff71 r7588: Fix lacking space in the comment.
rafal
(This used to be commit cd89cf9919)
2007-10-10 13:18:12 -05:00
Rafal Szczesniak
5f7f9eb11b r7587: More comments.
rafal
(This used to be commit 265b1ab0cc)
2007-10-10 13:18:11 -05:00
Derrell Lipman
c2747479e0 r7586: ldb_sqlite3 making progress. add and search have indicated a willingness to operate properly on initial testing
(This used to be commit 86ca8639e0)
2007-10-10 13:18:11 -05:00
Simo Sorce
9189833a87 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 a614466dec)
2007-10-10 13:18:11 -05:00
Stefan Metzmacher
056d63c62f 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 08e6de37bc)
2007-10-10 13:18:11 -05:00
Stefan Metzmacher
bc1f32b8ad r7575: - fix GetPrinterData() push side
- add somemore checks in the Emun*() pull/push glue code

metze
(This used to be commit 075fe1eb4b)
2007-10-10 13:18:11 -05:00
Stefan Metzmacher
04c3bbe053 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 f5532a5b74)
2007-10-10 13:18:11 -05:00
Andrew Tridgell
051b93bec3 r7572: fixed filter in test suite
(This used to be commit 73d2e5df0c)
2007-10-10 13:18:11 -05:00
Andrew Tridgell
42863aebb1 r7571: fixed the generation of the filter string for extended filters
(This used to be commit 348a86e643)
2007-10-10 13:18:10 -05:00
Tim Potter
487d1afe30 r7570: Add tree, session and socket disconnect ejs functions.
(This used to be commit 63577628b0)
2007-10-10 13:18:10 -05:00
Tim Potter
26d35d90a2 r7569: Fix typo in comments.
(This used to be commit 64fb327ccf)
2007-10-10 13:18:10 -05:00
Andrew Tridgell
db2e86f75c 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 69b02e8adb)
2007-10-10 13:18:10 -05:00
Andrew Tridgell
6426f2a39a 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 041bce5913)
2007-10-10 13:18:10 -05:00
Andrew Tridgell
9d6b3e62c2 r7566: added support for LDAPString types in the asn.1 library
(This used to be commit 1a81d28456)
2007-10-10 13:18:10 -05:00
Andrew Tridgell
2e89687144 r7565: fixed handling of sasl data in ldap server
(This used to be commit 9b7a89735f)
2007-10-10 13:18:09 -05:00
Andrew Tridgell
1491f9b615 r7564: added a test showing the search expression that w2k is actually giving
us that triggered this work
(This used to be commit 853b8cd72d)
2007-10-10 13:18:09 -05:00
Derrell Lipman
81b4183e1c r7562: work in progress
(This used to be commit d8a9ce7853)
2007-10-10 13:18:09 -05:00
Derrell Lipman
785b452a04 r7561: moved OID constants into ldb.h and used manifest constants in ldb_match.c
(This used to be commit 42cbb155c2)
2007-10-10 13:18:08 -05:00
Andrew Tridgell
5ec2c79dc5 r7560: added tests for extended bitop search functions
(This used to be commit 7b58b3a9c5)
2007-10-10 13:18:08 -05:00
Andrew Tridgell
3f09462719 r7559: support 64 bit matching in bitops
(This used to be commit 0c44a67001)
2007-10-10 13:18:08 -05:00
Andrew Tridgell
4fec6356ea 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 5f773b065f)
2007-10-10 13:18:08 -05:00
Andrew Tridgell
f29b9278bb r7557: trigger a probe at tconx time to see if xattrs are really supported by
the filesystem
(This used to be commit 71e281ae2f)
2007-10-10 13:18:08 -05:00
Derrell Lipman
4a139f8171 r7556: fixed typo in documentation
(This used to be commit 77fc2036a0)
2007-10-10 13:18:08 -05:00
Jelmer Vernooij
c420c5a4c4 r7552: Use ParseExpr() for [value] attributes; allows
us somewhat cleaner IDL.
(This used to be commit b7b01bccd1)
2007-10-10 13:18:07 -05:00
Stefan Metzmacher
9ef145424a r7546: fix comment
metze
(This used to be commit de69d87ded)
2007-10-10 13:18:07 -05:00
Stefan Metzmacher
33bbe2b9e1 r7536: doesn't spam the smbd_log in the build_farm...
metze
(This used to be commit 9f4ed54c58)
2007-10-10 13:18:07 -05:00
Andrew Tridgell
734ff692f3 r7533: don't show compile flags for each file
(This used to be commit 6a9ab148a9)
2007-10-10 13:18:07 -05:00
Andrew Bartlett
e76397739d 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 9e6112eee3)
2007-10-10 13:18:07 -05:00
Andrew Bartlett
00e2b7c1b4 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 990e061939)
2007-10-10 13:18:07 -05:00
Andrew Tridgell
68c15667f5 r7528: cleaned up the QueryDisplayInfo_continue test
(This used to be commit a977dcef03)
2007-10-10 13:18:06 -05:00
Andrew Tridgell
4b0e5bd753 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 96620ab2ee)
2007-10-10 13:18:06 -05:00
Andrew Tridgell
d71e1a7a7f r7526: make test should depend on the bins
(This used to be commit 646953df4c)
2007-10-10 13:18:06 -05:00
Andrew Bartlett
2b4791ae73 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 50f3c2b3a2)
2007-10-10 13:18:06 -05:00
Andrew Tridgell
8fd5825a89 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 235cf625e2)
2007-10-10 13:18:06 -05:00
Andrew Tridgell
8f31f8c57e r7523: blergh
the error code for an invalid tid depends on the command
(This used to be commit 9dab036fbe)
2007-10-10 13:18:06 -05:00
Andrew Tridgell
e5c70a5887 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 04356c1b1e)
2007-10-10 13:18:05 -05:00
Andrew Bartlett
04b350acf8 r7521: Remove useless loops from SAMLOGON test, which speeds it up a lot.
Andrew Bartlett
(This used to be commit d74b7c20b6)
2007-10-10 13:18:05 -05:00
Andrew Bartlett
8cd7848b8f r7520: Fix memory leak in hdb-ldb.c
Andrew Bartlett
(This used to be commit 7f6a7f7fc5)
2007-10-10 13:18:05 -05:00
Andrew Tridgell
816f4f7c4a 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 0e9f18c448)
2007-10-10 13:18:04 -05:00
Andrew Tridgell
490a5a5d59 r7518: don't use an uninitialised ldb debug function when failing to load modules in the ldap
backend
(This used to be commit 52e4a5b3b0)
2007-10-10 13:18:03 -05:00
Andrew Tridgell
d94805ea55 r7517: handle zero length equality tests
(This used to be commit 18c96f2b3e)
2007-10-10 13:18:03 -05:00
Andrew Tridgell
e1fa7352ca r7516: make sure binary decoding gives us something we can run string functions on
(This used to be commit 9913ab2550)
2007-10-10 13:18:03 -05:00
Andrew Tridgell
9cb3b2d49b r7515: merge in the binary encode/decode enhancements from the libcli/ldap/
code into the ldb parse code
(This used to be commit 12647e3722)
2007-10-10 13:18:02 -05:00
Andrew Tridgell
87acba39f9 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 5b3575d930)
2007-10-10 13:18:02 -05:00
Andrew Tridgell
2be36bb85d 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 f7e636d408)
2007-10-10 13:18:02 -05:00
Andrew Tridgell
76d3439c4b 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 79112d81cb)
2007-10-10 13:18:02 -05:00
Andrew Bartlett
e9fa8f7cce 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 b0bf8a4a5f)
2007-10-10 13:18:02 -05:00
Andrew Bartlett
183cb2b939 r7508: Fix memory leak of outgoing packets in the KDC.
Andrew Bartlett
(This used to be commit 6f7bb00c7e)
2007-10-10 13:18:02 -05:00
Andrew Tridgell
694488d29c 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 9e428881f6)
2007-10-10 13:18:02 -05:00
Andrew Tridgell
72ac776782 r7506: handle the case where cron does not setup $USER
(This used to be commit d4c1a1be0a)
2007-10-10 13:18:01 -05:00
Tim Potter
fb3874bfac r7505: Add more argument forms for session_setup().
Throw an exception if tree connect fails.
(This used to be commit 5b67f2c3d9)
2007-10-10 13:18:01 -05:00
Andrew Tridgell
db4fd5c434 r7504: missed one
(This used to be commit 93eb9afb4d)
2007-10-10 13:18:01 -05:00
Andrew Tridgell
4a5ab77098 r7503: turn off the sleep test here too
(This used to be commit 3b9f4b61ad)
2007-10-10 13:18:01 -05:00
Andrew Tridgell
de160af1c7 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 42754de142)
2007-10-10 13:18:01 -05:00
Tim Potter
ae23fe35e2 r7501: Fix credential initialisation in ejs session setup. Implement four
arg and anonymous version of command.

Implement ejs tconx.
(This used to be commit 3b7df1037d)
2007-10-10 13:18:01 -05:00
Tim Potter
9e555f75e2 r7500: Initialise module subsystems.
(This used to be commit 564dfe14d0)
2007-10-10 13:18:01 -05:00
Andrew Tridgell
47ab0ed8ed 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 30445483e4)
2007-10-10 13:18:00 -05:00
Derrell Lipman
2e1851e1ac r7498: ldb_sqlite3 work in progress
(This used to be commit 797263330b)
2007-10-10 13:18:00 -05:00
Andrew Tridgell
ee30cf3b1d 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 c24ab34813)
2007-10-10 13:18:00 -05:00
Andrew Tridgell
d1e8e62a56 r7496: removed an unused variable
(This used to be commit a8c99d0e37)
2007-10-10 13:18:00 -05:00
Andrew Tridgell
3a3947cd86 r7495: used --maximum-runtime=300 for each smbtorture call, to prevent it
running too long
(This used to be commit 3d70755abf)
2007-10-10 13:18:00 -05:00
Andrew Tridgell
82da98a1da 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 5cccf0a770)
2007-10-10 13:18:00 -05:00
Andrew Tridgell
ea7942d468 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 3cec5b3c86)
2007-10-10 13:17:59 -05:00
Stefan Metzmacher
39172de4dc r7492: give better output
metze
(This used to be commit 134f5defa0)
2007-10-10 13:17:59 -05:00
Rafal Szczesniak
1104ca3337 r7491: libnet functions used in tests have different names now.
rafal
(This used to be commit d54bf09701)
2007-10-10 13:17:59 -05:00
Rafal Szczesniak
c29896d0ae 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 f6ef7b882a)
2007-10-10 13:17:59 -05:00
Stefan Metzmacher
a4b58b091b r7489: just a cosmetic change
metze
(This used to be commit 2dcbf07d0c)
2007-10-10 13:17:59 -05:00
Stefan Metzmacher
bda75f7e90 r7488: update the mode in the struct too,
that fixes the RAW-RENAME test

metze
(This used to be commit e27c1ab89b)
2007-10-10 13:17:59 -05:00
Stefan Metzmacher
68ff6b1262 r7487: check both files before and after setting the attribs on file1
metze
(This used to be commit 376c0560e0)
2007-10-10 13:17:58 -05:00
Stefan Metzmacher
4233f18a31 r7486: fix for the build farm to display the panic messages and backtrace inside the per test frame
metze
(This used to be commit 5cf27b4af3)
2007-10-10 13:17:58 -05:00
Andrew Tridgell
612babc4af 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
(This used to be commit 9ce2b9a79b)
2007-10-10 13:17:58 -05:00
Andrew Tridgell
6a4cb0e651 r7484: the previous bug can also affect the kdc
(This used to be commit ee8bf9db4a)
2007-10-10 13:17:58 -05:00
Andrew Tridgell
07b0d86121 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'
(This used to be commit b7fefe76a2)
2007-10-10 13:17:58 -05:00
Tim Potter
6412e8eeae r7482: Rename smbcli_send_tconX() to smbcli_tconX() so as not to get it
confused with an async function.
(This used to be commit 340ad67cad)
2007-10-10 13:17:58 -05:00
Tim Potter
182dd02ebe r7481: Add a mprVarIsPtr macro.
(This used to be commit 633b24345f)
2007-10-10 13:17:57 -05:00
Derrell Lipman
0264c1792d r7480: ldb_sqlite3 work in progress
(This used to be commit 510e7994da)
2007-10-10 13:17:57 -05:00
Tim Potter
43d3689ecf r7479: ifdef out some more stuff to fix compiler warnings.
(This used to be commit c4d10a98ff)
2007-10-10 13:17:57 -05:00
Andrew Tridgell
b8c8da4a50 r7478: fixed a problem with a backgrounded smbd looping to handle continuous
tty related signals
(This used to be commit db2b507add)
2007-10-10 13:17:57 -05:00
Tim Potter
16a5d7c175 r7477: Add MPR_TYPE_PTR to ejs_typeof().
(This used to be commit 8574f64ca2)
2007-10-10 13:17:57 -05:00
Andrew Tridgell
b1b134084f r7476: ensure dgram sockets are created non-blocking. As they usually skip
the connect() stage, we were missing this
(This used to be commit f5102b886c)
2007-10-10 13:17:57 -05:00
Andrew Tridgell
2514f8925e 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
(This used to be commit 71bf781227)
2007-10-10 13:17:57 -05:00