IP of device in login backend request

23 views
Skip to first unread message

Christophe Anselme-Moizan

unread,
Mar 4, 2025, 11:58:31 AMMar 4
to Event-Driven Servers
Hi Marc,

we are currently writing a mavis backend to do some kind of OTP.
We would like to have the OTP granted for a username and a device (IP).
I didn't find a way to pass the IP to the mavis backend.
Is it possible ?

Regards
Christophe

Marc Huber

unread,
Mar 4, 2025, 12:08:53 PMMar 4
to event-driv...@googlegroups.com

Hi Christophe,

the device IP should be readily available in the AV_A_SERVERIP attribute.

Cheers,

Marc

--
You received this message because you are subscribed to the Google Groups "Event-Driven Servers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to event-driven-ser...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/event-driven-servers/9db08317-de3c-46fb-84eb-8a226301e690n%40googlegroups.com.

Christophe Anselme-Moizan

unread,
Mar 4, 2025, 12:13:25 PMMar 4
to Event-Driven Servers
Isn't  AV_A_SERVERIP the IP of the tac_plus-ng server ?
We would need the IP of the device (AV_A_IPADDR I guess).

Marc Huber

unread,
Mar 4, 2025, 12:15:54 PMMar 4
to event-driv...@googlegroups.com

Hi Christophe,

it's the device IP, definitely:

# grep av.*SERVERIP tac_plus-ng/mavis.c
    av_set(avc, AV_A_SERVERIP, session->ctx->device_addr_ascii.txt);

Cheers,

Marc

Christophe Anselme-Moizan

unread,
Mar 4, 2025, 12:19:59 PMMar 4
to Event-Driven Servers
Thank you for your quick answers

Regards

Christophe

Reply all
Reply to author
Forward
0 new messages