def METHOD_NAME(self):
    kdc_uri = "localhost:%d" % self.kdc_port
    kadmin_uri = "localhost:%d" % self.kadmin_port
    krb5_conf = unindent("""
    includedir {self.includedir}
    [libdefaults]
    default_realm = {self.realm}
    dns_lookup_kdc = false
    dns_lookup_realm = false
    [realms]
        {self.realm} = {{
            kdc = {kdc_uri}
            admin_server = {kadmin_uri}
        }}
    """).format(**locals())
    return krb5_conf