Quantcast
Channel: DOCU - Foren
Viewing all 6541 articles
Browse latest View live

Administration - Installation - Core: Re: Problem with a request : Crash System

$
0
0
Zitat (Laurent BARDET (Laurent))


After analysis it is a problem with MySql.


The CPU is 100% consumed by MySql.


The request that crashes the system is:



  • $query = 'SELECT COUNT(DISTINCT(usr_id)) as num FROM rbac_ua '.



This seems like a very simple query and should not take a long time on a decent system, even with 300'000 users. Are you sure this is the query that locks up your installation? What happens if you run it by yourself?

If it really does run for a long time, it would be interesting to see the execution plan for the query. Please post the output of the following query in this case:
EXPLAIN SELECT COUNT(DISTINCT(usr_id)) as num FROM rbac_ua;


Administration - Installation - Core: Re : Re: Problem with a request : Crash System

$
0
0
Thank you for your help...

First of all, just find here the result of the SHOW FULL PROCESS LIST....



----------------------------------------------+----------+


| Id    | User  | Host      | db    | Command | Time | State        | Info                                                                                                                                     | Progress |


+-------+-------+-----------+-------+---------+------+--------------+------------------------------                                                              ----------------------------------------------+----------+


|  6405 | root  | localhost | NULL  | Query   |    0 | init         | SHOW FULL PROCESSLIST                                                                                                                    |    0.000 |


| 17846 | ilias | localhost | ilias | Query   |   38 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 17855 | ilias | localhost | ilias | Query   |   38 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (45757) |    0.000 |


| 17862 | ilias | localhost | ilias | Query   |   38 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 17867 | ilias | localhost | ilias | Query   |   37 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 17875 | ilias | localhost | ilias | Query   |   37 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 17877 | ilias | localhost | ilias | Query   |   36 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 17878 | ilias | localhost | ilias | Query   |   36 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 17879 | ilias | localhost | ilias | Query   |   36 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 17880 | ilias | localhost | ilias | Query   |   35 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 17888 | ilias | localhost | ilias | Query   |   35 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 17937 | ilias | localhost | ilias | Query   |   34 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 17938 | ilias | localhost | ilias | Query   |   33 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 17941 | ilias | localhost | ilias | Query   |   33 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 17944 | ilias | localhost | ilias | Query   |   31 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 17946 | ilias | localhost | ilias | Query   |   31 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 17957 | ilias | localhost | ilias | Query   |   31 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 17964 | ilias | localhost | ilias | Query   |   31 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 17973 | ilias | localhost | ilias | Query   |   31 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 17980 | ilias | localhost | ilias | Query   |   31 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 17981 | ilias | localhost | ilias | Query   |   30 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 17994 | ilias | localhost | ilias | Query   |   30 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18003 | ilias | localhost | ilias | Query   |   30 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18013 | ilias | localhost | ilias | Query   |   29 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18021 | ilias | localhost | ilias | Query   |   29 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18031 | ilias | localhost | ilias | Query   |   27 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18033 | ilias | localhost | ilias | Query   |   27 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18057 | ilias | localhost | ilias | Query   |   26 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18062 | ilias | localhost | ilias | Query   |   26 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18068 | ilias | localhost | ilias | Query   |   25 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18070 | ilias | localhost | ilias | Query   |   25 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18071 | ilias | localhost | ilias | Query   |   25 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18114 | ilias | localhost | ilias | Query   |   24 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18116 | ilias | localhost | ilias | Query   |   24 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18117 | ilias | localhost | ilias | Query   |   24 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18123 | ilias | localhost | ilias | Query   |   24 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18129 | ilias | localhost | ilias | Query   |   23 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18136 | ilias | localhost | ilias | Query   |   23 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18137 | ilias | localhost | ilias | Query   |   22 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18138 | ilias | localhost | ilias | Query   |   22 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18139 | ilias | localhost | ilias | Query   |   22 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18140 | ilias | localhost | ilias | Query   |   22 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18142 | ilias | localhost | ilias | Query   |   22 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18148 | ilias | localhost | ilias | Query   |   19 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18149 | ilias | localhost | ilias | Query   |   19 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18150 | ilias | localhost | ilias | Query   |   19 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18157 | ilias | localhost | ilias | Query   |   19 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18167 | ilias | localhost | ilias | Query   |   18 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18168 | ilias | localhost | ilias | Query   |   18 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18191 | ilias | localhost | ilias | Query   |   17 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18195 | ilias | localhost | ilias | Query   |   17 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18197 | ilias | localhost | ilias | Query   |   17 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (81956) |    0.000 |


