Andrew Bartlett
f9c7365e53
s4-provisionbackend Allow a fixed URI to be specified for LDAP backend
...
This is added to make the 'existing' LDAP backend class more useful,
and to allow debuging of our OpenLDAP backend class with wireshark, by
forcing the traffic over loopback TCP, which is much easier to sniff.
Andrew Bartlett
2010-10-19 18:57:06 +11:00
Andrew Bartlett
4d9b12ae8f
s4-provision Remove serverdn parameter from Schema()
...
We don't need to know the server DN here any more, and it
makes no sense for many callers.
Andrew Bartlett
2010-10-19 18:57:00 +11:00
Andrew Bartlett
896553a1a8
s4:provision Allow OpenLDAP backend to provision again
...
OpenLDAP does not have any post-setup requirements at the moment.
Andrew Bartlett
2010-09-02 10:40:34 +10:00
Zahari Zahariev
9aae50443d
s4:provision Improved error handling in provisionbackend
...
When using OpenLDAP as a backend with Samba4 we get failure during
provision and this patch will help better determining the real error.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-09-02 10:40:34 +10:00
Jelmer Vernooij
d3d7ff66d4
Move convert_to_openldap onto Schema class.
2010-06-20 02:46:56 +02:00
Jelmer Vernooij
7b7213f1ee
s4-provision: Use logger in provision backends.
2010-06-13 18:19:03 +02:00
Andrew Bartlett
57b6979ad0
s4:provision Allow both additional and override prefixmaps in Schema
...
The idea here is to allow some callers to specify a new prefixMap that
will override the values loaded from the prefixMap.txt.
Andrew Bartlett
2010-06-12 11:18:36 +10:00
Jelmer Vernooij
4690ebf0f4
Add missing stub functions.
2010-06-11 01:47:55 +02:00
Jelmer Vernooij
c446fbc3bf
s4-python: Fix formatting.
2010-06-11 01:47:55 +02:00
Andrew Bartlett
3c585e9a80
s4:provisionbackend Don't loop forever waiting for OpenLDAP
...
We need to give a good error when we can't get OpenLDAP to accept our
connections.
Andrew Bartlett
2010-04-28 10:39:57 +10:00
Andrew Bartlett
538a07a80a
s4:provisionbackend Print the command we failed to start slapd with
...
This makes it easier to put failed startups into a debugger.
Andrew Bartlett
2010-04-20 14:24:22 +10:00
Andrew Bartlett
bc6659936a
s4:provision Don't make the 'slaptest' call produce errors
...
Adding -n 0 also allows us to check the error code too
Andrew Bartlett
2010-04-10 21:41:00 +10:00
Jelmer Vernooij
d7a46ee129
s4-python: Simplify code, improve formatting.
2010-04-08 23:20:36 +02:00
Andrew Tridgell
4f4adddb17
s4-test: oLschema2ldif doesn't take -H any more
2010-03-30 15:36:46 +11:00
Oliver Liebel
15172d3055
Fixed MMR-URL-Split and changed RID-Range OpenLDAP ITS6394
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-03-18 11:27:30 +11:00
Endi S. Dewata
c54699faf2
s4:provision - Moved default FDS SASL mappings deletion from post_setup() to init().
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-03-02 14:07:15 +11:00
Endi S. Dewata
7ad931dda9
s4:provision - Moved setup_db_config() into OpenLDAPBackend class.
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-03-02 14:07:10 +11:00
Endi S. Dewata
fc6d9e7b4f
s4:provision - Moved backend-specific variables into backend class.
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-03-02 14:07:05 +11:00
Endi S. Dewata
02533c9f1b
s4:provision - Use netbios name for FDS instance name.
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-03-02 14:07:01 +11:00
Jelmer Vernooij
86e2b25186
More formatting fixes, pointed out by pylint.
2010-03-01 16:24:58 +01:00
Jelmer Vernooij
31a718aa27
General cleanups of python code, hinted by pyflakes.
2010-03-01 04:46:51 +01:00
Jelmer Vernooij
4291e28a93
s4-python: Fix formatting.
2010-01-25 15:18:02 +01:00
Endi S. Dewata
5cdd30011c
s4-provision: Fixed typos and redundant code
...
Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
2010-01-23 22:41:10 +01:00
Andrew Bartlett
fdb5914b27
s4:provision Move exceptions into a new file
...
This allows provisionbackend and provision to both raise ProvisionException
2009-11-24 11:09:30 +11:00
Andrew Bartlett
5ea6f79775
s4:provision Don't bother with a template for the LDAP backend startup script.
2009-11-24 11:04:31 +11:00
Endi S. Dewata
8e5f5e3f05
s4:provision - Removed dependency on full Samba 3 schema from FDS
2009-11-16 07:57:40 +11:00
Endi S. Dewata
f3bc54a8f1
s4:provision - Added LDBBackend and ExistingBackend.
2009-11-12 22:23:22 +11:00
Endi S. Dewata
55bb60a5db
s4:provision - Added constructors for FDSBackend and OpenLDAPBackend.
2009-11-12 22:23:22 +11:00
Endi S. Dewata
1564067fbc
s4:provision - Added setup() method in LDAPBackend.
2009-11-12 22:23:21 +11:00
Endi S. Dewata
ba12eb99a0
s4:provision - Moved provision_xxx_backend() into backend-specific provision() method.
2009-11-12 22:23:21 +11:00
Endi S. Dewata
be766a3841
s4:provision - Added start() method in LDAPBackend.
2009-11-12 22:23:21 +11:00
Endi S. Dewata
fbc5696e38
s4:provision - Added initial implementation of FDSBackend and OpenLDAPBackend.
2009-11-12 22:23:21 +11:00
Endi S. Dewata
c9571f7277
s4:provisioning - Fixed minor bugs in provisioning tool and partition module.
2009-11-04 14:58:25 +11:00
Andrew Bartlett
371afc47dc
s4:provision Remove LDB backend files in provision
...
Rather than try and remove the records in the LDB files, make the
provision remove the whole file. This also removes the need to try
and carry forward the old ldb filenames.
Andrew Bartlett
2009-11-02 16:36:56 +11:00
Andrew Bartlett
6439bdeb3a
s4:provision Split ProvisionBackend out of the main provision script
...
This splits the code, while keeping the original behaviour. The
provision.py file had become just too long.
Andrew Bartlett
2009-11-02 16:36:56 +11:00