This commit is contained in:
laodaming 2023-11-21 12:09:02 +08:00
parent ceefccb3b2
commit 787f33f555

View File

@ -7,9 +7,6 @@ import (
func InitLdap(host, bindDN, password string) *ldap.Conn {
// LDAP服务器配置
/*host := "ldap://192.168.1.13:389"
bindDN := "cn=root,dc=fusen,dc=com"
password := "fusen!@#"*/
/*certFile := "/path/to/certificate.crt"
keyFile := "/path/to/certificate.crt"
// 加载证书文件