ADD aaa-12 增加配置管理-认证成功后跳转到指定页面配置
RCA: SOL: 修改人:chenling 检视人:
This commit is contained in:
parent
e7ef924004
commit
9562c7dcbd
|
@ -27,7 +27,7 @@ VPATH = ../user/configm/config-server
|
||||||
|
|
||||||
# set the source file, don't used .o because of ...
|
# set the source file, don't used .o because of ...
|
||||||
|
|
||||||
COMMON_SRCS = configserver.c ipconfig/ipconfig.c ipconfig/parsefile.c authfree_config/authfree.c localportal_config/localportal.c userlock_config/userlock.c
|
COMMON_SRCS = configserver.c ipconfig/ipconfig.c ipconfig/parsefile.c authfree_config/authfree.c localportal_config/localportal.c userlock_config/userlock.c jumppage_config/jumppage.c
|
||||||
|
|
||||||
# MRS Board Source Files
|
# MRS Board Source Files
|
||||||
PLAT_LINUX_SRCS = $(COMMON_SRCS)
|
PLAT_LINUX_SRCS = $(COMMON_SRCS)
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
#ifndef JUMPPAGE_H_
|
||||||
|
#define JUMPPAGE_H_
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <errno.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <netinet/in.h>
|
||||||
|
#include <arpa/inet.h>
|
||||||
|
#include <sys/ioctl.h>
|
||||||
|
#include <net/if.h>
|
||||||
|
#include "../../../../common/rpc/rpc_common.h"
|
||||||
|
|
||||||
|
|
||||||
|
/*系统管理模块将数据内容(URL地址)发送给web server */
|
||||||
|
ret_code jumppage_config_proc(uint source, uint config_type,
|
||||||
|
pointer input, int input_len,
|
||||||
|
pointer output, int *output_len);
|
||||||
|
|
||||||
|
#endif
|
|
@ -0,0 +1,38 @@
|
||||||
|
#include "../../../../common/rpc/rpc.h"
|
||||||
|
#include "../include/parsefile.h"
|
||||||
|
#include "../include/configm.h"
|
||||||
|
#include "../../../netlink_uapi/libnetlinku.h"
|
||||||
|
#include "../include/jumppage.h"
|
||||||
|
#include <cjson/cJSON.h>
|
||||||
|
#include "../../../../../Common/s2j/s2j.h"
|
||||||
|
#include "../../../../../Common/commuapinl.h"
|
||||||
|
|
||||||
|
/*全局变量,存放用户跳转的页面 */
|
||||||
|
char *jumpurl;
|
||||||
|
|
||||||
|
/*初始化 */
|
||||||
|
char *jumpurl = NULL;
|
||||||
|
|
||||||
|
/*系统管理模块将数据内容(URL地址)发送给web server */
|
||||||
|
ret_code jumppage_config_proc(uint source, uint config_type,
|
||||||
|
pointer input, int input_len,
|
||||||
|
pointer output, int *output_len)
|
||||||
|
{
|
||||||
|
ret_code ret = RET_OK;
|
||||||
|
char *struct_jumppage;
|
||||||
|
struct_jumppage = (char *)input;
|
||||||
|
|
||||||
|
rpc_log_info("jumppage configure: url: %s\n",
|
||||||
|
struct_jumppage);
|
||||||
|
|
||||||
|
|
||||||
|
/*将配置信息发送到web server */
|
||||||
|
|
||||||
|
|
||||||
|
/*把本地Portal server的配置信息存入全局变量 */
|
||||||
|
jumpurl = struct_jumppage;
|
||||||
|
|
||||||
|
return RET_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@ ret_code userlock_config_proc(uint source, uint config_type,
|
||||||
userlock_configure_t *struct_userlock;
|
userlock_configure_t *struct_userlock;
|
||||||
struct_userlock = (userlock_configure_t *)input;
|
struct_userlock = (userlock_configure_t *)input;
|
||||||
|
|
||||||
rpc_log_info("userlock configure: 登录时间: %d 用户认证失败次数: %d 用户认证的时间范围: %d 用户锁定时间: %d\n",
|
rpc_log_info("userlock configure: 登录时间: %d 用户认证失败次数: %d 用户认证的时间范围: %d 用户锁定时间: %ld\n",
|
||||||
struct_userlock->logintime, struct_userlock->failcount,
|
struct_userlock->logintime, struct_userlock->failcount,
|
||||||
struct_userlock->timehorizon, struct_userlock->locktime);
|
struct_userlock->timehorizon, struct_userlock->locktime);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue