[Freeipa-devel] [PATCH] 199 convert uidnumber to string

Rob Crittenden rcritten at redhat.com
Thu May 7 13:16:18 UTC 2009


Jason Gerard DeRose wrote:
> On Wed, 2009-05-06 at 07:40 -0400, Rob Crittenden wrote:
>> Jason Gerard DeRose wrote:
>>> On Mon, 2009-05-04 at 16:31 -0400, Rob Crittenden wrote:
>>>> We need to convert the uidnumber to a string when adding/modifying users 
>>>> to avoid a type error on the LDAP side.
>>>>
>>>> Pavel, I'm not sure whether this is handled automagically or not in your 
>>>> version of the plugin.
>>>>
>>>> rob
>>> ack.
>>>
>>> This is fine as a stop gap, but we really need a better solution in the
>>> long run.
>>>
>>> So the UID is always in integer, correct?  Do all LDAP "types" need to
>>> be sent as strings, or is this just a case where we are using a more
>>> restrictive type in IPA than the attribute in LDAP?
>>>
>> Pavel is working on some smarter schema handling in the new LDAP plugin. 
>>   I think that will handle the type conversions for us.
>>
>> rob
> 
> Still confused about the LDAP type, though: so is there such a thing as
> an LDAP integer type?  Why exactly are we converting to a string
> representation of the integer?
> 

We're converting because python-ldap blew up, reporting an incorrect 
type with the uid. Converting to a string makes it work.

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/20090507/f0beca86/attachment.bin>


More information about the Freeipa-devel mailing list