All of lore.kernel.org
 help / color / mirror / Atom feed
* AutoFS and LDAP
@ 2007-07-20 18:36 Jim Summers
  2007-07-20 20:34 ` Possible BUG! " Jim Summers
  2007-07-23 15:07 ` Ian Kent
  0 siblings, 2 replies; 7+ messages in thread
From: Jim Summers @ 2007-07-20 18:36 UTC (permalink / raw)
  To: autofs

Hello All,

I have been attempting to get autofs5 to work with my ldap config.  The way I 
am set up is:

FC6 / FC7 clients and redhat servers.
auto.home info for each user is stored in ldap
auto.master is stored locally on each client

The mounts do not happen.  Here is what I see when starting autofs:
======
Jul 20 13:22:53 lch automount[3427]: Starting automounter version 5.0.1-11, 
master map auto.master
Jul 20 13:22:53 lch automount[3427]: using kernel protocol version 5.00
Jul 20 13:22:53 lch automount[3427]: master_error: syntax error while parsing map.
Jul 20 13:22:53 lch automount[3427]: mounted indirect mount on /misc with 
timeout 300, freq 75 seconds
Jul 20 13:22:53 lch automount[3427]: mounted indirect mount on /net with 
timeout 300, freq 75 seconds
======
Here is the auto.master:
======
/home    ldap://129.15.1.203/ou=auto.home,dc=it,dc=ou,dc=edu
======
nsswitch:
======
automount:  files
======

While monitoring traffic on the ldap server.  I never see any traffic from the 
client when the daemon is started.  So I am thinking that it is not able to 
read the "/home" entry.

I have tried the old style colon syntax for an ldap entry.  No joy.  I 
purposely made syntax errors and then it will say syntax error near "xxxxx" as 
it should.

Ideas / Suggestions?

TIA


-- 
Jim Summers
School of Computer Science-University of Oklahoma
-------------------------------------------------

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Possible BUG! AutoFS and LDAP
  2007-07-20 18:36 AutoFS and LDAP Jim Summers
@ 2007-07-20 20:34 ` Jim Summers
  2007-07-23 14:33   ` Jim Summers
  2007-07-23 14:59   ` Ian Kent
  2007-07-23 15:07 ` Ian Kent
  1 sibling, 2 replies; 7+ messages in thread
From: Jim Summers @ 2007-07-20 20:34 UTC (permalink / raw)
  To: autofs

Jim Summers wrote:
> Hello All,
> 
> I have been attempting to get autofs5 to work with my ldap config.  The 
> way I am set up is:
> 
> FC6 / FC7 clients and redhat servers.
> auto.home info for each user is stored in ldap
> auto.master is stored locally on each client
> 
> The mounts do not happen.  Here is what I see when starting autofs:
> ======
> Jul 20 13:22:53 lch automount[3427]: Starting automounter version 
> 5.0.1-11, master map auto.master
> Jul 20 13:22:53 lch automount[3427]: using kernel protocol version 5.00
> Jul 20 13:22:53 lch automount[3427]: master_error: syntax error while 
> parsing map.
> Jul 20 13:22:53 lch automount[3427]: mounted indirect mount on /misc 
> with timeout 300, freq 75 seconds
> Jul 20 13:22:53 lch automount[3427]: mounted indirect mount on /net with 
> timeout 300, freq 75 seconds
> ======
> Here is the auto.master:
> ======
> /home    ldap://129.15.1.203/ou=auto.home,dc=it,dc=ou,dc=edu

I may have stumbled onto the problem.  In the dn above, notice that it has 
dc=ou.  I was trying various things and thought, let's remove that and see 
what happens.  Sure enough the log messages start showing the attempt to get 
the /home stuff but it fails because the ldap tree doesn't match.  I can then 
put the dc=ou back in and it just fails with that syntax error.  This was all 
fine in the autofs4 version.  The ldap is setup that way to match domain for 
instance, it.ou.edu.

I can test if I can find the place in the code to change it back to the way 
that version4 was doing things and then re-compile.

Many Thanks



> ======
> nsswitch:
> ======
> automount:  files
> ======
> 
> While monitoring traffic on the ldap server.  I never see any traffic 
> from the client when the daemon is started.  So I am thinking that it is 
> not able to read the "/home" entry.
> 
> I have tried the old style colon syntax for an ldap entry.  No joy.  I 
> purposely made syntax errors and then it will say syntax error near 
> "xxxxx" as it should.
> 
> Ideas / Suggestions?
> 
> TIA
> 
> 

