All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jack Challen <jack_challen@ocsl.co.uk>
To: Ondrej Valousek <webserv@s3group.cz>
Cc: autofs@linux.kernel.org
Subject: Re: Autofs 5.0.1-0rc2.102 failing to query LDAP (Windows 2008	AD)
Date: Fri, 04 Sep 2009 15:16:41 +0100	[thread overview]
Message-ID: <4AA12149.6020609@ocsl.co.uk> (raw)
In-Reply-To: <4A9F5CE8.7050509@s3group.cz>

Hello Ondrej,

On 03/09/09 07:06, Ondrej Valousek wrote:
> There is no problem with autofs - the real problem is, that windoze do
> not follow RFC's in subsequent authentication (which autofs is using).
> I have reported the problem to Microsoft and they agreed (internal
> bugreport was generated).
> The workaround is to use GSSAPI authentication instead - more at
> ondarnfs.blogspot.com

Thanks,

I've been trying to avoid GSSAPI, because I believe it requires the machine to be a fully paid-up member of the AD. In 
my environment that's very tricky to impossible[1].
However, your method appears to work very well (although I had to add MASTER_MAP_NAME="ldap://addns/cn=auto.master,..." 
to my /etc/sysconfig/autofs).

I've now got autofs querying AD for automount information using Microsoft's default "nisMap" schema.

As an aside, some minor comments on your (useful) blog:

1. Some of the longer lines in the quoted files appear truncated. They cut-n-paste fine though.
2. I've found that removing /var/cache/samba/winbind* seems to work for cache clearing.
3. You probably mean "getent passwd" (instead of "password"), and for some reason in my case it still doesn't return the 
AD users (though wbinfo -u does). The users can still authenticate though.

1: Separate issue:
The reason it's so difficult is because these machines (the Linux "clients") are essentially transient. They're 
diskless, often only just created, and as stateless as possible. I haven't yet worked out a way of pre-creating an AD 
computer account such that a dummy user can join the machine to the AD. I can do it manually, but if I use dsadd to 
pre-create the account it requires an Administrative User's password for the "net ads join". Not so handy when we might 
have e.g. 100 machines to add as quickly as possible. [Pointers gratefully received :-) ]

Anyway, thanks for the pointers, and the blog
cheers
jack

  reply	other threads:[~2009-09-04 14:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-02 17:05 Autofs 5.0.1-0rc2.102 failing to query LDAP (Windows 2008 AD) Jack Challen
2009-09-03  6:06 ` Ondrej Valousek
2009-09-04 14:16   ` Jack Challen [this message]
2009-09-07  9:14     ` Ondrej Valousek

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=4AA12149.6020609@ocsl.co.uk \
    --to=jack_challen@ocsl.co.uk \
    --cc=autofs@linux.kernel.org \
    --cc=webserv@s3group.cz \
    /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.