tag:blogger.com,1999:blog-9157571775745956748.post1448023694352322450..comments2023-06-06T18:48:05.152+05:30Comments on ASK Online: Spring Boot Application connect to LDAP UserstoreAruna Karunarathnahttp://www.blogger.com/profile/09104613770962038797noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-9157571775745956748.post-54152809639864013482020-03-23T01:18:16.524+05:302020-03-23T01:18:16.524+05:30Hi Aruna I am also facing the same issue will you ...Hi Aruna I am also facing the same issue will you please share a pic of users and groups created in your active directoryAnonymoushttps://www.blogger.com/profile/02733547549353628444noreply@blogger.comtag:blogger.com,1999:blog-9157571775745956748.post-51763692483581024832017-06-23T14:40:07.057+05:302017-06-23T14:40:07.057+05:30Both the ou=groups and ou=users should be present ...Both the ou=groups and ou=users should be present inside the dc. Check the ldap image in my post.Aruna Karunarathnahttps://www.blogger.com/profile/09104613770962038797noreply@blogger.comtag:blogger.com,1999:blog-9157571775745956748.post-59884087111985138402017-06-23T14:16:01.366+05:302017-06-23T14:16:01.366+05:30dc=example,dc=com
|
-ou=system
|
--ou=users
|
---u...dc=example,dc=com<br />|<br />-ou=system<br />|<br />--ou=users<br />|<br />---uid=kirantestAnonymoushttps://www.blogger.com/profile/05776693769292898529noreply@blogger.comtag:blogger.com,1999:blog-9157571775745956748.post-36214431400240510872017-06-23T14:10:27.980+05:302017-06-23T14:10:27.980+05:30No, I meant did you create those manager, user gro...No, I meant did you create those manager, user groups, in your LDAP correctly?..Aruna Karunarathnahttps://www.blogger.com/profile/09104613770962038797noreply@blogger.comtag:blogger.com,1999:blog-9157571775745956748.post-39963440490865258142017-06-23T13:58:03.939+05:302017-06-23T13:58:03.939+05:30authenticationManagerBuilder.ldapAuthentication()
...authenticationManagerBuilder.ldapAuthentication()<br /> .contextSource().url("ldap://localhost:10389/dc=example,dc=com")<br /> .managerDn("uid=admin,ou=system").managerPassword("secret")<br /> .and()<br /> .userSearchBase("ou=users")<br /> .userSearchFilter("(cn={0})")Anonymoushttps://www.blogger.com/profile/05776693769292898529noreply@blogger.comtag:blogger.com,1999:blog-9157571775745956748.post-44765992808386179902017-06-23T13:13:50.858+05:302017-06-23T13:13:50.858+05:30Probably an issue when connecting to the LDAP. Can...Probably an issue when connecting to the LDAP. Can you verify those configurations are correct.<br /><br />.contextSource().url("ldap://localhost:10389/dc=example,dc=com")<br /> .managerDn("uid=admin,ou=system").managerPassword("secret")<br /> .and()<br /> .userSearchBase("ou=users")<br /> .userSearchFilter("(cn={0})");Aruna Karunarathnahttps://www.blogger.com/profile/09104613770962038797noreply@blogger.comtag:blogger.com,1999:blog-9157571775745956748.post-46566191520768215772017-06-23T12:39:06.513+05:302017-06-23T12:39:06.513+05:30Hi Aruna
I'm facing one issue. I created LDAP ...Hi Aruna<br />I'm facing one issue. I created LDAP server added user with password, when I hit localhost:8080 prompt for username/password comes but when I enters it same popup coming again, it means its not getting authenticated. Can you share u r views/Anonymoushttps://www.blogger.com/profile/05776693769292898529noreply@blogger.com