-- 
Jim Summers
School of Computer Science-University of Oklahoma
-------------------------------------------------

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Possible BUG! AutoFS and LDAP
  2007-07-20 20:34 ` Possible BUG! " Jim Summers
@ 2007-07-23 14:33   ` Jim Summers
  2007-07-23 14:59   ` Ian Kent
  1 sibling, 0 replies; 7+ messages in thread
From: Jim Summers @ 2007-07-23 14:33 UTC (permalink / raw)
  To: autofs



Jim Summers wrote:
> Jim Summers wrote:
>> Hello All,
>>
>> I have been attempting to get autofs5 to work with my ldap config.  The 
>> way I am set up is:
>>
>> FC6 / FC7 clients and redhat servers.
>> auto.home info for each user is stored in ldap
>> auto.master is stored locally on each client
>>
>> The mounts do not happen.  Here is what I see when starting autofs:
>> ======
>> Jul 20 13:22:53 lch automount[3427]: Starting automounter version 
>> 5.0.1-11, master map auto.master
>> Jul 20 13:22:53 lch automount[3427]: using kernel protocol version 5.00
>> Jul 20 13:22:53 lch automount[3427]: master_error: syntax error while 
>> parsing map.
>> Jul 20 13:22:53 lch automount[3427]: mounted indirect mount on /misc 
>> with timeout 300, freq 75 seconds
>> Jul 20 13:22:53 lch automount[3427]: mounted indirect mount on /net with 
>> timeout 300, freq 75 seconds
>> ======
>> Here is the auto.master:
>> ======
>> /home    ldap://129.15.1.203/ou=auto.home,dc=it,dc=ou,dc=edu
> 
> I may have stumbled onto the problem.  In the dn above, notice that it has 
> dc=ou.  I was trying various things and thought, let's remove that and see 
> what happens.  Sure enough the log messages start showing the attempt to get 
> the /home stuff but it fails because the ldap tree doesn't match.  I can then 
> put the dc=ou back in and it just fails with that syntax error.  This was all 
> fine in the autofs4 version.  The ldap is setup that way to match domain for 
> instance, it.ou.edu.
> 
> I can test if I can find the place in the code to change it back to the way 
> that version4 was doing things and then re-compile.

I just did another test,  this time I maintained a three level "dc" and 
started.  This test was "dc=it,dc=xx,dc=edu".  It attempts to read from ldap 
but of course it doesn't work.  The only time so far in my testing, it just 
returns that unexpected 'syntax error' message in the logs.

And I mean unexpected, because reviewing the code it doesn't seem to account 
for this situation in the error message returned.  Seems that most of the 
syntax error messages will return a 'near xxxxx' with it.

Sure seems to be having trouble with "dc=ou".

Ideas / Suggestions,

Thanks



> 
> Many Thanks
> 
> 
> 
>> ======
>> nsswitch:
>> ======
>> automount:  files
>> ======
>>
>> While monitoring traffic on the ldap server.  I never see any traffic 
>> from the client when the daemon is started.  So I am thinking that it is 
>> not able to read the "/home" entry.
>>
>> I have tried the old style colon syntax for an ldap entry.  No joy.  I 
>> purposely made syntax errors and then it will say syntax error near 
>> "xxxxx" as it should.
>>
>> Ideas / Suggestions?
>>
>> TIA
>>
>>
> 

-- 
Jim Summers
School of Computer Science-University of Oklahoma
-------------------------------------------------

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Possible BUG! AutoFS and LDAP
  2007-07-20 20:34 ` Possible BUG! " Jim Summers
  2007-07-23 14:33   ` Jim Summers
@ 2007-07-23 14:59   ` Ian Kent
  1 sibling, 0 replies; 7+ messages in thread
From: Ian Kent @ 2007-07-23 14:59 UTC (permalink / raw)
  To: autofs

