小编Arb*_*ikh的帖子

如何在 wso2 身份服务器 5.10.0 中将外部 ldap 作为主要用户存储

我正在尝试将 Apache Directory Studio 设置为 wso2is 5.10.0 中的外部 ldap(主用户存储),并在 deployment.toml 文件中进行以下配置

[super_admin]
username = "admin"
password = "admin"
#admin_role = "admin"
create_admin_account = true

[user_store]
type = "read_write_ldap_unique_id"
user_entry_object_class = "inetOrgPerson"
connection_url = "ldap://localhost:10390"
connection_name = "uid=admin,ou=system"
connection_password = "secret"
#scim_enabled = "false"
user_id_attribute = "uid"
user_search_base = "ou=users,ou=system"
base_dn = "ou=system"
Run Code Online (Sandbox Code Playgroud)

当我启动 wso2 时,ldap 连接成功建立

 INFO {org.wso2.carbon.user.core.ldap.UniqueIDReadWriteLDAPUserStoreManager} - LDAP connection created successfully in read-write mode
Run Code Online (Sandbox Code Playgroud)

但我在它之前的日志中收到以下错误

 ERROR {org.wso2.carbon.user.core.ldap.UniqueIDReadWriteLDAPUserStoreManager} - There is no user with the user name: a9fbdaba-ef0a-422c-a3c7-150d8e62bc44,admin to …
Run Code Online (Sandbox Code Playgroud)

ldap wso2 wso2is apache-directory

7
推荐指数
1
解决办法
285
查看次数

Kafka Streams 测试:java.util.NoSuchElementException:未初始化的主题:“output_topic_name”

我已经按照https://kafka.apache.org/24/documentation/streams/developer-guide/testing.html为 kafka 流应用程序编写了一个测试类 ,其代码是

import com.EventSerde;
import org.apache.kafka.common.serialization.Serde;
import org.apache.kafka.common.serialization.Serdes;
import org.apache.kafka.streams.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import java.util.Properties;

public class KafkaStreamsConfigTest {

private TopologyTestDriver testDriver;
private TestInputTopic<String, Object> inputTopic;
private TestOutputTopic<String, Object> outputTopic;

private Serde<String> stringSerde = new Serdes.StringSerde();
private EventSerde eventSerde= new EventSerde();

private String key="test";
private Object value = "some value";
private Object expected_value = "real value";

String kafkaEventSourceTopic = "raw_events";
String kafkaEventSinkTopic = "processed_events";
String kafkaCacheSinkTopic = "cache_objects";

String applicationId = "my-app";
String …
Run Code Online (Sandbox Code Playgroud)

unit-testing apache-kafka apache-kafka-streams kafka-topic spring-kafka-test

6
推荐指数
1
解决办法
1458
查看次数