OpenAFS CVS Commit: openafs/src/auth by jaltman

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Thu, 18 Jun 2009 23:48:28 EDT


Update of /cvs/openafs/src/auth
In directory GRAND.CENTRAL.ORG:/home/jaltman/openafs/cvs-1-5/src/auth

Modified Files:
      Tag: openafs-devel-1_5_x
	cellconfig.c cellconfig.p.h 
Log Message:
DELTA DEVEL15-cellconfig-gethostbyname-20090618
AUTHOR jaltman@secure-endpoints.com
LICENSE MIT

The CellServDB processing in auth/cellconfig and WINNT/afsd/cm_config
differ in one important way.  cellconfig uses the IP addresses specified
in the CellServDB file and ignores the host name; whereas cm_config
calls gethostbyname() on the host name and falls back to the specified
address only if gethostbyname() fails.

This commit modifies cellconfig to use gethostbyname() calls on the
host names when the client CellServDB file is being used.   The server
CellServDB file is left alone because ubik servers need to be given
the exact list of ip addresses specified by the administrator and
there is no method of indicating clones to other servers using DNS.

This change permits a greater resilency to cell server configuration
changes due to IP address renumbering as the DNS names in the CellServDB
file can be CNAME or A records.

A host name can be resolved to multiple IP addresses and all of the
addresses will be added to the hostAddr list for the cell provided
that they do not exceed the maximum number of hosts.  If the same
host name is listed multiple times the duplicate IP addresses will
be ignored.

The behavior of all tools that use CellServDB files on Windows will now
be consistent.




--- DELTA config for openafs-devel-1_5_x follows ---
DEVEL15-cellconfig-gethostbyname-20090618 openafs/src/auth/cellconfig.c 1.47.2.20 1.47.2.21
DEVEL15-cellconfig-gethostbyname-20090618 openafs/src/auth/cellconfig.p.h 1.11.14.5 1.11.14.6