CAS认证账号怎么跟seafile账号关联

请教下大家:接入CAS成功返回username,但还是跳转至seafile原有的登录页面,怎么将cas server返回的username跟seafile用户对应起来,不要做两次验证。