changeset 11057 | 0b59724cb3f2 |
parent 11052 | 058bb3dc685f |
child 11058 | 23eb30449fe5 |
11052:058bb3dc685f | 11057:0b59724cb3f2 |
---|---|
1 sync_schema_props_perms('EmailAddress') |
|
2 |
|
3 for source in rql('CWSource X WHERE X type "ldapuser"').entities(): |
|
4 config = source.dictconfig |
|
5 host = config.pop('host', u'ldap') |
|
6 protocol = config.pop('protocol', u'ldap') |
|
7 source.cw_set(url=u'%s://%s' % (protocol, host)) |
|
8 source.update_config(skip_unknown=True, **config) |
|
9 |
|
10 commit() |