Working code example on connecting to LDAP with Kerberos from a linux machine to a Windows Server #533
Unanswered
p0dalirius
asked this question in
Q&A
Replies: 2 comments 3 replies
-
Here is the Wireshark capture file for this authentication: |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello! Did you manage to solve your problem? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Has anyone been able to connect to a remote Windows Server LDAP service using Kerberos from a linux machine using this library? From what I understand this should be feasible, but I can't find a working example. I am trying to connect to the domain controller
SRV-DC01
of my domainLAB.local
running on Windows Server 2019, this is a default fresh installation.Initially I had a
KDC did not respond appropriately to FAST negotiation
because I did not use theclient.DisablePAFXFAST(true)
option inclient.NewWithPassword()
. Now I pass all the authentications steps up to the SASL bind on LDAP, and I get aLDAP Result Code 49 "Invalid Credentials": 80090308: LdapErr: DSID-0C09058A, comment: AcceptSecurityContext error, data 57, v4563
eventhough my credentials are valid.This is the example program to connect to LDAP using Kerberos:
At this point I am stuck with a
LDAP Result Code 49 "Invalid Credentials": 80090308: LdapErr: DSID-0C09058A, comment: AcceptSecurityContext error, data 57, v4563
error, eventhough my credentials are valid:I have a running Wireshark and I got the following packets:
My latest TGS-REP packet (number 27) is the following:
And when binding using SASL
bindRequest(1) "<ROOT>" sasl
(pkt number 32) I have:And I get a bindResponse
invalidCredentials
(pkt number 34):The credentials used are valid on the domain (I can login, and furthermore the initial Kerberos authentication do work until the
ldapConnection.GSSAPIBind()
call)If anyone have a working example or can tell me what goes wrong here I'd love that!
Thank you in advance for your help!
Best regards,
Beta Was this translation helpful? Give feedback.
All reactions