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

1225 Commits

Author SHA1 Message Date
Volker Lendecke
1d8973a82e Attempt to correctly find python on host sunx
(This used to be commit 59b62280d2)
2008-09-09 23:35:17 +02:00
Jelmer Vernooij
faf83916ee Add option for generating coverage data from python tests.
(This used to be commit 43c0fdfff0)
2008-09-09 15:55:10 +02:00
Andrew Bartlett
ef9169bfa6 Make it clear that the MMR password can differ from the admin passsword
In the future, we might simply randomly generate this, or allow the
admin to specify it seperate to the admin password.  However, both are
highly sensitive, as they imply read access to the krbtgt.

Andrew Bartlett
(This used to be commit 57d19ad002)
2008-09-08 15:09:06 +10:00
Oliver Liebel
b76f383eef Use DIGEST-MD5 authentication for OpenLDAP replication
This avoids passing rootdn passwords or replicated data in cleartext
across the network.

Signed-of-by: Andrew Bartlett <abartlet@samba.org>
(This used to be commit 67373c143a)
2008-09-08 14:39:54 +10:00
Andrew Tridgell
1929b2fb51 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit c273d63f94)
2008-09-04 12:49:29 +10:00
Jelmer Vernooij
fbbe799e4e Regenerate SWIG file.
(This used to be commit e8ba65c4db)
2008-09-03 22:55:24 +02:00
Jelmer Vernooij
24a9181f25 Avoid using version call for version string.
(This used to be commit 1897cef508)
2008-09-03 22:29:53 +02:00
Andrew Tridgell
9817f3d785 Add a setexpiry operation in samdb.py
This makes it easy to set the expiry (or no expiry) for a samdb user
(This used to be commit 25171f18a4)
2008-08-30 07:32:44 +10:00
Andrew Bartlett
8237c0ba83 The index handling is now configured from the schema load, not by a
template.

Andrew Bartlett
(This used to be commit b36c6a21ad)
2008-08-21 12:59:16 +10:00
Andrew Bartlett
41493cbe68 Update OpenLDAP MMR configuration per comments by Oliver Liebel
<oliver@itc.li>

This changes the RIDs to be <serverID><DBID>, to ease later debugging.

The need to specify the port on the MMR URLs is now included in the
help.

Andrew Bartlett
(This used to be commit a5cbe8c09c)
2008-08-20 12:21:36 +10:00
Andrew Bartlett
b33f4541f6 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
(This used to be commit fc6b4f03eb)
2008-08-19 14:11:51 +10:00
Andrew Bartlett
7ef21658fb Fix up new OpenLDAP MMR code.
This changes the MMR password from hard-coded value of 'linux',
adds tests and fixes the Fedora DS backend.

Currently the MMR password matches the admin password, but we can
change this to be another random value if required.

Also require the port to be specified on the command line, so we don't
hard-code a port of 9000.

Andrew Bartlett
(This used to be commit 08257c6d6c)
2008-08-19 14:10:14 +10:00
Oliver Liebel
805dd85291 Generate Multi-Master Replication configuration for OpenLDAP
This patches provision-backend and the related scripts to generate the
correct configuration blobs for N-way multi-master replication using
OpenLDAP.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
(This used to be commit 6ed0b3f247)
2008-08-19 12:03:04 +10:00
Andrew Bartlett
47d80366be Fix templates.ldb reprovision handling.
This sets the attributes in a seperate transaction, and allows a
forced delete of the whole file.

