radius 添加 CallingStationID

This commit is contained in:
bjdgyc
2024-11-15 15:13:24 +08:00
parent 8a2350eb6e
commit bda23283ec
6 changed files with 20 additions and 10 deletions

View File

@@ -61,7 +61,7 @@ func (auth AuthLdap) checkData(authData map[string]interface{}) error {
return nil
}
func (auth AuthLdap) checkUser(name, pwd string, g *Group) error {
func (auth AuthLdap) checkUser(name, pwd string, g *Group, ext map[string]interface{}) error {
pl := len(pwd)
if name == "" || pl < 1 {
return fmt.Errorf("%s %s", name, "密码错误")