1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

4832 Commits

Author SHA1 Message Date
Stefan Metzmacher
fddfe1f04b 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
2007-10-10 13:18:16 -05:00
Jeremy Allison
f9f3037d68 r7641: Fix based on work from "Shlomi Yaakobovich" <Shlomi@exanet.com> to catch
loops in corrupted tdb files.
Jeremy.
2007-10-10 13:18:16 -05:00
Love Hörnquist Åstrand
3aa80b8e58 r7638: krb5_closelog in heimdal-0.7 not longer leaks memory, so remove that comment 2007-10-10 13:18:16 -05:00
Andrew Bartlett
57ddedc954 r7637: Another useful Heimdal feature we need.
Andrew Bartlett
2007-10-10 13:18:16 -05:00
Simo Sorce
8735188b46 r7635: change the license of this file to lgpl like the rest of ldb 2007-10-10 13:18:16 -05:00
Stefan Metzmacher
520d5c6732 r7634: move TestSleep functions so that all of them are together
metze
2007-10-10 13:18:15 -05:00
Andrew Tridgell
3a3025485b 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
2007-10-10 13:18:15 -05:00
Stefan Metzmacher
d9a0c61801 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
2007-10-10 13:18:15 -05:00
Tim Potter
0c1f54461c r7630: Unused variable. 2007-10-10 13:18:15 -05:00
Tim Potter
c01c176da6 r7629: Unused labels. 2007-10-10 13:18:15 -05:00
Tim Potter
b2529307aa r7628: Unused variables. 2007-10-10 13:18:15 -05:00
Tim Potter
a4d0598863 r7627: Fix warning in unused (?) function. 2007-10-10 13:18:14 -05:00
Andrew Tridgell
2e3c660b2f 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
2007-10-10 13:18:14 -05:00
Volker Lendecke
da78ed1a4d r7621: Trivial reformatting while trying to understand share modes. Still survives
smbtorture *DENY* .

Volker
2007-10-10 13:18:14 -05:00
Simo Sorce
b38bb63175 r7615: fix the build and simplify gendb_search_dn 2007-10-10 13:18:14 -05:00
Simo Sorce
0218fc678e r7608: bug fix after yesterday's change 2007-10-10 13:18:14 -05:00
Jelmer Vernooij
5f37f7a524 r7605: Display properties in header files again. 2007-10-10 13:18:13 -05:00
Jelmer Vernooij
e3496732c6 r7604: Bunch of small pidl updates. Mostly removing unused functions,
cleanups and more flexibility (all output options
	now take an optional filename).
2007-10-10 13:18:13 -05:00
Derrell Lipman
ce9966e091 r7602: fix some compiler warnings 2007-10-10 13:18:13 -05:00
Derrell Lipman
0a64948152 r7601: ldb_sqlite3 work in progress 2007-10-10 13:18:13 -05:00
Andrew Tridgell
b316e1c2d3 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.
2007-10-10 13:18:13 -05:00
Andrew Tridgell
bcd4671aca r7598: take advantage of struct data_blob and struct ldb_val being the same
structure in a couple of places
2007-10-10 13:18:13 -05:00
Andrew Tridgell
35ec292f86 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
2007-10-10 13:18:12 -05:00
Andrew Tridgell
87fc307339 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)
2007-10-10 13:18:12 -05:00
Andrew Tridgell
6123eb2eca 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.
2007-10-10 13:18:12 -05:00
Andrew Tridgell
912d0427f5 r7593: simplified the memory management in the ldap code. Having a mem_ctx
element in a structure is not necessary any more.
2007-10-10 13:18:12 -05:00
Jelmer Vernooij
66a418a532 r7590: Cleanups, add more notes on new string code. 2007-10-10 13:18:12 -05:00
Rafal Szczesniak
cd89cf9919 r7588: Fix lacking space in the comment.
rafal
2007-10-10 13:18:12 -05:00
Rafal Szczesniak
265b1ab0cc r7587: More comments.
rafal
2007-10-10 13:18:11 -05:00
Derrell Lipman
86ca8639e0 r7586: ldb_sqlite3 making progress. add and search have indicated a willingness to operate properly on initial testing 2007-10-10 13:18:11 -05:00
Simo Sorce
a614466dec 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
2007-10-10 13:18:11 -05:00
Stefan Metzmacher
08e6de37bc 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
2007-10-10 13:18:11 -05:00
Stefan Metzmacher
075fe1eb4b r7575: - fix GetPrinterData() push side
- add somemore checks in the Emun*() pull/push glue code

metze
2007-10-10 13:18:11 -05:00
Stefan Metzmacher
f5532a5b74 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
2007-10-10 13:18:11 -05:00
Andrew Tridgell
73d2e5df0c r7572: fixed filter in test suite 2007-10-10 13:18:11 -05:00
Andrew Tridgell
348a86e643 r7571: fixed the generation of the filter string for extended filters 2007-10-10 13:18:10 -05:00
Tim Potter
63577628b0 r7570: Add tree, session and socket disconnect ejs functions. 2007-10-10 13:18:10 -05:00
Tim Potter
64fb327ccf r7569: Fix typo in comments. 2007-10-10 13:18:10 -05:00
Andrew Tridgell
69b02e8adb 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.
2007-10-10 13:18:10 -05:00
Andrew Tridgell
041bce5913 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))
2007-10-10 13:18:10 -05:00
Andrew Tridgell
1a81d28456 r7566: added support for LDAPString types in the asn.1 library 2007-10-10 13:18:10 -05:00
Andrew Tridgell
9b7a89735f r7565: fixed handling of sasl data in ldap server 2007-10-10 13:18:09 -05:00
Andrew Tridgell
853b8cd72d r7564: added a test showing the search expression that w2k is actually giving
us that triggered this work
2007-10-10 13:18:09 -05:00
Derrell Lipman
d8a9ce7853 r7562: work in progress 2007-10-10 13:18:09 -05:00
Derrell Lipman
42cbb155c2 r7561: moved OID constants into ldb.h and used manifest constants in ldb_match.c 2007-10-10 13:18:08 -05:00
Andrew Tridgell
7b58b3a9c5 r7560: added tests for extended bitop search functions 2007-10-10 13:18:08 -05:00
Andrew Tridgell
0c44a67001 r7559: support 64 bit matching in bitops 2007-10-10 13:18:08 -05:00
Andrew Tridgell
5f773b065f 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
2007-10-10 13:18:08 -05:00
Andrew Tridgell
71e281ae2f r7557: trigger a probe at tconx time to see if xattrs are really supported by
the filesystem
2007-10-10 13:18:08 -05:00
Derrell Lipman
77fc2036a0 r7556: fixed typo in documentation 2007-10-10 13:18:08 -05:00