extended provision-backend

Oliver Liebel oliver at itc.li
Mon Aug 3 16:42:09 MDT 2009


Andrew Bartlett schrieb:
> 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
>
>   
one second before i recieved your mail i focussed on  
secrets_sasl_ldap.ldif. ;-)
that was it.  thank you.
and sorry that it lasts so long, but my last weeks have been very busy.
the complete patches should be finished at the end of this week.

oliver




More information about the samba-technical mailing list