~hopem/charms/trusty/keystone/fix-ssl

« back to all changes in this revision

Viewing changes to hooks/keystone_context.py

  • Committer: Edward Hope-Morley
  • Date: 2014-08-15 18:10:18 UTC
  • mfrom: (65.2.3 keystone)
  • Revision ID: edward.hope-morley@canonical.com-20140815181018-2bafr9n6ytq1s0rt
[heut2008,r=hopem]

Added support for Keystone LDAP identity backend

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
        ctxt['public_port'] = determine_api_port(api_port('keystone-public'))
102
102
        ctxt['debug'] = config('debug') in ['yes', 'true', 'True']
103
103
        ctxt['verbose'] = config('verbose') in ['yes', 'true', 'True']
 
104
        ctxt['identity_backend'] = config('identity-backend')
 
105
        ctxt['assignment_backend'] = config('assignment-backend')
 
106
        if config('identity-backend') == 'ldap':
 
107
            ctxt['ldap_server'] = config('ldap-server')
 
108
            ctxt['ldap_user'] = config('ldap-user')
 
109
            ctxt['ldap_password'] = config('ldap-password')
 
110
            ctxt['ldap_suffix'] = config('ldap-suffix')
 
111
            ctxt['ldap_readonly'] = config('ldap-readonly')
 
112
            ldap_flags = config('ldap-config-flags')
 
113
            if ldap_flags:
 
114
                flags = context.config_flags_parser(ldap_flags)
 
115
                ctxt['ldap_config_flags'] = flags
 
116
 
104
117
        if config('enable-pki') not in ['false', 'False', 'no', 'No']:
105
118
            ctxt['signing'] = True
106
119
        return ctxt