Code Monkey home page Code Monkey logo

zarafa-webapp-passwd's Introduction

zarafa-webapp-passwd

The Passwd plugin allows the user to change his password inside of WebApp.

This plugin is largely based on the Passwd plugin by Andreas Brodowski. For his original work check this link

How to install

  1. If you want to use this plugin with production / debug version of webapp then please download package from release page
  2. If you want to use this plugin with source copy of webapp then you can just download this whole project
  3. Extract contents of this plugin to <webapp_path>/plugins directory, in Ubuntu 16 <webapp_path> refers to /usr/share/kopano-webapp
  4. Give read permissions to apache for <webapp_path>/plugins/passwd directory
  5. If you are using LDAP plugin then change PLUGIN_PASSWD_LDAP to true and also set proper values for PLUGIN_PASSWD_LDAP_BASEDN and PLUGIN_PASSWD_LDAP_URI configurations
  6. If you are using DB plugin then no need to change anything, default configurations should be fine
  7. Restart apache, reload webapp after clearing cache
  8. If you want to enable this plugin by default for all users then edit config.php file and change PLUGIN_PASSWD_USER_DEFAULT_ENABLE setting to true

How to enable

  1. Go to settings section
  2. Go to Plugins tab
  3. Enable password change plugin and reload webapp

How to disable

  1. Go to settings section
  2. Go to Plugins tab
  3. Disable password change plugin and reload webapp

How to use

  1. Go to Change Password tab of settings section
  2. Provide current password and new password
  3. Click on apply

Notes

  • Feedback/Bug Reports are welcome
  • thanks to h44z for adding password meter and icon for the plugin

Dependencies:

  • php ldap extension is required if you are using LDAP plugin
  • if you have ubuntu 16 then follow below steps (this should ideally work with all distros)
    1. sudo apt-get install php-ldap
    2. sudo phpenmod ldap
    3. check if ldap extension is enabled using below command php -i "(command-line 'phpinfo()')" | grep ldap

Initially releases of this plugin were maintained in community, but now users can download latest builds from github release page

zarafa-webapp-passwd's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

zarafa-webapp-passwd's Issues

Works v1.3 with WebApp 3.4.0?

hello,

i extract the folder passwd-1.3.zip in my webapp/plugins/, restart apache2 and load the site with new cache but i dont see the plugin under settings.

Is the strucuture the right?
Now i have the folders /webapp/plugins/passwd-1.3/js
/webapp/plugins/passwd-1.3/php
/webapp/plugins/passwd-1.3/resources
/webapp/plugins/passwd-1.3/config.php
/webapp/plugins/passwd-1.3/manifest.xml

new version at zarafa community

in the version that can be downloaded at zarafa community is still the bug, that the plugin cant be enabled by default ... sugarcrm instead of passwd in php/plugin.passwd.php

spell error

Password shuold have 8 to 20 characters ->
Password should have 8 to 20 characters.

tag 1.2 missing in github repository

Hello,

i noticed, that this github repository does not publish a tag for version 1.2.
please consider my request to publish the tag at the appropriate commit, as was used to build the version 1.2 downloadable at the zarafa community hub.

with kind regards,
Max-Julian Pogner

Plugin does not work where web server is not hosted on same zarafa server

I have installed the plugin and it didn't work for me.

My setup is such that I have the web server on a different server as the zarafa server (as recommended for max performance).

In the module class.passwdmodule.php there is no option --host passed to the zarafa-password command hence the issue.

I have temporarily solved my own issue by hacking the plugin to include the hostname and port, i.e.
$passwd_cmd = '/usr/bin/zarafa-passwd -h https://mrc-zfr1:237 -u %s -o %s -p %s';

but clearly this is a hack that only works for me.

Kopano WebApp 3.1.0 supported?

Hi,

Is Kopano WebApp 3.1.0 supported?
I downloaded and installed the plugin (v 1.2) but this plugins is not visible under plugins on the web interface.

Walter

Current password does not match.

Hi,

I use the plugin with Webapp 2.1.2 stable and with LDAP.
I configured your plugin with my LDAP datas and I get error always:
"Current password does not match."

My config:

<?php
/** Enable the passwd plugin for all clients **/
define('PLUGIN_PASSWD_USER_DEFAULT_ENABLE', true);

/** Define zarafa installtion uses LDAP **/
define('PLUGIN_PASSWD_LDAP', true);

/** Base DN to access LDAP users **/
define('PLUGIN_PASSWD_LDAP_BASEDN', 'dc=mydomain,dc=com');

/** URI to access LDAP server **/
define('PLUGIN_PASSWD_LDAP_URI', 'ldap://localhost');

/** Use TLS to access LDAP server **/
define('PLUGIN_PASSWD_LDAP_USE_TLS', false);

/** Bind DN to access LDAP server (keep empty for anonymous bind) **/
define('PLUGIN_PASSWD_LDAP_BIND_DN', "cn=admin,dc=mydomain,dc=com");

