LDAP API Error "does not contain a URL" java.naming.provider.url property does not contain a URL #9914
Replies: 21 comments
-
@tamoorahmedntu this is the exception you get when you have no ldap configured. It looks like you have an ommision in your ldap configured in cloudstack. Please check the values for
and list your ldap configurations? |
Beta Was this translation helpful? Give feedback.
-
Hello,
Thank you for this helpful information, please see below;
This is the Config:
Is this what you require or do you have an API which I can use
|
Beta Was this translation helpful? Give feedback.
-
@tamoorahmedntu the ldap configuration you have configured is domain specific. If you add a configuration without domain, the search command should work. NOTE the searchLdap API is only meant for manual import not for autoimport or autosync configurations. |
Beta Was this translation helpful? Give feedback.
-
I'm really sorry but are you talking about the top pic or bottom ? |
Beta Was this translation helpful? Give feedback.
-
text would be easier ;) |
Beta Was this translation helpful? Give feedback.
-
that said, I will have to trust the basedn and bind principal as I cannot read those in the bottom picture. The error indicates nothing about that however. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately that still does not work maybe I'm doing something wrong.
Is this correct? |
Beta Was this translation helpful? Give feedback.
-
yes that is correct. Does it give the same error? |
Beta Was this translation helpful? Give feedback.
-
yes |
Beta Was this translation helpful? Give feedback.
-
ok that will require some debugging than. No idea what else could be wrong. |
Beta Was this translation helpful? Give feedback.
-
can you import users? |
Beta Was this translation helpful? Give feedback.
-
to make sure I do it properly, could you confirm how to do this |
Beta Was this translation helpful? Give feedback.
-
yes, and also you can use the UI to import users, It would show available users from ldap if the configuration is correct. |
Beta Was this translation helpful? Give feedback.
-
i get the same error when doing through API but i don't see ldap button which should appear (to my knowledge ) |
Beta Was this translation helpful? Give feedback.
-
It might be interesting to add this to 4.18.2 |
Beta Was this translation helpful? Give feedback.
-
@JoaoJandre I am not sure if this is a bug or environmental yet. If it is a bug sure. |
Beta Was this translation helpful? Give feedback.
-
@tamoorahmedntu , I tried to reproduce using https://www.forumsys.com/2022/05/10/online-ldap-test-server/ as the ldapserver. my configuration seems to work: my ldap configuration: and connection: The only thing I can think of next is that you don't use a standard port (3268) and cloudstack cannt handle that. Can you test with ports 389 and 636 to see if those work, please? |
Beta Was this translation helpful? Give feedback.
-
@tamoorahmedntu do you have any progress / furhter information? |
Beta Was this translation helpful? Give feedback.
-
Sorry for late reply.
Unfortunately I can't Change port of Ldap, I was looking into other ways.
…________________________________
From: dahn ***@***.***>
Sent: Friday, June 21, 2024 12:47:46 pm
To: apache/cloudstack ***@***.***>
Cc: Ahmed, Tamoor ***@***.***>; Mention ***@***.***>
Subject: Re: [apache/cloudstack] LDAP API Error "does not contain a URL" java.naming.provider.url property does not contain a URL (Issue #8336)
@tamoorahmedntu<https://github.com/tamoorahmedntu> do you have any progress / furhter information?
—
Reply to this email directly, view it on GitHub<#8336 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANH2J2UXHRVXJAAKA5UNF4DZIQHF5AVCNFSM6AAAAABJIIH4LWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBSGU4TQNJWGE>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
DISCLAIMER: This email is intended solely for the addressee. It may contain private and confidential information. If you are not the intended addressee, please take no action based on it nor show a copy to anyone. In this case, please reply to this email to highlight the error. Opinions and information in this email that do not relate to the official business of Nottingham Trent University shall be understood as neither given nor endorsed by the University. Nottingham Trent University has taken steps to ensure that this email and any attachments are virus-free, but we do advise that the recipient should check that the email and its attachments are actually virus free. This is in keeping with good computing practice.
|
Beta Was this translation helpful? Give feedback.
-
@tamoorahmedntu you could run a test server against your LDAP and against https://www.forumsys.com/2022/05/10/online-ldap-test-server/ and see if there is a difference in results? |
Beta Was this translation helpful? Give feedback.
-
ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
CONFIGURATION
Advanced networking, LDAP integration
OS / ENVIRONMENT
Ubuntu 22
SUMMARY
running code under API get error message
STEPS TO REPRODUCE
Add LDAP information
Global Settings > Access > LDAP ( Using Microsoft AD )
Global Settings > LDAP configuration
Run command for API
EXPECTED RESULTS
return search query information
ACTUAL RESULTS
Beta Was this translation helpful? Give feedback.
All reactions