Sharad Mishra has posted comments on this change.

Change subject: tools: Don't ask for password, before DNS SRV records are 
returned.
......................................................................


Patch Set 6: (2 inline comments)

....................................................
File 
backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/kerberos/ManageDomains.java
Line 229:         boolean foundServers = true;
Line 230:         try
Line 231:         {
Line 232:             result = locator.getKdc(DnsSRVLocator.TCP, domainName);
Line 233:             if (result.getNumOfValidAddresses() == 0) {
yes, I meant || and not && :-)

code suggests that it is possible to get a 'null' for 'result'.
Line 234:                 result = locator.getKdc(DnsSRVLocator.UDP,domainName);
Line 235:                 if (result.getNumOfValidAddresses() == 0) {
Line 236:                     foundServers =false;
Line 237:                 }


Line 250:         LdapSRVLocator locator = new LdapSRVLocator();
Line 251:         DnsSRVResult ldapDnsResult = null;
Line 252:         boolean foundServers = true;
Line 253:         try {
Line 254:             ldapDnsResult = locator.getLdapServers(domainName);
correction. We do need the check for 'getNumOfValidAddresses()' but also need 
to check for null.
Line 255:             if (ldapDnsResult.getNumOfValidAddresses() == 0) {
Line 256:                 foundServers = false;
Line 257:             }
Line 258:         } catch (Exception ex) {


--
To view, visit http://gerrit.ovirt.org/9349
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I9c5132300eb1f1fd94f771cab17efe5246dbeca8
Gerrit-PatchSet: 6
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yair Zaslavsky <yzasl...@redhat.com>
Gerrit-Reviewer: Oved Ourfali <oourf...@redhat.com>
Gerrit-Reviewer: Sharad Mishra <snmis...@linux.vnet.ibm.com>
Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to