How to disable ldap and allow local authentication in debian server?

8,068

I would utilize authconfig because you aren't really indicating which method of LDAP authentication you're using. Try this command:

authconfig --disableldapauth --disableldap --enableshadow --updateall

You will need to add users to the local passwd file using the useradd command

useradd foouser

Share:
8,068

Related videos on Youtube

Zaira banu
Author by

Zaira banu

Updated on September 18, 2022

Comments

  • Zaira banu
    Zaira banu almost 2 years

    I have debian server Debian 3.2.81-2 x86_64 GNU/Linux. I want to disable openldap and enable local authentication. I see /etc/ldap/ldap.conf file which has ldap entry.

    I have ran service slapd stop; if server is rebooted, will the slapd service start automatically?

  • Zaira banu
    Zaira banu about 7 years
    above command is for redhat or centos server.This is a debian server.it os openldap