Hello all, I’m trying to configure OpenLdap server and rocky workstation to login with ldap users. My Rocky Openldap server has installed phpldapadmin and I can sucessfully login. i can also run
ldapsearch -x -b “dc=mca,dc=local” -D “cn=Manager,dc=mca,dc=local” -W
Now I’m trying to configure client, but without success, this is my configuration file on client for /etc/sssd/sssd.conf
[sssd]
domains = ldap
services = nss, pam
[domain/ldap]
id_provider = ldap
auth_provider = ldap
chpass_provider = ldap
ldap_uri = ldap://ldap.mca.local
ldap_search_base = dc=mca,dc=local
ldap_default_bind_dn = cn=Manager,dc=mca,dc=local
ldap_default_authtok = password
ldap_tls_reqcert = allow
cache_credentials = true
enumerate = true
access_provider = simple
simple_allow_users = jsantos, asantos
type or paste code here
if I login with local account and type su - jsantos , it works, but if I try to connect over ssh or try GUI . I cannot login
running: journalctl -u sssd
[client@client ~]$ journalctl -u sssd
Apr 21 18:35:06 client.mca.local systemd[1]: Starting System Security Services Daemon...
Apr 21 18:35:06 client.mca.local sssd[739]: Starting up
Apr 21 18:35:06 client.mca.local sssd_be[765]: Starting up
Apr 21 18:35:06 client.mca.local sssd_nss[784]: Starting up
Apr 21 18:35:06 client.mca.local sssd_pam[785]: Starting up
Apr 21 18:35:06 client.mca.local systemd[1]: Started System Security Services Daemon.
Apr 21 18:35:40 client.mca.local sssd_be[765]: Could not start TLS encryption. unsupported extended operation
Apr 21 18:36:46 client.mca.local sssd_be[765]: Backend is online
Apr 21 18:39:00 client.mca.local sssd_be[765]: Could not start TLS encryption. unsupported extended operation
Apr 21 18:40:50 client.mca.local sssd_be[765]: Could not start TLS encryption. unsupported extended operation
Apr 21 18:45:15 client.mca.local sssd_be[765]: Could not start TLS encryption. unsupported extended operation
Apr 21 18:45:46 client.mca.local sssd_be[765]: Could not start TLS encryption. unsupported extended operation
Apr 21 18:56:09 client.mca.local sssd_be[765]: Could not start TLS encryption. unsupported extended operation
Apr 21 19:06:55 client.mca.local sssd_be[765]: Could not start TLS encryption. unsupported extended operation
[client@client ~]$
when I try to login
[root@client client]# su - asantos
Last login: Mon Apr 21 18:55:17 WEST 2025 on pts/0
Last failed login: Mon Apr 21 19:06:57 WEST 2025 from 172.19.80.55 on ssh:notty
There were 2 failed login attempts since the last successful login.
[asantos@client ~]$
Login from another machine over ssh
[user_ldap@ldap ~]$ ssh -vvv asantos@172.19.80.55
OpenSSH_8.7p1, OpenSSL 3.2.2 4 Jun 2024
debug1: Reading configuration data /etc/ssh/ssh_config
debug3: /etc/ssh/ssh_config line 55: Including file /etc/ssh/ssh_config.d/50-redhat.conf depth 0
debug1: Reading configuration data /etc/ssh/ssh_config.d/50-redhat.conf
debug2: checking match for 'final all' host 172.19.80.55 originally 172.19.80.55
debug3: /etc/ssh/ssh_config.d/50-redhat.conf line 3: not matched 'final'
debug2: match not found
debug3: /etc/ssh/ssh_config.d/50-redhat.conf line 5: Including file /etc/crypto-policies/back-ends/openssh.config depth 1 (parse only)
debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config
debug3: gss kex names ok: [gss-curve25519-sha256-,gss-nistp256-sha256-,gss-group14-sha256-,gss-group16-sha512-]
debug3: kex names ok: [curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512]
debug1: configuration requests final Match pass
debug2: resolve_canonicalize: hostname 172.19.80.55 is address
debug1: re-parsing configuration
debug1: Reading configuration data /etc/ssh/ssh_config
debug3: /etc/ssh/ssh_config line 55: Including file /etc/ssh/ssh_config.d/50-redhat.conf depth 0
debug1: Reading configuration data /etc/ssh/ssh_config.d/50-redhat.conf
debug2: checking match for 'final all' host 172.19.80.55 originally 172.19.80.55
debug3: /etc/ssh/ssh_config.d/50-redhat.conf line 3: matched 'final'
debug2: match found
debug3: /etc/ssh/ssh_config.d/50-redhat.conf line 5: Including file /etc/crypto-policies/back-ends/openssh.config depth 1
debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config
debug3: gss kex names ok: [gss-curve25519-sha256-,gss-nistp256-sha256-,gss-group14-sha256-,gss-group16-sha512-]
debug3: kex names ok: [curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512]
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/user_ldap/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/user_ldap/.ssh/known_hosts2'
debug3: ssh_connect_direct: entering
debug1: Connecting to 172.19.80.55 [172.19.80.55] port 22.
debug3: set_sock_tos: set socket 3 IP_TOS 0x48
debug1: Connection established.
debug1: identity file /home/user_ldap/.ssh/id_rsa type -1
debug1: identity file /home/user_ldap/.ssh/id_rsa-cert type -1
debug1: identity file /home/user_ldap/.ssh/id_dsa type -1
debug1: identity file /home/user_ldap/.ssh/id_dsa-cert type -1
debug1: identity file /home/user_ldap/.ssh/id_ecdsa type -1
debug1: identity file /home/user_ldap/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/user_ldap/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/user_ldap/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/user_ldap/.ssh/id_ed25519 type -1
debug1: identity file /home/user_ldap/.ssh/id_ed25519-cert type -1
debug1: identity file /home/user_ldap/.ssh/id_ed25519_sk type -1
debug1: identity file /home/user_ldap/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/user_ldap/.ssh/id_xmss type -1
debug1: identity file /home/user_ldap/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.7
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.7
debug1: compat_banner: match: OpenSSH_8.7 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to 172.19.80.55:22 as 'asantos'
debug3: record_hostkey: found key type ED25519 in file /home/user_ldap/.ssh/known_hosts:2
debug3: load_hostkeys_file: loaded 1 keys from 172.19.80.55
debug1: load_hostkeys: fopen /home/user_ldap/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug3: order_hostkeyalgs: have matching best-preference key type ssh-ed25519-cert-v01@openssh.com, using HostkeyAlgorithms verbatim
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,ext-info-c,kex-strict-c-v00@openssh.com
debug2: host key algorithms: ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256
debug2: ciphers ctos: aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes256-ctr,aes128-gcm@openssh.com,aes128-ctr
debug2: ciphers stoc: aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes256-ctr,aes128-gcm@openssh.com,aes128-ctr
debug2: MACs ctos: hmac-sha2-256-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha1,umac-128@openssh.com,hmac-sha2-512
debug2: MACs stoc: hmac-sha2-256-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha1,umac-128@openssh.com,hmac-sha2-512
debug2: compression ctos: none,zlib@openssh.com,zlib
debug2: compression stoc: none,zlib@openssh.com,zlib
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,kex-strict-s-v00@openssh.com
debug2: host key algorithms: rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519
debug2: ciphers ctos: aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes256-ctr,aes128-gcm@openssh.com,aes128-ctr
debug2: ciphers stoc: aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes256-ctr,aes128-gcm@openssh.com,aes128-ctr
debug2: MACs ctos: hmac-sha2-256-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha1,umac-128@openssh.com,hmac-sha2-512
debug2: MACs stoc: hmac-sha2-256-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha1,umac-128@openssh.com,hmac-sha2-512
debug2: compression ctos: none,zlib@openssh.com
debug2: compression stoc: none,zlib@openssh.com
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug3: kex_choose_conf: will use strict KEX ordering
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: aes256-gcm@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: aes256-gcm@openssh.com MAC: <implicit> compression: none
debug1: kex: curve25519-sha256 need=32 dh_need=32
debug1: kex: curve25519-sha256 need=32 dh_need=32
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:djq/3boLJhv/IV/aNQs5SNMWkBxF07BgX/Pr8YGnvhk
debug3: record_hostkey: found key type ED25519 in file /home/user_ldap/.ssh/known_hosts:2
debug3: load_hostkeys_file: loaded 1 keys from 172.19.80.55
debug1: load_hostkeys: fopen /home/user_ldap/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: Host '172.19.80.55' is known and matches the ED25519 host key.
debug1: Found key in /home/user_ldap/.ssh/known_hosts:2
debug3: send packet: type 21
debug1: ssh_packet_send2_wrapped: resetting send seqnr 3
debug2: set_newkeys: mode 1
debug1: rekey out after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: ssh_packet_read_poll2: resetting read seqnr 3
debug1: SSH2_MSG_NEWKEYS received
debug2: set_newkeys: mode 0
debug1: rekey in after 4294967296 blocks
debug1: Will attempt key: /home/user_ldap/.ssh/id_rsa
debug1: Will attempt key: /home/user_ldap/.ssh/id_dsa
debug1: Will attempt key: /home/user_ldap/.ssh/id_ecdsa
debug1: Will attempt key: /home/user_ldap/.ssh/id_ecdsa_sk
debug1: Will attempt key: /home/user_ldap/.ssh/id_ed25519
debug1: Will attempt key: /home/user_ldap/.ssh/id_ed25519_sk
debug1: Will attempt key: /home/user_ldap/.ssh/id_xmss
debug2: pubkey_prepare: done
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com>
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic,password
debug3: preferred gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup gssapi-with-mic
debug3: remaining preferred: publickey,keyboard-interactive,password
debug3: authmethod_is_enabled gssapi-with-mic
debug1: Next authentication method: gssapi-with-mic
debug1: No credentials were supplied, or the credentials were unavailable or inaccessible
No Kerberos credentials available (default cache: KCM:)
debug1: No credentials were supplied, or the credentials were unavailable or inaccessible
No Kerberos credentials available (default cache: KCM:)
debug2: we did not send a packet, disable method
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/user_ldap/.ssh/id_rsa
debug3: no such identity: /home/user_ldap/.ssh/id_rsa: No such file or directory
debug1: Trying private key: /home/user_ldap/.ssh/id_dsa
debug3: no such identity: /home/user_ldap/.ssh/id_dsa: No such file or directory
debug1: Trying private key: /home/user_ldap/.ssh/id_ecdsa
debug3: no such identity: /home/user_ldap/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: /home/user_ldap/.ssh/id_ecdsa_sk
debug3: no such identity: /home/user_ldap/.ssh/id_ecdsa_sk: No such file or directory
debug1: Trying private key: /home/user_ldap/.ssh/id_ed25519
debug3: no such identity: /home/user_ldap/.ssh/id_ed25519: No such file or directory
debug1: Trying private key: /home/user_ldap/.ssh/id_ed25519_sk
debug3: no such identity: /home/user_ldap/.ssh/id_ed25519_sk: No such file or directory
debug1: Trying private key: /home/user_ldap/.ssh/id_xmss
debug3: no such identity: /home/user_ldap/.ssh/id_xmss: No such file or directory
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
asantos@172.19.80.55's password:
debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
Permission denied, please try again.
asantos@172.19.80.55's password: