misc/scripts/ldap_change_base_dn.py
changeset 9460 a2a0bc984863
parent 5969 caea22e82d83
child 10589 7c23b7de2b8d
equal deleted inserted replaced
9459:d3016c08b4ae 9460:a2a0bc984863
     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