| 18198 | ilias | localhost | ilias | Query   |   17 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18207 | ilias | localhost | ilias | Query   |   16 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (86756) |    0.000 |


| 18212 | ilias | localhost | ilias | Query   |   16 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (86756) |    0.000 |


| 18213 | ilias | localhost | ilias | Query   |   16 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18214 | ilias | localhost | ilias | Query   |   16 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18215 | ilias | localhost | ilias | Query   |   16 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18219 | ilias | localhost | ilias | Query   |   13 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18228 | ilias | localhost | ilias | Query   |   13 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18229 | ilias | localhost | ilias | Query   |   13 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18245 | ilias | localhost | ilias | Query   |   12 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18249 | ilias | localhost | ilias | Query   |   11 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18250 | ilias | localhost | ilias | Query   |   11 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18251 | ilias | localhost | ilias | Query   |   10 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18252 | ilias | localhost | ilias | Query   |   10 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18253 | ilias | localhost | ilias | Query   |   10 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18254 | ilias | localhost | ilias | Query   |   10 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18257 | ilias | localhost | ilias | Query   |   10 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18265 | ilias | localhost | ilias | Query   |    9 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18270 | ilias | localhost | ilias | Query   |    9 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18275 | ilias | localhost | ilias | Query   |    9 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18292 | ilias | localhost | ilias | Query   |    8 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18300 | ilias | localhost | ilias | Query   |    8 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18394 | ilias | localhost | ilias | Query   |    2 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18431 | ilias | localhost | ilias | Query   |    1 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18484 | ilias | localhost | ilias | Query   |    0 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |


| 18485 | ilias | localhost | ilias | Query   |    0 | Sending data | SELECT COUNT(DISTINCT(usr_id)                                                              ) as num FROM rbac_ua WHERE rol_id IN (76801) |    0.000 |

Administration - Installation - Core: Re : Re: Problem with a request : Crash System

$
0
0
result of the request : 

EXPLAIN SELECT COUNT(DISTINCT(usr_id)) as num FROM rbac_ua;


id            select_type        table     type      possible_keys   key         key_len ref          rows      Extra


1             SIMPLE rbac_ua               range    NULL     i1_idx    4              NULL     321458  Using index for group-by (scanning)




You can see the screen-shot in attached file


Administration - Installation - Core: Re (2): Re : Problem with a request : Crash System

$
0
0
The execution plan looks pretty normal to me. It uses an index and should therefore be pretty well optimized.

The only thing that stands out for me is the WHERE clause in the query, which is not part of the original issue description. How long does it take to execute the following query on your system?
SELECT COUNT(DISTINCT(usr_id)) as num FROM rbac_ua WHERE rol_id IN (76801);

It should only take milliseconds, even though there are >300'000 rows. I tested it with around 130'000 rows and it took no time at all.

Administration - Installation - Core: Re (3): Re : Problem with a request : Crash System

$
0
0
One of my question is :


  1. what is the purpose of the request : SELECT COUNT(DISTINCT(usr_id)) as num FROM rbac_ua WHERE rol_id IN (76801) 

  2. and why does it launch itself several times during a test (examination)



In the context of my test,



  • this test takes place in a class, and in a group.

  • The test is in a group and this group is in a course

  • The request returns the number of course members (not the group, not the test guests)

  • The "Guests" option of the test is checked and the participants (about 140) are listed in the "participants" tab

  • The test time is limited to one hour

  • The problem arrive with just 50 users (not all of the 140 registered participants)



I test the request you asked me right now and I send you the result...

Thank you.

