On Wed, 2007-11-28 at 10:18 -0700, Craig White wrote:
> On Wed, 2007-11-28 at 11:42 +0900, Ian Kent wrote:
> 
> > 
> > It's clear you didn't pay sufficient attention to my mail.
> > Go back and read it again, carefully.
> ----
> OK - I've gotten somewhere...I get 'users' but not 'files'

But it looks like you still don't understand the difference between a
master map which has automount managed mount points and an automount map
which has keys belonging to that map. They are two separate things and
have a different syntax and requirements.

> 
> the only not commented lines on /etc/auto.master on fedora client...
> /net    /etc/auto.net
> +auto.master

OK, that looks fine.

> 
> LDAP
> dn: automountMapName=auto.master,dc=tobyhouse,dc=com
> objectClass: automountMap
> objectClass: top
> automountMapName: auto.master

This looks fine.
We have defined a master map.

> 
> dn: description=files,automountMapName=auto.master,dc=tobyhouse,dc=com
> objectClass: top
> objectClass: automount
> automountInformation: auto.misc
> automountKey: /home/storage
> description: files

OK, so this is the master map entry for automount managed mount
point /home/storage which will use the map keys defined in the auto
auto.misc map.

> 
> dn: description=users,automountMapName=auto.master,dc=tobyhouse,dc=com
> objectClass: top
> objectClass: automount
> automountInformation: auto.home
> automountKey: /home/storage
> description: users

OK, looks like another master map entry for /home/storage to me.
This will be ignored as it's a duplicate entry for the master map mount
point /home/storage. The first encountered entry is used in this case.

> 
> this now automounts...
> dn: automountMapName=auto.home,dc=tobyhouse,dc=com
> objectClass: top
> objectClass: automountMap
> automountMapName: auto.home
> 
> dn: automountKey=users,automountMapName=auto.home,dc=tobyhouse,dc=com
> objectClass: automount
> automountKey: users
> automountInformation: srv1.tobyhouse.com:/home/storage/users
> 
> this doesn't automount
> dn: automountMapName=auto.misc,dc=tobyhouse,dc=com
> objectClass: top
> objectClass: automountMap
> automountMapName: auto.misc
> 
> dn: automountKey=files,automountMapName=auto.misc,dc=tobyhouse,dc=com
> objectClass: automount
> automountKey: files
> automountInformation: srv1.tobyhouse.com:/home/storage/files

Mmmm ... that's not quite right from an automount viewpoint.

Assuming that the master map entries are returned from LDAP in the order
given above the opposite should be happening. There may not be much I
can do about that since we might not be able to depend on the order
entries are returned from LDAP. That's certainly a problem for me to
investigate but for you just don't define duplicate master map entries.

> 
> and an fyi...
> 
> > I advised you add "automountMapName: auto.home" to these entries,
> > especially since it's in the dn. Otherwise, looks like a valid entry for
> > the LDAP map auto.home for key users.
> ----
> that's a problem for me...
> 
> # cat automount3.ldif
> dn: automountKey=users,automountMapName=auto.home,dc=tobyhouse,dc=com
> objectClass: automount
> automountKey: users
> automountMapName: auto.home
> automountInformation: srv1.tobyhouse.com:/home/storage/users
> 
> # ldapadd -x -D 'UNIMPORTANT' -W -f automount3.ldif
> Enter LDAP Password:
> adding new entry
> "automountKey=users,automountMapName=auto.home,dc=tobyhouse,dc=com"
> ldap_add: Object class violation (65)
>         additional info: attribute 'automountMapName' not allowed

OK, I must be wrong.
Such is life, leave it out then.
I'll check that when I get a chance.

> 
> if I comment out automountMapName: auto.home, no problem which is why.
> 
> I also want to point out that I cannot include both rfc2307.schema and
> autofs.schema because restarting ldap service tosses this error
> (probably not unexpected)...
> hecking configuration files for
> slapd:  /etc/openldap/schema/redhat/rfc2307.schema: line 20:
> Inconsistent duplicate attributeType: "automountInformation"
> 
> and so for the purposes of this exercise, I am only using rfc2307.schema
> which is where we started and is the only schema that includes
> automountMapName.

Yes, thought I mentioned you would need to remove the autofs.schema to
do this, in my first reply.

> 
> SO I ended up putting 'files' into 'auto.home' and it works...
> 
> dn: automountKey=files,automountMapName=auto.home,dc=tobyhouse,dc=com
> automountKey: files
> objectClass: automount
> automountInformation: srv1.tobyhouse.com:/home/storage/files

Yes, a second "map entry" for the "map auto.home" defining the "key
files" for the corresponding "master map entry" for the automount
managed mount "/home/storage".

Ian


_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to