Changeset 2521


Ignore:
Timestamp:
Sep 28, 2016, 12:49:12 PM (3 years ago)
Author:
jrpelegrina
Message:

Fix updated ldap password during installing

Location:
lliurex-moodle/trunk/fuentes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lliurex-moodle/trunk/fuentes/debian/changelog

    r1375 r2521  
     1lliurex-moodle (0.32) xenial; urgency=medium
     2
     3  * Fix change ldap password during installing
     4
     5 -- Juan Ramon Pelegrina <juapesai@hotmail.com>  Wed, 28 Sep 2016 12:47:42 +0200
     6
    17lliurex-moodle (0.31) xenial; urgency=medium
    28
  • lliurex-moodle/trunk/fuentes/lliurex-moodle.install-files/usr/share/lliurex-moodle/update_moodle_sql.py

    r1330 r2521  
    3333                cursor = connection.cursor()
    3434                try:
    35                                 #sql="UPDATE `moodle`.`mdl_config_plugins` SET `value` = '"+passwd+"' WHERE `mdl_config_plugins`.`name` like 'bind_pw' and `mdl_config_plugins`.`plugin` like 'auth/ldap';"
    36                                 #cursor.execute(sql)
    37                                 #connection.commit()
    38                                 #sql="UPDATE `moodle`.`mdl_config_plugins` SET `value` = 'cn=teachers,ou=Profiles,ou=Groups,dc=ma5,dc=lliurex,dc=net' WHERE `mdl_config_plugins`.`name` like 'creators' and `mdl_config_plugins`.`plugin` like 'auth/ldap';"
    39                                 #cursor.execute(sql)
    40                                 #connection.commit()
     35                                sql="UPDATE `moodle`.`mdl_config_plugins` SET `value` = '"+passwd+"' WHERE `mdl_config_plugins`.`name` like 'bind_pw' and `mdl_config_plugins`.`plugin` like 'auth/ldap';"
     36                                cursor.execute(sql)
     37                                connection.commit()
     38                                sql="UPDATE `moodle`.`mdl_config_plugins` SET `value` = 'cn=teachers,ou=Profiles,ou=Groups,dc=ma5,dc=lliurex,dc=net' WHERE `mdl_config_plugins`.`name` like 'creators' and `mdl_config_plugins`.`plugin` like 'auth/ldap';"
     39                                cursor.execute(sql)
     40                                connection.commit()
    4141
    4242                                passwordcrypted = bcrypt.hashpw(adminpassword,bcrypt.gensalt(10))
Note: See TracChangeset for help on using the changeset viewer.