Re: [Hampshire] LDAP and RSYNC

Top Page

Reply to this message
Author: Adrian Bridgett
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] LDAP and RSYNC
On Thu, Nov 22, 2007 at 12:12:42 +0000 (+0000), Keir Whitlock wrote:
> Nov 22 12:09:49 SERVER1 rsync: nss_ldap: failed to bind to LDAP
> server ldap://ldapserver.domain.co.uk: Can't contact
> LDAP server/


That'll be /etc/nsswitch.conf related then - I suspect you are looking
up users and/or groups in LDAP.

> I have the admin users to the nss_initgroups_ignoreusers variable in
> /etc/ldap.conf, so if the ldapserver goes down I can still log in.
> However when it goes down, the rsync process fails and I would like
> to keep the files this is updating, updated should the ldapserver
> fail.


Several possibilities here, first of all, find all the users and
groups of the files you are rsyncing. If any are in LDAP, that's the
problem since it can't look them up - you might be able to use "rsync
--numeric-ids". You could try using nscd or nss-updatedb instead to
reduce your dependence on LDAP.

If the users are in /etc/passwd instead (or as well) then try ensure
that /etc/nsswitch.conf says "files ldap" rather than "ldap files".
(s/files/compat/ if you wish).

Adrian
--
Email: adrian@??? -*- GPG key available on public key servers
Debian GNU/Linux - the maintainable distribution -*- www.debian.org