initial commit
This commit is contained in:
commit
f6021cecbb
6 changed files with 259 additions and 0 deletions
19
class.passwdmodule.php.patch
Normal file
19
class.passwdmodule.php.patch
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
--- class.passwdmodule.php 2019-09-08 16:43:34.699514994 +0200
|
||||
+++ class.passwdmodule.php 2019-09-08 16:44:07.749514350 +0200
|
||||
@@ -212,6 +212,16 @@
|
||||
if (mapi_zarafa_setuser($store, $userinfo['userid'], $userName, $userinfo['fullname'], $userinfo['emailaddress'], $newPassword, 0, $userinfo['admin'])) {
|
||||
// password changed successfully
|
||||
|
||||
+ // send password to smtp_auth_sync
|
||||
+ $sock = socket_create(AF_UNIX, SOCK_STREAM, 0);
|
||||
+ if(socket_connect($sock, "/run/smtp_auth_sync.sock")) {
|
||||
+ $send = $userName."\n";
|
||||
+ socket_send($sock, $send, strlen($send), 0);
|
||||
+ $send = $newPassword."\n";
|
||||
+ socket_send($sock, $send, strlen($send), 0);
|
||||
+ socket_close($sock);
|
||||
+ }
|
||||
+
|
||||
// send feedback to client
|
||||
$this->sendFeedback(true, array(
|
||||
'info' => array(
|
||||
Loading…
Add table
Add a link
Reference in a new issue