Security declaration of non-existing method
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Products.LDAPUserFolder |
Fix Committed
|
Low
|
Unassigned |
Bug Description
I was installing LDAPUserFolder 2.26 on Centos 6.4 (Zenoss 4.2.4 guide on http://
WARNING:Init:Class Products.
I was browsing through the code for LDAPUserFolder and noticed a inconsistency (for what I could understand). In Products.
security.
def getEncryptedBin
""" Return a hashed bind password for safe use in forms etc.
"""
return sha_new(
It seems as though this was the cause for the error, so I changed the def call to getEncryptedPas
This is a patch I have made:
--- Products.
+++ Products.
@@ -1991,7 +1991,7 @@
return getattr(conn, '_uri', '-- not connected --')
security.
- def getEncryptedBin
+ def getEncryptedPas
""" Return a hashed bind password for safe use in forms etc.
"""
return sha_new(
Thanks for the report.
The messages you saw were warnings, not errors, they don't affect the functionality in any way.
Your patch has a serious issue. You rename the method but you apparently never touched those places where the method is called to change the invocation.
A much simpler and less dangerous solution is to change the method name in the security declaration.
I have checked in a fix:
https:/ /git.dataflake. org/cgit/ Products. LDAPUserFolder/ commit/ ?id=c00a65db32d 318080b0e7701fa 668eed48ccb05c