Score:2

What is the replacement tool for auth-client-config in 20.04

in flag

I am following the instructions to setup LDAP authentication for an Ubuntu Focal (20.04) client.

One of the steps is to execute the command sudo auth-client-config -t nss -p lac_ldap. Supposedly this utility is provided by the ldap-auth-client package. However it seems it was removed in Ubuntu Focal and later.

What is the replacement command to configure /etc/nsswitch.conf without having to manually edit the file.

Score:0
jp flag

I encountered the same problem and did not find the exact issue.

But here is a workaround if used in scripts. Use sed.

sed -E 's/^passwd:\s+.*/passwd: files systemd ldap/g' -i /etc/nsswitch.conf
sed -E 's/^group:\s+.*/group: files systemd ldap/g' -i /etc/nsswitch.conf
sed -E 's/^shadow:\s+.*/shadow: files systemd ldap/g' -i /etc/nsswitch.conf
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.