Luke Jaeger
Dabbler
- Joined
- Mar 16, 2016
- Messages
- 43
I have FreeNAS-9.3-STABLE-201602031011 set up for CIFS sharing in a college lab environment.
It's bound to AD and that seems to be working fine: users can log into the FreeNAS with their AD name and password, which is what we want.
The FreeNAS is also hosting a static web site (hosted by Apache in a jail) with a directory for every student to display their projects. I would like these student subdirectories to show up on the site with the students' real names ("Lizzie Borden") instead of their UID's ("lborden"). So I need a command-line method to query AD somehow and retrieve those attributes for each user who has a home directory on the FreeNAS box.
I know how to do this from the local /etc/groups database but I can't figure out how to get the same info out of AD. I've tried a few things with wbinfo and ldaptool but so far I'm stumped. Any guidance will be appreciated! thanks -- LJ
It's bound to AD and that seems to be working fine: users can log into the FreeNAS with their AD name and password, which is what we want.
The FreeNAS is also hosting a static web site (hosted by Apache in a jail) with a directory for every student to display their projects. I would like these student subdirectories to show up on the site with the students' real names ("Lizzie Borden") instead of their UID's ("lborden"). So I need a command-line method to query AD somehow and retrieve those attributes for each user who has a home directory on the FreeNAS box.
I know how to do this from the local /etc/groups database but I can't figure out how to get the same info out of AD. I've tried a few things with wbinfo and ldaptool but so far I'm stumped. Any guidance will be appreciated! thanks -- LJ