Administration - Installation - Core: Re (3): Re : Problem with a request : Crash System

$
0
0
Robin,

The request just take 0.00 second...

You can check it with the screen shot below.

Thank you for your help...

Laurent

image001.png

ILIAS Developers: Assign member to course through phpmyadmin

$
0
0
Hi there,
 I want to assign a member to a particular course via phpmyadmin. i can see a table named 'obj_members' but i think only this table not do the trick. I have manually added a entry in table but it's not working.

Is there any tdatabase table for course-member relation ship

Thanks in adavnce
Bachoos

Administration - Installation - Core: SAML with SIMPLESAMLPHP – setup problem solutions and dockerization

$
0
0
I'll share some experiences using SAML SP functionality

Short setup overview:
ILIAS 5.4.4
MySQL 8.0.3, innoDB
SIMPLESAMLPHP 1.17

Experience
It is nice to have SAML already integrated in ILIAS, thank you ILIAS team! Even if already in the administration interface there is this hint
Please check and edit the SimpleSAMLphp configuration in 'auth/saml/config/config.php' and 'auth/saml/config/authsources.php' (external data directory). Don't forget to add the paths to your private key and certificate in the authsources.php file. Please read the manual for further explanations ...
I want to highlight here some important points to make it work.

Settings in authsources.php


  • We kept the default-sp name for the Service Provider

  • RelayState: URL pointing to ilias index.php

  • idp: The only idp working (problem mentionned below when using multiple saml providers)



Settings in config.php


  • 'basepathurl' => something like  http://localhost/libs/composer/vendor/simplesamlphp/simplesamlphp/lib/SimpleSAML/ pointing to the simplesaml installation

  • 'enable.saml20-idp' => true

  • 'session.cookie.path' => '/',

  • 'session.cookie.domain' =>'yourdomain.com',

  • Set the language parameters you need


  • 'store.type' => 'sql', configure other store.sql parameters


  • Rest as you need, adapted to your environment



Apply patch
In ILIAS there is a patch to make SAML work, because the original library does not correctly handle path. Check that this patch is applied:
libs/composer/patches/simplesamlphp.patch

Dockerization
We created a php-script that runs on deployment. This contains the following steps


  • Create database entry in saml_idp_settings with something like:

    INSERT INTO $samlSettingsTable VALUES (" . $ilDB->quote($id, "integer") . ", " . $ilDB->quote($isActive, "integer") . ", 0, 0, " . $ilDB->quote($uidClaim, "text") . ", " . $ilDB->quote($loginClaim, "text") . ", 0, 0, " . $ilDB->quote($entityId, "text") . ");


  • Activate idp with database insert or update:

    $module = 'auth_saml';
    $keyword = 'login_form';
    $activeIdp = 1;
    UPDATE settings SET value = " . $ilDB->quote($activeIdp, 'integer') . " WHERE module = " . $ilDB->quote($module, 'text') . " AND keyword = " . $ilDB->quote($keyword, 'text'). ";


  • Set SAML IDP metadata xml into folder 'metadata', named with the set $id above
    Path to folder: /iliasdata/{clientId}/auth/saml/metadata/{id}.xml



