Update of /cvsroot/mailman/mailman/Mailman
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17114

Modified Files:
      Tag: Release_2_1-maint
        Utils.py 
Log Message:
Secure_MakeRandomPassword(): Log an error when secure passwords were requested
but urandom is not available.


Index: Utils.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Utils.py,v
retrieving revision 2.45.2.10
retrieving revision 2.45.2.11
diff -u -d -r2.45.2.10 -r2.45.2.11
--- Utils.py    30 Dec 2004 20:49:30 -0000      2.45.2.10
+++ Utils.py    31 Dec 2004 00:02:57 -0000      2.45.2.11
@@ -325,6 +325,9 @@
                         # We have no available source of cryptographically
                         # secure random characters.  Log an error and fallback
                         # to the user friendly passwords.
+                        from Mailman.Logging.Syslog import syslog
+                        syslog('error',
+                               'urandom not available, passwords not secure')
                         return UserFriendly_MakeRandomPassword(length)
                 newbytes = os.read(fd, length - bytesread)
             bytes.append(newbytes)

_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to