On Fri, 2007-07-20 at 15:34 -0500, Jim Summers wrote:
> Jim Summers wrote:
> > Hello All,
> > 
> > I have been attempting to get autofs5 to work with my ldap config.  The 
> > way I am set up is:
> > 
> > FC6 / FC7 clients and redhat servers.
> > auto.home info for each user is stored in ldap
> > auto.master is stored locally on each client
> > 
> > The mounts do not happen.  Here is what I see when starting autofs:
> > ======
> > Jul 20 13:22:53 lch automount[3427]: Starting automounter version 
> > 5.0.1-11, master map auto.master
> > Jul 20 13:22:53 lch automount[3427]: using kernel protocol version 5.00
> > Jul 20 13:22:53 lch automount[3427]: master_error: syntax error while 
> > parsing map.
> > Jul 20 13:22:53 lch automount[3427]: mounted indirect mount on /misc 
> > with timeout 300, freq 75 seconds
> > Jul 20 13:22:53 lch automount[3427]: mounted indirect mount on /net with 
> > timeout 300, freq 75 seconds
> > ======
> > Here is the auto.master:
> > ======
> > /home    ldap://129.15.1.203/ou=auto.home,dc=it,dc=ou,dc=edu
> 
> I may have stumbled onto the problem.  In the dn above, notice that it has 
> dc=ou.  I was trying various things and thought, let's remove that and see 
> what happens.  Sure enough the log messages start showing the attempt to get 
> the /home stuff but it fails because the ldap tree doesn't match.  I can then 
> put the dc=ou back in and it just fails with that syntax error.  This was all 
> fine in the autofs4 version.  The ldap is setup that way to match domain for 
> instance, it.ou.edu.

Good piece of detective work.
I'll have a look and see how to fix it.

> 
> I can test if I can find the place in the code to change it back to the way 
> that version4 was doing things and then re-compile.

Don't think you have much chance of relating the v5 code back to v4
code. Don't waste your time, I see the problem and I'll sort out a fix.

Ian

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: AutoFS and LDAP
  2007-07-20 18:36 AutoFS and LDAP Jim Summers
  2007-07-20 20:34 ` Possible BUG! " Jim Summers
@ 2007-07-23 15:07 ` Ian Kent
  2007-07-23 18:26   ` Jim Summers
  1 sibling, 1 reply; 7+ messages in thread
From: Ian Kent @ 2007-07-23 15:07 UTC (permalink / raw)
  To: jsummers; +Cc: autofs

On Fri, 2007-07-20 at 13:36 -0500, Jim Summers wrote:
> Hello All,
> 
> I have been attempting to get autofs5 to work with my ldap config.  The way I 
> am set up is:
> 
> FC6 / FC7 clients and redhat servers.
> auto.home info for each user is stored in ldap
> auto.master is stored locally on each client
> 
> The mounts do not happen.  Here is what I see when starting autofs:
> ======
> Jul 20 13:22:53 lch automount[3427]: Starting automounter version 5.0.1-11, 
> master map auto.master
> Jul 20 13:22:53 lch automount[3427]: using kernel protocol version 5.00
> Jul 20 13:22:53 lch automount[3427]: master_error: syntax error while parsing map.
> Jul 20 13:22:53 lch automount[3427]: mounted indirect mount on /misc with 
> timeout 300, freq 75 seconds
> Jul 20 13:22:53 lch automount[3427]: mounted indirect mount on /net with 
> timeout 300, freq 75 seconds

Does this patch fix the problem?
Ian

---
diff --git a/lib/master_tok.l b/lib/master_tok.l
index 9bfeefa..ff69a24 100644
--- a/lib/master_tok.l
+++ b/lib/master_tok.l
@@ -272,7 +272,7 @@ OPTTOUT		(-t{OPTWS}|-t{OPTWS}={OPTWS}|--timeout{OPTWS}|--timeout{OPTWS}={OPTWS})
 		return DNSERVER;
 	}
 
-	{DNATTRSTR} {
+	{DNATTRSTR}/"=" {
 		strcpy(master_lval.strtype, master_text);
 		return DNATTR;
 	}

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: AutoFS and LDAP
  2007-07-23 15:07 ` Ian Kent
@ 2007-07-23 18:26   ` Jim Summers
  2007-07-24  3:31     ` Ian Kent
  0 siblings, 1 reply; 7+ messages in thread
From: Jim Summers @ 2007-07-23 18:26 UTC (permalink / raw)
  To: Ian Kent; +Cc: autofs

