changeset 8188 | 1867e252e487 |
parent 8158 | 2ee254e74382 |
child 8251 | df46bf02b107 |
8187:981f6e487788 | 8188:1867e252e487 |
---|---|
1 sync_schema_props_perms('EmailAddress') |
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', 'ldap') |
|
6 protocol = config.pop('protocol', 'ldap') |
|
7 source.set_attributes(url='%s://%s' % (protocol, host)) |
|
8 source.update_config(skip_unknown=True, **config) |
|
9 |
|
10 commit() |