#293 Support multiple direct maps in automount
Closed: Fixed None Opened 13 years ago by rcritten.

The way the automount DN is constructed now we can only support a single direct mount. The reason is the DN is constructed using the automountkey and automountmapname. The key for a direct map is /- so only one can be in auto.master.

It was recommended that we add the description attribute to the entry to introduce uniqueness. I think this will work as autofs doesn't care about the DN. We can store the map name in description.

An example is this auto.master:

/-                      /tmp/auto_dcthon
/-                      /tmp/auto_test3_direct
/-                      /tmp/auto_test4_direct

Our current structure would try to add all three that look like this:

dn: automountkey=/-,automountmapname=auto.master,cn=default,cn=automount

Instead if we put the basename of the map file in description and add that to the DN we get:

dn: description=auto_dcthon,automountkey=/-,automountmapname=auto.master,cn=default,cn=automount
dn: description=auto_test3_direct,automountkey=/-,automountmapname=auto.master,cn=default,cn=automount
dn: description=auto_test4_direct,automountkey=/-,automountmapname=auto.master,cn=default,cn=automount

I started reviewing it and what I saw looked good but it could be disruptive. Pushing to January so it can get a more thorough review.

Metadata Update from @rcritten:
- Issue assigned to jhrozek
- Issue set to the milestone: FreeIPA 2.0 - 2011/01 (cleanup)

7 years ago

Login to comment on this ticket.

Metadata