1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

15085 Commits

Author SHA1 Message Date
Jelmer Vernooij
f61780b11c build: Remove unused functions Import() and GetInfo().
(This used to be commit 5c2be1e8a9)
2008-02-08 14:12:46 +01:00
Jelmer Vernooij
f47093baf0 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
Conflicts:

	source/scripting/python/samba/provision.py
(This used to be commit e367df5d99)
2008-02-08 14:02:22 +01:00
Andrew Bartlett
e5d2ec1cb9 Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
(This used to be commit ae9d0343e0)
2008-02-08 17:20:03 +11:00
Andrew Bartlett
0efa783849 Remove unused parameter from provision()
Andrew Bartlett
(This used to be commit c8b0a8a196)
2008-02-08 17:12:54 +11:00
Andrew Bartlett
c1c09e584e LDAP now works with the python provision!
Andrew Bartlett
(This used to be commit 8f0a89ca19)
2008-02-08 17:12:25 +11:00
Andrew Bartlett
26897518ea Fix LDAP backend with python
We were still setting the hard-coded users.ldb etc, rather than
switching to the ldapi:// URI

Andrew Bartlett
(This used to be commit 603e981250)
2008-02-08 17:11:26 +11:00
Andrew Bartlett
5153c67267 Reset error strings
Avoid leaking error strings up to the application, when we are ignoring them.
(This used to be commit 57b4b43b65)
2008-02-08 17:09:49 +11:00
Andrew Tridgell
9e681efdf0 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit fd9cc4eb5a)
2008-02-08 14:13:48 +11:00
Andrew Tridgell
77dab7f857 merge tdb changes from ctdb
(This used to be commit b3e60a388d)
2008-02-08 14:13:19 +11:00
Andrew Bartlett
bbf8aca01d Fix syntax in LDAP test
We don't get this far in the test at the moment however.

Andrew Bartlett
(This used to be commit c3098d5c52)
2008-02-08 13:23:45 +11:00
Jelmer Vernooij
fffe4f3bdd Fix formatting.
(This used to be commit 73d1b0fcb6)
2008-02-08 03:03:44 +01:00
Andrew Bartlett
9e547f4303 Revert to ejs for 'provision'
Andrew Bartlett
(This used to be commit fa1098959a)
2008-02-08 12:54:09 +11:00
Andrew Bartlett
0fc670308e Remove unused argument to provision().
Andrew Bartlett
(This used to be commit 2f98ec1e64)
2008-02-08 12:52:54 +11:00
Andrew Bartlett
cc61c1d5f4 LDAP backend provision now works with python.
Andrew Bartlett
(This used to be commit 3e6a6e6b21)
2008-02-08 12:49:30 +11:00
Andrew Bartlett
411ec4b79c Remove unused ldap_backend argument from provision.py
Andrew Bartlett
(This used to be commit fbce84a87b)
2008-02-08 12:48:58 +11:00
Andrew Bartlett
d2ea79d1d6 Fix LDAP backend with python provision
The backend databases were still hard-coded as 'users.ldb' etc.

Andrew Bartlett
(This used to be commit 3c5f6cc739)
2008-02-08 12:48:11 +11:00
Andrew Bartlett
cd5c3f5842 Ensure expected errors do not leak up to the application.
(reset the error string to be sure).

