Results 1 to 6 of 6

Thread: Forced Password Change - Advance Warning Prompt?

  1. #1
    LMStone's Avatar
    LMStone is offline Moderator
    Join Date
    Sep 2006
    Location
    477 Congress Street | Portland, ME 04101
    Posts
    1,373
    Rep Power
    10

    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

  2. #2
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Probably worth a vote on this very old RFE :- Bug 7812 - password aging warning via SMTP

  3. #3
    LMStone's Avatar
    LMStone is offline Moderator
    Join Date
    Sep 2006
    Location
    477 Congress Street | Portland, ME 04101
    Posts
    1,373
    Rep Power
    10

    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

  4. #4
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Mark,

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

    Cheers,

    Phil

  5. #5
    dljordaneku is offline Elite Member
    Join Date
    Sep 2007
    Location
    Richmond, Ky
    Posts
    281
    Rep Power
    7

    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

  6. #6
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    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);

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. New User/Must Change Password oddity...
    By ssatre in forum Administrators
    Replies: 5
    Last Post: 07-25-2009, 11:19 PM
  2. [SOLVED] Error running mailboxd after script backup
    By ttortosa in forum Administrators
    Replies: 5
    Last Post: 10-22-2008, 01:33 AM
  3. how to prompt to change the password
    By chandu in forum Administrators
    Replies: 5
    Last Post: 05-26-2008, 03:03 AM
  4. [SOLVED] Upgraded to 5.0 OSS - Sendmail Problem
    By Chewie71 in forum Installation
    Replies: 11
    Last Post: 12-28-2007, 07:07 PM
  5. AD Ctrl-alt-del Change Password Breaks Zimbra
    By pgp4privacy in forum Administrators
    Replies: 3
    Last Post: 10-12-2007, 02:20 AM

Posting Permissions

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