Thanks for the input dgangal!
dgangal wrote:
If "... I want it to behave the same way it does when I add a user via the webinterface" means adding from outside atk the following code may help.
Yes outside atk. But I don't want to create a webpage I'm trying to set up the same functionality the webpage gives you as a webservice with nusoap. In this case add/modify/delete account.
To give a very specific example:
If I add an account via the webgui the following will happen:
1. accountname will be checked if it is unique
2. the password string will be checked against all the restrictions I configured in config.inc.php like config_password_minsize, etc.
2. the password gets hashed
3. the accountname and password hash will be written to the db
Do you know how I can achieve the same from php CLI? Adding a new account & password without checking manually if the accountname is unique and checking manually if all the password restrictions are fulfilled?
Thanks,
Björn