Creating a fresh substitute for site with LDAP auth and auto enroll

Re: Creating a fresh substitute for site with LDAP auth and auto enroll

ដោយ Visvanath Ratnaweera នៅ
ចំនួនតប៖ 2
រូបភាព Particularly helpful Moodlers រូបភាព Translators
Hi Iñaki

I took a fresch backup (see the settings) and repeated. Still the message is:
"Some problems were detected when checking user data (Trying to restore user 'alisa.sample' from backup file will cause conflict, Trying to restore user 'admin' from backup file will cause conflict)"

I unzipped the backup file. moodle.xml has admin in two places:
<BLOCK>
        <ID>175</ID>
        <NAME>admin</NAME>
        <PAGEID>23</PAGEID>
        <PAGETYPE>course-view</PAGETYPE>
        <POSITION>l</POSITION>
        <WEIGHT>3</WEIGHT>
        <VISIBLE>1</VISIBLE>
        <CONFIGDATA>Tjs=</CONFIGDATA>
        <ROLES_OVERRIDES>
        </ROLES_OVERRIDES>
        <ROLES_ASSIGNMENTS>
        </ROLES_ASSIGNMENTS>
...
      <USER>
        <ID>2</ID>
        <AUTH>manual</AUTH>
        <CONFIRMED>1</CONFIRMED>
        <POLICYAGREED>0</POLICYAGREED>
        <DELETED>0</DELETED>
        <USERNAME>admin</USERNAME>
        <IDNUMBER></IDNUMBER>
        <FIRSTNAME>Site</FIRSTNAME>
        <LASTNAME>Administrator</LASTNAME><code>
there are many users in the form
<USER>
        <ID>1610</ID>
        <AUTH>ldap</AUTH>
        <CONFIRMED>1</CONFIRMED>
        <POLICYAGREED>0</POLICYAGREED>
        <DELETED>0</DELETED>
        <USERNAME>angela.sample</USERNAME>
        <IDNUMBER>angela.sample</IDNUMBER>
        <FIRSTNAME>Angela</FIRSTNAME>
...

Why there are so many users in the backup?

Just to make sure, my original idea of a cleaning the Moodle from old information should work, correct?
ឯកសារភ្ជាប់ anita-bu.png
មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Visvanath Ratnaweera

Re: Creating a fresh substitute for site with LDAP auth and auto enroll

ដោយ Iñaki Arenaza នៅ
រូបភាព Core developers រូបភាព Documentation writers រូបភាព Particularly helpful Moodlers រូបភាព Peer reviewers រូបភាព Plugin developers

Hi Visvanath,

Why there are so many users in the backup?

Because you told moodle to include the course users as part of the backup ញញឹម (see attached image).

Just select 'Keine' ('None') at they won't appear in the backup file at all. Beware this disables the backing up of Exercise and Workshop activities (in Moodle 1.9.x), as Moodle tells you in the next screen of the backup process.

Saludos. Iñaki.

ឯកសារភ្ជាប់ backup.png
មធ្យមភាគនៃរង្វាយតម្លៃ:Useful (1)
ឆ្លើយតបទៅកាន់ Iñaki Arenaza

Re: Creating a fresh substitute for site with LDAP auth and auto enroll

ដោយ Visvanath Ratnaweera នៅ
រូបភាព Particularly helpful Moodlers រូបភាព Translators
How dumb! It clearly says "Users" and "User files".
:-\

The user collisions are gone.

I'm curious to know how user data bahave. Will let you know.

Thanks very much!
មធ្យមភាគនៃរង្វាយតម្លៃ: -