Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LDAP signing in Windows Server connect #347

Open
xuefengyuan opened this issue Nov 30, 2021 · 2 comments
Open

LDAP signing in Windows Server connect #347

xuefengyuan opened this issue Nov 30, 2021 · 2 comments

Comments

@xuefengyuan
Copy link

xuefengyuan commented Nov 30, 2021

During my use, I connect to LDAP signing in Windows Server error
ldap signing config doc url : https://docs.microsoft.com/en-us/troubleshoot/windows-server/identity/enable-ldap-signing-in-windows-server

error info :
Cannot bind: LDAP Result Code 8 "Strong Auth Required": 00002028: LdapErr: DSID-0C090256, comment: The server requires binds to turn on integrity checking if SSL\TLS are not already active on the connection, data 0, v38
39

@abolinhas
Copy link

+1

@nodauf
Copy link
Contributor

nodauf commented Nov 20, 2022

If the server returns this error, you have to enable a TLS connection. On my side, I use the following snippet code:

        
import (
    "crypto/tls"
    "github.com/go-ldap/ldap/v3"
    "net"
)
[...]	
        defaultDialer := &net.Dialer{Timeout: time.Duration(timeout * int(time.Second))}
        conn, err = defaultDialer.Dial("tcp", net.JoinHostPort(target, port))
        tlsConn := tls.Client(conn, &tls.Config{InsecureSkipVerify: true})                                                                                                                                                                    
        ldapConnection = ldap.NewConn(tlsConn, true)                                                                                                                                                                                          
        ldapConnection.Start()                                                                                                                                                                                                                

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants