Page 1 of 1
omaddu permissions.
Posted: Mon Jul 24, 2006 12:23 pm
by msweany
Hi there, I am working on a php page that I will be able to use to add and remove users vi omaddu and omdelu.
My question is this, do I need to set permissions on anything other then the omaddu for apache to execute it?
I dont really want to put apache in the Scalix group because I want to control what I give it access to.
Posted: Mon Jul 24, 2006 1:06 pm
by ScalixSupport
Is there a reason why you don't want to use the Admin Console ?
Cheers
Dave
Posted: Mon Jul 24, 2006 1:13 pm
by msweany
Hi Dave,
I normally use the admin console, but I am looking into building a php/mysql based app that will allow me to give control to a user to manage users for a domain on my sqcalix server.
For instance, I have domains A,B and C sending and receiving mail on my scalix server, I will control domains A and B, but C is my dad's business domain. Rather then have him call me to add remove users, I thought it would be nice to provide him with a secure login to a page that he can manage the users himself.
The only holdup I have at this point is the actual creation of users from apache.
I have the syntax correct in omaddu (I have tested from a root account), I can tell that the correct command is being sent, but nothing happens. I have made sure to do everything usually needed in /etc/sudoers to allow this one script to be run, but it appears I need to be added elsewhere..
Any help would be much appriciated.
Posted: Tue Jul 25, 2006 3:40 am
by Valerion
Maybe a LDAP solution will work as well/better for you?
You can write a PHP frontend to put entries into a OpenLDAP tree, and set up Scalix to synchronise off of that. That way Apache only needs to be able to access the LDAP tree (which you can control) and the changes will still go to Scalix.
Posted: Tue Jul 25, 2006 8:43 am
by msweany
Thanks Valerion, I will look into that. That sounds like a good idea.