Operating System - Linux
1825719 Members
3112 Online
109686 Solutions
New Discussion

Re: Authenication problem

 
SOLVED
Go to solution
hangyu
Regular Advisor

Authenication problem

I have two linux server and the openldap is running , I want to replicate all the user info. data between these two servers , so that if one of the server (eg. master server) is suddenly shutdown then another server (eg. slave server) may replace the user login function ( that mean user can automatically use slave server as user auth server while master server is shutdown ) , I try ldap replication but have problem so I am finding another method,
Another method I guess it may also ok , the step is copy the database ldbm in directory directive from master to slave then start it up , configure the /etc/openldap/ldap.conf to force the user find the password in master server first , if can't connect master server then automatically find it again in slave server , can advise is it possible ? please ignore the security issue.
3 REPLIES 3
IT_2007
Honored Contributor

Re: Authenication problem

I think you can setup in /etc/nsswitch.conf file

password files

or may be check in ldap config file.
hangyu
Regular Advisor

Re: Authenication problem

thx reply,

my /etc/nsswitch.conf as below , but still not work , can advise what I need to change ? thx

passwd: files ldap
shadow: files ldap
group: files ldap
hosts: files dns
ethers: files
netmasks: files
networks: files
protocols: files
rpc: files
services: files
netgroup: files
publickey: nisplus
automount: files
aliases: files nisplus
Andrea Rossi
Frequent Advisor
Solution

Re: Authenication problem

You have to specify both local and remote server in /etc/openldap/ldap.conf:
HOST master.mydom.com localhost.localdomain