From m.kruse at ostfalia.de Wed Sep 23 07:37:41 2026 From: m.kruse at ostfalia.de (Kruse, Marcel) Date: Wed, 23 Sep 2026 11:37:41 +0000 Subject: [LON-CAPA-admin] No user data imported / available after account creation Message-ID: <4f45f6ee85de442b82e116c7c1f4cc98@ostfalia.de> Good afternoon from Wolfenb?ttel, we encountered a problem that for some accounts created via self-enrollment in specific courses over the last few days, user data (first name, last name, email) was not imported. The automatic LDAP sync apparently failed, so we only have the user IDs right now. Is there a way to force a re-sync via LDAP to pull the missing data, or do we have to fix this manually? Thanks in advance for any help. Kind regards, Marcel Kruse ____________________________________ B. Sc. Marcel Kruse Wissenschaftlicher Mitarbeiter Ostfalia - Hochschule f?r angewandte Wissenschaften Salzdahlumer Str. 46/48 38302 Wolfenb?ttel B?ro: Am Exer 2, Raum 72 Tel.: 05331/939-31750 Mobil: 0163/4469956 -------------- next part -------------- An HTML attachment was scrubbed... URL: From raeburn at msu.edu Wed Sep 23 11:56:43 2026 From: raeburn at msu.edu (Raeburn, Stuart) Date: Wed, 23 Sep 2026 15:56:43 +0000 Subject: [LON-CAPA-admin] No user data imported / available after account creation In-Reply-To: <4f45f6ee85de442b82e116c7c1f4cc98@ostfalia.de> References: <4f45f6ee85de442b82e116c7c1f4cc98@ostfalia.de> Message-ID: Marcel, LON-CAPA supports automated updates of user information from an institutional data source such as LDAP. See: https://vita.ostfalia.de/adm/help/Domain_Configuration_Auto_Updates.hlp This does require the allusers_info() subroutine in /home/httpd/lib/perl/localenroll.pm to have been customized to query LDAP. Documentation for the allusers_info() routine is available in the uncustomized version of that file: /home/httpd/lib/perl/localenroll-std.pm via: perldoc /home/httpd/lib/perl/localenroll-std.pm Anyway, as regards configuration via the web GUI: Select the Domain Coordinator role in your domain, and use: Main Menu > Set domain configuration > Display ("Auto-update settings checked"). Choose: Auto-update active? Yes Update information in classlists? Yes Skip updates for users without active or future roles? Yes Skip updates for inactive users? Yes [inactive = no activity in last _____ days Assuming all these users with incomplete user information have logged into LON-CAPA since they self-enrolled you could set the number of days in the " no activity in last _____ days" to a number that would encompass the time period during which LDAP data had *not* been retrieved during account creation. You also need to check checkboxes for user account information which can be updated from your institutional data source. Possible data fields are: Last Name, First Name, Middle Name, Generation, E-mail address, Student/Employee ID Push "Save Changes". If you have previously created institutional status types (e.g., instructor, student etc.) via; Main Menu > Set domain configuration > Display (Default authentication/language/timezone/portal/types checked) then you can specify which types of user account information may be updated for each status type. (You'd also want the corresponding status type to be available from LDAP). There is an entry for Autoupdate.pl in /etc/cron.d/loncapa which will run it daily (as the www user) at 3:30 am local time. If you run the Autoupdate.pl script directly from the command line, after updating your domain configuration as described above, and checking that the allusers_info() routine in localenroll.pm has been customized to obtain the missing account information, make sure you run it as the www user, and not as root. Autoupdate.pl records what it did in /home/httpd/perl/logs/autoupdate.log. If that file is currently absent that means "Auto-update active" is currently not set in your domain (or set to 0). Stuart Raeburn ________________________________________ From: LON-CAPA-admin on behalf of Kruse, Marcel via LON-CAPA-admin Sent: Wednesday, September 23, 2026 7:37 AM To: lon-capa-admin at mail.lon-capa.org Cc: stefan.droeschler at sl.ethz.ch Subject: [LON-CAPA-admin] No user data imported / available after account creation Good afternoon from Wolfenb?ttel, we encountered a problem that for some accounts created via self-enrollment in specific courses over the last few days, user data (first name, last name, email) was not imported. The automatic LDAP sync apparently failed, so we only have the user IDs right now. Is there a way to force a re-sync via LDAP to pull the missing data, or do we have to fix this manually? Thanks in advance for any help. Kind regards, Marcel Kruse ____________________________________ B. Sc. Marcel Kruse Wissenschaftlicher Mitarbeiter Ostfalia - Hochschule f?r angewandte Wissenschaften Salzdahlumer Str. 46/48 38302 Wolfenb?ttel B?ro: Am Exer 2, Raum 72 Tel.: 05331/939-31750 Mobil: 0163/4469956