From: Ian Kent Subject: Re: autofs5 + ldap + ldap replication Date: Tue, 24 Jul 2007 11:48:47 +0800 Message-ID: <1185248927.3185.30.camel@raven.themaw.net> References: <469985DF.9010607@wesmo.com> <1184599068.3344.5.camel@raven.themaw.net> <469BB868.4080603@wesmo.com> <469BCCF4.50608@wesmo.com> <1184653232.3188.37.camel@raven.themaw.net> <46A4D959.8080703@wesmo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <46A4D959.8080703@wesmo.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autofs-bounces@linux.kernel.org Errors-To: autofs-bounces@linux.kernel.org To: Rich West Cc: autofs@linux.kernel.org On Mon, 2007-07-23 at 12:37 -0400, Rich West wrote: > Ian Kent wrote: > > On Mon, 2007-07-16 at 15:54 -0400, Rich West wrote: > > > >> Jul 16 15:21:08 myhost automount[1852]: lookup_read_master: > >> lookup(ldap): searching for "(objectclass=automount)" under > >> "ou=auto.master,dc=mydomain,dc=com" > >> Jul 16 15:21:08 myhost automount[1852]: lookup_read_master: > >> lookup(ldap): examining entries > >> Jul 16 15:21:08 myhost automount[1852]: master_echo: . > >> Jul 16 15:21:08 myhost automount[1852]: master_echo: . > >> Jul 16 15:21:08 myhost automount[1852]: master_echo: : > >> Jul 16 15:21:08 myhost automount[1852]: master_echo: . > >> > > > > This is a parse error that's not being handled. > > What autofs is getting from the LDAP server can't be the same as what > > it's getting from the master if the master is working. > > > > Can you give us an example of the output from an LDAP search to both the > > servers please. > > > Sorry for the long delay.. I missed this one. > > Both servers are running the same version of openldap. You have the > output from the bad search. I turned up logging and reloaded autofs on > the master server and got the following (was that what you were looking > for?): I was hoping to get the output from an ldapsearch for one of the maps from both servers. > > Jul 23 12:34:35 mymasterhost slapd[9859]: conn=57194 op=0 BIND dn="" > method=128 > Jul 23 12:34:35 mymasterhost slapd[9859]: conn=57194 op=0 RESULT tag=97 > err=0 text= > Jul 23 12:34:35 mymasterhost slapd[9859]: conn=57194 op=1 SRCH > base="ou=auto.home,dc=mydomain,dc=com" scope=2 deref=0 > filter="(&(objectClass=nisObject)(cn=testmount))" > Jul 23 12:34:35 mymasterhost slapd[9859]: conn=57194 op=1 SRCH attr=cn > nisMapEntry > Jul 23 12:34:35 mymasterhost slapd[9859]: conn=57194 op=1 SEARCH RESULT > tag=101 err=0 nentries=0 text= > Jul 23 12:34:35 mymasterhost slapd[9859]: conn=57194 op=2 UNBIND > Jul 23 12:34:35 mymasterhost slapd[9859]: conn=57194 fd=44 closed > Jul 23 12:34:35 mymasterhost slapd[9859]: conn=57195 fd=44 ACCEPT from > IP=10.0.0.10:36741 (IP=0.0.0.0:389) > Jul 23 12:34:35 mymasterhost slapd[9859]: conn=57195 op=0 BIND dn="" > method=128 > Jul 23 12:34:35 mymasterhost slapd[9859]: conn=57195 op=0 RESULT tag=97 > err=0 text= > Jul 23 12:34:35 mymasterhost slapd[9859]: conn=57195 op=1 SRCH > base="ou=auto.home,dc=mydomain,dc=com" scope=2 deref=0 > filter="(&(objectClass=automount)(cn=testmount))" > Jul 23 12:34:35 mymasterhost slapd[9859]: conn=57195 op=1 SRCH attr=cn > automountInformation > Jul 23 12:34:35 mymasterhost slapd[9859]: conn=57195 op=1 SEARCH RESULT > tag=101 err=0 nentries=1 text= > Jul 23 12:34:35 mymasterhost slapd[9859]: conn=57195 op=2 UNBIND > Jul 23 12:34:35 mymasterhost slapd[9859]: conn=57195 fd=44 closed > Jul 23 12:34:35 mymasterhost slapd[9859]: conn=57196 fd=44 ACCEPT from > IP=10.0.0.10:36742 (IP=0.0.0.0:389) > Jul 23 12:34:35 mymasterhost slapd[9859]: conn=57196 op=0 BIND dn="" > method=128 > Jul 23 12:34:35 mymasterhost slapd[9859]: conn=57196 op=0 RESULT tag=97 > err=0 text= > Jul 23 12:34:35 mymasterhost slapd[9859]: conn=57196 op=1 SRCH > base="ou=auto.home,dc=mydomain,dc=com" scope=2 deref=0 > filter="(&(objectClass=automount)(?=undefined))" > Jul 23 12:34:35 mymasterhost slapd[9859]: conn=57196 op=1 SRCH > attr=automountKey automountInformation > Jul 23 12:34:35 mymasterhost slapd[9859]: conn=57196 op=1 SEARCH RESULT > tag=101 err=0 nentries=0 text= > Jul 23 12:34:35 mymasterhost slapd[9859]: conn=57196 op=2 UNBIND > Jul 23 12:34:35 mymasterhost slapd[9859]: conn=57196 fd=44 closed This doesn't really say much at all except that a couple of queries were done. Ian