extended provision-backend
Andrew Bartlett
abartlet at samba.org
Mon Aug 3 16:09:13 MDT 2009
On Mon, 2009-08-03 at 23:51 +0200, Oliver Liebel wrote:
> hi andrew,
>
> i have implemented and tested some of the new features:
> - added slapd-path -parameter to provision backend
> - added your patches
> - check if another instance of slapd is running during
> provision-backend, if yes, exit with error-message
> - auto start slapd after provision-backend has finished without errors
> (ldapi only) and noother slapd is running
>
> then i upgraded my "old" s4a9-version from git, and now i run
> into a strange error, when running final provision.
> looks like that:
>
> #> setup/provision --realm=ldap.local.site --domain=LDAP
> --server-role='domain controller' --ldap-backend=ldapi
> --ldap-backend-type=openldap --password=linux --username=samba-admin
> --adminpass=linux
> Setting up share.ldb
> Setting up secrets.ldb
> Traceback (most recent call last):
> File "setup/provision", line 188, in <module>
> ldap_backend_type=opts.ldap_backend_type)
> File "bin/python/samba/provision.py", line 1041, in provision
> credentials=credentials, lp=lp)
> File "bin/python/samba/provision.py", line 640, in setup_secretsdb
> "LDAPADMINPASS_B64": b64encode(credentials.get_password())
> File "bin/python/samba/provision.py", line 187, in setup_add_ldif
> ldb.add_ldif(data)
> File "bin/python/samba/__init__.py", line 191, in add_ldif
> for changetype, msg in self.parse_ldif(ldif):
> ValueError: unable to parse ldif string
>
> then i tried out a complete unpatched and unmodified s4a9 from git,
> but same errors.
Look for the LDIF file this is trying to add, and remove newlines from
the end of the file until it works. (I made a parser more strict
recently, and clearly there are still bugs).
Andrew Bartlett
--
Andrew Bartlett
http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Cisco Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20090804/35b2746c/attachment.pgp>
More information about the samba-technical
mailing list