Hi,
Is it possible to return the user/group access_to.x lines in the post_auth script?
I'm currently trying this:
authret['proplist']['access_to.0'] = '+ROUTE:10.0.0.0/24'
authret['proplist']['access_to.1'] = '+ROUTE:10.0.1.0/24'
authret['proplist']['access_to.2'] = '+ROUTE:10.0.2.0/24'
return authret
When checking with authcli. the properties seem to be returned:
AUTH_RETURN
status : SUCCEED
user : test
reason : PAM auth succeeded
proplist : {'prop_autogenerate': 'true', 'prop_autologin': '', 'conn_group': 'testgroup', 'type': 'user_connect', 'access_to.0': '+ROUTE:10.0.0.0/24', 'access_to.1': '+ROUTE:10.0.1.0/24', 'access_to.2': '+ROUTE:10.0.2.0/24', 'is_efemer_prop_list': True}
but the routes don't show up on the client. Is this response possible, or do the access_to-lines
have to be predefined and stored for the user or group?