[Freeipa-devel] [PATCH] Make ldap2.convert_attr_synonyms more robust against schema lookup fails.

Rob Crittenden rcritten at redhat.com
Fri Oct 30 14:27:15 UTC 2009


Pavel Zuna wrote:
> Rob Crittenden wrote:
>> The user plugin is crapping out on line 317 of ldap2.py because attr 
>> is coming back None. The attribute it is looking for is member.
>>
>> I think the fix involves setting member_attributes = ['member'] to the 
>> user plugin.
>>
>> I wonder if we need to make the ldap2 plugin a bit more robust too so 
>> it  can handle it better if the schema lookup returns None.
>>
>> rob
> This should fix the issue.
>

I wonder if we should log something too. This affects the member 
attribute used in member commands and this blowing up helped me figure 
out how to set it up.

In theory this could send an unknown attribute to LDAP, right?

rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3245 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20091030/2ea84f86/attachment.bin>


More information about the Freeipa-devel mailing list