Project

General

Profile

Cannot add a new user either internal or via LDAP "Login is invalid"

Added by Brian Slack over 9 years ago

I have a fresh install of Redmine on Ubuntu 14.4 with mysql. The admin user can create projects and open issues fine, indeed seems everything works fine except when I go to add a new user.

Each time I try and add a user I get the message "Login is invalid" and in the database I get nothing in the users table but no error messages in the mysql logs. Now if I try with LDAP and add a user I even get auto complete on the name and ldapsearch returns details in the AD.

Now nothing goes into the db yet there might of been success at one time as there were 3 records in there but all with blank details except Anon as the lastname. Sadly I deleted them and have not been able to recreate the blank db entries.

Tailing the log file produces nothing much:

Current user: admin (id=1)
Rendered users/_mail_notifications.html.erb (1.2ms)
Rendered users/_preferences.html.erb (3.9ms)
Rendered users/_form.html.erb (10.4ms)
Rendered users/new.html.erb within layouts/admin (12.4ms)
Rendered admin/_menu.html.erb (3.6ms)
Rendered plugins/clipboard_image_paste/app/views/clipboard_image_paste/_headers.html.erb (1.1ms)
Rendered plugins/clipboard_image_paste/app/views/clipboard_image_paste/_add_form.html.erb (2.3ms)
Rendered layouts/base.html.erb (12.1ms)
Completed 200 OK in 39.3ms (Views: 28.8ms | ActiveRecord: 1.3ms)

So bit stuck what to try next.

RAILS_ENV=production script/about

sh: 1: svn: not found
sh: 1: darcs: not found
sh: 1: hg: not found
sh: 1: cvs: not found
sh: 1: bzr: not found
Environment:
Redmine version 2.6.0.stable
Ruby version 1.9.3-p484 (2013-11-22) [x86_64-linux]
Rails version 3.2.19
Environment production
Database adapter Mysql2
SCM:
Git 1.9.1
Filesystem
Redmine plugins:
clipboard_image_paste 1.9
redmine_slack 0.1


Replies (2)

RE: Cannot add a new user either internal or via LDAP "Login is invalid" - Added by Brian Slack over 9 years ago

Ok still struggling with this - if I tail the log file I get this

Started GET "/auth_sources/autocomplete_for_new_user?term=XXXXX" for 10.155.10.15 at 2015-01-07 20:12:25 +0000
Processing by AuthSourcesController#autocomplete_for_new_user as JSON
Parameters: {"term"=>"XXXXX"}
Current user: admin (id=1)
Completed 200 OK in 13.1ms (Views: 0.5ms | ActiveRecord: 0.3ms)
Started POST "/users" for 10.155.10.15 at 2015-01-07 20:12:35 +0000
Processing by UsersController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"123pDANhpIfedspcv6+Md2HhMLeJsH0a5w9h4i1fsx88XlGAL6Vs=", "user"=>{"login"=>"XXXXXX", "firstname"=>"Tony", "lastname"=>"Tiger", "mail"=>"", "language"=>"en", "admin"=>"1", "auth_source_id"=>"3", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "generate_password"=>"[FILTERED]", "must_change_passwd"=>"1", "mail_notification"=>"only_my_events", "notified_project_ids"=>[""]}, "pref"=>{"no_self_notified"=>"0", "hide_mail"=>"0", "time_zone"=>"", "comments_sorting"=>"asc", "warn_on_leaving_unsaved"=>"1"}, "send_information"=>"1", "continue"=>"Create and continue"}
Current user: admin (id=1)
Rendered users/_mail_notifications.html.erb (1.4ms)
Rendered users/_preferences.html.erb (3.8ms)
Rendered users/_form.html.erb (82.4ms)
Rendered users/new.html.erb within layouts/admin (84.9ms)
Rendered admin/_menu.html.erb (3.5ms)
Rendered plugins/clipboard_image_paste/app/views/clipboard_image_paste/_headers.html.erb (1.1ms)
Rendered plugins/clipboard_image_paste/app/views/clipboard_image_paste/_add_form.html.erb (2.4ms)
Rendered layouts/base.html.erb (12.5ms)
Completed 200 OK in 113.7ms (Views: 100.0ms | ActiveRecord: 4.2ms)

Yet still get an error.

[Solved] RE: Cannot add a new user either internal or via LDAP "Login is invalid" - Added by Brian Slack over 9 years ago

Well I'm going to say it is solved although it does seem very odd to me.

Looks like you cannot have usernames with spaces in so all our AD domain logins are invalid.

There appears a patch some 5 years ago

http://www.redmine.org/issues/811

but looks like the developers felt it was not a good idea !!! Not sure i agree......

    (1-2/2)