I use joomla for a website, with LDAP auth, and it won't work if the mail attribute isn't set, and I don't want to have to do it manually, so can anyone help?
There are probably multiple ways to solve this one. I don’t have an LDAP system handy to test on, but I’m betting there’s a way to preconfigure this attribute for new users in the LDAP Server module. But, I might be wrong.
I assume you’ve read through Jamie’s Virtualmin with LDAP guide here:
http://www.virtualmin.com/documentation/id,combining_virtualmin_and_ldap/
Anyway, if there isn’t a way to inject the mail attribute automatically with Virtualmin, you could do it with one of the “Commands to run after changes” options. Look in Webmin->System->Users and Groups->Module Config->Before and after commands. You could use an LDAP command to update the user to add that attribute. There are ENV variables set by Virtualmin when creating and modifying users, so you can make a script to do what you need with the information it needs to do the job…usually in just a line or two. Variables are documented here (though not all variables are set for all situations):
http://www.virtualmin.com/documentation/id,template_variable_listing/
I’m not an expert on LDAP, so I’ll ask Jamie to chime in on this thread.
Also, is there any way to modify the templates to change premissions on a sub-domains folder, to prevent the Apache 403 errors I'm getting.
say I have forum.example.com, I have to go chmod a+x forum.example.com, and public_html inside that folder before Apache will let me see webpages for that domain :(
Apache isn’t getting group membership set correctly. I’m not sure how that’s done in LDAP…but I would think it would be covered by the docs Jamie wrote on the topic, but I might be wrong. In short, Apache gets automatically added to your new virtual server group, which gives it access to the home directories, while allowing them to remain mode 750 (which means no users can see other users content, but Apache can see everybody).