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

feat: implement MS Active Directory LDAP_SERVER_FAST_BIND_OID control #515

Closed
wants to merge 3 commits into from

Conversation

cpuschma
Copy link
Member

@cpuschma cpuschma commented Apr 23, 2024

Requested in #514, this implements the LDAP_SERVER_FAST_BIND_OID, which is described here: https://msdn.microsoft.com/en-us/library/58bbd5c4-b5c4-41e2-b12c-cdaad1223d6a. The implementation is straightforward, as only the control type needs to be sent.

Tests can't be extended for this control, as it's Active Directory specific.

@cpuschma cpuschma requested review from johnweldon and removed request for johnweldon April 23, 2024 12:04
@cpuschma cpuschma marked this pull request as draft April 23, 2024 14:35
@cpuschma
Copy link
Member Author

Please don't merge this yet, I've got a few additional things to check as I stumbled upon a few forum entries regarding this OID. I'll keep you posted.

@cpuschma
Copy link
Member Author

Available through the recently added extended operations. See:

ldap/extended_test.go

Lines 28 to 41 in 601814b

func TestExtendedRequest_FastBind(t *testing.T) {
conn, err := DialURL(ldapServer)
if err != nil {
t.Error(err)
}
defer conn.Close()
request := NewExtendedRequest("1.3.6.1.4.1.4203.1.11.3", nil)
_, err = conn.Extended(request)
if err != nil {
t.Errorf("%s failed: %v", t.Name(), err)
return
}
}

@cpuschma cpuschma closed this Nov 15, 2024
@cpuschma cpuschma deleted the feat/fast_bind branch November 15, 2024 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant