[SSSD] [PATCH] SSH: Parse OpenSSH formatted public keys

Jan Cholasta jcholast at redhat.com
Mon Aug 27 14:08:48 UTC 2012


Dne 27.8.2012 11:36, Jan Cholasta napsal(a):
> Dne 24.8.2012 12:01, Jan Cholasta napsal(a):
>> Dne 24.8.2012 10:04, Jan Cholasta napsal(a):
>>> Hi,
>>>
>>> this patch allows use of OpenSSH formatted public keys in LDAP. This is
>>> needed to fix <https://fedorahosted.org/freeipa/ticket/2932>.
>>>
>>> Note that this is just a quick fix, only the public key portion of an
>>> OpenSSH formatted public key is used, options and comments are ignored.
>>> A full fix will need more extensive changes in the code.
>>>
>>> Honza
>>>
>>
>> Self-NACK, the parser is not very robust, I need to improve it.
>>
>> Honza
>>
>
> Updated the patch & split it in two.
>
> Honza
>

Made several improvements to the parser to better match OpenSSH's behavior:
   - do not allow newlines in the string
   - allow non-ASCII and control characters in option values and comments
   - allow backslash-escaped quotes in option values

Honza

-- 
Jan Cholasta
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001.1-SSH-Return-error-code-in-SSH-utility-functions.patch
Type: text/x-patch
Size: 6849 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20120827/482e5a97/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002.1-SSH-Parse-OpenSSH-formatted-public-keys.patch
Type: text/x-patch
Size: 8760 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20120827/482e5a97/attachment-0001.bin>


More information about the sssd-devel mailing list