Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-02-2008, 12:12 PM
Moderator
 
Posts: 1,209
Default Forced Password Change - Advance Warning Prompt?

Is there a way we are not seeing to have Zimbra prompt users a few days in advance of their having to change their expiring password?

Outlook Connector users often have forgotten their password (or keep it in an email), and need some time to collect their old password--and still get their email in the interim.

There are a few GPOs in Windows that control this behavior there for logins; anything similar in Zimbra?

TIA!

Mark
__________________
___________________________________
L. Mark Stone, CIO


"Uptime. All the time."

477 Congress Street | Portland, ME 04101-3431 | (207) 772-5678

proactive maintenance and monitoring | technology consulting
Zimbra groupware | EMR implementations | private cloud hosting
Reply With Quote
  #2 (permalink)  
Old 12-03-2008, 12:19 AM
Moderator
 
Posts: 7,928
Default

Probably worth a vote on this very old RFE :- Bug 7812 - password aging warning via SMTP
__________________
Reply With Quote
  #3 (permalink)  
Old 12-03-2008, 10:40 AM
Moderator
 
Posts: 1,209
Default

Quote:
Originally Posted by uxbod View Post
Probably worth a vote on this very old RFE :- Bug 7812 - password aging warning via SMTP
Just voted for it, thank you!

Happy Holidays,
Mark
__________________
___________________________________
L. Mark Stone, CIO


"Uptime. All the time."

477 Congress Street | Portland, ME 04101-3431 | (207) 772-5678

proactive maintenance and monitoring | technology consulting
Zimbra groupware | EMR implementations | private cloud hosting
Reply With Quote
  #4 (permalink)  
Old 12-03-2008, 12:39 PM
Moderator
 
Posts: 7,928
Default

Mark,

will have a look at this tomorrow as a simple shell script should be able to accommodate this requirement.

Cheers,

Phil
__________________
Reply With Quote
  #5 (permalink)  
Old 04-16-2009, 09:02 AM
Elite Member
 
Posts: 281
Default

Can this be done by CLI and a cron job for now? I was thinking if you can send an email by CLI and have a script to run daily that would check how long until a password expires and if a certain day generate an email to that user.

dj
Reply With Quote
  #6 (permalink)  
Old 04-17-2009, 01:34 AM
Moderator
 
Posts: 7,928
Default

Okay, I have written something that may be of help. Its not finished as don't have time today. It gets all accounts and if the zimbraMaxPasswordAge > 0 (never expire) then it will query when the password on the account was last changed, add the max password age, and show when the password will need to be changed
Code:
#!/usr/bin/perl

use Time::Local;

open(ZCSGAA, "zmprov gaa |");
while ($account = <ZCSGAA>) {
    chomp($account);

    $zmprov = "zmprov ga " . $account . " zimbraPasswordModifiedTime zimbraPasswordMaxAge";
    open(ZCSGA, "$zmprov |");
    while (<ZCSGA>) {
        s/#.*//; next if /^(\s)*$/;
        chomp($_);
        if (!defined($zpmt)) { ($zpmt) = $_ =~ /zimbraPasswordModifiedTime: (.*)Z/g; }
        if (!defined($zpma)) { ($zpma) = $_ =~ /zimbraPasswordMaxAge: (.*)/g; }
    }
    close(ZCSGA);

    if ($zpma gt 0) {
        ($year, $mon, $day, $hour, $min, $sec) = $zpmt =~ /(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2}).*/;
        $epoch = timelocal($sec,$min,$hour,$day,$mon,$year);
        $changepass = $epoch + ($zpma * 24 * 60 * 60);

        ($sec,$min,$hour,$day,$mon,$year) = localtime($changepass); $year = 1900 + $year; $mon++;

        printf "$account password will need to change on %02d/%02d/%04d %02d:%02d:%02d\n", $day, $mon, $year, $hour, $min, $sec;
    }
}
close(ZCSGAA);
__________________
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.