labring / fist

on the way~

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ldap集成

fanux opened this issue · comments

commented
type Authenticater interface {
       Authenticat(user, passwd string) *UserInfo //失败返回nil  成功返回用户信息
}

auth目录下新建ldap.go 实现该接口,再来个NewLdap函数

@dujiacheng UserInfo 在user.go ,Authenticater 接口在authenticate.go 。你可以先写实现。