Andrew Bartlett
(This used to be commit 741d33bf8c)
2008-02-08 12:45:51 +11:00
Jelmer Vernooij
b4f7a80c2d Skip offline tests.
(This used to be commit 3c71aae2a3)
2008-02-08 01:19:14 +01:00
Jelmer Vernooij
066912ba80 Put temporary test files in test directory.
(This used to be commit 16382999be)
2008-02-08 00:34:29 +01:00
Jelmer Vernooij
bebd139db0 Put ldb test output in prefix.
(This used to be commit af283cd787)
2008-02-08 00:19:50 +01:00
Jelmer Vernooij
64ff80d000 Mark RAW-OFFLINE as known failing for Samba 4 (because it doesn't have offline support yet).
(This used to be commit 36167dc852)
2008-02-08 00:03:02 +01:00
Jelmer Vernooij
51da6908df Override KRB5CCNAME so existing Kerberos tickets in the users environment don't get overwritten.
(This used to be commit 5e740c0dfb)
2008-02-07 23:47:18 +01:00
Andrew Tridgell
8c4e52547b merge growing tdb for tdb_wipe_all() fix from ctdb
(This used to be commit df4efb902e)
2008-02-07 23:06:44 +11:00
Andrew Tridgell
e939659e43 make the multiplier in the RAW-OFFLINE test settable
(This used to be commit f4b363d7a6)
2008-02-07 23:05:44 +11:00
Stefan Metzmacher
6ca23e3074 wkssvc.idl: fix idl for wkssvc_NetrGetJoinableOus[2]()
metze
(This used to be commit 3f2edcc341)
2008-02-07 08:33:19 +01:00
Stefan Metzmacher
e7c178629f pidl/Samba4::NDR::Parser: fix support for embedded "ref" pointers
The memory allocation of embedded "ref" pointers needs to be the
same as for all other embedded pointers.

metze
(This used to be commit 6b3817c225)
2008-02-07 08:33:18 +01:00
Stefan Metzmacher
c713b58a00 pidl/NDR: fix handling of multilevel pointers in function elements
The 2nd or higher level of wire pointers needs to be marked as deferred.

metze
(This used to be commit d7970d7032)
2008-02-07 08:33:18 +01:00
Stefan Metzmacher
1ea5b06307 pidl: get the pointer types correct when an element has multiple pointers
Only the first level gets the pointer type from the
pointer property, the others get them from
the pointer_default() interface property

see http://msdn2.microsoft.com/en-us/library/aa378984(VS.85).aspx
(Here they talk about the rightmost pointer, but testing shows
they mean the leftmost pointer.)

metze
(This used to be commit aa8518521b)
2008-02-07 08:33:18 +01:00
Stefan Metzmacher
c6a6fa1841 win32-tests: add a very usefull w32 programm to explore midl features
You have to define idl, call the client function
and add a server implementation.

Then you need to compile midltests.exe
and run it, it will dump the generated NDR on the
screen.

metze
(This used to be commit dc15c88335)
2008-02-06 16:34:36 +01:00
Stefan Metzmacher
3a0cfad223 prefork: also reload stuff in the client processes
metze
(This used to be commit 36012c386b)
2008-02-06 14:44:20 +01:00
Andrew Bartlett
07c8cdec47 Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-abartlet
(This used to be commit 594ff92329)
2008-02-06 16:14:09 +11:00
Kai Blin
c9ea65e4ce sidmap: Some source code cleanups.
(This used to be commit 16466b543b)
2008-02-05 11:42:39 +01:00
Andrew Bartlett
24d0587752 Clarify nomaclature of socket names in process_single and process_prefork
Fix talloc_steal in both cases to steal connected socket (from accept)
onto it's private structure, rather than stealing the bound socket.

Remove termination code from the prefork modal, we want the process to
still stay around, to serve future clients.

Andrew Bartlett and David Disseldorp
(This used to be commit 07590d893e)
2008-02-05 14:51:01 +11:00
Andrew Bartlett
c46b8708f4 Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-abartlet
(This used to be commit 7fc3669b9d)
2008-02-05 09:16:37 +11:00
Stefan Metzmacher
31fac9d66b pidl: remove 'pointer_default_top()' support
metze
(This used to be commit 145d6c8ea0)
2008-02-04 18:37:09 +01:00
Stefan Metzmacher
569bd9222d spoolss.idl: don't use pointer_default_top() and specify "unique" explizit
Note: this doesn't change the generated output!

metze
(This used to be commit c472935c98)
2008-02-04 18:37:08 +01:00
Stefan Metzmacher
81b17623f2 samr.idl: don't use pointer_default_top() and specify "unique" explizit
Note: this doesn't change the generated output!

metze
(This used to be commit 14ee13c1fe)
2008-02-04 18:37:08 +01:00
Stefan Metzmacher
7406c9b903 netlogon.idl: don't use pointer_default_top() and specify "unique" explizit
Note: this doesn't change the generated output!

metze
(This used to be commit e4b12aa9a4)
2008-02-04 18:37:08 +01:00
Stefan Metzmacher
6512ad57f3 winreg.idl: don't use pointer_default_top() and specify "unique" explizit
Note: this doesn't change the generated output!

metze
(This used to be commit f195093a86)
2008-02-04 18:37:08 +01:00
Stefan Metzmacher
10f6ff352c svcctl.idl: don't use pointer_default_top() and specify "unique" explizit
Note: this doesn't change the generated output!

metze
(This used to be commit 7561e8fa51)
2008-02-04 18:37:08 +01:00
Stefan Metzmacher
b6c3e58a38 wkssvc.idl: don't use pointer_default_top() and specify "unique" explizit
Note: this doesn't change the generated output!

metze
(This used to be commit f2227b3bb8)
2008-02-04 18:37:07 +01:00
Stefan Metzmacher
033e697c9e srvsvc.idl: don't use pointer_default_top() and specify "unique" explizit
Note: this doesn't change the generated output!

metze
(This used to be commit 6d20a2f3f9)
2008-02-04 18:37:07 +01:00
Andrew Bartlett
7e15e09f67 Fix a few more breakages from our recent changes to the server_id
structure.  The BASE-TORTURE test found this problem - caused because
the messaging path was not unique.

If we didn't use a macro for cluster_id_equal(), we could make it
opaque, and avoid this...

Andrew Bartlett
(This used to be commit c3387545c5)
2008-02-04 23:04:35 +11:00
Andrew Bartlett
0f8eeb81ec Remove useless layer of indirection, where every service called
task_service_init() manually.  Now this is called from service.c for
all services.

Andrew Bartlett
(This used to be commit 9c9a4731ca)
2008-02-04 21:58:29 +11:00
Andrew Bartlett
b3c5fbec47 Remaining changes to implement the prefork process model
To use, run 'smbd -M prefork'

By default, only the smb service is preforked.  4 children are
created, and all listen for new connections.  The Linux Kernel 'wake
one' behaviour should ensure that only one is given the oportunity to
accept.  We need to look into the ideal number of worker children, as
well as load balancing behaviours.

To change, set:

prefork children : smb = 6

valid service names (smb in this example) match those in 'server services'.

Andrew Bartlett and David Disseldorp
(This used to be commit 35313c0aa3)
2008-02-04 17:59:16 +11:00
Andrew Bartlett
3d5594e74d Rework process_single.c to take advantage of cluster_id() now taking an additional argument.
Andrew Bartlett and David Disseldorp
(This used to be commit c961e7d74e)
2008-02-04 17:53:01 +11:00
Andrew Bartlett
77f71c1b65 Rework cluster_id() to take an additional argument, as we need
<node>.<pid>.<fd> to be unique in a prefork process environment.

Andrew Bartlett and David Disseldorp
(This used to be commit 931994a7f1)
2008-02-04 17:51:38 +11:00
Andrew Bartlett
23d681caf9 Rework service init functions to pass down service name. This is
needed to change prefork behaviour based on what service is being
started.

Andrew Bartlett and David Disseldorp
(This used to be commit 0d830580e3)
2008-02-04 17:48:51 +11:00
Andrew Bartlett
cbca41597e Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-abartlet
(This used to be commit 377a7c633d)
2008-02-04 09:56:24 +11:00
Stefan Metzmacher
c3008e086b pidl/Samba4::NDR::Parser: correctly get the name of an array element
When we have "*r->out.ous"
(char ***ous, a pointer to a pointer to an array of pointers).
we need to use "(*r->out.ous)[3]" to access the 3rd
element of the array "*r->out.ous[3]" was generated before,
but that's the same as "*(r->out.ous[3])" which would mean
the array would apply to a different level.

This patch prepares support for:

[out,ref,size_is(,num)] [string,charset(UTF16)] uint16 ***names;

It means a [ref] pointer to a [unique] pointer to an array
of [unique] pointers which point to an UTF16 string.

metze
(This used to be commit ec0ee2aa5f)
2008-02-02 11:16:09 +01:00