提问人:Khaled 提问时间:3/8/2023 更新时间:3/8/2023 访问量:116
将用户添加到Keycloak LDAP REST API
add a user to keycloak ldap rest api
问:
路径 : http://localhost:8080/admin/realms/google/users
JSON 对象:
{
"id": "2d274b22-4cd7-4711-ae0d-529615309b57",
"createdTimestamp": 1632647518630,
"username": "user1",
"enabled": true,
"totp": false,
"emailVerified": false,
"firstName": "fname1",
"lastName": "lname1",
"email": "user1@localhost",
"disableableCredentialTypes": [],
"requiredActions": [],
"notBefore": 0,
"access": {
"manageGroupMembership": true,
"view": true,
"mapRoles": true,
"impersonate": false,
"manage": true
},
"attributes": {
"dn": ["uid=johndoe,cn=user1,o=XteUsers,dc=xtensus,dc=com"]}
}
日志消息:
2023-03-08 11:14:29,915 信息 [org.keycloak.storage.ldap.LDAPIdentityStoreRegistry] (executor-thread-0) 为 LDAP 存储提供程序创建新的 LDAP 存储:“ldap”,LDAP 配置:{pagination=[false]、fullSyncPeriod=[-1]、startTls=[false]、usersDn=[o=XteUsers,dc=xtensus,dc=com]、connectionPooling=[false]、cachePolicy=[DEFAULT]、useKerberosForPasswordAuthentication=[false]、importEnabled=[true]、enabled=[true]、bindDn=[cn=admin,dc=xtensus、dc=com],用户名LDAPAttribute=[cn], changedSyncPeriod=[3600], lastSync=[1678228384], vendor=[other], uuidLDAPAttribute=[uid], connectionUrl=[ldap://localhost:389], allowKerberosAuthentication=[false], syncRegistrations=[true], authType=[simple], connectionTimeout=[100], searchScope=[1], useTruststoreSpi=[ldapsOnly], usePasswordModifyExtendedOp=[false], trustEmail=[false], userObjectClasses=[*], rdnLDAPAttribute=[sAMAccountName ], editMode=[WRITABLE],validatePasswordPolicy=[false], batchSizeForSync=[1000]}, binaryAttributes: []
它在邮递员中向我展示了: 201 該請求已經完成,並導致正在創建一個新資源。
如果写:http://localhost:8080/admin/realms/google/users?username=user1 它向我展示了: [ ] 并且用户未添加到Keycloak用户
答: 暂无答案
评论