Hi All,
I configured openldap server and client on RHEL 8.
I get this error below on client side and been trying to troubleshoot it but can’t find the answer.
[root@client ~]# id user1
id: ‘user1’: no such user
do you know to fixed it
?
thanks
Use the grep command or id command to see if the user named ‘users1’ exists or not:
grep -w '^user1' /etc/passwd
id -u user1
No such user, means you need to add a new user using the useradd command.
sudo adduser user1
grep -w '^user1' /etc/passwd
id -u user1
user1 has already added on my ldap server. client can ping ldap. I thinh my ldap config is incorrect but can’t figure it out a couple days now.
ldap server:
[root@ldap ~]# id user1
uid=1001(user1) gid=1001(user1) groups=1001(user1)
client server:
[root@client ~]# id user1
id: ‘user1’: no such user
[root@client ~]# ping -c2 ldap.example.com
PING ldap.example.com (192.168.0.21) 56(84) bytes of data.
64 bytes from ldap.example.com (192.168.0.21): icmp_seq=1 ttl=64 time=1.13 ms
64 bytes from ldap.example.com (192.168.0.21): icmp_seq=2 ttl=64 time=1.14 ms
— ldap.example.com ping statistics —
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 1.126/1.133/1.141/0.034 ms
tomboi
4
yes, ldap config is not correct on your client side.
Now it’s the cert issue. may need to start it over again…
[root@client ~]# openssl s_client -showcerts -connect ldap.example.com:636
CONNECTED(00000003)
depth=0 C = US, ST = NY, L = NYC, O = OpenTest, OU = Test, CN = ldap, emailAddress = me@gmail.com
verify error:num=18:self signed certificate
verify return:1
depth=0 C = US, ST = NY, L = NYC, O = OpenTest, OU = Test, CN = ldap, emailAddress = me@gmail.com
verify return:1