bottle-cork icon indicating copy to clipboard operation
bottle-cork copied to clipboard

Default initialisation is broken

Open r1chardj0n3s opened this issue 11 years ago • 1 comments

The following will fail because the initialisation doesn't add the "user" role.

aaa = Cork(config['auth_dir'], initialize=True) aaa.register(...)

Code also cannot add the "user" role using aaa.create_role() because that call requires an authenticated user with a role level 100. Such a role obviously doesn't exist at this point, and no user exists because I can't register (or create_user.)

r1chardj0n3s avatar Feb 07 '13 03:02 r1chardj0n3s

Check this file:

https://raw.github.com/FedericoCeratto/bottle-cork/master/examples/recreate_example_conf.py

cloudops avatar Aug 11 '13 21:08 cloudops