ldap_auth.go:ldap client使用ssl访问ldap server端进行认证
web_basic_auth.go:go 实现web basic authentication
send_mail.go:认证用户后,发送邮件
walkFindPort.go:根据主机的MAC地址找到对应交换机的端口(前提是主机已经接入网络,即交换机已经学习到了该主机的MAC地址信息)
有用的go代码
ldap_auth.go:ldap client使用ssl访问ldap server端进行认证
web_basic_auth.go:go 实现web basic authentication
send_mail.go:认证用户后,发送邮件
walkFindPort.go:根据主机的MAC地址找到对应交换机的端口(前提是主机已经接入网络,即交换机已经学习到了该主机的MAC地址信息)
有用的go代码