HOSTNAME value in ocserv scripts

Nikos Mavrogiannopoulos n.mavrogiannopoulos at gmail.com
Sun Aug 16 00:15:49 PDT 2015


On Sat, Aug 15, 2015 at 11:02 PM, Niels Peen <niels at peen.ch> wrote:
> Hi,
> The ocserv manual mentions this:
> ...
> # The following parameters are passed on the environment.
> # REASON, USERNAME, GROUPNAME, HOSTNAME (the hostname selected by client),
>>
> But it’s unclear to me what would fill the HOSTNAME variable. In my setup it’s always empty.  I was hoping it would contain the hostname that the client intended to connect to, though I’m not sure if that’s known to the server.

No, it is the value from X-CSTP-Hostname, that is, the hostname the
client would like to map his IP address to.

regards,
Nikos



More information about the openconnect-devel mailing list