[Freeipa-devel] [PATCH] 570 enforce max username length

Rob Crittenden rcritten at redhat.com
Wed Oct 13 13:46:25 UTC 2010


Pavel Zuna wrote:
> On 10/11/2010 05:19 PM, Rob Crittenden wrote:
>> Enforce the configurable max username length from cn=ipaconfig.
>>
>> rob
>>
>
> This will raise an exception if the ipaMaxUsernameLength attribute isn't
> present in the config entry. I know it's not very likely, but it would
> be better to retrieve the attribute first and only do the length check
> if it is set.
>
> Pavel

Ok, new patch attached. get_ipa_config() always returns a dict (unless 
things really go south in which case missing this attribute is the least 
of our problems).

rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-570-2-length.patch
Type: application/mbox
Size: 1174 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20101013/8472ed95/attachment.mbox>


More information about the Freeipa-devel mailing list