Additionally, we changed the important files config.php and authsources.php to use environment variables for the needed parameters. The file now looks like
$config = array(
    'baseurlpath' => getenv('SIMPLESAMLPHP_BASEURLPATH'),
    'certdir' => getenv('SIMPLESAMLPHP_CERT_DIR'),
    'loggingdir' => getenv('ILIAS_LOG_ERROR_PATH') . '/',
    'datadir' => getenv('ILIAS_DATA_PATH') . '/',
...



Creating a user referencing the saml idp user:


  • indicate the authentification mode (select saml idp)

  • value of «external user account» must match the configured identifier of your saml idp response


Screenshot20191022at15.03.15.png


Faced problems



  • Generally the implementation in ILIAS foresees the usage of multiple SAML-IDPs for the same client. Unfortunately, the ILIAS wrapper does not handle the final call to the concerning IDP correctly yet, using always the in authsources.php configured idp (which is also indicates that it is an ilias patch).




  • NOSTATE-Problem: Check session.cookie.domain and session.cookie.path. Is is necessary to have this configured correctly. Otherways it will result in a NOSTATE or an UnsolicitedAuth




  • Empty authData after redirect to saml.php?returnTo=, but assertion was correctly returned from IPD: Problem was a missing authToken cookie, so the session could not be found. Wrong session.cookie.path also.



  • "Could not find unique SAML attribute for the configured identifier: uid" getUIDClaim could not be retrieved. Mistake was that we used the «friendly name» attribute. Use the «name» attribute to match.


  • Further missouts in the ilias code: pull requests created for 5.4 branch




Administration - Installation - Core: Assign member to course through phpmyadmin

$
0
0

Hi there,


 I want to assign a member to a particular course via phpmyadmin. i can see a table named 'obj_members' but i think only this table not do the trick. I have manually added a entry in table but it's not working.

Is there any tdatabase table for course-member relation ship

Thanks in adavnce
Bachoos

Administration - Installation - Core: Re : Assign member to course through phpmyadmin

$
0
0
Hi,

Why not use the import excel sheet to do this? In user administration, "import" function...


It will be easier and more secure by avoiding playing directly in the tables at the risk of forgetting dependencies...


Regards,

Laurent

ILIAS Developers: Translation of Online Help - best practice

$
0
0
Dear all,

We're considering the translatino of the 'Online-Hilfe' to Dutch. At the moment the online help is an ILIAS learning module. Is there a way to convert this module to a more translation friendly document? (Excel, XML, XLIFF or such?)
If not, is it possible to ad multilanguage support to the german help module, translate the pages, delete the german language and use the translated module for the online help?

Regards,

Robert Kuunders

Administration - Installation - Core: Re: Re : Assign member to course through phpmyadmin

$
0
0
Thank you very much for your reply.

 But i  want to know which database tables will be updated after assign a member to course.

Administration - Installation - Core: Re(2): Re: Assign member to course through phpmyadmin

$
0
0

a role is created when a business event is created.


Thus, when you assign a user to a course, table RBAC_UA is completed.


Maybe other tables too... but this one is already concerned.

Administration - Installation - Core: Re : Re(2): Re: Assign member to course through phpmyadmin

Administration - Installation - Core: Re(2): Re : Assign member to course through phpmyadmin

$
0
0
Take a look at the plugin UserDefaults. (https://github.com/studer-raimann/UserDefaults)
There, the subscription of a user to courses, groups etc is handled.

The other way to see what happens (what queries are executed) is to enable loggin in your mysql database. Then add a user to a course and see what queries are executed.

Administration - Installation - Core: Re(3): Re: Assign member to course through phpmyadmin

Administration - Installation - Core: Re(3): Re : Assign member to course through phpmyadmin

Administration - Installation - Core: Re(4): Re : Assign member to course through phpmyadmin

$
0
0
I'd really suggest doing this through the API or something, however if you're set on doing it this way it's primary rbac_ua.

You can get the rol_ids for the course based on ref_id with a quick query

\(SELECT od.obj_id AS 'rol_id',od.title,od.description, (NULLIF( RIGHT(`title`, LOCATE('_', REVERSE(`title`)) - 1),0)) AS course_reference_id FROM object_data od WHERE od.type = 'role' AND title LIKE "il_crs_%" HAVING course_reference_id IS NOT NULL \)

From there you could insert usr_id and rol_id of the course as well as create an entry in obj_members.



Administration - Installation - Core: Re(5): Re : Assign member to course through phpmyadmin

$
0
0
Thank you very much. 

Now i can see all the related tables.

Administration - Installation - Core: Re (4): Re : Problem with a request : Crash System

$
0
0

I would just like to know if it is normal that this request is produced so many times in such a short time by this php class....



The request that crashes the system is:



  • $query = 'SELECT COUNT(DISTINCT(usr_id)) as num FROM rbac_ua '.



The public function getNumberOfAssignedUsers(Array $a_roles) that contain this request is in the class "class.ilRbacReview.php"

Viewing all 6541 articles
Browse latest View live