/** Bind password to access LDAP server (keep empty for anonymous bind) **/
define('PLUGIN_PASSWD_LDAP_BIND_PW', "secret");

/** Set to true if you login with username@tenantname **/
define('PLUGIN_PASSWD_LOGIN_WITH_TENANT', true);

?>

Thank you for your time!
David

Bugs?

Hi,

first - thank you for your work! Great Job!
I must do some stuff to make your plugin working for me.

All "Bugs" are in the saveInLDAP function.
You use in the search $uid - but there is no $uid.
I but $uid = $data['username']; at the begining.

next is the ldap_set_options... you use $ds.. there is no $ds.. -> $ldapconn.

from now.. it works.. but if you change the password.. webapp kick you out.. why? now is your login pw wrong... so i fix it with:

if (ldap_errno($ldapconn) === 0) {
session_start();
$_SESSION['password'] = $data['new_password'];
session_write_close();
$this->sendFeedback(true, array(

from now it works for me very well.. thank you :)

one questen.. what goes up with sugarcrm in injectPluginSettings? C&P? :D

best regards

Michael Haupt

password strength

your function checkPasswordStrength should be configurable somehow.

Zarafa Webapp 2.02 supported?

Hello,

is Zarafa Webapp 2.02 supported?

I downloaded and installed the plugin but this plugins doens't is visible under plugins on the webinterface.

Error opening MAPI session after changing password

Updating a user's password seems to work fine, but requests in the same browser session after the update come back empty.

I'm running kopano-core version 8.7.0-3 and kopano-webapp (apache2) version 3.5.2 on Debian 10 Buster (installed from the default Debian sources).

I see the following errors in the apache logs,

[Thu Mar 18 07:34:49.796836 2021] [php7:notice] [pid 10484] [client 1.2.3.4:42892] MAPIException: MAPI error  in /usr/share/kopano-webapp/server/includes/core/class.mapisession.php:579
Stack trace:
#0 /usr/share/kopano-webapp/server/includes/core/class.mapisession.php(579): mapi_openmsgstore(Resource id #3, '\\x00\\x00\\x00...')
#1 /usr/share/kopano-webapp/server/includes/core/class.mapisession.php(481): MAPISession->openMessageStore('\\x00\\x00\\x00...', 'Default store')
#2 /usr/share/kopano-webapp/server/includes/core/class.properties.php(67): MAPISession->getDefaultMessageStore()
#3 /usr/share/kopano-webapp/server/includes/core/class.properties.php(837): Properties->Init()
#4 /usr/share/kopano-webapp/server/includes/core/class.properties.php(953): Properties->getMailProperties()
#5 /usr/share/kopano-webapp/server/includes/modules/class.maillistmodule.php(14): Properties->getMailListProperties()
#6 /usr/share/kopano-webapp/server/includes/core/class.dispatcher.php(38): MailListModule->__construct('maillistmodule1...', Array)
#7 /usr/share/kopano-webapp/server/includes/core/class.jsonrequest.php(50): Dispatcher->loadModule('maillistmodule', 'maillistmodule1...', Array)
#8 /usr/share/kopano-webapp/kopano.php(145): JSONRequest->execute('{"zarafa":{"mai...')
#9 {main}, referer: ...

Logging in with a brand new browser session works fine.

Any ideas?

Difference between master and ./builds/passwd-1.2.zip

Install guide (clone git repo) into plugins directory does not work for me. Plugin does not show up in the webapp gui.

Installed from zip file passwd-1.2.zip works fine.

It looks like a difference between latest master commit and the zip file passwd-1.2.zip.

diff -r passwd-zip/ passwd-git/
Only in passwd-git/: builds
Only in passwd-git/: build.xml
Only in passwd-git/: CHANGELOG.md
Only in passwd-git/: .git
Only in passwd-git/js: ABOUT.js
Only in passwd-git/js: data
Only in passwd-git/js: external
Only in passwd-zip/js: passwd-debug.js
Only in passwd-zip/js: passwd.js
Only in passwd-git/js: PasswdPlugin.js
Only in passwd-git/js: settings
Only in passwd-zip/language/de_DE.UTF-8/LC_MESSAGES: plugin_passwd.mo
Only in passwd-git/language/de_DE.UTF-8/LC_MESSAGES: plugin_passwd.po
Only in passwd-git/language: hu_HU.UTF-8
Only in passwd-zip/language/nl_NL.UTF-8/LC_MESSAGES: plugin_passwd.mo
Only in passwd-git/language/nl_NL.UTF-8/LC_MESSAGES: plugin_passwd.po
Only in passwd-git/: LICENSE
Only in passwd-git/: README.md
Only in passwd-zip/resources/css: passwd.css
Only in passwd-git/resources/css: passwd-main.css
Only in passwd-git/resources/images: icon_lock.xcf

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.