On Sunday, July 16, 2017 at 8:34:47 PM UTC-7, david.johnstone wrote:
>
> Good Afternoon,
>
>  
>
> I am having trouble getting Account Manager plugin working.
>
>  
>
> My trac.ini setting are copied direct from 
> https://trac-hacks.org/wiki/CookBook/AccountManagerPluginConfiguration 
> (only change is the file name of the htpassword file.  I am running Trac 
> 1.2.2 and the latest version from AccountManager from Trunk.  I get the 
> same error message if I am running tracd or via Apache 2.4.
>
>  
>
> The error message I get is “ConfigurationError: Cannot find an 
> implementation of the <code>IPasswordHashMethod</code> interface named 
> <code>HtDigestHashMethod</code>. Please check that the Component is enabled 
> or update the option <code>[account-manager] hash_method</code> in 
> trac.ini.”
>
>  
>
>  
>
> My setting are 
>
>  
>
> # -*- coding: utf-8 -*-
>
>  
>
> [account-manager]
>
> password_store = HtPasswdStore
>
> htpasswd_hash_type = md5
>
> htpasswd_file = C:\Locata\trac\conf\trac.passwd
>
> reset_password = false
>
>  
>
> [attachment]
>
> max_size = 262144
>
> max_zip_size = 2097152
>
> render_unsafe_content = disabled
>
>  
>
> [browser]
>
> color_scale = enabled
>
> downloadable_paths = /trunk,/branches/*,/tags/*
>
> hide_properties = svk:merge
>
> intermediate_color = 
>
> intermediate_point = 
>
> newest_color = (255, 136, 136)
>
> oldest_color = (136, 136, 255)
>
> oneliner_properties = trac:summary
>
> render_unsafe_content = disabled
>
> wiki_properties = trac:description
>
>  
>
> [changeset]
>
> max_diff_bytes = 10000000
>
> max_diff_files = 0
>
> wiki_format_messages = enabled
>
>  
>
> [components]
>
> acct_mgr.admin.* = enabled
>
> acct_mgr.api.* = enabled
>
> acct_mgr.db.sessionstore = disabled
>
> acct_mgr.htfile.htdigeststore = disabled
>
> acct_mgr.htfile.htpasswdstore = enabled
>
> acct_mgr.http.* = disabled
>
> acct_mgr.notification.* = enabled
>
> acct_mgr.pwhash.* = disabled
>
> acct_mgr.register.* = enabled
>
> acct_mgr.svnserve.svnservepasswordstore = disabled
>
> acct_mgr.web_ui.* = enabled
>
> acct_mgr.web_ui.resetpwstore = disabled
>
> datasaver.* = enabled
>
> tracopt.versioncontrol.svn.* = enabled
>
> tracdragdrop.* = enabled
>
> tracfullblog.* = enabled
>
> tractoc.* = enabled
>
> tracwysiwyg.* = enabled
>
>  
>
>  
>
> -=-=-=-=-=-=-=-=-=-=-=-
>
>  
>
> Traceback (most recent call last):
>
>   File "c:\python27\lib\site-packages\trac\web\api.py", line 701, in 
> send_error
>
>     add_stylesheet(self, 'common/css/code.css')
>
>   File "c:\python27\lib\site-packages\trac\web\chrome.py", line 152, in 
> add_stylesheet
>
>     href = chrome_resource_path(req, filename)
>
>   File "c:\python27\lib\site-packages\trac\web\chrome.py", line 367, in 
> chrome_resource_path
>
>     elif filename.startswith('common/') and 'htdocs_location' in 
> req.chrome:
>
>   File "c:\python27\lib\site-packages\trac\web\api.py", line 491, in 
> __getattr__
>
>     value = self.callbacks[name](self)
>
>   File "c:\python27\lib\site-packages\trac\web\chrome.py", line 818, in 
> prepare_request
>
>     for contributor in self.navigation_contributors:
>
>   File "c:\python27\lib\site-packages\trac\core.py", line 90, in extensions
>
>     components = [component.compmgr[cls] for cls in classes]
>
>   File "c:\python27\lib\site-packages\trac\core.py", line 220, in 
> __getitem__
>
>     component = cls(self)
>
>   File "c:\python27\lib\site-packages\trac\core.py", line 152, in __call__
>
>     self.__init__()
>
>   File "build\bdist.win32\egg\acct_mgr\web_ui.py", line 77, in __init__
>
>     self.store = ResetPwStore(self.env)
>
>   File "c:\python27\lib\site-packages\trac\core.py", line 152, in __call__
>
>     self.__init__()
>
>   File "build\bdist.win32\egg\acct_mgr\web_ui.py", line 47, in __init__
>
>     super(ResetPwStore, self).__init__()
>
>   File "build\bdist.win32\egg\acct_mgr\db.py", line 29, in __init__
>
>     self.hash_method_enabled
>
>   File "build\bdist.win32\egg\acct_mgr\db.py", line 119, in 
> hash_method_enabled
>
>     self.hash_method
>
>   File "c:\python27\lib\site-packages\trac\config.py", line 888, in __get__
>
>     option=tag.code("[%s] %s" % (self.section, self.name))))
>
> ConfigurationError: Cannot find an implementation of the 
> <code>IPasswordHashMethod</code> interface named 
> <code>HtDigestHashMethod</code>. Please check that the Component is enabled 
> or update the option <code>[account-manager] hash_method</code> in trac.ini.
>
>  
>

I committed a possible fix in r16714:
https://trac-hacks.org/changeset/16714 

Could you please test it and report back?

Thanks,
- Ryan

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to