On 11/29/12 2:52 PM, Matej Sekoranja wrote:
>>> 2) For CA Access Security, CAJ uses full hostnames (with domain) and libca uses short host names (without domain)
>>
>> This sounds like a bug to me. I would expect the two to behave
>> identically. I don't know what the correct behavior is. Maybe libca is
>> not behaving in accordance with the spec, or maybe the short hostname is
>> according to spec. If the latter, and if Matej (the developer of CAJ)
>> does not want to change this behavior as the default, perhaps support
>> could be added for a compatibility-mode option/property to enable the
>> use of the short hostname in CAJ?
>
> The method CAJ uses to get hostname is (or was in 2006) not
> deterministic - it can return long or short name. There is an JVM
> "-DCAJ_STRIP_HOSTNAME" option to strip SHN from possibly returned FQDN
> (e.g. alma.hq.eso.org -> alma).
Would an EPICS Base developer be willing to comment on this? What is
the correct behavior, or is it unspecified?
The EPICS Application Developer's Guide for 3.14.12 doesn't explicitly
say (from what I can tell based on a quick skim), but the examples seem
to all use short hostnames.
The guide also says, "For vxWorks clients, the host name is usually
taken from the target name of the boot parameters." I would bet a
number of vxWorks IOCs have their target name set to just the short
hostname.
Thanks,
Lewis
- Replies:
- Re: Using CAJ in production Matej Sekoranja
- References:
- Using CAJ in production Shankar, Murali
- Re: Using CAJ in production J. Lewis Muir
- Re: Using CAJ in production Matej Sekoranja
- Navigate by Date:
- Prev:
Re: Using CSS and setting up RDB Archiver Kasemir, Kay
- Next:
Re: Using CAJ in production Matej Sekoranja
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
<2012>
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Using CAJ in production Matej Sekoranja
- Next:
Re: Using CAJ in production Matej Sekoranja
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
<2012>
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|