Modify

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#8928 closed defect (duplicate)

Registering new User fails

Reported by: anonymous Owned by: Steffen Hoffmann
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords: user registration
Cc: Trac Release: 0.12

Description

Hi,

I tried to install the AccountManagerPlugin for trac but it does not work here :(

Trac 0.12.2 AccountManagerPlugin: 0.3dev-r10342

When I use the "Register"-option as a non-logged-in user I can enter some data but it results in following error: AttributeError: 'NoneType' object has no attribute 'strip'

When I create a new useraccount in the admin-area it works without an error but the overview shows only the accountname, the name and the e-mail-field are empty. Those users can't login.

I want to use the htpasswdstore. Users manually written in the file can login sucessfully and use trac.

I think there is a problem in my configuration, but I can't find it.

Some lines from the trac.ini:

[account-manager]
account_changes_notify_addresses = someone@example.com
authentication_url = 
force_passwd_change = true
generated_password_length = 8
hash_method = HtDigestHashMethod
htdigest_realm = 
htpasswd_hash_type = crypt
notify_actions = new,change,delete
password_file = /srv/pwd/trac-h.users
password_format = 
password_store = HtPasswdStore
persistent_sessions = False
refresh_passwd = False
user_lock_max_time = 0
verify_email = true

[components]
acct_mgr.admin.accountmanageradminpages = enabled
acct_mgr.api.accountmanager = enabled
acct_mgr.db.sessionstore = disabled
acct_mgr.guard.accountguard = enabled
acct_mgr.htfile.htdigeststore = disabled
acct_mgr.htfile.htpasswdstore = enabled
acct_mgr.http.httpauthstore = disabled
acct_mgr.notification.accountchangelistener = enabled
acct_mgr.notification.accountchangenotificationadminpanel = enabled
acct_mgr.pwhash.htdigesthashmethod = enabled
acct_mgr.pwhash.htpasswdhashmethod = enabled
acct_mgr.svnserve.svnservepasswordstore = disabled
acct_mgr.web_ui.accountmodule = enabled
acct_mgr.web_ui.emailverificationmodule = enabled
acct_mgr.web_ui.loginmodule = enabled
acct_mgr.web_ui.registrationmodule = enabled
acct_mgr.web_ui.resetpwstore = enabled

and some files from the apache config:

	<Location "/login">
		AuthType Basic
		AuthName "- h -"
		AuthUserFile /srv/pwd/trac-h.users
		Require valid-user
	</Location>

Seems to match the documentation?

Attachments (0)

Change History (2)

comment:1 Changed 13 years ago by Steffen Hoffmann

Keywords: user registration added
Resolution: duplicate
Status: newclosed

I'm all ears, but this is a DEVELOPMENT ticket system. You say you most probably have a local installation/configuration issue, but you still declare it a bug report. Sorry guys, I don't get it. Why can't you use the mailing list for support request at first?

As long as there is no evidence of a real bug luring in the corner, and no enhancement request, and no task to do (these are the only possible ticket types here), just use alternative communication, please. And if you feel stronly in need of a ticket, why don't you provide a contact? How could I know you'll read whatever I write to help you? I have similar tickets open for months without a feedback from the reporter, and I can't reach him/her by email directly as well. This is not as enjoyable as it could be, you see?

Finally, and most important, please use the ticket search. It's always possible, that someone else had the same problem before and already reported it: You'll find most relevant information in #8925 accompanied by a hint to changeset [10370] that fixed this issue instantly, so most likely you'll be happy after an upgrade to that revision. I still do invite you to report back your findings - to #8925 as well.

Thanks for you interest in AcctMgr and for confidence in our support here. (I'll comment on your configuration with the following comment.)

comment:2 in reply to:  description Changed 13 years ago by Steffen Hoffmann

Replying to anonymous:

![...] Trac 0.12.2 AccountManagerPlugin: 0.3dev-r10342

When I use the "Register"-option as a non-logged-in user I can enter some data but it results in following error: AttributeError: 'NoneType' object has no attribute 'strip'

Ok, issue known, fixed. What's next? ;-)

When I create a new useraccount in the admin-area it works without an error but the overview shows only the accountname, the name and the e-mail-field are empty. Those users can't login.

See below for some things, that may help resolving this.

I want to use the htpasswdstore. Users manually written in the file can login sucessfully and use trac.

Fine, but why do you cite Apache config then? HtPasswdStore is meant for working with AcctMgr's own login page (you did enable it). Apache HTTPAuth and Trac's Login are only interfering here, if enabled. There can only be one method at a given time.

I think there is a problem in my configuration, but I can't find it.

Some lines from the trac.ini:

[account-manager]
account_changes_notify_addresses = someone@…
authentication_url =

not needed here (httpauthstore)

force_passwd_change = true
generated_password_length = 8
hash_method = HtDigestHashMethod

not needed for htpasswd (sessionstore)

htdigest_realm =

not needed for htpasswd

htpasswd_hash_type = crypt

ok, but there are more secure alternatives especially for older systems (i.e. sha1)

notify_actions = new,change,delete
password_file = /srv/pwd/trac-h.users
password_format =

where did you find this one?

password_store = HtPasswdStore

ok, this is important and correct

persistent_sessions = False
refresh_passwd = False
user_lock_max_time = 0
verify_email = true

you'll need a working notification system to rely on, ok?

[components] acct_mgr.admin.accountmanageradminpages = enabled ![...]

Nothing seriously wrong here, but be sure to disable trac.web.auth.loginmodule as mentioned above.

and some files from the apache config:

As mentioned above, you'll not want Http basic auth...

Seems to match the documentation?

Not at all. But I hope, you already see it on your own by now.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Steffen Hoffmann.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.