Page 3 of 6 FirstFirst 12345 ... LastLast
Results 21 to 30 of 52

Thread: passwd plugin

  1. #21
    Senior Member
    Join Date
    Nov 2008
    Location
    Hilden, close to Duesseldorf, NRW, Germany, Europe, Earth...
    Posts
    1,070

    Re: passwd plugin

    Hi alstonwillman

    passwd plugin is my child... Currently still being working on changing it so that you have a backend system in the end that allows you to use plugin whatever you need to change the password. Just having too less time in the moment to work on the plugin.

    Best regards

    Andreas
    Using Zarafa 7.2.5-29, Z-Push 2.3.4 with GZip and soon again SMS Support.

  2. #22
    Junior Member
    Join Date
    Jun 2010
    Posts
    9

    Re: passwd plugin

    I'm trying to adapt this plugin to the mapi ways, and now i'm kind of stuck :roll:


    here is what i did so far...
    [code=php:2pi4qixl]<span class="syntaxdefault">
    function*getBody</span><span class="syntaxkeyword">()</span><span class="syntaxdefault">*</span><span class="syntaxkeyword">{

    </span><span class="syntaxdefault">****$username*****</span><span class="syntaxkeyword">=</span><span class="syntaxdefault">*</span><span class="syntaxkeyword">(isset(</span><span class="syntaxdefault">$_POST</span><span class="syntaxkeyword">[</span><span class="syntaxstring">"pwdchange_username"</span><span class="syntaxkeyword">])?</span><span class="syntaxdefault">*$_POST</span><span class="syntaxkeyword">[</span><span class="syntaxstring">"pwdchange_username"</span><span class="syntaxkeyword">]</span><span class="syntaxdefault">*</span><span class="syntaxkeyword">:</span><span class="syntaxdefault">*null</span><span class="syntaxkeyword">);
    </span><span class="syntaxdefault">****$oldpassword**</span><span class="syntaxkeyword">=</span><span class="syntaxdefault">*</span><span class="syntaxkeyword">(isset(</span><span class="syntaxdefault">$_POST</span><span class="syntaxkeyword">[</span><span class="syntaxstring">"pwdchange_oldpw"</span><span class="syntaxkeyword">])</span><span class="syntaxdefault">***</span><span class="syntaxkeyword">?</span><span class="syntaxdefault">*$_POST</span><span class="syntaxkeyword">[</span><span class="syntaxstring">"pwdchange_oldpw"</span><span class="syntaxkeyword">]</span><span class="syntaxdefault">****</span><span class="syntaxkeyword">:</span><span class="syntaxdefault">*null</span><span class="syntaxkeyword">);
    </span><span class="syntaxdefault">****$newpassword**</span><span class="syntaxkeyword">=</span><span class="syntaxdefault">*</span><span class="syntaxkeyword">(isset(</span><span class="syntaxdefault">$_POST</span><span class="syntaxkeyword">[</span><span class="syntaxstring">"pwdchange_newpwd1"</span><span class="syntaxkeyword">])</span><span class="syntaxdefault">*</span><span class="syntaxkeyword">?</span><span class="syntaxdefault">*$_POST</span><span class="syntaxkeyword">[</span><span class="syntaxstring">"pwdchange_newpwd1"</span><span class="syntaxkeyword">]</span><span class="syntaxdefault">**</span><span class="syntaxkeyword">:</span><span class="syntaxdefault">*null</span><span class="syntaxkeyword">);
    </span><span class="syntaxdefault">****$newpassword2*</span><span class="syntaxkeyword">=</span><span class="syntaxdefault">*</span><span class="syntaxkeyword">(isset(</span><span class="syntaxdefault">$_POST</span><span class="syntaxkeyword">[</span><span class="syntaxstring">"pwdchange_newpwd2"</span><span class="syntaxkeyword">])</span><span class="syntaxdefault">*</span><span class="syntaxkeyword">?</span><span class="syntaxdefault">*$_POST</span><span class="syntaxkeyword">[</span><span class="syntaxstring">"pwdchange_newpwd2"</span><span class="syntaxkeyword">]</span><span class="syntaxdefault">**</span><span class="syntaxkeyword">:</span><span class="syntaxdefault">*null</span><span class="syntaxkeyword">);

    </span><span class="syntaxdefault">****if*</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$oldpassword*</span><span class="syntaxkeyword">!=</span><span class="syntaxdefault">*$_SESSION</span><span class="syntaxkeyword">[</span><span class="syntaxstring">"password"</span><span class="syntaxkeyword">])</span><span class="syntaxdefault">*</span><span class="syntaxkeyword">{</span><span class="syntaxdefault">*echo*_</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"Old*Password*is*not*correct! "</span><span class="syntaxkeyword">);
    </span><span class="syntaxdefault">****</span><span class="syntaxkeyword">}</span><span class="syntaxdefault">*elseif*</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$newpassword*</span><span class="syntaxkeyword">==</span><span class="syntaxdefault">*null*</span><span class="syntaxkeyword">||</span><span class="syntaxdefault">*$newpassword2*</span><span class="syntaxkeyword">==</span><span class="syntaxdefault">*null</span><span class="syntaxkeyword">)</span><span class="syntaxdefault">*</span><span class="syntaxkeyword">{</span><span class="syntaxdefault">*echo*_</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"New*Password*missing!"</span><span class="syntaxkeyword">);
    </span><span class="syntaxdefault">****</span><span class="syntaxkeyword">}</span><span class="syntaxdefault">*elseif*</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$newpassword*</span><span class="syntaxkeyword">!=</span><span class="syntaxdefault">*$newpassword2</span><span class="syntaxkeyword">)</span><span class="syntaxdefault">*</span><span class="syntaxkeyword">{</span><span class="syntaxdefault">*echo*_</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"New*Passwords*don't*match"</span><span class="syntaxkeyword">);
    </span><span class="syntaxdefault">****</span><span class="syntaxkeyword">}</span><span class="syntaxdefault">*elseif*</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$username*</span><span class="syntaxkeyword">==</span><span class="syntaxdefault">*null</span><span class="syntaxkeyword">)</span><span class="syntaxdefault">*</span><span class="syntaxkeyword">{</span><span class="syntaxdefault">*echo*_</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"Username*missing"</span><span class="syntaxkeyword">);
    </span><span class="syntaxdefault">****</span><span class="syntaxkeyword">}</span><span class="syntaxdefault">*else*</span><span class="syntaxkeyword">{

    </span><span class="syntaxdefault">************$userstore*</span><span class="syntaxkeyword">=</span><span class="syntaxdefault">*$GLOBALS</span><span class="syntaxkeyword">[</span><span class="syntaxstring">"mapisession"</span><span class="syntaxkeyword">]-></span><span class="syntaxdefault">getDefaultMessageStore</span><span class="syntaxkeyword">();
    </span><span class="syntaxdefault">************$userinfo*</span><span class="syntaxkeyword">=</span><span class="syntaxdefault">*mapi_zarafa_getuser</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$userstore</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">*$username</span><span class="syntaxkeyword">);
    </span><span class="syntaxdefault">************$uid*</span><span class="syntaxkeyword">=</span><span class="syntaxdefault">*bin2hex</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$userinfo</span><span class="syntaxkeyword">[</span><span class="syntaxstring">"userid"</span><span class="syntaxkeyword">]);

    </span><span class="syntaxdefault">************$passchanged*</span><span class="syntaxkeyword">=</span><span class="syntaxdefault">*mapi_zarafa_setuser</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$userstore</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$uid</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$username</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$userinfo</span><span class="syntaxkeyword">[</span><span class="syntaxstring">"fullname"</span><span class="syntaxkeyword">],</span><span class="syntaxdefault">$userinfo</span><span class="syntaxkeyword">[</span><span class="syntaxstring">"emailaddress"</span><span class="syntaxkeyword">],</span><span class="syntaxdefault">$newpassword</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">*0</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">*$userinfo</span><span class="syntaxkeyword">[</span><span class="syntaxstring">"admin"</span><span class="syntaxkeyword">]);

    </span><span class="syntaxdefault">************</span><span class="syntaxcomment">//check*if*all*is*OK*(for*testing*only!!)
    </span><span class="syntaxdefault">************</span><span class="syntaxcomment">//echo*$userstore.",".$uid.",".$username.",".$userin fo["fullname"].",".$userinfo["emailaddress"].",".$newpassword.",*0,*".$userinfo["admin"]."

    ";

    </span><span class="syntaxdefault">************if*</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$passchanged*</span><span class="syntaxkeyword">==</span><span class="syntaxdefault">*false</span><span class="syntaxkeyword">)</span><span class="syntaxdefault">*</span><span class="syntaxkeyword">{
    </span><span class="syntaxdefault">****************echo*</span><span class="syntaxstring">"Password*NOT*Changed!"</span><span class="syntaxkeyword">;
    </span><span class="syntaxdefault">************</span><span class="syntaxkeyword">}</span><span class="syntaxdefault">*else*</span><span class="syntaxkeyword">{
    </span><span class="syntaxdefault">****************echo*</span><span class="syntaxstring">"Password*Changed."</span><span class="syntaxkeyword">;
    </span><span class="syntaxdefault">************</span><span class="syntaxkeyword">}
    </span><span class="syntaxdefault">****</span><span class="syntaxkeyword">}
    }
    </span><span class="syntaxdefault">*</span>[/code:2pi4qixl]

    if i comment out the mapi_zarafa_setuser line and use the echo testing line, all is ok...at least it looks ok.

    what am i missing

  3. #23
    Junior Member
    Join Date
    May 2010
    Posts
    10

    Re: passwd plugin

    Hi,
    is the ldap plugin working for zarafa 6.40.x?
    I have tested it, but always get an error when i try to change the passwd.
    The logfile only get content when starting the ldap-passwd-file from console.

    Regards,
    Volker Lieder

  4. #24
    Junior Member
    Join Date
    Jun 2010
    Posts
    9

    Re: passwd plugin

    With Zarafa v6.40.2, my mapi update for this passwd plugin is finally working now :!: :-D
    I'm using it with multicompany...

    This is how my "dialogs/pwdchange.php" file looks like:

  5. #25
    Member
    Join Date
    Jan 2010
    Location
    Zurich, Switzerland
    Posts
    57

    Re: passwd plugin

    Hi mrzack,

    with your updated pwdchange.php the password change plugin works again on my 6.40.3 server. Great, thank you!

    Best
    Rainer

  6. #26

    Re: passwd plugin

    mrzack,

    also works for

    Product version: 6,40,5,24860
    File version: 24860

    cheers,

  7. #27

    Re: passwd plugin

    After spending hours to get it work properly with LDAP, I just created LDAP plugin but with php code. Code could be cleaner, but works fine !


    plugins/passwd/dialogs/pwdchange.php
    /etc/zarafa/zarafa-ldap-password.php
    I think it's about time that the zarafa team includes this functionality into the base code !
    Jo Goossens

    For any hosted services, please take a look at http://www.hosted-power.be !

  8. #28
    Senior Member
    Join Date
    Sep 2009
    Location
    Munster/Germany
    Posts
    215

    passwd plugin for ldap ms-ads

    the plugin won't work with our MS-ADS (Windows Server 2003 R2)
    changed this to my parameters:
    but get only
    this should be due to:
    so any idea why there are no users found?
    The ldap-settings are correct. We auth our users to this server with these settings ...
    current system : ZARAFA 7.1.13 on Ubuntu 12.04 LTS (x64) with Z-Admin
    user base : WIN 2008 R2 (x64) with ADS-plugin ...
    backups are overvalued ...
    restore is important ...

  9. #29
    Junior Member
    Join Date
    Nov 2009
    Posts
    19

    Re: passwd plugin for ldap ms-ads

    You might want to check if you uid in AD is indeed exact the same as the username for Zarafa. For instance: I use the complete e-mail address as login name in Zarafa (because of multi tenancy). which means the filter works for me.

    with OpenLDAP by the way. But that shouldn't make a difference

  10. #30

    Re: passwd plugin

    EDIT: Fixed!

    zarafa 7.0.0.27791
    extracted to my plugins folder (had to create it) /etc/zarafa/webaccess-ajax/plugins/passwd
    made sure that plugins was enabled in my webaccess-ajax/config.php

    Anything else I need to do to make it work?

    ---

    Found that there was a plugins folder in /usr/share/zarafa-webaccess/ so I mv'ed the passwd folder there, and now it works.

    Would be great if I could have found where the plugins folder was - eventually used locate and found it that way.

Page 3 of 6 FirstFirst 12345 ... LastLast

Similar Threads

  1. Migrate from unix plugin to DB plugin
    By pieter96 in forum Installation, Configuration and Maintenance
    Replies: 1
    Last Post: 14-10-2013, 09:57 AM
  2. passwd plugin for ldap ..
    By zhay in forum PHP Development Archives
    Replies: 0
    Last Post: 24-08-2010, 07:55 AM
  3. zarafa-passwd not working
    By n62its in forum Installation and Configuration Archives
    Replies: 1
    Last Post: 25-05-2010, 04:04 PM
  4. Migrate user from DB-Plugin to LDAP-Plugin
    By borishalter in forum Migration Archives
    Replies: 3
    Last Post: 30-03-2010, 12:36 AM
  5. Migrate user from DB-Plugin to LDAP-Plugin
    By borishalter in forum Installation and Configuration Archives
    Replies: 0
    Last Post: 08-03-2010, 06:14 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •