* Autofs & LDAP
@ 2004-02-17 18:13 Jeff Largent
2004-02-23 21:53 ` Jeff Largent
0 siblings, 1 reply; 7+ messages in thread
From: Jeff Largent @ 2004-02-17 18:13 UTC (permalink / raw)
To: linux-admin
On Redhat 7.3 with openldap-servers-2.0.27-2.7.3, and autofs-3.1.7-28. I have a
working autofs/ldap configuration.
dn: ou=auto.master,dc=il,dc=com
ou: auto.master
objectClass: top
objectClass: automountMap
dn: cn=/opt,ou=auto.master,dc=il,dc=com
objectClass: automount
cn: /opt
automountInformation: ldap:ldap.il.com:ou=auto.opt,dc=imagelinks,dc=com
dn: cn=bin,ou=auto.opt,dc=il,dc=com
objectClass: automount
cn: bin
automountInformation: -ro bserv.il.com:/export/Linux-2/opt/bin
The same maps on Fedora core 1 with openldap-servers-2.1.22-8, and
autofs-3.1.7-42 refuse to work.
This is what I see in the logs:
automount[13734]: starting automounter version 3.1.7, path = /cm, maptype =
ldap, mapname = ldap.il.com:ou=auto.cm,dc=il,dc=com
if I put a space between the : after the ldap hostname and the dn auto fs
reconizes the automount but then fails on the lookup.
automount[8400]: lookup(ldap): query failed for (&(objectclass=automount)(cn=opt))
a ldapsearch -x "(&(objectclass=automount)(cn=opt))" returns the proper map.
Any suggestions??
In slapd.conf I have "allow bind_v2"
--
Jeff Largent ImageLinks, Inc.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Autofs & LDAP
2004-02-17 18:13 Autofs & LDAP Jeff Largent
@ 2004-02-23 21:53 ` Jeff Largent
0 siblings, 0 replies; 7+ messages in thread
From: Jeff Largent @ 2004-02-23 21:53 UTC (permalink / raw)
To: linux-admin
FYI:
I found the problem, with openldap 2.1 you have to allow bind_anon_dn
for autofs to work.
Jeff Largent wrote:
> On Redhat 7.3 with openldap-servers-2.0.27-2.7.3, and autofs-3.1.7-28. I
> have a
> working autofs/ldap configuration.
>
> dn: ou=auto.master,dc=il,dc=com
> ou: auto.master
> objectClass: top
> objectClass: automountMap
>
> dn: cn=/opt,ou=auto.master,dc=il,dc=com
> objectClass: automount
> cn: /opt
> automountInformation: ldap:ldap.il.com:ou=auto.opt,dc=imagelinks,dc=com
>
> dn: cn=bin,ou=auto.opt,dc=il,dc=com
> objectClass: automount
> cn: bin
> automountInformation: -ro bserv.il.com:/export/Linux-2/opt/bin
>
> The same maps on Fedora core 1 with openldap-servers-2.1.22-8, and
> autofs-3.1.7-42 refuse to work.
>
> This is what I see in the logs:
> automount[13734]: starting automounter version 3.1.7, path = /cm,
> maptype = ldap, mapname = ldap.il.com:ou=auto.cm,dc=il,dc=com
>
> if I put a space between the : after the ldap hostname and the dn auto
> fs reconizes the automount but then fails on the lookup.
> automount[8400]: lookup(ldap): query failed for
> (&(objectclass=automount)(cn=opt))
>
> a ldapsearch -x "(&(objectclass=automount)(cn=opt))" returns the proper
> map.
>
> Any suggestions??
> In slapd.conf I have "allow bind_v2"
>
>
>
--
Jeff Largent ImageLinks, Inc.
^ permalink raw reply [flat|nested] 7+ messages in thread
* autofs+LDAP
@ 2008-09-21 21:40 Mikel Jimenez
2008-09-22 4:35 ` autofs+LDAP Ian Kent
0 siblings, 1 reply; 7+ messages in thread
From: Mikel Jimenez @ 2008-09-21 21:40 UTC (permalink / raw)
To: autofs
Hello Guys
I have a OpenLDAP server with user accounts. Actually, i autheticate my
LAN machines to LDAP server and ALL OK.
I want that:
EXAMPLE:
day 1:
user1 login in machine1 and I want to mount via NFS, the home of this
user, that is in another storage server
day 2: user 1 login in machine6 and I want to mount via NFS, the home of
this user, that is in another storage server
I want to have all users homes, in a centralized storage server, and
give the posibility to users to login in any machine of the LAN, and
have they home directory mounted automaticaly.
Is that posible with autofs+LDAP?
THANKS
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: autofs+LDAP
2008-09-21 21:40 autofs+LDAP Mikel Jimenez
@ 2008-09-22 4:35 ` Ian Kent
2008-09-22 7:36 ` autofs+LDAP Mikel Jimenez
2008-09-22 16:33 ` autofs+LDAP Douglas E. Engert
0 siblings, 2 replies; 7+ messages in thread
From: Ian Kent @ 2008-09-22 4:35 UTC (permalink / raw)
To: Mikel Jimenez; +Cc: autofs
On Sun, 2008-09-21 at 23:40 +0200, Mikel Jimenez wrote:
> Hello Guys
>
> I have a OpenLDAP server with user accounts. Actually, i autheticate my
> LAN machines to LDAP server and ALL OK.
>
> I want that:
>
> EXAMPLE:
> day 1:
> user1 login in machine1 and I want to mount via NFS, the home of this
> user, that is in another storage server
>
> day 2: user 1 login in machine6 and I want to mount via NFS, the home of
> this user, that is in another storage server
>
>
> I want to have all users homes, in a centralized storage server, and
> give the posibility to users to login in any machine of the LAN, and
> have they home directory mounted automaticaly.
>
> Is that posible with autofs+LDAP?
Basically yes, but there are a number of decisions about how this might
be setup at your site that don't relate specifically to autofs.
Ian
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: autofs+LDAP
2008-09-22 4:35 ` autofs+LDAP Ian Kent
@ 2008-09-22 7:36 ` Mikel Jimenez
2008-09-22 11:12 ` autofs+LDAP Ian Kent
2008-09-22 16:33 ` autofs+LDAP Douglas E. Engert
1 sibling, 1 reply; 7+ messages in thread
From: Mikel Jimenez @ 2008-09-22 7:36 UTC (permalink / raw)
To: Ian Kent; +Cc: autofs
Ian Kent escribió:
> On Sun, 2008-09-21 at 23:40 +0200, Mikel Jimenez wrote:
>
>> Hello Guys
>>
>> I have a OpenLDAP server with user accounts. Actually, i autheticate my
>> LAN machines to LDAP server and ALL OK.
>>
>> I want that:
>>
>> EXAMPLE:
>> day 1:
>> user1 login in machine1 and I want to mount via NFS, the home of this
>> user, that is in another storage server
>>
>> day 2: user 1 login in machine6 and I want to mount via NFS, the home of
>> this user, that is in another storage server
>>
>>
>> I want to have all users homes, in a centralized storage server, and
>> give the posibility to users to login in any machine of the LAN, and
>> have they home directory mounted automaticaly.
>>
>> Is that posible with autofs+LDAP?
>>
>
> Basically yes, but there are a number of decisions about how this might
> be setup at your site that don't relate specifically to autofs.
>
> Ian
>
>
>
Ok. Thanks a lot for your time.
Can you guide me ?
Thanks another time
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: autofs+LDAP
2008-09-22 7:36 ` autofs+LDAP Mikel Jimenez
@ 2008-09-22 11:12 ` Ian Kent
0 siblings, 0 replies; 7+ messages in thread
From: Ian Kent @ 2008-09-22 11:12 UTC (permalink / raw)
To: Mikel Jimenez; +Cc: autofs
On Mon, 2008-09-22 at 09:36 +0200, Mikel Jimenez wrote:
> Ian Kent escribió:
> > On Sun, 2008-09-21 at 23:40 +0200, Mikel Jimenez wrote:
> >
> >> Hello Guys
> >>
> >> I have a OpenLDAP server with user accounts. Actually, i autheticate my
> >> LAN machines to LDAP server and ALL OK.
> >>
> >> I want that:
> >>
> >> EXAMPLE:
> >> day 1:
> >> user1 login in machine1 and I want to mount via NFS, the home of this
> >> user, that is in another storage server
> >>
> >> day 2: user 1 login in machine6 and I want to mount via NFS, the home of
> >> this user, that is in another storage server
> >>
> >>
> >> I want to have all users homes, in a centralized storage server, and
> >> give the posibility to users to login in any machine of the LAN, and
> >> have they home directory mounted automaticaly.
> >>
> >> Is that posible with autofs+LDAP?
> >>
> >
> > Basically yes, but there are a number of decisions about how this might
> > be setup at your site that don't relate specifically to autofs.
> >
> > Ian
> >
> >
> >
> Ok. Thanks a lot for your time.
>
> Can you guide me ?
Not really, much of this is site and preference specific.
For example, you need to decide what form you want for the home
directory paths to be.
Essentially, this means that if you have or expect to have at some
future time, several home directory servers, then do you want (and have
you got procedures in place to maintain the user account info) your home
directories to be /home/<server name> or /export/home/<server> or some
other variation and perform a single automount for a all users of a
given server or use a path independent of server and perform an
automount for every individual user. Or some other entirely different
approach.
Until you decide what you want to use for the home directory paths you
can't really do anything.
Ian
_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: autofs+LDAP
2008-09-22 4:35 ` autofs+LDAP Ian Kent
2008-09-22 7:36 ` autofs+LDAP Mikel Jimenez
@ 2008-09-22 16:33 ` Douglas E. Engert
1 sibling, 0 replies; 7+ messages in thread
From: Douglas E. Engert @ 2008-09-22 16:33 UTC (permalink / raw)
To: Ian Kent; +Cc: autofs
Ian Kent wrote:
> On Sun, 2008-09-21 at 23:40 +0200, Mikel Jimenez wrote:
>> Hello Guys
>>
>> I have a OpenLDAP server with user accounts. Actually, i autheticate my
>> LAN machines to LDAP server and ALL OK.
>>
>> I want that:
>>
>> EXAMPLE:
>> day 1:
>> user1 login in machine1 and I want to mount via NFS, the home of this
>> user, that is in another storage server
>>
>> day 2: user 1 login in machine6 and I want to mount via NFS, the home of
>> this user, that is in another storage server
>>
>>
>> I want to have all users homes, in a centralized storage server, and
>> give the posibility to users to login in any machine of the LAN, and
>> have they home directory mounted automaticaly.
>>
>> Is that posible with autofs+LDAP?
In auto.master, you can have an entry like:
/home ldap:nisMapName=auto_XXXXX,ou=Autofs,....
and have each system specify a different auto_XXXXX location in LDAP to
start from.
Or you could have have script in place of the auto.home entry:
/home auto_select_script,....
where auto_select_script is a script that is passed the username.
It can use ldap to determine what to do.
>
> Basically yes, but there are a number of decisions about how this might
> be setup at your site that don't relate specifically to autofs.
>
> Ian
>
>
> _______________________________________________
> autofs mailing list
> autofs@linux.kernel.org
> http://linux.kernel.org/mailman/listinfo/autofs
>
>
--
Douglas E. Engert <DEEngert@anl.gov>
Argonne National Laboratory
9700 South Cass Avenue
Argonne, Illinois 60439
(630) 252-5444
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-09-22 16:33 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-21 21:40 autofs+LDAP Mikel Jimenez
2008-09-22 4:35 ` autofs+LDAP Ian Kent
2008-09-22 7:36 ` autofs+LDAP Mikel Jimenez
2008-09-22 11:12 ` autofs+LDAP Ian Kent
2008-09-22 16:33 ` autofs+LDAP Douglas E. Engert
-- strict thread matches above, loose matches on Subject: below --
2004-02-17 18:13 Autofs & LDAP Jeff Largent
2004-02-23 21:53 ` Jeff Largent
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.