Ian Kent wrote:
> On Fri, 2007-07-20 at 13:36 -0500, Jim Summers wrote:
>> Hello All,
>>
>> I have been attempting to get autofs5 to work with my ldap config.  The way I 
>> am set up is:
>>
>> FC6 / FC7 clients and redhat servers.
>> auto.home info for each user is stored in ldap
>> auto.master is stored locally on each client
>>
>> The mounts do not happen.  Here is what I see when starting autofs:
>> ======
>> Jul 20 13:22:53 lch automount[3427]: Starting automounter version 5.0.1-11, 
>> master map auto.master
>> Jul 20 13:22:53 lch automount[3427]: using kernel protocol version 5.00
>> Jul 20 13:22:53 lch automount[3427]: master_error: syntax error while parsing map.
>> Jul 20 13:22:53 lch automount[3427]: mounted indirect mount on /misc with 
>> timeout 300, freq 75 seconds
>> Jul 20 13:22:53 lch automount[3427]: mounted indirect mount on /net with 
>> timeout 300, freq 75 seconds
> 
> Does this patch fix the problem?

Yes, that did the trick.  Now on to figuring out what type of authentication 
autofs4 was using to do the lookups.  All that was config'd before was the 
ldap.conf stuff, so this autofs_ldap_auth.conf is all about.



Thanks again.


> Ian
> 
> ---
> diff --git a/lib/master_tok.l b/lib/master_tok.l
> index 9bfeefa..ff69a24 100644
> --- a/lib/master_tok.l
> +++ b/lib/master_tok.l
> @@ -272,7 +272,7 @@ OPTTOUT		(-t{OPTWS}|-t{OPTWS}={OPTWS}|--timeout{OPTWS}|--timeout{OPTWS}={OPTWS})
>  		return DNSERVER;
>  	}
>  
> -	{DNATTRSTR} {
> +	{DNATTRSTR}/"=" {
>  		strcpy(master_lval.strtype, master_text);
>  		return DNATTR;
>  	}
> 
> 
> _______________________________________________
> autofs mailing list
> autofs@linux.kernel.org
> http://linux.kernel.org/mailman/listinfo/autofs

-- 
Jim Summers
School of Computer Science-University of Oklahoma
-------------------------------------------------

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: AutoFS and LDAP
  2007-07-23 18:26   ` Jim Summers
@ 2007-07-24  3:31     ` Ian Kent
  0 siblings, 0 replies; 7+ messages in thread
From: Ian Kent @ 2007-07-24  3:31 UTC (permalink / raw)
  To: autofs

On Mon, 2007-07-23 at 13:26 -0500, Jim Summers wrote:
> Ian Kent wrote:
> > On Fri, 2007-07-20 at 13:36 -0500, Jim Summers wrote:
> >> Hello All,
> >>
> >> I have been attempting to get autofs5 to work with my ldap config.  The way I 
> >> am set up is:
> >>
> >> FC6 / FC7 clients and redhat servers.
> >> auto.home info for each user is stored in ldap
> >> auto.master is stored locally on each client
> >>
> >> The mounts do not happen.  Here is what I see when starting autofs:
> >> ======
> >> Jul 20 13:22:53 lch automount[3427]: Starting automounter version 5.0.1-11, 
> >> master map auto.master
> >> Jul 20 13:22:53 lch automount[3427]: using kernel protocol version 5.00
> >> Jul 20 13:22:53 lch automount[3427]: master_error: syntax error while parsing map.
> >> Jul 20 13:22:53 lch automount[3427]: mounted indirect mount on /misc with 
> >> timeout 300, freq 75 seconds
> >> Jul 20 13:22:53 lch automount[3427]: mounted indirect mount on /net with 
> >> timeout 300, freq 75 seconds
> > 
> > Does this patch fix the problem?
> 
> Yes, that did the trick.  Now on to figuring out what type of authentication 
> autofs4 was using to do the lookups.  All that was config'd before was the 
> ldap.conf stuff, so this autofs_ldap_auth.conf is all about.

Great, I'll commit it to the repo.

You don't need to use authentication if you don't need it.
Just leave the auth config as is and will do what version 4 did all
along.

Ian

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-07-24  3:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-20 18:36 AutoFS and LDAP Jim Summers
2007-07-20 20:34 ` Possible BUG! " Jim Summers
2007-07-23 14:33   ` Jim Summers
2007-07-23 14:59   ` Ian Kent
2007-07-23 15:07 ` Ian Kent
2007-07-23 18:26   ` Jim Summers
2007-07-24  3:31     ` Ian Kent

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.