Andrew Bartlett
(This used to be commit 423db2468b)
2008-08-19 11:43:41 +10:00
Jelmer Vernooij
47124efe42 Add helper object Hostconfig to make it easier to get to e.g. the
SAM database.
(This used to be commit be75b2a36e)
2008-08-01 21:12:37 +02:00
Jelmer Vernooij
1c94f3e95d Use new style python classes.
(This used to be commit 2a39aae0ce)
2008-08-01 21:00:09 +02:00
Jelmer Vernooij
fff006bd84 Move domain DN determination out of newuser function.
(This used to be commit cbac27e6fa)
2008-08-01 20:47:22 +02:00
Jelmer Vernooij
3b4ff07ded Actually fix missing substitution variables.
(This used to be commit 783412ecb2)
2008-08-01 20:47:03 +02:00
Jelmer Vernooij
2fbe25b39d Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into manpage
(This used to be commit c87a8ba1fe)
2008-08-01 20:17:56 +02:00
Jelmer Vernooij
3573420d7d Fix some forgotten substitute variables in provision, add check to prevent this sort of regression in the future.
(This used to be commit a461118f3b)
2008-08-01 20:17:29 +02:00
Jelmer Vernooij
ee505f36dd Be more pythonic.
(This used to be commit 20d40e3194)
2008-07-30 13:29:29 +02:00
Andrew Bartlett
e80115deb9 We don't use EXTENSIBLEOBJECT any more.
(This used to be commit 4b137085c8)
2008-07-28 20:51:02 +10:00
Andrew Bartlett
08795db6d6 Make it even clearer what to do next in the LDAP backend setup
(This used to be commit bace931ad6)
2008-07-28 20:26:14 +10:00
Andrew Bartlett
45d60f5bd9 Always print the slapd startup command
(This used to be commit b1d05e7d14)
2008-07-28 20:18:17 +10:00
Andrew Bartlett
cff30c6da6 Remove unused function and make sensitive directories private.
(This used to be commit e23333d163)
2008-07-28 08:04:15 +10:00
Stefan Metzmacher
934cfb9880 mamachinepw: add better error handling
metze
(This used to be commit 7ac424137f)
2008-07-26 20:45:47 +02:00
Volker Lendecke
998b0fef11 Add "mymachinepw" to fetch our machine password out of secrets.ldb
(This used to be commit 4fbe16deb0)
2008-07-26 20:45:47 +02:00
Andrew Bartlett
1f285560bc Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit b12dd8ee54)
2008-07-25 11:58:51 +10:00
Andrew Bartlett
11798902dc Complain if we are told to use an ldap backend, without the type
(This used to be commit e9c3c9ad82)
2008-07-25 08:45:16 +10:00
Andrew Bartlett
c9c296b6bb Install'named.txt' to private/ as documentation.
This document is much more use when subbed with all the right things.

Andrew Bartlett
(This used to be commit 136a855998)
2008-07-22 11:09:18 +10:00
Matthias Dieter Wallnöfer
fb3e663678 Improve DNS and Group poicy configurations.
- fixes bug #4813 (simplify DNS setup)
  - This reworks the named.conf to be a fully fledged include
  - This also moves the documentation into named.txt
 - improves bug #4900 (Group policy support in Samba)
   - by creating an empty GPT.INI
 - fixes bug #5582 (DNS: Enhanced zone file)
   - This is now closer to the zone file AD creates

committed by Andrew Bartlett
(This used to be commit 74d684f6b3)
2008-07-22 11:06:47 +10:00
Andrew Bartlett
3408a2d18f Make a seperate template for the refint configuration too
(This used to be commit d2a527acc5)
2008-07-18 18:58:56 +10:00
Andrew Bartlett
cfc2063f23 Put the memberof template into a seperate setup/ file.
Set a memberof-dn in a fruitless attempt to fix the ACL problem I'm
having with OpenLDAP

Andrew Bartlett
(This used to be commit 6d6e03834a)
2008-07-18 18:44:07 +10:00
Andrew Bartlett
fe9fa62a05 Reorder whitespace in generated slapd.conf
This helps us see the real groupings in the generated memberOf
handling.

Andrew Bartlett
(This used to be commit ec70ebb831)
2008-07-16 14:04:24 +10:00
Andrew Bartlett
e400b3ec4e Fix asking for credentials for non-LDAP provisions.
(This used to be commit 78416f4840)
2008-07-15 18:44:58 +10:00
Andrew Bartlett
0f1eea2672 Rework provision to handle both simple and SASL binds.
Fedora DS is still setup for simple binds only, at this point.
(it also fails on other issues).

Andrew Bartlett
(This used to be commit b24c572d5a)
2008-07-15 15:46:32 +10:00
Andrew Bartlett
a6b842f963 Connect to the LDAP backend with SASL credentials.
This reworks our LDAP backend code to move from anonymous access to a
shared-secret SASL-protected connection.  (SASL selects NTLM or
DIGEST-MD5 on my system).

