CloudStack Add Ldap Account Empty List #9916
-
CloudStack Version: 4.19.0.1 |
Beta Was this translation helpful? Give feedback.
Replies: 15 comments
-
Thanks for opening your first issue here! Be sure to follow the issue template! |
Beta Was this translation helpful? Give feedback.
-
Also, I did some test, trying to bind ldap to a domain, this error comes out: I checked logs in ACS management.log, this error comes out: DEBUG [o.a.c.l.LdapContextFactory] (qtp1789718525-1052:ctx-bf2f48df ctx-f171c9d9) (logid:7d7a3c5c) initializing ldap with provider url: ldap://dir.slb.com:389 INFO [c.c.a.ApiServer] (qtp1789718525-1052:ctx-bf2f48df ctx-f171c9d9) (logid:7d7a3c5c) com.cloud.exception.InvalidParameterValueException: Unable to bind to the given LDAP server |
Beta Was this translation helpful? Give feedback.
-
My ldapsearch CLI works ok, but in ACS, it can't list the ldap users. Could you please help this? Thanks in advance |
Beta Was this translation helpful? Give feedback.
-
@yuangeqingian , at first look, the excpetion says that the bind fails. This should mean the login is wrong. By the looks of you cofiguration you are going for the manual import of accounts option, is that right? The bind principal uses DC=DIR in capitals and the basedn uses dc=dir in lowercase. Can you check if that makes a difference? Do you see any other exceptions in your logs or any error on the ldap side? |
Beta Was this translation helpful? Give feedback.
-
1: Yes, I tried to use manual login |
Beta Was this translation helpful? Give feedback.
-
Do you have a more extensive stacktrace for this error? From the given in-/output I see that on the cli you use -D "dir\Bgc_domain_join" while this is not in the bind principal nor in the binddn. Can this be the issue? |
Beta Was this translation helpful? Give feedback.
-
No, the ldapsearch works perfectly: |
Beta Was this translation helpful? Give feedback.
-
Any more trouble shooting suggestions? |
Beta Was this translation helpful? Give feedback.
-
well, can you configure Apache Directory Studio, just in case it is a java issue? (https://directory.apache.org/studio/) I usually don't use microsoftad, so can't help you there. You can try to configure an openldap installation. Or use an online service like jumpcloud. |
Beta Was this translation helpful? Give feedback.
-
First: thanks for the quick response. Third: Do you know where else I can ask questions about that? I don't know how to raise question on mailing list. Thanks a lot in advance! |
Beta Was this translation helpful? Give feedback.
-
@yuangeqingian the manual import you are trying is not really suitable for enterprise implementations I think , but it should work. You can try the autosync method as described in the docs. You can ask question on users@cloudstack.apache.org. these are free style, so just state your problem with as much detail as possible and ask your questions. You can also ask here. In both cases you are relying on volunteers so answers may be late and not applicable to you exactly. This is open source. There are options for commercial support, when you are ready for that. |
Beta Was this translation helpful? Give feedback.
-
I did some changes and some other info came out, somehow I successfully bind the ldap to domain using cli below: But this time, when I tried to add user, the add ldap user button is gone: |
Beta Was this translation helpful? Give feedback.
-
@DaanHoogland any idea how can I fix issue above? |
Beta Was this translation helpful? Give feedback.
-
@yuangeqingian have a look at the doc about ldap The above seems an autoimport setup. I do not know why that would remove the add ldap account button, but it means that accounts will be added to the linked domain automatically for users defined in ldap. |
Beta Was this translation helpful? Give feedback.
-
Let me check again to see if issue was on my side and get back to you again |
Beta Was this translation helpful? Give feedback.
@yuangeqingian have a look at the doc about ldap
and there is also this old upgrade note, maybe it is relevant for you as well.
The above seems an autoimport setup. I do not know why that would remove the add ldap account button, but it means that accounts will be added to the linked domain automatically for users defined in ldap.