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

Simo Sorce ssorce at redhat.com
Thu May 15 18:33:47 UTC 2008


On Thu, 2008-05-15 at 13:45 -0400, Rob Crittenden wrote:
> 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

pushed

-- 
Simo Sorce * Red Hat, Inc * New York




More information about the Freeipa-devel mailing list