To get this working, we must pre-populate the LDAP backend with a DN
to store ths SASL secret on, and we use back-ldif for this.

This gives us a reasonable basis to deploy a replicated OpenLDAP
backend solution.

Andrew Bartlett
(This used to be commit cd0745253c)
2008-07-15 15:15:12 +10:00
Andrew Bartlett
44ea6a26fd rename sambaPassword -> userPassword.
This attribute is used in a very similar way (virtual attribute
updating the password) in AD on Win2003, so eliminate the difference.

This should not cause a problem for on-disk passwords, as by default
we do not store the plaintext at all.

Andrew Bartlett
(This used to be commit 1cf0d75149)
2008-07-12 15:26:42 +10:00
Andrew Bartlett
9ea25cacf1 Add a blackbox test for the provision-backend script.
This test (as most tests do :-) found a few bugs, also fixed in this
commit.

Andrew Bartlett
(This used to be commit d96a6482da)
2008-06-19 11:05:20 +10:00
Simo Sorce
370f95acfc Try to get a bit further with provisioning
(This used to be commit 649f6c0c10)
2008-06-16 17:52:50 -04:00
Jelmer Vernooij
4c144bbc9e Clarify error when SWIG can't be found - it's not required unless you
intend to do development.
(This used to be commit 0f57fcaa2e)
2008-06-11 00:11:11 +02:00
Jelmer Vernooij
230503ad84 Add working Python bindings for NBT.
(This used to be commit 9c88f5e1de)
2008-06-11 00:05:58 +02:00
Andrew Bartlett
be14efbdf9 Revert Jelmer's CFLAGS commit e2b71a0ecb
This commit broke the build, because not all files (libreplace, popt)
were updated.

Andrew Bartlett
(This used to be commit 3faacf4351)
2008-05-31 08:35:55 +10:00
Jelmer Vernooij
2772871146 Fix samdb python test.
(This used to be commit 0e3d488cc1)
2008-05-30 14:15:40 +02:00
Jelmer Vernooij
5107f093c2 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-defs
Conflicts:

	source/samba4-skip
(This used to be commit 7b0e0eb346)
2008-05-30 12:18:07 +02:00
Andrew Bartlett
21377a7ea9 Fix the samba4.dcerpc.bare.python test.
The loadparm context isn't really optional, as otherwise we can't find
the right server to connect to.

Andrew Bartlett
(This used to be commit 2b5acb5e95)
2008-05-30 15:26:10 +10:00
Andrew Bartlett
d579540085 Fix rpcecho test.
(This used to be commit df8399ba9d)
2008-05-30 15:09:59 +10:00
Andrew Bartlett
b9babfe4cc Fix up provision and samdb tests.
This fixes up the provision to operate with a target directory - it
must override the smb.conf in this case.

Andrew Bartlett
(This used to be commit 89fc39f7ed)
2008-05-30 14:26:47 +10:00
Jelmer Vernooij
39f50afc57 Move CFLAGS handling out of smb_build.
(This used to be commit e2b71a0ecb)
2008-05-30 02:07:28 +02:00
Jelmer Vernooij
6f7b2b6933 Fix samdb test and enable it.
(This used to be commit 6b202d3780)
2008-05-29 17:38:12 +02:00
Jelmer Vernooij
e16f0e15b4 Update after changes to the provision API, make sure temp dir gets cleaned
up.
(This used to be commit 064e9ddb37)
2008-05-29 17:31:16 +02:00
Jelmer Vernooij
90aeca8ebd Check test directory is cleaned up by Python tests.
(This used to be commit c338269b4b)
2008-05-29 17:29:56 +02:00
Andrew Bartlett
b7c8e020a6 Print prefixMap in a human-readable format.
This should allow the prefixMap to be edited, until we find the right
way to autogenerate it.

