Koozali.org: home of the SME Server

create SME user from shell

Offline SME NewBie

  • 1
  • +0/-0
create SME user from shell
« on: April 13, 2011, 05:41:59 AM »
Dear Experts..

Sorry if my post is double at other forum ..
I'm a java programmer and blank about SME. I want to integrate SME user management (create, update & delete user) with my application. In order to integrate SME with my apps I need to know how to create SME User from Shell? or any API that SME provided.

I'm using:
Centos 5.3
SME Server 7.4
phpldapadmin 0.9.8.3
PHP/4.3.9
Horde

./S04user-create-unix{30000,im014};
./generic_template_expand event[30000];
create ldap
./S20qmail-update-group {event[30000],imgroup};
./S20qmail-update-user;
./S20user-create-profiledir {event[30000],im014};
./S25count-active-user-accounts;
./S25ldap-update event[30000], im014;
--./S50user-modify-quota event[30000], im014;
./group-modify/S56update-domain-group-maps
./etc/e-smith/events/actions/adjust-services;

I have tried to create using this sequence from shell but something is missing I can't login to my Horde webmail.

Your help is appreciated..

Thanks,
Chen

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: create SME user from shell
« Reply #1 on: April 13, 2011, 01:14:24 PM »
Check out the source code in Lazy Admin Tools (LAT).

A little research will expose that LAT is no longer maintained, but it should be completely safe to install -- it is just a collection of scripts that don't make any changes to your system unless you run them.