OK.  So I created the keys for each letter in this format:
a* -fstype=nfs4,soft,intr,rsize=8192,wsize=8192,tcp fileserver.chem.byu.edu:/export/home/students/a/:&

It still doesn't seem to be mounting the directories as it should and I am not understanding why.  The syntax of the key entries appears correct as far as I can tell.  Am I missing something?

On Tue, Feb 19, 2019 at 10:05 AM Brian Topping <brian.topping@gmail.com> wrote:
Kristian,

The doc that helped me a lot is [1]. I think you just need to create 26 entries in `auto_home` using a wildcard at the end of each key (ie `a*`, `b*`, etc). Then, for each user, set their home directory to the correct full path.

Brian

1: https://docs.oracle.com/cd/E19455-01/806-0916/6ja8539g6/index.html

> On Feb 19, 2019, at 9:45 AM, Kristian Petersen via FreeIPA-users <freeipa-users@lists.fedorahosted.org> wrote:
>
> Is there a way to set up the maps to mount a users home directory if they are divided up under a directory that is the first letter of their username without mounting all such directories for every user?  We have thousands of students needing home directories and so they have divided up this way.  Example: /home/students/a/aardvark or /home/students/b/bugsbunny.  The docs I have read on autofs maps haven't been very clear on how to define this kind of mapping, especially in FreeIPA.
>
> --
> Kristian Petersen
> System Administrator
> BYU Dept. of Chemistry and Biochemistry
> _______________________________________________
> FreeIPA-users mailing list -- freeipa-users@lists.fedorahosted.org
> To unsubscribe send an email to freeipa-users-leave@lists.fedorahosted.org
> Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedorahosted.org/archives/list/freeipa-users@lists.fedorahosted.org



--
Kristian Petersen
System Administrator
BYU Dept. of Chemistry and Biochemistry