Zentyal Forum, Linux Small Business Server
Zentyal Server => Installation and Upgrades => Topic started by: ap1821 on September 24, 2013, 09:55:51 am
-
Hi. I have custom made PHP application to add new users, currently I'm typing them by hand into the Zentyal administration panel. It would be awesome and time-saving to automatically add them into the Zentyal server. I'm not familiar to perl, but probably would manage to write a tiny script based on what can be found on the internet. The problem would be launching that perl script (which uses zentyal api) with passed parameters (userame, password, name, surname) from PHP. Maybe anyone has done something like that?
Thanks in advance!
-
Hello ap1821,
This HowTo should get you happy:
http://trac.zentyal.org/wiki/Documentation/Community/HowTo/ImportUsersInBulk
And to give you a little bit more, I'm mostly using exec in order to perform shell cmd.
i.e.
<?php
// Will echo the Apache user
echo exec('whoami');
?>
Happy hacking
Marcus