<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 12/03/2012 11:47 AM, Cristian Falcas
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAMo7R_fH3qqaoh8Q+=Xw6Xihs1FjFWp7j9_OoQH8eP1qDABZEg@mail.gmail.com"
      type="cite"><br>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Mon, Dec 3, 2012 at 9:08 AM, Roy
          Golan <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:rgolan@redhat.com" target="_blank">rgolan@redhat.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <div>
                <div class="h5">
                  <div>On 12/02/2012 10:52 PM, Cristian Falcas wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5"><br>
                    <div class="gmail_extra"><br>
                      <br>
                      <div class="gmail_quote">On Fri, Nov 30, 2012 at
                        1:53 AM, Cristian Falcas <span dir="ltr">&lt;<a
                            moz-do-not-send="true"
                            href="mailto:cristi.falcas@gmail.com"
                            target="_blank">cristi.falcas@gmail.com</a>&gt;</span>
                        wrote:<br>
                        <blockquote class="gmail_quote"
                          style="margin:0px 0px 0px
                          0.8ex;border-left:1px solid
                          rgb(204,204,204);padding-left:1ex">Hi all,<br>
                          <br>
                          I had some problems with the beta version and
                          I tried again the nightly builds. i think that
                          somewhere in the code the domain is not added
                          correctly. Trying to add a domain, I got this
                          in the logs:<br>
                          <br>
                          2012-11-30 01:38:33,962 DEBUG
                          [org.apache.commons.configuration.ConfigurationUtils]
                          ConfigurationUtils.locate(): base is null,
                          name is
                          /etc/ovirt-engine/engine-manage-domains/engine-manage-domains.conf<br>
                          2012-11-30 01:38:33,977 DEBUG
                          [org.apache.commons.configuration.ConfigurationUtils]
                          Loading configuration from the absolute path
                          /etc/ovirt-engine/engine-manage-domains/engine-manage-domains.conf<br>
                          2012-11-30 01:38:37,523 ERROR
                          [org.ovirt.engine.core.utils.dns.DnsSRVLocator]
                          Error: could not find DNS SRV record name:
                          _ldap._tcp..<br>
                          Exception message is: DNS name not found
                          [response code 3]<br>
                          Possible causes: missing DNS entries in the
                          DNS server or DNS resolving issues from
                          engine-core machine.<br>
                          Please Ensure correct DNS entries exist in the
                          DNS server and ensure the DNS server is
                          reachable from the engine-core machine.<br>
                          2012-11-30 01:38:37,523 DEBUG
                          [org.ovirt.engine.core.utils.kerberos.ManageDomainsResult]
                          Got null value.<br>
                          2012-11-30 01:38:37,527 ERROR
                          [org.ovirt.engine.core.utils.kerberos.ManageDomains]
                          Failed reading current configuration. Details:
                          Could not locate LDAP servers to be used to
                          validate the input of the utility<br>
                          <br>
                          <br>
                          It looks like it's trying to get the info for
                          " _ldap._tcp." instead of "
                          _ldap._tcp.domain"?<br>
                          <br>
                          Best regards,<br>
                          Cristian Falcas<br>
                        </blockquote>
                      </div>
                      <br>
                      <br>
                      Hi, <br>
                      <br>
                      I still have the same error with the nighly
                      builds. Can anyone tell me is this is an error on
                      my side or if I should wait for a fix?<br>
                      <br>
                      <br>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                  </div>
                </div>
                <pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a>
<a moz-do-not-send="true" href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a>
</pre>
              </blockquote>
              <br>
              pls attach the whole log and the full command line.<br>
            </div>
            <br>
            _______________________________________________<br>
            Users mailing list<br>
            <a moz-do-not-send="true" href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.ovirt.org/mailman/listinfo/users"
              target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
            <br>
          </blockquote>
        </div>
        <br>
        <br>
        Also the file /etc/ovirt-engine/krb5.conf is not created.<br>
        <br>
        Doing a tcpdump trace, I it's asking the dns server to resolve
        the name "_ldap._tcp". The response is "Standard query response,
        No such name". <br>
        <br>
        Command:<br>
        engine-manage-domains -action=add -domain=<a
          moz-do-not-send="true" href="http://company.com">company.com</a>
        -provider=ActiveDirectory -user=<a moz-do-not-send="true"
          href="http://user.name">user.name</a> -passwordFile=/tmp/pass<br>
        <br>
        Logs:<br>
        <br>
        2012-12-02 22:56:44,038 DEBUG
        [org.apache.commons.configuration.ConfigurationUtils]
        ConfigurationUtils.locate(): base is null, name is
        /etc/ovirt-engine/engine-manage-domains/engine-manage-domains.conf<br>
        2012-12-02 22:56:44,052 DEBUG
        [org.apache.commons.configuration.ConfigurationUtils] Loading
        configuration from the absolute path
        /etc/ovirt-engine/engine-manage-domains/engine-manage-domains.conf<br>
        2012-12-02 22:56:48,033 ERROR
        [org.ovirt.engine.core.utils.dns.DnsSRVLocator] Error: could not
        find DNS SRV record name: _ldap._tcp..<br>
        Exception message is: DNS name not found [response code 3]<br>
        Possible causes: missing DNS entries in the DNS server or DNS
        resolving issues from engine-core machine.<br>
        Please Ensure correct DNS entries exist in the DNS server and
        ensure the DNS server is reachable from the engine-core machine.<br>
        2012-12-02 22:56:48,033 DEBUG
        [org.ovirt.engine.core.utils.kerberos.ManageDomainsResult] Got
        null value.<br>
        2012-12-02 22:56:48,050 ERROR
        [org.ovirt.engine.core.utils.kerberos.ManageDomains] Failed
        reading current configuration. Details: Could not locate LDAP
        servers to be used to validate the input of the utility<br>
        <br>
      </div>
    </blockquote>
    clearly a bug - I suspect its related to&nbsp; commit
    bad73b624bf68f7817e9b2ecfcf9ef8489eea8f5 - the domain name is
    assumed to be already in the config.<br>
    Yair - will you open the bug? <br>
    please look at the createConfigurationProvider<br>
    String domainName = getConfigValue(engineConfigExecutable,
    engineConfigProperties, ConfigValues.DomainName);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    &lt;&lt;&lt;&nbsp;&nbsp; domain from the config. in "add" flow the domain
    isn't persisted yet<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; String ldapSecurityAuthentication =<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; getConfigValue(engineConfigExecutable,<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; engineConfigProperties,<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    ConfigValues.LDAPSecurityAuthentication);<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ldapDnsResult =
    validateLdapServers(domainName);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <br>
    <br>
    its using the domain name from the config instead of using whatever
    passes to the parser object as an argument. this will work for
    updating an existing domain but not for new ones. <br>
  </body>
</html>