Score:0

openLDAP / Sasl - ldap_sasl_interactive_bind_s: Local error (-2)

cz flag

I configure openldap with sasl bind.

Trying connect:

# ldapsearch -v -H ldaps:// -Y PLAIN -U [email protected]

But getting error:

ldap_sasl_interactive_bind_s: Local error (-2)
  1. I create a config file /etc/sasl2/slapd.conf:
pwcheck_method: auxprop 
mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5 
auxprop_plugin: sasldb 
  1. Sample server and client show successful authentication.
# sasl2-sample-server -s sample -h localhost -p 1789 -m PLAIN
# sasl2-sample-client -s sample -p 1789  -m PLAIN localhost
trying 2, 1, 6
trying 10, 1, 6
bind: Address already in use
accepted new connection
forcing use of mechanism PLAIN
send: {5}
PLAIN
waiting for client mechanism...
recv: {5}
PLAIN
recv: {1}
Y
recv: {49}
[email protected][0][email protected][0]xxxxx
negotiation complete
successful authentication '[email protected]'
closing connection
  1. slapd log:
 
Mar 21 18:21:20  slapd[26236]: conn=1062 fd=10 ACCEPT from IP=127.0.0.1:38312 (IP=127.0.0.1:636)
Mar 21 18:21:20  slapd[26236]: conn=1062 fd=10 TLS established tls_ssf=256 ssf=256
Mar 21 18:21:20  slapd[26236]: conn=1062 op=0 UNBIND
Mar 21 18:21:20  slapd[26236]: conn=1062 fd=10 closed
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.