AutoFS and LDAP
Subsystems (2)
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
Signature · 3 lines
Jim Summers School of Computer Science-University of Oklahoma -------------------------------------------------
Possible BUG! AutoFS and LDAP
Quoted 19 lines · Jim Summers
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 clientThe 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
Quoted 5 lines
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
Quoted 19 lines
======
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
Signature · 3 lines
Jim Summers School of Computer Science-University of Oklahoma -------------------------------------------------
Re: Possible BUG! AutoFS and LDAP
Quoted 34 lines · Jim Summers
Quoted 19 lines · Jim Summers
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 clientThe 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 withQuoted 5 lines
timeout 300, freq 75 seconds
======
Here is the auto.master:
======
/home ldap://129.15.1.203/ou=auto.home,dc=it,dc=ou,dc=eduI 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.
Quoted 2 lines
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
Quoted 25 lines
Many Thanks
Quoted 19 lines
======
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
Signature · 3 lines
Jim Summers School of Computer Science-University of Oklahoma -------------------------------------------------
Ian Kent
maintainerRe: Possible BUG! AutoFS and LDAP
In reply to Jim SummersQuoted 26 lines · Jim Summers
Quoted 19 lines · Jim Summers
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 clientThe 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 withQuoted 5 lines
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
Quoted 7 lines
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.
Quoted 3 lines
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
Ian Kent
maintainerQuoted 11 lines · Jim Summers
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 clientThe mounts do not happen. Here is what I see when starting autofs:
======
Quoted 8 lines
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 withtimeout 300, freq 75 seconds
Does this patch fix the problem?
Ian
---
lib/master_tok.l +1 -1
@@ -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; }
Quoted 21 lines · Ian Kent
Quoted 11 lines · Jim Summers
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 clientThe mounts do not happen. Here is what I see when starting autofs:
======Quoted 8 lines
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 withtimeout 300, freq 75 seconds
Quoted 1 line
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.
Quoted 22 lines
Ian
---
lib/master_tok.l +1
-1@@ -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
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs
Signature · 3 lines
Jim Summers School of Computer Science-University of Oklahoma -------------------------------------------------
Ian Kent
maintainerQuoted 22 lines · Jim Summers
Quoted 21 lines · Ian Kent
Quoted 19 lines · Jim Summers
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 clientThe 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 withtimeout 300, freq 75 seconds
Quoted 5 lines
Quoted 1 line
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