Hi Lars,<br><br>My 2 cents.<br><br>When loncapa creates a user, it also writes it to the database called loncapa in a table called allusers running under mysql. To view the user (if you have terminal access).<br><br>1. mysql -u www -p loncapa<br>
    (mysql will prompt for a password which can be found in /etc/httpd/conf/loncapa_apache.conf in the line <br>    PerlSetVar       lonSqlAccess   <passwordentry><br>    where passwordentry is the entry for the password.<br>
2. When you have successfully logged in into mysql, type<br>   select * from allusers where username="lars_jensen";<br>   mysql should spit out the table contents of the username.<br>3. Now, this I am not sure whether deleting the username will do any good or the thing to do. (The experts can comment on this.)<br>
   delete from allusers where username="lars_jensen";<br><br>-hk<br><br><div class="gmail_quote">On Sun, Jun 6, 2010 at 11:58 PM, Lars Jensen <span dir="ltr"><<a href="mailto:ljensen@mail.tmcc.edu">ljensen@mail.tmcc.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Stuart,<br>
<br>
Thanks again for the reply. Please see below:<br>
<div><div></div><div class="h5"><br>
On Sun, Jun 6, 2010 at 10:03 AM, Stuart Raeburn <<a href="mailto:raeburn@msu.edu">raeburn@msu.edu</a>> wrote:<br>
> Lars,<br>
><br>
>> ....I don't understand how it can be that a student can login<br>
>> (authenticating through ldap) without the student's directory being<br>
>> created under lonUsers.<br>
><br>
> If a domain has configured self-creation of accounts for institutional login<br>
> (e.g., with authentication type: local) LON-CAPA can authenticate the user,<br>
> but the user will not receive an account (with creation of a user directory<br>
> in /home/httpd/lonUsers on the primary library server for the domain), until<br>
> a "Create LON-CAPA account" button has been clicked on a screen displayed<br>
> after username and password have been submitted via the standard log-in<br>
> screen (and were authenticated).  This intermediate screen also allows the<br>
> user to provide user information (e.g., first name, last name, which were<br>
> not retrieved from an institutional source such as LDAP), as permitted by<br>
> the domain configuration.<br>
><br>
> If the user is authenticated but has no LON-CAPA account, the following will<br>
> be logged in /home/httpd/perl/logs/lonnet.log on the server hosting the user<br>
> session:<br>
><br>
> "User <username> at <domain> authorized by <primary library server>, but<br>
> needs account"<br>
><br>
> Although the user has authenticated he/she does not have a LON-CAPA session<br>
> until the "Create LON-CAPA account" is clicked, and the information<br>
> submitted from that page has been verified.<br>
><br>
> Note: for account creation to be successful, the domain configuration has to<br>
> have appropriate settings (see earlier post:<br>
>  <a href="http://mail.lon-capa.org/pipermail/lon-capa-admin/2010-June/002387.html" target="_blank">http://mail.lon-capa.org/pipermail/lon-capa-admin/2010-June/002387.html</a>),<br>
> and the user's institutional status must satisfy any constraints defined for<br>
> the domain.<br>
<br>
</div></div>All my settings are as you have suggested. For simplicity, I haven't<br>
defined any institutional affiliation. After I click the "Create<br>
LON-CAPA account" button, I get this error:<br>
<br>
Account creation failed for username: lars_jensen in domain: tmcc.<br>
Error: error: error: 2 tie(GDBM) Failed while attempting put<br>
<br>
and when I look in /home/httpd/perl/logs/lonnet.log it lists this entry:<br>
<br>
Call to modify user tmcc, lars_jensen, , localauth, Lars, , Jensen,<br>
(forceid: ; candelete: none) desiredhome not specified by  at  in<br>
domain<br>
<br>
In other words, for some reason lon-capa thinks that lars_jensen is an<br>
existing user, even thougg the lars_jensen directory doesn't exist<br>
under lonUsers.<br>
<div><div></div><div class="h5"><br>
Lars.<br>
<br>
_______________________________________________<br>
LON-CAPA-admin mailing list<br>
<a href="mailto:LON-CAPA-admin@mail.lon-capa.org">LON-CAPA-admin@mail.lon-capa.org</a><br>
<a href="http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin" target="_blank">http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin</a><br>
</div></div></blockquote></div><br>