* Fwd: Re: autofs+LDAP
@ 2008-09-22 18:15 mikel
2008-09-23 2:08 ` Ian Kent
0 siblings, 1 reply; 12+ messages in thread
From: mikel @ 2008-09-22 18:15 UTC (permalink / raw)
To: autofs
-------- Original Message --------
Subject: Re: [autofs] autofs+LDAP
Date: Mon, 22 Sep 2008 20:14:21 +0200
From: mikel <mikel@irontec.com>
To: "Douglas E. Engert" <deengert@anl.gov>
mmm very interesting... that is what I need!!
I want to have the capability to personalize automount for each user.
I want user1 have in /home mass_storage_ip:/remote_homes/user1
and user2: /home mass_storage_ip:/remote_homes/user2
Guide to do that...
A lot of thanks!! really
On Mon, 22 Sep 2008 11:33:40 -0500, "Douglas E. Engert" <deengert@anl.gov>
wrote:
>
>
> 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] 12+ messages in thread
* Re: Fwd: Re: autofs+LDAP
2008-09-22 18:15 Fwd: Re: autofs+LDAP mikel
@ 2008-09-23 2:08 ` Ian Kent
2008-09-23 7:08 ` Mikel Jimenez
0 siblings, 1 reply; 12+ messages in thread
From: Ian Kent @ 2008-09-23 2:08 UTC (permalink / raw)
To: mikel; +Cc: autofs
On Mon, 2008-09-22 at 20:15 +0200, mikel wrote:
>
>
> -------- Original Message --------
> Subject: Re: [autofs] autofs+LDAP
> Date: Mon, 22 Sep 2008 20:14:21 +0200
> From: mikel <mikel@irontec.com>
> To: "Douglas E. Engert" <deengert@anl.gov>
>
> mmm very interesting... that is what I need!!
>
> I want to have the capability to personalize automount for each user.
>
> I want user1 have in /home mass_storage_ip:/remote_homes/user1
>
> and user2: /home mass_storage_ip:/remote_homes/user2
You really don't want to do it this way exactly do you?
Surely you mean you want the mounts to be:
user1: /home/user1 mass_storage_ip:/remote_homes/user1
user2: /home/user2 mass_storage_ip:/remote_homes/user2
>
> Guide to do that...
> A lot of thanks!! really
>
> On Mon, 22 Sep 2008 11:33:40 -0500, "Douglas E. Engert" <deengert@anl.gov>
> wrote:
> >
> >
> > 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
>
> _______________________________________________
> autofs mailing list
> autofs@linux.kernel.org
> http://linux.kernel.org/mailman/listinfo/autofs
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Fwd: Re: autofs+LDAP
2008-09-23 2:08 ` Ian Kent
@ 2008-09-23 7:08 ` Mikel Jimenez
2008-09-23 7:28 ` Ian Kent
0 siblings, 1 reply; 12+ messages in thread
From: Mikel Jimenez @ 2008-09-23 7:08 UTC (permalink / raw)
To: Ian Kent; +Cc: autofs
Ian Kent escribió:
> On Mon, 2008-09-22 at 20:15 +0200, mikel wrote:
>
>> -------- Original Message --------
>> Subject: Re: [autofs] autofs+LDAP
>> Date: Mon, 22 Sep 2008 20:14:21 +0200
>> From: mikel <mikel@irontec.com>
>> To: "Douglas E. Engert" <deengert@anl.gov>
>>
>> mmm very interesting... that is what I need!!
>>
>> I want to have the capability to personalize automount for each user.
>>
>> I want user1 have in /home mass_storage_ip:/remote_homes/user1
>>
>> and user2: /home mass_storage_ip:/remote_homes/user2
>>
>
> You really don't want to do it this way exactly do you?
>
> Surely you mean you want the mounts to be:
> user1: /home/user1 mass_storage_ip:/remote_homes/user1
> user2: /home/user2 mass_storage_ip:/remote_homes/user2
>
>
>> Guide to do that...
>> A lot of thanks!! really
>>
>> On Mon, 22 Sep 2008 11:33:40 -0500, "Douglas E. Engert" <deengert@anl.gov>
>> wrote:
>>
>>> 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
>>>
>> _______________________________________________
>> autofs mailing list
>> autofs@linux.kernel.org
>> http://linux.kernel.org/mailman/listinfo/autofs
>>
>
>
YES YES!!
That is it!!
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Fwd: Re: autofs+LDAP
2008-09-23 7:08 ` Mikel Jimenez
@ 2008-09-23 7:28 ` Ian Kent
2008-09-23 7:34 ` Mikel Jimenez
0 siblings, 1 reply; 12+ messages in thread
From: Ian Kent @ 2008-09-23 7:28 UTC (permalink / raw)
To: Mikel Jimenez; +Cc: autofs
On Tue, 2008-09-23 at 09:08 +0200, Mikel Jimenez wrote:
> Ian Kent escribió:
> > On Mon, 2008-09-22 at 20:15 +0200, mikel wrote:
> >
> >> -------- Original Message --------
> >> Subject: Re: [autofs] autofs+LDAP
> >> Date: Mon, 22 Sep 2008 20:14:21 +0200
> >> From: mikel <mikel@irontec.com>
> >> To: "Douglas E. Engert" <deengert@anl.gov>
> >>
> >> mmm very interesting... that is what I need!!
> >>
> >> I want to have the capability to personalize automount for each user.
> >>
> >> I want user1 have in /home mass_storage_ip:/remote_homes/user1
> >>
> >> and user2: /home mass_storage_ip:/remote_homes/user2
> >>
> >
> > You really don't want to do it this way exactly do you?
> >
> > Surely you mean you want the mounts to be:
> > user1: /home/user1 mass_storage_ip:/remote_homes/user1
> > user2: /home/user2 mass_storage_ip:/remote_homes/user2
> >
> >
> >> Guide to do that...
> >> A lot of thanks!! really
> >>
> >> On Mon, 22 Sep 2008 11:33:40 -0500, "Douglas E. Engert" <deengert@anl.gov>
> >> wrote:
> >>
> >>> 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
> >>>
> >> _______________________________________________
> >> autofs mailing list
> >> autofs@linux.kernel.org
> >> http://linux.kernel.org/mailman/listinfo/autofs
> >>
> >
> >
> YES YES!!
>
> That is it!!
You sound like your waiting for step by step instructions.
That's not going to happen, at least not from me, because you'll end up
with a setup you don't understand.
But there are a couple of other things you need to decide on.
What LDAP schema to use and whether you will use a master map held in
LDAP or a file based one. There are a few gotchas and things you might
need to change but first decide how you want to do it and construct
simple maps to test and see how far you get.
Look at the examples in samples/ldap-*.master and
samples/ldap-*.indirect for examples of LDAP maps for the different
commonly used schema. An indirect map mounted on /home is what you want
by the sound of it. The master map entries contain the automounts in
use, such /home in this case, and specifies the automount map which
contains the keys provided by the map, such as user1 and user2, in this
case.
Ian
_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Fwd: Re: autofs+LDAP
2008-09-23 7:28 ` Ian Kent
@ 2008-09-23 7:34 ` Mikel Jimenez
2008-09-23 7:48 ` Ian Kent
0 siblings, 1 reply; 12+ messages in thread
From: Mikel Jimenez @ 2008-09-23 7:34 UTC (permalink / raw)
To: Ian Kent; +Cc: autofs
Ian Kent escribió:
> On Tue, 2008-09-23 at 09:08 +0200, Mikel Jimenez wrote:
>
>> Ian Kent escribió:
>>
>>> On Mon, 2008-09-22 at 20:15 +0200, mikel wrote:
>>>
>>>
>>>> -------- Original Message --------
>>>> Subject: Re: [autofs] autofs+LDAP
>>>> Date: Mon, 22 Sep 2008 20:14:21 +0200
>>>> From: mikel <mikel@irontec.com>
>>>> To: "Douglas E. Engert" <deengert@anl.gov>
>>>>
>>>> mmm very interesting... that is what I need!!
>>>>
>>>> I want to have the capability to personalize automount for each user.
>>>>
>>>> I want user1 have in /home mass_storage_ip:/remote_homes/user1
>>>>
>>>> and user2: /home mass_storage_ip:/remote_homes/user2
>>>>
>>>>
>>> You really don't want to do it this way exactly do you?
>>>
>>> Surely you mean you want the mounts to be:
>>> user1: /home/user1 mass_storage_ip:/remote_homes/user1
>>> user2: /home/user2 mass_storage_ip:/remote_homes/user2
>>>
>>>
>>>
>>>> Guide to do that...
>>>> A lot of thanks!! really
>>>>
>>>> On Mon, 22 Sep 2008 11:33:40 -0500, "Douglas E. Engert" <deengert@anl.gov>
>>>> wrote:
>>>>
>>>>
>>>>> 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
>>>>>
>>>>>
>>>> _______________________________________________
>>>> autofs mailing list
>>>> autofs@linux.kernel.org
>>>> http://linux.kernel.org/mailman/listinfo/autofs
>>>>
>>>>
>>>
>>>
>> YES YES!!
>>
>> That is it!!
>>
>
> You sound like your waiting for step by step instructions.
> That's not going to happen, at least not from me, because you'll end up
> with a setup you don't understand.
>
> But there are a couple of other things you need to decide on.
> What LDAP schema to use and whether you will use a master map held in
> LDAP or a file based one. There are a few gotchas and things you might
> need to change but first decide how you want to do it and construct
> simple maps to test and see how far you get.
>
> Look at the examples in samples/ldap-*.master and
> samples/ldap-*.indirect for examples of LDAP maps for the different
> commonly used schema. An indirect map mounted on /home is what you want
> by the sound of it. The master map entries contain the automounts in
> use, such /home in this case, and specifies the automount map which
> contains the keys provided by the map, such as user1 and user2, in this
> case.
>
> Ian
>
>
>
Hello Ian
I have already autofs schema loaded in LDAP server and I make several
things with autofs and LDAP.
I I have managed to do mounting of home through autofs-LDAP but with no
personalitation capabilities.
I do that
user1:
/home masterip:/=/export/homes/user1
user2: masterip:/export/homes/user1
I cant personalize the home directory.
Sorry for my English
I need only solution related with personalization for each user
Thanks
_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Fwd: Re: autofs+LDAP
2008-09-23 7:34 ` Mikel Jimenez
@ 2008-09-23 7:48 ` Ian Kent
2008-09-23 7:59 ` Mikel Jimenez
0 siblings, 1 reply; 12+ messages in thread
From: Ian Kent @ 2008-09-23 7:48 UTC (permalink / raw)
To: Mikel Jimenez; +Cc: autofs
On Tue, 2008-09-23 at 09:34 +0200, Mikel Jimenez wrote:
> Ian Kent escribió:
> > On Tue, 2008-09-23 at 09:08 +0200, Mikel Jimenez wrote:
> >
> >> Ian Kent escribió:
> >>
> >>> On Mon, 2008-09-22 at 20:15 +0200, mikel wrote:
> >>>
> >>>
> >>>> -------- Original Message --------
> >>>> Subject: Re: [autofs] autofs+LDAP
> >>>> Date: Mon, 22 Sep 2008 20:14:21 +0200
> >>>> From: mikel <mikel@irontec.com>
> >>>> To: "Douglas E. Engert" <deengert@anl.gov>
> >>>>
> >>>> mmm very interesting... that is what I need!!
> >>>>
> >>>> I want to have the capability to personalize automount for each user.
> >>>>
> >>>> I want user1 have in /home mass_storage_ip:/remote_homes/user1
> >>>>
> >>>> and user2: /home mass_storage_ip:/remote_homes/user2
> >>>>
> >>>>
> >>> You really don't want to do it this way exactly do you?
> >>>
> >>> Surely you mean you want the mounts to be:
> >>> user1: /home/user1 mass_storage_ip:/remote_homes/user1
> >>> user2: /home/user2 mass_storage_ip:/remote_homes/user2
> >>>
> >>>
> >>>
> >>>> Guide to do that...
> >>>> A lot of thanks!! really
> >>>>
> >>>> On Mon, 22 Sep 2008 11:33:40 -0500, "Douglas E. Engert" <deengert@anl.gov>
> >>>> wrote:
> >>>>
> >>>>
> >>>>> 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
> >>>>>
> >>>>>
> >>>> _______________________________________________
> >>>> autofs mailing list
> >>>> autofs@linux.kernel.org
> >>>> http://linux.kernel.org/mailman/listinfo/autofs
> >>>>
> >>>>
> >>>
> >>>
> >> YES YES!!
> >>
> >> That is it!!
> >>
> >
> > You sound like your waiting for step by step instructions.
> > That's not going to happen, at least not from me, because you'll end up
> > with a setup you don't understand.
> >
> > But there are a couple of other things you need to decide on.
> > What LDAP schema to use and whether you will use a master map held in
> > LDAP or a file based one. There are a few gotchas and things you might
> > need to change but first decide how you want to do it and construct
> > simple maps to test and see how far you get.
> >
> > Look at the examples in samples/ldap-*.master and
> > samples/ldap-*.indirect for examples of LDAP maps for the different
> > commonly used schema. An indirect map mounted on /home is what you want
> > by the sound of it. The master map entries contain the automounts in
> > use, such /home in this case, and specifies the automount map which
> > contains the keys provided by the map, such as user1 and user2, in this
> > case.
> >
> > Ian
> >
> >
> >
> Hello Ian
> I have already autofs schema loaded in LDAP server and I make several
> things with autofs and LDAP.
>
> I I have managed to do mounting of home through autofs-LDAP but with no
> personalitation capabilities.
>
>
> I do that
>
>
> user1:
> /home masterip:/=/export/homes/user1
>
>
> user2: masterip:/export/homes/user1
I don't know what you mean.
This doesn't describe a valid map configuration.
What version of autofs are you using for this?
If this was a file based map you might have something like this
in /etc/auto.master:
/home /etc/auto.home
and something like this in the indirect map /etc/auto.home
user1 masterip:/export/homes/user1
user2 masterip:/export/homes/user1
or perhaps instead:
* masterip:/export/homes/&
Ian
_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Fwd: Re: autofs+LDAP
2008-09-23 7:48 ` Ian Kent
@ 2008-09-23 7:59 ` Mikel Jimenez
2008-09-23 8:08 ` Ian Kent
0 siblings, 1 reply; 12+ messages in thread
From: Mikel Jimenez @ 2008-09-23 7:59 UTC (permalink / raw)
To: Ian Kent; +Cc: autofs
Ian Kent escribió:
> On Tue, 2008-09-23 at 09:34 +0200, Mikel Jimenez wrote:
>
>> Ian Kent escribió:
>>
>>> On Tue, 2008-09-23 at 09:08 +0200, Mikel Jimenez wrote:
>>>
>>>
>>>> Ian Kent escribió:
>>>>
>>>>
>>>>> On Mon, 2008-09-22 at 20:15 +0200, mikel wrote:
>>>>>
>>>>>
>>>>>
>>>>>> -------- Original Message --------
>>>>>> Subject: Re: [autofs] autofs+LDAP
>>>>>> Date: Mon, 22 Sep 2008 20:14:21 +0200
>>>>>> From: mikel <mikel@irontec.com>
>>>>>> To: "Douglas E. Engert" <deengert@anl.gov>
>>>>>>
>>>>>> mmm very interesting... that is what I need!!
>>>>>>
>>>>>> I want to have the capability to personalize automount for each user.
>>>>>>
>>>>>> I want user1 have in /home mass_storage_ip:/remote_homes/user1
>>>>>>
>>>>>> and user2: /home mass_storage_ip:/remote_homes/user2
>>>>>>
>>>>>>
>>>>>>
>>>>> You really don't want to do it this way exactly do you?
>>>>>
>>>>> Surely you mean you want the mounts to be:
>>>>> user1: /home/user1 mass_storage_ip:/remote_homes/user1
>>>>> user2: /home/user2 mass_storage_ip:/remote_homes/user2
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> Guide to do that...
>>>>>> A lot of thanks!! really
>>>>>>
>>>>>> On Mon, 22 Sep 2008 11:33:40 -0500, "Douglas E. Engert" <deengert@anl.gov>
>>>>>> wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> 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
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> _______________________________________________
>>>>>> autofs mailing list
>>>>>> autofs@linux.kernel.org
>>>>>> http://linux.kernel.org/mailman/listinfo/autofs
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>> YES YES!!
>>>>
>>>> That is it!!
>>>>
>>>>
>>> You sound like your waiting for step by step instructions.
>>> That's not going to happen, at least not from me, because you'll end up
>>> with a setup you don't understand.
>>>
>>> But there are a couple of other things you need to decide on.
>>> What LDAP schema to use and whether you will use a master map held in
>>> LDAP or a file based one. There are a few gotchas and things you might
>>> need to change but first decide how you want to do it and construct
>>> simple maps to test and see how far you get.
>>>
>>> Look at the examples in samples/ldap-*.master and
>>> samples/ldap-*.indirect for examples of LDAP maps for the different
>>> commonly used schema. An indirect map mounted on /home is what you want
>>> by the sound of it. The master map entries contain the automounts in
>>> use, such /home in this case, and specifies the automount map which
>>> contains the keys provided by the map, such as user1 and user2, in this
>>> case.
>>>
>>> Ian
>>>
>>>
>>>
>>>
>> Hello Ian
>> I have already autofs schema loaded in LDAP server and I make several
>> things with autofs and LDAP.
>>
>> I I have managed to do mounting of home through autofs-LDAP but with no
>> personalitation capabilities.
>>
>>
>> I do that
>>
>>
>> user1:
>> /home masterip:/=/export/homes/user1
>>
>>
>> user2: masterip:/export/homes/user1
>>
>
> I don't know what you mean.
> This doesn't describe a valid map configuration.
> What version of autofs are you using for this?
>
> If this was a file based map you might have something like this
> in /etc/auto.master:
> /home /etc/auto.home
>
> and something like this in the indirect map /etc/auto.home
> user1 masterip:/export/homes/user1
> user2 masterip:/export/homes/user1
>
> or perhaps instead:
> * masterip:/export/homes/&
>
>
>
> Ian
>
>
>
I have autofs information in LDAP, not in /etc/...
Can you explain me this?
or perhaps instead:
* masterip:/export/homes/&
Another time, thanks Ian
_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Fwd: Re: autofs+LDAP
2008-09-23 7:59 ` Mikel Jimenez
@ 2008-09-23 8:08 ` Ian Kent
2008-09-23 8:17 ` Mikel Jimenez
0 siblings, 1 reply; 12+ messages in thread
From: Ian Kent @ 2008-09-23 8:08 UTC (permalink / raw)
To: Mikel Jimenez; +Cc: autofs
On Tue, 2008-09-23 at 09:59 +0200, Mikel Jimenez wrote:
> Ian Kent escribió:
> > On Tue, 2008-09-23 at 09:34 +0200, Mikel Jimenez wrote:
> >
> >> Ian Kent escribió:
> >>
> >>> On Tue, 2008-09-23 at 09:08 +0200, Mikel Jimenez wrote:
> >>>
> >>>
> >>>> Ian Kent escribió:
> >>>>
> >>>>
> >>>>> On Mon, 2008-09-22 at 20:15 +0200, mikel wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>> -------- Original Message --------
> >>>>>> Subject: Re: [autofs] autofs+LDAP
> >>>>>> Date: Mon, 22 Sep 2008 20:14:21 +0200
> >>>>>> From: mikel <mikel@irontec.com>
> >>>>>> To: "Douglas E. Engert" <deengert@anl.gov>
> >>>>>>
> >>>>>> mmm very interesting... that is what I need!!
> >>>>>>
> >>>>>> I want to have the capability to personalize automount for each user.
> >>>>>>
> >>>>>> I want user1 have in /home mass_storage_ip:/remote_homes/user1
> >>>>>>
> >>>>>> and user2: /home mass_storage_ip:/remote_homes/user2
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>> You really don't want to do it this way exactly do you?
> >>>>>
> >>>>> Surely you mean you want the mounts to be:
> >>>>> user1: /home/user1 mass_storage_ip:/remote_homes/user1
> >>>>> user2: /home/user2 mass_storage_ip:/remote_homes/user2
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>> Guide to do that...
> >>>>>> A lot of thanks!! really
> >>>>>>
> >>>>>> On Mon, 22 Sep 2008 11:33:40 -0500, "Douglas E. Engert" <deengert@anl.gov>
> >>>>>> wrote:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> 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
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>> _______________________________________________
> >>>>>> autofs mailing list
> >>>>>> autofs@linux.kernel.org
> >>>>>> http://linux.kernel.org/mailman/listinfo/autofs
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>> YES YES!!
> >>>>
> >>>> That is it!!
> >>>>
> >>>>
> >>> You sound like your waiting for step by step instructions.
> >>> That's not going to happen, at least not from me, because you'll end up
> >>> with a setup you don't understand.
> >>>
> >>> But there are a couple of other things you need to decide on.
> >>> What LDAP schema to use and whether you will use a master map held in
> >>> LDAP or a file based one. There are a few gotchas and things you might
> >>> need to change but first decide how you want to do it and construct
> >>> simple maps to test and see how far you get.
> >>>
> >>> Look at the examples in samples/ldap-*.master and
> >>> samples/ldap-*.indirect for examples of LDAP maps for the different
> >>> commonly used schema. An indirect map mounted on /home is what you want
> >>> by the sound of it. The master map entries contain the automounts in
> >>> use, such /home in this case, and specifies the automount map which
> >>> contains the keys provided by the map, such as user1 and user2, in this
> >>> case.
> >>>
> >>> Ian
> >>>
> >>>
> >>>
> >>>
> >> Hello Ian
> >> I have already autofs schema loaded in LDAP server and I make several
> >> things with autofs and LDAP.
> >>
> >> I I have managed to do mounting of home through autofs-LDAP but with no
> >> personalitation capabilities.
> >>
> >>
> >> I do that
> >>
> >>
> >> user1:
> >> /home masterip:/=/export/homes/user1
> >>
> >>
> >> user2: masterip:/export/homes/user1
> >>
> >
> > I don't know what you mean.
> > This doesn't describe a valid map configuration.
> > What version of autofs are you using for this?
> >
> > If this was a file based map you might have something like this
> > in /etc/auto.master:
> > /home /etc/auto.home
> >
> > and something like this in the indirect map /etc/auto.home
> > user1 masterip:/export/homes/user1
> > user2 masterip:/export/homes/user1
> >
> > or perhaps instead:
> > * masterip:/export/homes/&
> >
> >
> >
> > Ian
> >
> >
> >
>
>
> I have autofs information in LDAP, not in /etc/...
>
> Can you explain me this?
>
> or perhaps instead:
> * masterip:/export/homes/&
In the Sun automount map format this entry is a wildcard.
The "*" matches any key that is being looked up and that key is then
substituted in place of the &. So if a mount request for "someuser"
comes in the above entry translates to:
someuser masterip:/export/homes/someuser
Later versions of autofs with maps in LDAP will understand the "*" when
it is present in an LDAP map key but earlier versions need to use the
"/" instead. So, in the LDAP map entry you would use "/" instead of "*"
and autofs will translate the "/" to "*" when it looks up a key.
Ian
_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Fwd: Re: autofs+LDAP
2008-09-23 8:08 ` Ian Kent
@ 2008-09-23 8:17 ` Mikel Jimenez
2008-09-23 8:31 ` Ian Kent
0 siblings, 1 reply; 12+ messages in thread
From: Mikel Jimenez @ 2008-09-23 8:17 UTC (permalink / raw)
To: Ian Kent; +Cc: autofs
Ian Kent escribi贸:
> On Tue, 2008-09-23 at 09:59 +0200, Mikel Jimenez wrote:
>
>> Ian Kent escribi贸:
>>
>>> On Tue, 2008-09-23 at 09:34 +0200, Mikel Jimenez wrote:
>>>
>>>
>>>> Ian Kent escribi贸:
>>>>
>>>>
>>>>> On Tue, 2008-09-23 at 09:08 +0200, Mikel Jimenez wrote:
>>>>>
>>>>>
>>>>>
>>>>>> Ian Kent escribi贸:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> On Mon, 2008-09-22 at 20:15 +0200, mikel wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> -------- Original Message --------
>>>>>>>> Subject: Re: [autofs] autofs+LDAP
>>>>>>>> Date: Mon, 22 Sep 2008 20:14:21 +0200
>>>>>>>> From: mikel <mikel@irontec.com>
>>>>>>>> To: "Douglas E. Engert" <deengert@anl.gov>
>>>>>>>>
>>>>>>>> mmm very interesting... that is what I need!!
>>>>>>>>
>>>>>>>> I want to have the capability to personalize automount for each user.
>>>>>>>>
>>>>>>>> I want user1 have in /home mass_storage_ip:/remote_homes/user1
>>>>>>>>
>>>>>>>> and user2: /home mass_storage_ip:/remote_homes/user2
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> You really don't want to do it this way exactly do you?
>>>>>>>
>>>>>>> Surely you mean you want the mounts to be:
>>>>>>> user1: /home/user1 mass_storage_ip:/remote_homes/user1
>>>>>>> user2: /home/user2 mass_storage_ip:/remote_homes/user2
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> Guide to do that...
>>>>>>>> A lot of thanks!! really
>>>>>>>>
>>>>>>>> On Mon, 22 Sep 2008 11:33:40 -0500, "Douglas E. Engert" <deengert@anl.gov>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> 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
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> autofs mailing list
>>>>>>>> autofs@linux.kernel.org
>>>>>>>> http://linux.kernel.org/mailman/listinfo/autofs
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> YES YES!!
>>>>>>
>>>>>> That is it!!
>>>>>>
>>>>>>
>>>>>>
>>>>> You sound like your waiting for step by step instructions.
>>>>> That's not going to happen, at least not from me, because you'll end up
>>>>> with a setup you don't understand.
>>>>>
>>>>> But there are a couple of other things you need to decide on.
>>>>> What LDAP schema to use and whether you will use a master map held in
>>>>> LDAP or a file based one. There are a few gotchas and things you might
>>>>> need to change but first decide how you want to do it and construct
>>>>> simple maps to test and see how far you get.
>>>>>
>>>>> Look at the examples in samples/ldap-*.master and
>>>>> samples/ldap-*.indirect for examples of LDAP maps for the different
>>>>> commonly used schema. An indirect map mounted on /home is what you want
>>>>> by the sound of it. The master map entries contain the automounts in
>>>>> use, such /home in this case, and specifies the automount map which
>>>>> contains the keys provided by the map, such as user1 and user2, in this
>>>>> case.
>>>>>
>>>>> Ian
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>> Hello Ian
>>>> I have already autofs schema loaded in LDAP server and I make several
>>>> things with autofs and LDAP.
>>>>
>>>> I I have managed to do mounting of home through autofs-LDAP but with no
>>>> personalitation capabilities.
>>>>
>>>>
>>>> I do that
>>>>
>>>>
>>>> user1:
>>>> /home masterip:/=/export/homes/user1
>>>>
>>>>
>>>> user2: masterip:/export/homes/user1
>>>>
>>>>
>>> I don't know what you mean.
>>> This doesn't describe a valid map configuration.
>>> What version of autofs are you using for this?
>>>
>>> If this was a file based map you might have something like this
>>> in /etc/auto.master:
>>> /home /etc/auto.home
>>>
>>> and something like this in the indirect map /etc/auto.home
>>> user1 masterip:/export/homes/user1
>>> user2 masterip:/export/homes/user1
>>>
>>> or perhaps instead:
>>> * masterip:/export/homes/&
>>>
>>>
>>>
>>> Ian
>>>
>>>
>>>
>>>
>> I have autofs information in LDAP, not in /etc/...
>>
>> Can you explain me this?
>>
>> or perhaps instead:
>> * masterip:/export/homes/&
>>
>
> In the Sun automount map format this entry is a wildcard.
> The "*" matches any key that is being looked up and that key is then
> substituted in place of the &. So if a mount request for "someuser"
> comes in the above entry translates to:
>
> someuser masterip:/export/homes/someuser
>
>
> Later versions of autofs with maps in LDAP will understand the "*" when
> it is present in an LDAP map key but earlier versions need to use the
> "/" instead. So, in the LDAP map entry you would use "/" instead of "*"
> and autofs will translate the "/" to "*" when it looks up a key.
>
> Ian
>
>
>
What do you recommend me?
I have 30 hosts in job, all with ubuntu, and 6-8 Debian servers.
Mi idea is to have NFS server for mounting the homes when users logging
via LDAP, and give the capability to users to login in any machine and
have their home like locally.
I have yet configured logging and PAM. Only rest autofs
Thanks for your time
_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Fwd: Re: autofs+LDAP
2008-09-23 8:17 ` Mikel Jimenez
@ 2008-09-23 8:31 ` Ian Kent
2008-09-23 8:35 ` Mikel Jimenez
0 siblings, 1 reply; 12+ messages in thread
From: Ian Kent @ 2008-09-23 8:31 UTC (permalink / raw)
To: Mikel Jimenez; +Cc: autofs
On Tue, 2008-09-23 at 10:17 +0200, Mikel Jimenez wrote:
> Ian Kent escribi贸:
> > On Tue, 2008-09-23 at 09:59 +0200, Mikel Jimenez wrote:
> >
> >> Ian Kent escribi贸:
> >>
> >>> On Tue, 2008-09-23 at 09:34 +0200, Mikel Jimenez wrote:
> >>>
> >>>
> >>>> Ian Kent escribi贸:
> >>>>
> >>>>
> >>>>> On Tue, 2008-09-23 at 09:08 +0200, Mikel Jimenez wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>> Ian Kent escribi贸:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> On Mon, 2008-09-22 at 20:15 +0200, mikel wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>> -------- Original Message --------
> >>>>>>>> Subject: Re: [autofs] autofs+LDAP
> >>>>>>>> Date: Mon, 22 Sep 2008 20:14:21 +0200
> >>>>>>>> From: mikel <mikel@irontec.com>
> >>>>>>>> To: "Douglas E. Engert" <deengert@anl.gov>
> >>>>>>>>
> >>>>>>>> mmm very interesting... that is what I need!!
> >>>>>>>>
> >>>>>>>> I want to have the capability to personalize automount for each user.
> >>>>>>>>
> >>>>>>>> I want user1 have in /home mass_storage_ip:/remote_homes/user1
> >>>>>>>>
> >>>>>>>> and user2: /home mass_storage_ip:/remote_homes/user2
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>> You really don't want to do it this way exactly do you?
> >>>>>>>
> >>>>>>> Surely you mean you want the mounts to be:
> >>>>>>> user1: /home/user1 mass_storage_ip:/remote_homes/user1
> >>>>>>> user2: /home/user2 mass_storage_ip:/remote_homes/user2
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>> Guide to do that...
> >>>>>>>> A lot of thanks!! really
> >>>>>>>>
> >>>>>>>> On Mon, 22 Sep 2008 11:33:40 -0500, "Douglas E. Engert" <deengert@anl.gov>
> >>>>>>>> wrote:
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> 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
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>> _______________________________________________
> >>>>>>>> autofs mailing list
> >>>>>>>> autofs@linux.kernel.org
> >>>>>>>> http://linux.kernel.org/mailman/listinfo/autofs
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>> YES YES!!
> >>>>>>
> >>>>>> That is it!!
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>> You sound like your waiting for step by step instructions.
> >>>>> That's not going to happen, at least not from me, because you'll end up
> >>>>> with a setup you don't understand.
> >>>>>
> >>>>> But there are a couple of other things you need to decide on.
> >>>>> What LDAP schema to use and whether you will use a master map held in
> >>>>> LDAP or a file based one. There are a few gotchas and things you might
> >>>>> need to change but first decide how you want to do it and construct
> >>>>> simple maps to test and see how far you get.
> >>>>>
> >>>>> Look at the examples in samples/ldap-*.master and
> >>>>> samples/ldap-*.indirect for examples of LDAP maps for the different
> >>>>> commonly used schema. An indirect map mounted on /home is what you want
> >>>>> by the sound of it. The master map entries contain the automounts in
> >>>>> use, such /home in this case, and specifies the automount map which
> >>>>> contains the keys provided by the map, such as user1 and user2, in this
> >>>>> case.
> >>>>>
> >>>>> Ian
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>> Hello Ian
> >>>> I have already autofs schema loaded in LDAP server and I make several
> >>>> things with autofs and LDAP.
> >>>>
> >>>> I I have managed to do mounting of home through autofs-LDAP but with no
> >>>> personalitation capabilities.
> >>>>
> >>>>
> >>>> I do that
> >>>>
> >>>>
> >>>> user1:
> >>>> /home masterip:/=/export/homes/user1
> >>>>
> >>>>
> >>>> user2: masterip:/export/homes/user1
> >>>>
> >>>>
> >>> I don't know what you mean.
> >>> This doesn't describe a valid map configuration.
> >>> What version of autofs are you using for this?
> >>>
> >>> If this was a file based map you might have something like this
> >>> in /etc/auto.master:
> >>> /home /etc/auto.home
> >>>
> >>> and something like this in the indirect map /etc/auto.home
> >>> user1 masterip:/export/homes/user1
> >>> user2 masterip:/export/homes/user1
> >>>
> >>> or perhaps instead:
> >>> * masterip:/export/homes/&
> >>>
> >>>
> >>>
> >>> Ian
> >>>
> >>>
> >>>
> >>>
> >> I have autofs information in LDAP, not in /etc/...
> >>
> >> Can you explain me this?
> >>
> >> or perhaps instead:
> >> * masterip:/export/homes/&
> >>
> >
> > In the Sun automount map format this entry is a wildcard.
> > The "*" matches any key that is being looked up and that key is then
> > substituted in place of the &. So if a mount request for "someuser"
> > comes in the above entry translates to:
> >
> > someuser masterip:/export/homes/someuser
> >
> >
> > Later versions of autofs with maps in LDAP will understand the "*" when
> > it is present in an LDAP map key but earlier versions need to use the
> > "/" instead. So, in the LDAP map entry you would use "/" instead of "*"
> > and autofs will translate the "/" to "*" when it looks up a key.
> >
> > Ian
> >
> >
> >
> What do you recommend me?
>
> I have 30 hosts in job, all with ubuntu, and 6-8 Debian servers.
>
> Mi idea is to have NFS server for mounting the homes when users logging
> via LDAP, and give the capability to users to login in any machine and
> have their home like locally.
Both will work fine but the wildcard entry is much simpler and you can
add entries before it if you have special cases. You can always change
later anyway. You may find that problematic since we can't control the
order map entries are delivered from LDAP but I think it does work in
spite of that.
Debian likely has an older version of autofs so you would need to use
"/" instead of "*" in the LDAP map entry.
Ian
_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Fwd: Re: autofs+LDAP
2008-09-23 8:31 ` Ian Kent
@ 2008-09-23 8:35 ` Mikel Jimenez
2008-09-23 8:52 ` Ian Kent
0 siblings, 1 reply; 12+ messages in thread
From: Mikel Jimenez @ 2008-09-23 8:35 UTC (permalink / raw)
To: Ian Kent; +Cc: autofs
Ian Kent escribió:
> On Tue, 2008-09-23 at 10:17 +0200, Mikel Jimenez wrote:
>
>> Ian Kent escribió:
>>
>>> On Tue, 2008-09-23 at 09:59 +0200, Mikel Jimenez wrote:
>>>
>>>
>>>> Ian Kent escribió:
>>>>
>>>>
>>>>> On Tue, 2008-09-23 at 09:34 +0200, Mikel Jimenez wrote:
>>>>>
>>>>>
>>>>>
>>>>>> Ian Kent escribió:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> On Tue, 2008-09-23 at 09:08 +0200, Mikel Jimenez wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> Ian Kent escribió:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> On Mon, 2008-09-22 at 20:15 +0200, mikel wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> -------- Original Message --------
>>>>>>>>>> Subject: Re: [autofs] autofs+LDAP
>>>>>>>>>> Date: Mon, 22 Sep 2008 20:14:21 +0200
>>>>>>>>>> From: mikel <mikel@irontec.com>
>>>>>>>>>> To: "Douglas E. Engert" <deengert@anl.gov>
>>>>>>>>>>
>>>>>>>>>> mmm very interesting... that is what I need!!
>>>>>>>>>>
>>>>>>>>>> I want to have the capability to personalize automount for each user.
>>>>>>>>>>
>>>>>>>>>> I want user1 have in /home mass_storage_ip:/remote_homes/user1
>>>>>>>>>>
>>>>>>>>>> and user2: /home mass_storage_ip:/remote_homes/user2
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>> You really don't want to do it this way exactly do you?
>>>>>>>>>
>>>>>>>>> Surely you mean you want the mounts to be:
>>>>>>>>> user1: /home/user1 mass_storage_ip:/remote_homes/user1
>>>>>>>>> user2: /home/user2 mass_storage_ip:/remote_homes/user2
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> Guide to do that...
>>>>>>>>>> A lot of thanks!! really
>>>>>>>>>>
>>>>>>>>>> On Mon, 22 Sep 2008 11:33:40 -0500, "Douglas E. Engert" <deengert@anl.gov>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> 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
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> autofs mailing list
>>>>>>>>>> autofs@linux.kernel.org
>>>>>>>>>> http://linux.kernel.org/mailman/listinfo/autofs
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>> YES YES!!
>>>>>>>>
>>>>>>>> That is it!!
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> You sound like your waiting for step by step instructions.
>>>>>>> That's not going to happen, at least not from me, because you'll end up
>>>>>>> with a setup you don't understand.
>>>>>>>
>>>>>>> But there are a couple of other things you need to decide on.
>>>>>>> What LDAP schema to use and whether you will use a master map held in
>>>>>>> LDAP or a file based one. There are a few gotchas and things you might
>>>>>>> need to change but first decide how you want to do it and construct
>>>>>>> simple maps to test and see how far you get.
>>>>>>>
>>>>>>> Look at the examples in samples/ldap-*.master and
>>>>>>> samples/ldap-*.indirect for examples of LDAP maps for the different
>>>>>>> commonly used schema. An indirect map mounted on /home is what you want
>>>>>>> by the sound of it. The master map entries contain the automounts in
>>>>>>> use, such /home in this case, and specifies the automount map which
>>>>>>> contains the keys provided by the map, such as user1 and user2, in this
>>>>>>> case.
>>>>>>>
>>>>>>> Ian
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> Hello Ian
>>>>>> I have already autofs schema loaded in LDAP server and I make several
>>>>>> things with autofs and LDAP.
>>>>>>
>>>>>> I I have managed to do mounting of home through autofs-LDAP but with no
>>>>>> personalitation capabilities.
>>>>>>
>>>>>>
>>>>>> I do that
>>>>>>
>>>>>>
>>>>>> user1:
>>>>>> /home masterip:/=/export/homes/user1
>>>>>>
>>>>>>
>>>>>> user2: masterip:/export/homes/user1
>>>>>>
>>>>>>
>>>>>>
>>>>> I don't know what you mean.
>>>>> This doesn't describe a valid map configuration.
>>>>> What version of autofs are you using for this?
>>>>>
>>>>> If this was a file based map you might have something like this
>>>>> in /etc/auto.master:
>>>>> /home /etc/auto.home
>>>>>
>>>>> and something like this in the indirect map /etc/auto.home
>>>>> user1 masterip:/export/homes/user1
>>>>> user2 masterip:/export/homes/user1
>>>>>
>>>>> or perhaps instead:
>>>>> * masterip:/export/homes/&
>>>>>
>>>>>
>>>>>
>>>>> Ian
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>> I have autofs information in LDAP, not in /etc/...
>>>>
>>>> Can you explain me this?
>>>>
>>>> or perhaps instead:
>>>> * masterip:/export/homes/&
>>>>
>>>>
>>> In the Sun automount map format this entry is a wildcard.
>>> The "*" matches any key that is being looked up and that key is then
>>> substituted in place of the &. So if a mount request for "someuser"
>>> comes in the above entry translates to:
>>>
>>> someuser masterip:/export/homes/someuser
>>>
>>>
>>> Later versions of autofs with maps in LDAP will understand the "*" when
>>> it is present in an LDAP map key but earlier versions need to use the
>>> "/" instead. So, in the LDAP map entry you would use "/" instead of "*"
>>> and autofs will translate the "/" to "*" when it looks up a key.
>>>
>>> Ian
>>>
>>>
>>>
>>>
>> What do you recommend me?
>>
>> I have 30 hosts in job, all with ubuntu, and 6-8 Debian servers.
>>
>> Mi idea is to have NFS server for mounting the homes when users logging
>> via LDAP, and give the capability to users to login in any machine and
>> have their home like locally.
>>
>
> Both will work fine but the wildcard entry is much simpler and you can
> add entries before it if you have special cases. You can always change
> later anyway. You may find that problematic since we can't control the
> order map entries are delivered from LDAP but I think it does work in
> spite of that.
>
> Debian likely has an older version of autofs so you would need to use
> "/" instead of "*" in the LDAP map entry.
>
> Ian
>
>
>
OK Ian
Then, the entry in /etc/auto.master will be like that?
/home ldap:nisMapName=auto_XXXXX,ou=Autofs,....
or
* masterip:/export/homes/&
or
/home auto_select_script,....
Thanks
_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Fwd: Re: autofs+LDAP
2008-09-23 8:35 ` Mikel Jimenez
@ 2008-09-23 8:52 ` Ian Kent
0 siblings, 0 replies; 12+ messages in thread
From: Ian Kent @ 2008-09-23 8:52 UTC (permalink / raw)
To: Mikel Jimenez; +Cc: autofs
On Tue, 2008-09-23 at 10:35 +0200, Mikel Jimenez wrote:
> Ian Kent escribió:
> > On Tue, 2008-09-23 at 10:17 +0200, Mikel Jimenez wrote:
> >
> >> Ian Kent escribió:
> >>
> >>> On Tue, 2008-09-23 at 09:59 +0200, Mikel Jimenez wrote:
> >>>
> >>>
> >>>> Ian Kent escribió:
> >>>>
> >>>>
> >>>>> On Tue, 2008-09-23 at 09:34 +0200, Mikel Jimenez wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>> Ian Kent escribió:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> On Tue, 2008-09-23 at 09:08 +0200, Mikel Jimenez wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>> Ian Kent escribió:
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> On Mon, 2008-09-22 at 20:15 +0200, mikel wrote:
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>> -------- Original Message --------
> >>>>>>>>>> Subject: Re: [autofs] autofs+LDAP
> >>>>>>>>>> Date: Mon, 22 Sep 2008 20:14:21 +0200
> >>>>>>>>>> From: mikel <mikel@irontec.com>
> >>>>>>>>>> To: "Douglas E. Engert" <deengert@anl.gov>
> >>>>>>>>>>
> >>>>>>>>>> mmm very interesting... that is what I need!!
> >>>>>>>>>>
> >>>>>>>>>> I want to have the capability to personalize automount for each user.
> >>>>>>>>>>
> >>>>>>>>>> I want user1 have in /home mass_storage_ip:/remote_homes/user1
> >>>>>>>>>>
> >>>>>>>>>> and user2: /home mass_storage_ip:/remote_homes/user2
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>> You really don't want to do it this way exactly do you?
> >>>>>>>>>
> >>>>>>>>> Surely you mean you want the mounts to be:
> >>>>>>>>> user1: /home/user1 mass_storage_ip:/remote_homes/user1
> >>>>>>>>> user2: /home/user2 mass_storage_ip:/remote_homes/user2
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>> Guide to do that...
> >>>>>>>>>> A lot of thanks!! really
> >>>>>>>>>>
> >>>>>>>>>> On Mon, 22 Sep 2008 11:33:40 -0500, "Douglas E. Engert" <deengert@anl.gov>
> >>>>>>>>>> wrote:
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>> 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
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>> _______________________________________________
> >>>>>>>>>> autofs mailing list
> >>>>>>>>>> autofs@linux.kernel.org
> >>>>>>>>>> http://linux.kernel.org/mailman/listinfo/autofs
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>> YES YES!!
> >>>>>>>>
> >>>>>>>> That is it!!
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>> You sound like your waiting for step by step instructions.
> >>>>>>> That's not going to happen, at least not from me, because you'll end up
> >>>>>>> with a setup you don't understand.
> >>>>>>>
> >>>>>>> But there are a couple of other things you need to decide on.
> >>>>>>> What LDAP schema to use and whether you will use a master map held in
> >>>>>>> LDAP or a file based one. There are a few gotchas and things you might
> >>>>>>> need to change but first decide how you want to do it and construct
> >>>>>>> simple maps to test and see how far you get.
> >>>>>>>
> >>>>>>> Look at the examples in samples/ldap-*.master and
> >>>>>>> samples/ldap-*.indirect for examples of LDAP maps for the different
> >>>>>>> commonly used schema. An indirect map mounted on /home is what you want
> >>>>>>> by the sound of it. The master map entries contain the automounts in
> >>>>>>> use, such /home in this case, and specifies the automount map which
> >>>>>>> contains the keys provided by the map, such as user1 and user2, in this
> >>>>>>> case.
> >>>>>>>
> >>>>>>> Ian
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>> Hello Ian
> >>>>>> I have already autofs schema loaded in LDAP server and I make several
> >>>>>> things with autofs and LDAP.
> >>>>>>
> >>>>>> I I have managed to do mounting of home through autofs-LDAP but with no
> >>>>>> personalitation capabilities.
> >>>>>>
> >>>>>>
> >>>>>> I do that
> >>>>>>
> >>>>>>
> >>>>>> user1:
> >>>>>> /home masterip:/=/export/homes/user1
> >>>>>>
> >>>>>>
> >>>>>> user2: masterip:/export/homes/user1
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>> I don't know what you mean.
> >>>>> This doesn't describe a valid map configuration.
> >>>>> What version of autofs are you using for this?
> >>>>>
> >>>>> If this was a file based map you might have something like this
> >>>>> in /etc/auto.master:
> >>>>> /home /etc/auto.home
> >>>>>
> >>>>> and something like this in the indirect map /etc/auto.home
> >>>>> user1 masterip:/export/homes/user1
> >>>>> user2 masterip:/export/homes/user1
> >>>>>
> >>>>> or perhaps instead:
> >>>>> * masterip:/export/homes/&
> >>>>>
> >>>>>
> >>>>>
> >>>>> Ian
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>> I have autofs information in LDAP, not in /etc/...
> >>>>
> >>>> Can you explain me this?
> >>>>
> >>>> or perhaps instead:
> >>>> * masterip:/export/homes/&
> >>>>
> >>>>
> >>> In the Sun automount map format this entry is a wildcard.
> >>> The "*" matches any key that is being looked up and that key is then
> >>> substituted in place of the &. So if a mount request for "someuser"
> >>> comes in the above entry translates to:
> >>>
> >>> someuser masterip:/export/homes/someuser
> >>>
> >>>
> >>> Later versions of autofs with maps in LDAP will understand the "*" when
> >>> it is present in an LDAP map key but earlier versions need to use the
> >>> "/" instead. So, in the LDAP map entry you would use "/" instead of "*"
> >>> and autofs will translate the "/" to "*" when it looks up a key.
> >>>
> >>> Ian
> >>>
> >>>
> >>>
> >>>
> >> What do you recommend me?
> >>
> >> I have 30 hosts in job, all with ubuntu, and 6-8 Debian servers.
> >>
> >> Mi idea is to have NFS server for mounting the homes when users logging
> >> via LDAP, and give the capability to users to login in any machine and
> >> have their home like locally.
> >>
> >
> > Both will work fine but the wildcard entry is much simpler and you can
> > add entries before it if you have special cases. You can always change
> > later anyway. You may find that problematic since we can't control the
> > order map entries are delivered from LDAP but I think it does work in
> > spite of that.
> >
> > Debian likely has an older version of autofs so you would need to use
> > "/" instead of "*" in the LDAP map entry.
> >
> > Ian
> >
> >
> >
> OK Ian
>
> Then, the entry in /etc/auto.master will be like that?
>
> /home ldap:nisMapName=auto_XXXXX,ou=Autofs,....
This could be used as a master map entry.
> or
> * masterip:/export/homes/&
But this isn't.
> or
> /home auto_select_script,....
And this might be????
You must understand that the master map entry and the map associated
with it are different. They each serve a different purpose and have a
different format. Once again, look at the examples, there are separate
examples of the master map and of the maps themselves.
The master map entries define automount points and specify where to find
the map which contains keys for the given autofs mount point. They are
different.
Ian
_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2008-09-23 8:52 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-22 18:15 Fwd: Re: autofs+LDAP mikel
2008-09-23 2:08 ` Ian Kent
2008-09-23 7:08 ` Mikel Jimenez
2008-09-23 7:28 ` Ian Kent
2008-09-23 7:34 ` Mikel Jimenez
2008-09-23 7:48 ` Ian Kent
2008-09-23 7:59 ` Mikel Jimenez
2008-09-23 8:08 ` Ian Kent
2008-09-23 8:17 ` Mikel Jimenez
2008-09-23 8:31 ` Ian Kent
2008-09-23 8:35 ` Mikel Jimenez
2008-09-23 8:52 ` 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.