All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jim Summers <jsummers@bachman.cs.ou.edu>
To: Ian Kent <raven@themaw.net>
Cc: autofs@linux.kernel.org
Subject: Re: AutoFS and LDAP
Date: Mon, 23 Jul 2007 13:26:06 -0500	[thread overview]
Message-ID: <46A4F2BE.9070903@cs.ou.edu> (raw)
In-Reply-To: <1185203252.3263.6.camel@raven.themaw.net>

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
-------------------------------------------------

  reply	other threads:[~2007-07-23 18:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2007-07-24  3:31     ` Ian Kent
  -- strict thread matches above, loose matches on Subject: below --
2008-05-06 13:14 autofs and ldap Luciana Romeiro Rodrigues
2008-05-13  3:15 ` Ian Kent

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46A4F2BE.9070903@cs.ou.edu \
    --to=jsummers@bachman.cs.ou.edu \
    --cc=autofs@linux.kernel.org \
    --cc=raven@themaw.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.