Andrew Bartlett
(This used to be commit 24ae9a55ec)
2008-05-29 18:38:17 +10:00
Andrew Kroeger
815c0ef2ed provision: Add missing string parameter token when assigning ldap_backend.
(This used to be commit 7d26145a7f)
2008-05-28 22:43:25 -05:00
Jelmer Vernooij
936b973acb Use new dynconfig.h location.
(This used to be commit c3f556915f)
2008-05-27 14:36:28 +02:00
Jelmer Vernooij
8f25f40a2e Remove unused literal EJS bindings.
(This used to be commit da3094d1ba)
2008-05-26 14:10:34 +02:00
Jelmer Vernooij
3a76da248d Remove unused libjs functions.
(This used to be commit 657a87fecc)
2008-05-26 14:08:17 +02:00
Jelmer Vernooij
1b6396f114 Remove unused param ejs bindings.
(This used to be commit 4dd0d46e27)
2008-05-26 14:03:55 +02:00
Jelmer Vernooij
75e2e1061e Remove unused rand EJS bindings.
(This used to be commit 4016427b77)
2008-05-26 14:02:37 +02:00
Jelmer Vernooij
4e9ca6caf9 Remove unused EJS net bindings.
(This used to be commit 3923414849)
2008-05-26 14:00:28 +02:00
Jelmer Vernooij
335688f640 Revert "remove unused credentials ejs module."
This reverts commit 9861cae1ae.
(This used to be commit a429dc730f)
2008-05-26 13:43:54 +02:00
Jelmer Vernooij
ec362bdbc0 Remove unused datablob and nbt ejs bindings.
(This used to be commit f758553ac5)
2008-05-26 13:40:17 +02:00
Jelmer Vernooij
cbe439383a remove unused credentials ejs module.
(This used to be commit 9861cae1ae)
2008-05-26 13:36:05 +02:00
Jelmer Vernooij
40a90e6a55 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-pyirpc
(This used to be commit e1af9708c9)
2008-05-26 12:19:09 +02:00
Jelmer Vernooij
58b1ab92a1 Fix import.
(This used to be commit 17231443a0)
2008-05-26 05:15:19 +02:00
Jelmer Vernooij
57f6663f3a Remove obsolete ejs winreg example.
(This used to be commit f1a2d2bc00)
2008-05-26 05:15:11 +02:00
Jelmer Vernooij
976eca077d Move some scripts to examples directory since they're not really generically useful.
(This used to be commit 4026493e91)
2008-05-26 05:15:07 +02:00
Jelmer Vernooij
575f124385 Cope with no server being active.
(This used to be commit 893119bb4c)
2008-05-26 05:12:31 +02:00
Jelmer Vernooij
4b3641695b Finish smbstatus in Python.
(This used to be commit 988508c2d3)
2008-05-26 05:00:45 +02:00
Jelmer Vernooij
d5434f0b4b Allow using IRPC functions on the messaging bus from Python.
(This used to be commit 6ecf81ae13)
2008-05-26 04:14:28 +02:00
Jelmer Vernooij
fd712bb878 Remove unused cli ejs module.
(This used to be commit 170d5aef80)
2008-05-26 02:11:32 +02:00
Jelmer Vernooij
5c89184c42 Remove unused nss module.
(This used to be commit 5f75a4f0c0)
2008-05-26 02:07:47 +02:00
Jelmer Vernooij
1aeb4cc04f Remove unused EJS code.
(This used to be commit 3b70a3de4a)
2008-05-26 02:05:11 +02:00
Jelmer Vernooij
c17166fb3d Convert smbstatus to Python.
(This used to be commit f14ad6cd92)
2008-05-26 02:04:00 +02:00
Jelmer Vernooij
5df9e0576e Fix missing colon.
(This used to be commit 6b1576f544)
2008-05-25 14:41:54 +02:00
Jelmer Vernooij
521354e4b3 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-pyirpc
(This used to be commit 0a9330ee2a)
2008-05-25 06:38:05 +02:00
Jelmer Vernooij
74126bc6d0 Expose transfer and abstract syntax.
(This used to be commit a875e07a37)
2008-05-25 04:54:38 +02:00
Jelmer Vernooij
928ecbaebb Add support for secondary contexts from Python.
(This used to be commit 16d1ad0505)
2008-05-25 04:23:03 +02:00
Jelmer Vernooij
a2446e5f85 Add initial work for script that uses probing to figure out IDL.
(This used to be commit 4e5687e813)
2008-05-25 02:32:21 +02:00
Jelmer Vernooij
21ce0ff006 Allow connecting to a DCE/RPC interface with Python for which we don't have IDL.
(This used to be commit e3178d522c)
2008-05-24 22:56:49 +02:00
Jelmer Vernooij
75e7962d2e Add convenience functions for setting Python objects from errors.
(This used to be commit f1de723b89)
2008-05-24 22:13:32 +02:00
Jelmer Vernooij
f9c36fae75 Export functions for setting NTSTATUS and WERRORs in python.
(This used to be commit 4bcb92d2d4)
2008-05-24 21:38:33 +02:00
Jelmer Vernooij
515b6ed586 Share struct used for interfaces in Python code.
(This used to be commit 8501a3fc31)
2008-05-24 20:00:37 +02:00
Jelmer Vernooij
05194ccdf8 Add tests for new NDR pack/unpack functionality in Python DCE/RPC bindings.
(This used to be commit 468d35827f)
2008-05-24 19:50:09 +02:00
Jelmer Vernooij
f76697ce89 Add convenience functions for packing/unpacking structs in python.
(This used to be commit c5d7d48b32)
2008-05-24 18:57:15 +02:00
Jelmer Vernooij
6f6234c79f Remove remaining EJS RPC code, was unused.
(This used to be commit c994fa427f)
2008-05-24 18:19:41 +02:00
Jelmer Vernooij
73b789b6d2 Add docstrings to a couple more python modules.
(This used to be commit b4560c90e5)
2008-05-24 04:01:57 +02:00
Jelmer Vernooij
a203ee1ab1 Fix indentation, add docstring in provisioning script.
(This used to be commit 86a8a08549)
2008-05-23 16:43:26 +02:00
Jelmer Vernooij
e3d000f3bf Some more PEP improvements.
(This used to be commit 015ca850df)
2008-05-23 16:29:08 +02:00
Jelmer Vernooij
cceac63aaa Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-wsgi
Conflicts:

	source/scripting/python/samba/provision.py
