bind mount not working as expected
As suggested, I am forwarding this question to the autofs mailing list, since my problem doesn't seem to be Timo's patch.
Quoted 9 lines · Timo Felbinger
Quoted 8 lines · Pi (aka Anthony Martinez)
Quoted 7 lines
Quoted 1 line
Is it correct that this is a "program" map which is to telling automount to mount /fs/administratium/accounts/p/pi as /u/pi, and this information is taken from an ldap entry containing the attributes
uid: pi
tccRawHomeDir: /fs/administratium/accounts/p/pi
Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
? If so, would
automount /u ldap "ldap://<server>/<base>?uid,tccRawHomeDir?sub?<filter>"
do what you want?OK. I am using ldaps://<server>/ou=accounts,<base>?uid,tccRawHomeDir?sub?(objectClass=tccAccount)
but this mounts /u/pi in some weird fashion:
(the results of 'find /u/pi')
Quoted 12 lines
Quoted 8 lines
/u/pi
/u/pi/fs
/u/pi/fs/administratium
/u/pi/fs/administratium/accounts
/u/pi/fs/administratium/accounts/p
/u/pi/fs/administratium/accounts/p/piNo, that's definitely not what it should do. (and I just tried and failed to reproduce this problem)
Quoted 8 lines
However, I do not see how this is specific to the
lookup_ldapmodule (which is the only one affected by my patch). Essentially, these lookup modules just get handed a key value (in your example, "pi"), and return information on what to mount there (in your example, "/fs/administratium/accounts/p/pi"), much like your program map. The result should be the same as what you get manually with
mount -o bind /fs/administratium/accounts/p/pi /u/pi
(this is a local (not NFS) mount, right?), and it works for me like that.
Additional information: /fs is also handled by automount, but that mount works correctly
Quoted 2 lines
So your problem might be more general (too old kernel version, maybe?),
Debian Stable, kernel 2.6.8, autofs 4.1.3+4.1.4beta2 (with both Timo and my patches relating to LDAP functionality)
Quoted 6 lines
and maybe you could ask this on the autofs mailing list
(http://linux.kernel.org/mailman/listinfo/autofs)?Regards,
Timo
Signature · 5 lines
<aydiosmio> wow <aydiosmio> someone's password in this db is "secrets" <aydiosmio> I thought hackers was a lie <com`fu> it was <com`fu> they said secret
Ian Kent
maintainerQuoted 12 lines · Anthony M. Martinez
As suggested, I am forwarding this question to the autofs mailing list, since my problem doesn't seem to be Timo's patch.
Quoted 8 lines · Timo Felbinger
Quoted 7 lines · Pi (aka Anthony Martinez)
Quoted 7 lines
Quoted 1 line
Is it correct that this is a "program" map which is to telling automount to mount /fs/administratium/accounts/p/pi as /u/pi, and this information is taken from an ldap entry containing the attributes
uid: pi
tccRawHomeDir: /fs/administratium/accounts/p/pi
^
Where's the hostname on this !
tccRawHomeDir: :/fs/administratium/accounts/p/pi
^Sun map escape might be needed?
Ian
Quoted 14 lines · Ian Kent
Quoted 12 lines · Anthony M. Martinez
As suggested, I am forwarding this question to the autofs mailing list, since my problem doesn't seem to be Timo's patch.
Quoted 8 lines · Timo Felbinger
Quoted 7 lines · Pi (aka Anthony Martinez)
Quoted 7 lines
Quoted 1 line
Is it correct that this is a "program" map which is to telling automount to mount /fs/administratium/accounts/p/pi as /u/pi, and this information is taken from an ldap entry containing the attributes
uid: pi
tccRawHomeDir: /fs/administratium/accounts/p/pi
Quoted 4 lines
^
Where's the hostname on this !
tccRawHomeDir: :/fs/administratium/accounts/p/pi
^There isn't a hostname... It's supposed to bind (or possibly symlink if bind mounts aren't available?) /fs/administratium/accounts/p/pi to /u/pi
I'd like to migrate away from program mounts hopefully; since we have LDAP, they should be unnecessary :)
An auto.home program map that works on autofs-4.1.2 just returns this:
$ /etc/auto.home pi / /fs/administratium/accounts/p/pi
Hmm. So I need that slash in front. Sucks to be me?
Pi
Quoted 4 lines
Sun map escape might be needed?
Ian
Signature · 2 lines
All C programs do the same thing: look at a character and do nothing with it. -- Peter Weinberger
Ian Kent
maintainerQuoted 15 lines · Anthony M. Martinez
Quoted 14 lines · Ian Kent
Quoted 12 lines · Anthony M. Martinez
As suggested, I am forwarding this question to the autofs mailing list, since my problem doesn't seem to be Timo's patch.
Quoted 8 lines · Timo Felbinger
Quoted 7 lines · Pi (aka Anthony Martinez)
Quoted 7 lines
Quoted 1 line
Is it correct that this is a "program" map which is to telling automount to mount /fs/administratium/accounts/p/pi as /u/pi, and this information is taken from an ldap entry containing the attributes
uid: pi
tccRawHomeDir: /fs/administratium/accounts/p/pi
Quoted 6 lines
Quoted 4 lines
^ Where's the hostname on this ! tccRawHomeDir: :/fs/administratium/accounts/p/pi ^There isn't a hostname... It's supposed to bind (or possibly symlink if
So you tried what I suggested and it didn't work?
Quoted 24 lines
bind mounts aren't available?) /fs/administratium/accounts/p/pi to /u/pi
I'd like to migrate away from program mounts hopefully; since we have LDAP, they should be unnecessary :)
An auto.home program map that works on autofs-4.1.2 just returns this:
$ /etc/auto.home pi / /fs/administratium/accounts/p/piHmm. So I need that slash in front. Sucks to be me?
Pi
Quoted 4 lines
Sun map escape might be needed?
Ian
Signature · 2 lines
All C programs do the same thing: look at a character and do nothing with it. -- Peter Weinberger
Ian Kent
maintainerQuoted 15 lines · Anthony M. Martinez
Quoted 14 lines · Ian Kent
Quoted 12 lines · Anthony M. Martinez
As suggested, I am forwarding this question to the autofs mailing list, since my problem doesn't seem to be Timo's patch.
Quoted 8 lines · Timo Felbinger
Quoted 7 lines · Pi (aka Anthony Martinez)
Quoted 7 lines
Quoted 1 line
Is it correct that this is a "program" map which is to telling automount to mount /fs/administratium/accounts/p/pi as /u/pi, and this information is taken from an ldap entry containing the attributes
uid: pi
tccRawHomeDir: /fs/administratium/accounts/p/pi
Quoted 7 lines
Quoted 4 lines
^ Where's the hostname on this ! tccRawHomeDir: :/fs/administratium/accounts/p/pi ^There isn't a hostname... It's supposed to bind (or possibly symlink if bind mounts aren't available?) /fs/administratium/accounts/p/pi to /u/pi
And the ":" is meant to escape the fact that the mapent begins with a "/".
Quoted 28 lines
I'd like to migrate away from program mounts hopefully; since we have LDAP, they should be unnecessary :)
An auto.home program map that works on autofs-4.1.2 just returns this:
$ /etc/auto.home pi / /fs/administratium/accounts/p/piHmm. So I need that slash in front. Sucks to be me?
Pi
Quoted 4 lines
Sun map escape might be needed?
Ian
Signature · 7 lines
All C programs do the same thing: look at a character and do nothing with it. -- Peter Weinberger _______________________________________________ autofs mailing list [email protected] http://linux.kernel.org/mailman/listinfo/autofs