def METHOD_NAME(self):
    self.logIt("Generating {} configuration".format(self.service_name))
    yml_str = self.readFile(self.jans_scim_openapi_fn)
    yml_str = yml_str.replace('\t', ' ')
    cfg_yml = ruamel.yaml.load(yml_str, ruamel.yaml.RoundTripLoader)
    config_scopes = cfg_yml['components']['securitySchemes']['scim_oauth']['flows']['clientCredentials']['scopes']
    scope_ldif_fd = open(self.ldif_scopes_fn, 'wb')
    ldif_scopes_writer = LDIFWriter(scope_ldif_fd, cols=1000)
    scopes_dn = self.create_user_scopes()
    for scope in config_scopes:
        if scope in ('https://jans.io/scim/users.read', 'https://jans.io/scim/users.write'):
            continue
        inum = '1200.' + os.urandom(3).hex().upper()
        scope_dn = 'inum={},ou=scopes,o=jans'.format(inum)
        scopes_dn.append(scope_dn)
        display_name = 'Scim {}'.format(os.path.basename(scope))
        ldif_scopes_writer.unparse(
                scope_dn, {
                            'objectClass': ['top', 'jansScope'],
                            'description': [config_scopes[scope]],
                            'displayName': [display_name],
                            'inum': [inum],
                            'jansId': [scope],
                            'jansScopeTyp': ['oauth'],
                            })
    scope_ldif_fd.close()
    client_ldif_fd = open(self.ldif_clients_fn, 'wb')
    client_scopes_writer = LDIFWriter(client_ldif_fd, cols=1000)
    self.check_clients([('scim_client_id', '1201.')])
    if not Config.get('scim_client_pw'):
        Config.scim_client_pw = self.getPW()
        Config.scim_client_encoded_pw = self.obscure(Config.scim_client_pw)
    scim_client_dn = 'inum={},ou=clients,o=jans'.format(Config.scim_client_id)
    client_scopes_writer.unparse(
            scim_client_dn, {
            'objectClass': ['top', 'jansClnt'],
            'displayName': ['SCIM client'],
            'jansAccessTknSigAlg': ['RS256'],
            'jansAppTyp': ['native'],
            'jansAttrs': ['{}'],
            'jansGrantTyp':	['client_credentials'],
            'jansScope': scopes_dn,
            'jansSubjectTyp': ['pairwise'],
            'jansTknEndpointAuthMethod': ['client_secret_basic'],
            'inum': [Config.scim_client_id],
            'jansClntSecret': [Config.scim_client_encoded_pw],
            'jansRedirectURI': ['https://{}/.well-known/scim-configuration'.format(Config.hostname)]
            })
    client_ldif_fd.close()