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 931994a7f185bbc98924823e9e8cef1011dd0957)
2008-02-04 17:51:38 +11:00
Jelmer Vernooij
61379d97cd
python: Provide PyAPI_DATA macro for older versions of Python (< 2.3).
...
(This used to be commit 421bdd203eab09e560f4919715fa4cc4497e406f)
2008-01-29 14:27:27 +01:00
Jelmer Vernooij
bcad73a7f7
Partially revert d64a2288a2cb3a8f74a18b740b265a460773635d and 351c2e99ab8b6a91f7355077b2d2944fd820839c to see if that fixes the build.
...
(This used to be commit 2a79cebfd99f4048214be65a6c918cc988dc83ed)
2008-01-29 13:10:43 +01:00
Jelmer Vernooij
cab677a33f
python: Use relative paths for registry.
...
(This used to be commit 079200b824de6dd8c7de3e5b76ed1805fde02965)
2008-01-26 04:22:42 +01:00
Jelmer Vernooij
172e00d8a1
python: Load smb.conf file for the provision tests.
...
(This used to be commit 41571bbb933c763a9608f4ba56f1a5a97af133ab)
2008-01-26 02:55:03 +01:00
Stefan Metzmacher
e41a632902
configure: define HAVE_WORKING_PYTHON
...
metze
(This used to be commit 351c2e99ab8b6a91f7355077b2d2944fd820839c)
2008-01-25 15:46:54 +01:00
Jelmer Vernooij
21f5f4d440
python: Give precedence to Samba's syspath over the already set system one.
...
(This used to be commit f3ebaf0a0c0b881da28063c69bb6306f6aa1c774)
2008-01-25 12:16:13 +01:00
Jelmer Vernooij
1c5e713cce
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 64babbec22f165e34799d36ff4b76806d9fead50)
2008-01-25 11:50:00 +01:00
Jelmer Vernooij
6c2d4f2806
python/provision: Reload secrets when necessary, fix unix names in mappings.
...
Pair programmed with Andrew.
(This used to be commit 04fe8c8aefae8da8966954d0654c37adf2d0361d)
2008-01-25 11:47:44 +01:00
Andrew Bartlett
1b18de131c
Tidy up the last regresesions on the python smbscript, from my work
...
with Jelmer today.
The only remaining issue is that for the build farm, we will need to
manually specify the users and groups from the NSS_WRAPPPER, as python
isn't compiled with this.
Andrew Bartlett
(This used to be commit 5370484d25b8c7a5bde730d9be36ecbbb0aaf315)
2008-01-25 17:11:20 +11:00
Jelmer Vernooij
dcb04065cd
python: Fix representation of UUIDs as strings in zone files rather than binary blobs, fix escaping of LDAP URL's in PHP LDAP admin configuration.
...
Pair-programmed with Andrew, but git doesn't appear to support multiple --author arguments. :-(
(This used to be commit dff54ff043563f93b86361039c46e662045f62cc)
2008-01-25 03:54:33 +01:00
Jelmer Vernooij
c91791bbc4
python: Add test for secretsdb_become_dc
...
(This used to be commit 9173c678efb6f74dbec64298bcb00952feff2ed7)
2008-01-25 01:37:47 +01:00
Jelmer Vernooij
76eb7ddd75
python: fix tests for check_all_substituted.
...
(This used to be commit 859cffed9d3a62f9f7610d74472aa3c0d1979a35)
2008-01-25 01:30:43 +01:00
Jelmer Vernooij
37f35d2a03
python/provision: Reconcile code partitions-only provisioning and generic provisioning, some other minor refactoring of the provisioning.
...
Pair-programmed by Andrew and me using obby :-)
(This used to be commit 688adcbb635af87fcfedb869b7f1857a947fd2f9)
2008-01-25 01:02:13 +01:00
Jelmer Vernooij
8afcbdcfe7
python: Make SamDB.set_ntds_invocation_id take a string.
...
(This used to be commit 59bb26772f089cf4d8727c12230cfef8126762b1)
2008-01-25 00:51:09 +01:00
Jelmer Vernooij
d958f4b391
python: Add function to look for unsubsituted variables.
...
(This used to be commit e726ce5bc515ae8d10b472396e228cfd35737476)
2008-01-24 22:18:27 +01:00
Jelmer Vernooij
859b847a68
python: Add bindings for SamDB.set_invocation_id().
...
(This used to be commit c09efa7b778f9cb29032a6abfd914fcaae8df163)
2008-01-24 22:08:39 +01:00
Jelmer Vernooij
52bc292f58
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
...
(This used to be commit d4d4120b715dc37b708b1c6074eab4f5c23d6b8f)
2008-01-24 22:00:07 +01:00
Andrew Bartlett
6e5c528f87
Ensure we set subobj.BACKEND_MOD for the 'partitions only' case.
...
Andrew Bartlett
(This used to be commit be5eb2da241452ccc0526f4f115aa44c0793c351)
2008-01-24 16:25:35 +11:00
Andrew Bartlett
48e79659d1
Make the repl_meta_data module the default for domain controllers.
...
Andrew Bartlett
(This used to be commit ae2ea1bd0cd2b326b09b372428969f2cf52ce519)
2008-01-24 16:17:45 +11:00
Andrew Bartlett
a2d7a3b627
Use the repl_meta_data module by default.
...
This means that, except when we back onto LDAP, when it will be
replaced with the mapping backend, we will keep this codepath tested.
Andrew Bartlett
(This used to be commit e8fb5da5a18c1c3bd788b1ab3f814ffb847b00fd)
2008-01-24 14:28:25 +11:00
Andrew Bartlett
1557e7b930
Kill another sub that the modules will handle for us.
...
(This used to be commit e9bb130d63e86fafc4cbf379e2e237354b88bcf8)
2008-01-24 11:33:37 +11:00
Andrew Bartlett
08f94e2754
Remove useless subs from the ejs provision
...
The less things we manually place into the templates, the easier the
conversion to python will be.
Andrew Bartlett
(This used to be commit f65e5c164476b80468aa19452b108db17c642f8b)
2008-01-24 11:26:21 +11:00
Jelmer Vernooij
a2dcf7bd22
Python: add some docstrings.
...
(This used to be commit 1de69a772e1cc007220add1f51bffe83784c3344)
2008-01-24 01:06:19 +01:00
Jelmer Vernooij
4277181453
python: Support --no-pass.
...
(This used to be commit a90f3e8c420bec7fd7a39e0d5e2df6b32aedcdd5)
2008-01-24 01:05:57 +01:00
Jelmer Vernooij
decdf5954d
python: Add convenience function for getting command line loadparm context
...
and default to using system smb.conf.
(This used to be commit b3afde0f00ab5093b577b139a062c233d4db2524)
2008-01-23 23:38:57 +01:00
Jelmer Vernooij
42a793107e
python: Fix init functions.
...
(This used to be commit 4b057b9bffcef9ecc61fe016746f5ce6f17f6d06)
2008-01-21 03:54:43 +01:00
Jelmer Vernooij
03023c4f7d
build: Demote a bunch of libraries to subsystems. This makes packaging easier and should also make it easier
...
to migrate to a new build system.
(This used to be commit 77b400764e3dadfa05407343af649ad9298cc085)
2008-01-21 03:54:42 +01:00
Andrew Bartlett
064eb82870
Remove --ldap-base from the python provision script
...
(This is a merge from the ejs script)
Andrew Bartlett
(This used to be commit d822dfa017b84895222ace8c44935fb872930548)
2008-01-18 13:25:01 +11:00
Andrew Bartlett
8d36d43e52
Add in a new module to handle instanceType
...
This code raided from the repl_meta_data module, which probably needs
to be downsized to just handling the replication data.
Andrew Bartlett
(This used to be commit 2a418f33705a792d9d16cf1d4aa3dcda467e6e04)
2008-01-18 10:13:43 +11:00
Andrew Bartlett
f1e177a7b8
provision: simplfy by removing old code to manually create baseDNs.
...
Previously, we would create the first record in the DB as an LDIF
file, with the expectation that the administrator would use slapadd to
create the database.
We now do everything over LDAP, which is far simpler, and allows the
LDB module chain to do its work, without special cases.
Also fix naming of the output schema when suggesting the comamnd line
to run ad2oLschema in provision-backend.
Andrew Bartlett
(This used to be commit e77375758d66e94e5e0b6e61a97c9281c3d9c71f)
2008-01-17 12:00:27 +11:00
Jelmer Vernooij
ad5bb10f70
python: Build shared python modules for generic use.
...
(This used to be commit 502424955237ace5a276d4c91c62e95233ecd978)
2008-01-16 15:08:00 +01:00
Jelmer Vernooij
0c7f4c23b7
python: Update status.
...
(This used to be commit b4b12f00a7eb952024795ddc5ab3481fd4ba03fc)
2008-01-15 01:08:30 +01:00
Jelmer Vernooij
d869de531c
python: Enable building of the wkssvc python bindings.
...
(This used to be commit 7a00d48a478be84e9f38c5e6cb57739063d0d613)
2008-01-14 20:14:53 +01:00
Jelmer Vernooij
506f643288
python: Compile in svcctl Python bindings.
...
(This used to be commit 567099b66d0369715f8e0a083a5ce160faaf4da2)
2008-01-14 20:08:04 +01:00
Jelmer Vernooij
2ebe80c27c
python: Convert winreg.py completely to rpc, use new RPC Python bindings.
...
(This used to be commit 9c21773737ea941b623105352b4625dcb8437706)
2008-01-14 19:53:08 +01:00
Jelmer Vernooij
2aa8cbca8b
python: Work around the fact that there are two "security" modules now.
...
This well demonstrates the fact we need hierarchy.
(This used to be commit df7e3498824e27f8a6d61b8b6f52577eab248d2c)
2008-01-14 19:53:08 +01:00
Jelmer Vernooij
001b2435f0
python: Add simple test for samr python code.
...
(This used to be commit 0a039fabcba9510ab600b2e4becbf75a58d2134d)
2008-01-14 19:53:08 +01:00
Jelmer Vernooij
d28eb21a98
python: Compile security module, handle uint.
...
(This used to be commit dee64344fb13aaed38a550ebb4048d0fa526d5b6)
2008-01-14 19:53:08 +01:00
Jelmer Vernooij
860106b3f4
python: Move some convenience macros to a separate header rather than putting them in every generated py_* file.
...
(This used to be commit 712274b9bdf524da125cbbe6e4bb475b21b1da66)
2008-01-14 19:53:07 +01:00
Jelmer Vernooij
a896c8940c
python: Enable python bindings for samr and lsa interfaces.
...
(This used to be commit 3dfcefd8ac640ef1539185f19f7414fbcea9e741)
2008-01-14 19:53:07 +01:00
Jelmer Vernooij
fa5397fbed
python: Build epmapper module.
...
(This used to be commit 6cb78c7634de0f9ab327583844d7860d384356eb)
2008-01-14 19:53:07 +01:00
Jelmer Vernooij
035599fa65
python: Be more pythonic - turn WERROR and NTSTATUS return codes into exceptions.
...
(This used to be commit 16fc69b843e92ae62b15caf927335cc117156499)
2008-01-14 19:53:07 +01:00
Jelmer Vernooij
7dd468ff2e
python: Fix python code for winreg, add test.
...
(This used to be commit bd3e6c41c42738fcfcc5cef4e65f0e219d358260)
2008-01-14 19:53:07 +01:00
Jelmer Vernooij
e42322848b
python: Start building winreg module.
...
(This used to be commit f1a9fad83cee7754304b3422aa273d5f64868e40)
2008-01-14 19:53:07 +01:00
Jelmer Vernooij
271f5f18f2
python: Fix last bugs in rpcecho test. It passes now!
...
(This used to be commit 25a0cd091bb24e579ceb34472d9c213aae157ba9)
2008-01-14 19:53:07 +01:00
Jelmer Vernooij
aca6bd5a2a
python: Fix deallocation bug in pytalloc.
...
(This used to be commit b849b4a6c4c9b03a9704449a69f00a59fc0df9c5)
2008-01-14 19:53:06 +01:00
Jelmer Vernooij
3b16c532f2
pidl/python: Pass credentials and loadparm context when connecting using DCE/RPC.
...
(This used to be commit 4c87af95310e4aaee3f2e2da02d0ea70ed1ec25b)
2008-01-14 19:53:06 +01:00
Jelmer Vernooij
db4ee4cce5
python: Fix rpcecho tests.
...
(This used to be commit ebb78ea4232c1614755844849580e3697b0a53fa)
2008-01-14 19:53:06 +01:00
Jelmer Vernooij
d5903fd75e
pidl/python: Fix compilation of py_echo.
...
(This used to be commit 5ee99ff31c80ece6861b2a0323d71170ef9346b9)
2008-01-14 19:53:06 +01:00