[Freeipa-devel] [PATCH] Fix use of find(".")

Rob Crittenden rcritten at redhat.com
Thu May 15 17:45:50 UTC 2008


Simo Sorce wrote:
> The misuse of find('.') in DsInstance class was causing
> self.realm_name[:self.realm_name.find('.')].lower() to return 'fo' as 
> the DC component instead of 'foo' in case the realm was a single 
> component one 'FOO'.
> The use of split()[0] avoid the issue as split always return an array 
> with at least one component if the separator is not found.
> 
> This patch might solve the issue of installing a server where domain and 
> realm are composed of a single domain component. Still investigating if 
> there are other places where we assume multiple-domain components 
> domain/realm names are required.
> 
> Simo.
>

ack
-------------- 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/20080515/80473cfe/attachment.bin>


More information about the Freeipa-devel mailing list