Permalink
Browse files

ppolicy: fix message

  • Loading branch information...
1 parent 8b405cf commit f60512a19d06b4d08b64b6dd8d7004e86aeff1de @eonpatapon committed May 22, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 core/agent/contrib/scripts/mmc-check-expired-passwords-example
View
4 core/agent/contrib/scripts/mmc-check-expired-passwords-example
@@ -86,8 +86,10 @@ __
%s
""" % (new_pass, SUPPORT)
print "Password changed for user %s (%s)" % (uid, new_pass)
- else:
+ elif not mail:
print "User %s has no mail. Can't change password." % uid
+ else:
+ print "Password wasn't changed."
if isExpired and (nbGraceLogins > 1 or nbGraceLogins == -1):
print "Password expired for user %s" % uid

0 comments on commit f60512a

Please sign in to comment.