apache / apache/cloudstack

Unable to create another ldap Account if another account is linked to ldap group in the same domain

オープン
#8,732 コメント 2 件 リアクション 0 件 担当者 0 名 @DaanHoogland が担当を希望しています GitHub で見る
component:LDAP Severity:Minor status:needs-investigation
主要言語
Java
スター
3.1k
フォーク
1.4k
平均マージ
6日 19時間
マージ済み PR(30日)
32

説明

##### ISSUE TYPE

* Bug Report

##### COMPONENT NAME

~~~
ldap
~~~

##### CLOUDSTACK VERSION
~~~
4.19
~~~

##### CONFIGURATION

Advanced Networking, Domain tree with multiple subdomains

##### OS / ENVIRONMENT

RHEL 9.3
VMware 8.0c (8.0.0.3)
LDAP 389 Directory Server

##### SUMMARY

If I create ldap account in domain with ldapCreateAccount, then link this account to ldap group with linkAccountToLdap, I'm not able to create another account in the same domain. I got error:
CloudStack error: HTTP 534 response from CloudStack
{
"createaccountresponse": {
"cserrorcode": 9999,
"errorcode": 534,
"errortext": "No LDAP user exists with the username of test_user",
"uuidList": []
}
}

If I create multiple accounts with ldapCreateAccount first, then I'm able to link all these accounts to ldap groups with linkAccountToLdap. But again, not able to create any other new ldap accounts

##### STEPS TO REPRODUCE

~~~
cs --post ldapCreateAccount username=test_admin account='Test admins' accounttype=2 domainid=6xxxxxx0e-d170-48ea-a9bf-90fexxxxx122
cs --post linkAccountToLdap account='Test Admins' accounttype=2 domainid=6xxxxxx0e-d170-48ea-a9bf-90fexxxxx122 ldapdomain='cn=test admins,cn=test,ou=groups,dc=my,dc=domain,dc=com' type=GROUP
cs --post ldapCreateAccount username=test_users account='Test users' accounttype=0 domainid=6xxxxxx0e-d170-48ea-a9bf-90fexxxxx122
~~~

##### EXPECTED RESULTS

~~~
Create another account in ldap and link it to another ldap group
~~~

##### ACTUAL RESULTS

~~~
CloudStack error: HTTP 534 response from CloudStack
{
"createaccountresponse": {
"cserrorcode": 9999,
"errorcode": 534,
"errortext": "No LDAP user exists with the username of test_user",
"uuidList": []
}
}
~~~

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

説明されている CloudStack 4.19 の LDAP 設定で、ldapCreateAccount に続けて linkAccountToLdap を使用して問題を再現し、その後 LDAP アカウント作成とグループリンクのエントリーポイントを調査します。同じドメインに 2 つ目のアカウントを作成し、HTTP 534 エラーなしで別の LDAP グループにリンクできれば完了です。pull request #13945 はすでにオープンされています。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
authentication
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。