BLOG

KB No. 2770: Fixing IP2LOGIN association issues

Version: V6.x

p2login is a mechanism integrated into the Olfeo solution that allows the IP address of a machine with which authentication has been performed to be stored, thereby creating a user/IP address association.

Some useful commands for managing the IP2LOGIN association:

redis-cli -s /tmp/redis-ip2login.sock keys "*" → Querying the table

Shows you all the IPs present in the table.

redis-cli -s /tmp/redis-ip2login.sock hgetall @IP → returns the associated user

example:
[Olfeo] root@OLFEO-SOIGNANTS:/# redis-cli -s /tmp/redis-ip2login.sock hgetall 100.100.100.100
1) "login"
2) "nomuser"
3) "from_ip2login"
4) "1 "

Line 2) indicates the name associated with the IP.

redis-cli -s /tmp/redis-ip2login.sock del 127.127.127.127 → deletion of an entry 127.127.127.127 as an example

redis-cli -s /tmp/redis-ip2login.sock flushdb→ Completely empty the table