equal
deleted
inserted
replaced
4 except ValueError: |
4 except ValueError: |
5 print 'USAGE: cubicweb-ctl shell <instance> ldap_change_base_dn.py -- <ldap source uri> <new dn>' |
5 print 'USAGE: cubicweb-ctl shell <instance> ldap_change_base_dn.py -- <ldap source uri> <new dn>' |
6 print |
6 print |
7 print 'you should not have updated your sources file yet' |
7 print 'you should not have updated your sources file yet' |
8 |
8 |
9 olddn = repo.config.sources()[uri]['user-base-dn'] |
9 olddn = repo.sources_by_uri[uri].config['user-base-dn'] |
10 |
10 |
11 assert olddn != newdn |
11 assert olddn != newdn |
12 |
12 |
13 raw_input("Ensure you've stopped the instance, type enter when done.") |
13 raw_input("Ensure you've stopped the instance, type enter when done.") |
14 |
14 |