(This used to be commit d27de63365)
2008-05-23 16:24:07 +02:00
Jelmer Vernooij
5eed56d0ad Fix bugs in samr python tests.
(This used to be commit 09c6b106ac)
2008-05-23 15:10:35 +02:00
Jelmer Vernooij
dff31b1dc0 Create new context in pytalloc to avoid problems with talloc_free() freeing the wrong parent of a pointer.
(This used to be commit 3f628f4dc9)
2008-05-23 15:09:51 +02:00
Jelmer Vernooij
9adcd8c25e UFollow conventions for __repr__ contents for talloc python wrapper.
(This used to be commit f2d437d646)
2008-05-23 13:13:36 +02:00
Jelmer Vernooij
6ccb9785e7 Add another test toe the python samr testsuite.
(This used to be commit 480884c696)
2008-05-23 04:21:29 +02:00
Jelmer Vernooij
5a5605afcd Remove unused ejs library functions.
(This used to be commit 57eec87b19)
2008-05-23 04:21:19 +02:00
Jelmer Vernooij
27005cb7a2 Convert samr test to python.
(This used to be commit 88d473b202)
2008-05-23 04:20:45 +02:00
Jelmer Vernooij
166105b0b6 Fix bug after reprocessing swig files with newer version of SWIG.
(This used to be commit 2155d76646)
2008-05-23 03:20:37 +02:00
Jelmer Vernooij
7cfcec2e9d Fix imports for minschema.
(This used to be commit bda223a49e)
2008-05-23 02:44:42 +02:00
Jelmer Vernooij
1a42178166 dcerpc is now samba.dcerpc, avoid including source code in API documentation.
(This used to be commit a28a8ed535)
2008-05-23 00:45:50 +02:00
Jelmer Vernooij
c159d1221b Add docstrings to samba3 and getopt modules.
(This used to be commit bdf1c039db)
2008-05-23 00:38:11 +02:00