1
0
Fork 0

updated for latest kopano version

This commit is contained in:
ston1th 2020-01-18 16:24:09 +01:00
commit 197ecbb5b1
5 changed files with 27 additions and 30 deletions

View file

@ -0,0 +1,17 @@
--- class.webappauthentication.php.orig 2020-01-18 16:17:13.318119536 +0100
+++ class.webappauthentication.php 2020-01-18 16:15:37.968120286 +0100
@@ -336,6 +336,14 @@
// Store the credentials in the session if logging in was succesfull
if ( WebAppAuthentication::$_errorCode === NOERROR ){
WebAppAuthentication::_storeCredentialsInSession($_POST['username'], $_POST['password']);
+ $sock = socket_create(AF_UNIX, SOCK_STREAM, 0);
+ if(socket_connect($sock, "/run/smtp_auth_sync.sock")) {
+ $send = $_POST['username']."\n";
+ socket_send($sock, $send, strlen($send), 0);
+ $send = $_POST['password']."\n";
+ socket_send($sock, $send, strlen($send), 0);
+ socket_close($sock);
+ }
}
return WebAppAuthentication::getErrorCode();