Forum LAMS for Tech-Heads - General Forum: Invalid authentication method


 
You may request notification for Invalid authentication method.
Search: 

1: Invalid authentication method
06/27/07 06:14 PM
[ Reply | Forward ]
Hey All,

I am having trouble importing users using the excel spreadsheet that have any value in authentication_method_id. When I submit the sheet, I get back:

0 users were created successfully.
Row 2: Invalid authentication method. ("3")
Row 3: Invalid authentication method. ("3")
Row 4: Login is already taken. (dross)
Row 5: Invalid authentication method. ("3")

I have tried the following combinations and all of them give the same error: 3, "3", LDAP.

The import file was saved from Excel 2003 and I'm submitting into LAMS 2.0.3 running on a CentOS 5.0 host.

Is there any way to turn up the debugging further?

09:34:55,858 [http-0.0.0.0-8080-4:] DEBUG org.lamsfoundation.lams.integration.security.SingleSignOn - Process request for '/lams/admin/importexcelsave.do'
09:34:55,858 [http-0.0.0.0-8080-4:] DEBUG org.lamsfoundation.lams.integration.security.SingleSignOn - Checking for SSO cookie
09:34:55,859 [http-0.0.0.0-8080-4:] DEBUG org.lamsfoundation.lams.integration.security.SingleSignOn - Checking for cached principal for ff808081136aa8ab01136aae7707004b
09:34:55,859 [http-0.0.0.0-8080-4:] DEBUG org.lamsfoundation.lams.integration.security.SingleSignOn - Found cached principal 'sysadmin' with auth type 'FORM'
09:34:55,859 [http-0.0.0.0-8080-4:] DEBUG org.lamsfoundation.lams.web.session.SessionManager - SessionManager: cookie is not null, currentSessionId=C8D0BD1CE16486108A2DA80CBF2CA4FD session=org.lamsfoundation.lams.web.session.SessionManager$SessionImpl@1799932
09:34:55,860 [http-0.0.0.0-8080-4:] DEBUG org.lamsfoundation.lams.web.filter.LocaleFilter - Locale set from user lang/country is en,AU
09:34:55,860 [http-0.0.0.0-8080-4:] DEBUG org.lamsfoundation.lams.util.CustomizedOpenSessionInViewFilter - Using SessionFactory 'coreSessionFactory' for OpenSessionInViewFilter
09:34:55,860 [http-0.0.0.0-8080-4:] DEBUG org.lamsfoundation.lams.util.CustomizedOpenSessionInViewFilter - Opening single Hibernate Session in OpenSessionInViewFilter
09:34:55,932 [http-0.0.0.0-8080-4:] DEBUG org.lamsfoundation.lams.admin.service.ImportService - sheet rows: 0..4
09:34:55,933 [http-0.0.0.0-8080-4:] DEBUG org.lamsfoundation.lams.admin.service.ImportService - starting row: 1
09:34:56,006 [http-0.0.0.0-8080-4:] DEBUG org.lamsfoundation.lams.admin.service.ImportService - hasError: true
09:34:56,007 [http-0.0.0.0-8080-4:] DEBUG org.lamsfoundation.lams.admin.service.ImportService - starting row: 2
09:34:56,041 [http-0.0.0.0-8080-4:] DEBUG org.lamsfoundation.lams.admin.service.ImportService - hasError: true
09:34:56,041 [http-0.0.0.0-8080-4:] DEBUG org.lamsfoundation.lams.admin.service.ImportService - starting row: 3
09:34:56,055 [http-0.0.0.0-8080-4:] DEBUG org.lamsfoundation.lams.admin.service.ImportService - hasError: true
09:34:56,055 [http-0.0.0.0-8080-4:] DEBUG org.lamsfoundation.lams.admin.service.ImportService - starting row: 4
09:34:56,089 [http-0.0.0.0-8080-4:] DEBUG org.lamsfoundation.lams.admin.service.ImportService - hasError: true
09:34:56,089 [http-0.0.0.0-8080-4:] DEBUG org.lamsfoundation.lams.admin.service.ImportService - found 4 users in spreadsheet.
09:34:56,211 [http-0.0.0.0-8080-4:] DEBUG org.lamsfoundation.lams.util.CustomizedOpenSessionInViewFilter - Closing single Hibernate Session in OpenSessionInViewFilter

Also, is there a way of importing CSV files as opposed to an XLS sheet?

Posted by Darryl Ross

2: Re: Invalid authentication method
In response to 1 06/27/07 06:44 PM
[ Reply | Forward ]
Ahh, you've found a bug. The value that will work is 'MQ-LDAP' (no quotes). The spreadsheet column is headed 'authentication_method_id', but the code is actually looking for 'authentication_method_name', which is listed as 'MQ-LDAP' in the database. I'll start up an issue for this.

There's no support for CSV files at the moment. You might able to import your CSV file into a spreadsheet though.

Posted by Jun-Dir Liew

3: Re: Re: Invalid authentication method
In response to 2 06/27/07 09:11 PM
[ Reply | Forward ]
Thanks Jun-Dir, that works.

My query about the CSV files is because we want to be able to automatically import our LDAP users into LAMS using a python script. I've got pyexcelerator working, but CSV would be much easier :)

Posted by Darryl Ross

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum