Clients in virtual servers
Hello, i register NAS clients into two virtual servers with the same ip and this fall with duplicate error. First registration: Mon Apr 9 17:21:59 2018 : Debug: rlm_sql_postgresql: query affected rows = 1 , fields = 6 Mon Apr 9 17:21:59 2018 : Debug: rlm_sql (test_local_auth_sql): Read entry nasname=192.168.1.223,shortname=test_local_auth=::male_rb_test::ether2::192.168.1.223,secret=test Mon Apr 9 17:21:59 2018 : Debug: rlm_sql (test_local_auth_sql): Adding client 192.168.1.223 (test_local_auth::male_rb_test::ether2::192.168.1.223, server=test_local_auth) to clients list and second virtual server registration: Mon Apr 9 17:37:38 2018 : Debug: rlm_sql_postgresql: query affected rows = 1 , fields = 6 Mon Apr 9 17:37:38 2018 : Debug: rlm_sql (test_local_test_sql): Read entry nasname=192.168.1.223,shortname=test_local_test::male_rb_test::ether2::192.168.1.223,secret=test Mon Apr 9 17:37:38 2018 : Debug: rlm_sql (test_local_test_sql): Adding client 192.168.1.223 (test_local_test::male_rb_test::ether2::192.168.1.223, server=test_local_test) to clients list Mon Apr 9 17:37:38 2018 : Error: Failed to add duplicate client test_local_test::male_rb_test::ether2::192.168.1.223 I check source code and registration and every virtual server has own client list. Virtual server names in register info are different. But it look like clients are registred into global list. Is there way how to register NAS clients separately. Thanks Best Regards, Stanislav Lorenc
On 9 Apr 2018, at 17:11, Stanislav Lorenc <stanislav.lorenc@cernovice.net> wrote:
i register NAS clients into two virtual servers with the same ip and this fall with duplicate error.
The error is intended - you've added a duplicate client.
Is there way how to register NAS clients separately.
That's not possible, but what behaviour would you be expecting? Packets randomly assigned to a virtual server? Packets to be sent to both virtual servers simultaneously and two responses returned? Adam Bishop gpg: E75B 1F92 6407 DFDF 9F1C BF10 C993 2504 6609 D460 jisc.ac.uk Jisc is a registered charity (number 1149740) and a company limited by guarantee which is registered in England under Company No. 5747339, VAT No. GB 197 0632 86. Jisc’s registered office is: One Castlepark, Tower Hill, Bristol, BS2 0JA. T 0203 697 5800. Jisc Services Limited is a wholly owned Jisc subsidiary and a company limited by guarantee which is registered in England under company number 2881024, VAT number GB 197 0632 86. The registered office is: One Castle Park, Tower Hill, Bristol BS2 0JA. T 0203 697 5800.
participants (2)
-
Adam Bishop -
Stanislav Lorenc