-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conan Server cannot load ldap plugin #13
Comments
Hi! Thanks for report. Which version of this plugin are you running? Could you please paste the command output: Your error shows the module as absent or not installed. Looks like some python2/3 environment problem. |
I am using python2.7 in a CentOS6. The output from command
I am using Conan 1.1.0. Follow the output from comman
|
Okay, I presume that you are running Conan 1.0.1, right? I don't have CentOS6 here, but I'll use a Docker image to simulate the same scenario. |
Hi again! I just created a gist that reproduces a complete CentOS 6 + Conan + Conan LDAP Authentication: Following these steps, all works fine, you could test running:
This test is very simple, just start a default conan server and execute LDAP authentication at forumsys However, I was able to see your error twice:
Concluding, I think that you need to reinstall ldap-authentication to populate the plugin folder. Otherwise, the docker scenario works pretty well. |
@WillianPessoa Any update? |
Sorry for the delay. I followed your instructions, but the plugins folder was not created in I found the problem when I checked the root folder. The conan-ldap-authentication create plugins folder in root's home ( I copy I installed conan and conan-ldap-authentication using my personal user. I think that conan-ldap-authentication should create |
Thanks for your answer. You found a bug 🐛 As far as I remember, I have used ${home} to put the file. However, after new releases, Conan provided a good API to retrieve where I should put my files. I'll release a new patch ASAP. |
- Added Code coverage - Changed plugin directory - Added new LDAP authentication test Signed-off-by: Uilian Ries <uilianries@gmail.com>
- Added Code coverage - Changed plugin directory - Added new LDAP authentication test Signed-off-by: Uilian Ries <uilianries@gmail.com>
- Added Code coverage - Changed plugin directory - Added new LDAP authentication test Signed-off-by: Uilian Ries <uilianries@gmail.com>
- Added Code coverage - Changed plugin directory - Added new LDAP authentication test Signed-off-by: Uilian Ries <uilianries@gmail.com>
- Added Code coverage - Changed plugin directory - Added new LDAP authentication test Signed-off-by: Uilian Ries <uilianries@gmail.com>
- Added Code coverage - Changed plugin directory - Added new LDAP authentication test Signed-off-by: Uilian Ries <uilianries@gmail.com>
- Added Code coverage - Changed plugin directory - Added new LDAP authentication test Signed-off-by: Uilian Ries <uilianries@gmail.com>
- Added Code coverage - Changed plugin directory - Added new LDAP authentication test Signed-off-by: Uilian Ries <uilianries@gmail.com>
- Added Code coverage - Changed plugin directory - Added new LDAP authentication test Signed-off-by: Uilian Ries <uilianries@gmail.com>
- Added Code coverage - Changed plugin directory - Added new LDAP authentication test Signed-off-by: Uilian Ries <uilianries@gmail.com>
…ap-plugin #13 Validate LDAP authentication
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
…ap-plugin #13 Remove Conan as Python Framework
I just released a new patch. I changed some order during installation to avoid your problem again. Reading again your comment:
Maybe you installed the ldap plugin as root. I can't figure out some way to solve this. Conan server dir could be present for any user on your system. So, if you are interested to install for your user, you could use Regards. |
- Added information about HOME directory when install the plugin Signed-off-by: Uilian Ries <uilianries@gmail.com>
Sorry for the delay. I will install Conan and Conan-ldap-authentication in other machine with Centos06 tomorrow and I will give the results to you. |
Many thanks! |
I need to do a retification. My CentOS version is 6.9 and not 6. After installed I followed all steps/instructions to install Check the output from the command
I could create a gist to reproduce all installation process if you want to. |
Please, this will help to understand. I'll try using CentOS 6.9 |
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Hi! I was able to reproduce your problem. When I created a non-root user, and run sudo pip install, the expanduser collected I'll release the patch 0.2.3 soon. Thanks again for report this problem. |
Signed-off-by: Uilian Ries <uilianries@gmail.com>
…ap-plugin #13 Fix user home dir during install on Centos
Done! I think this issue is fixed. Please, check again when possible. |
It works!
Thanks! <3 |
Enjoy! :D |
Hello,
I'm trying to set up a conan server with ldap authentication, but I find this error:
The file
server.conf
is correctly configured:and the
ldap_authentication.conf
is correctly configured too:Do I need to do anything else for the conan server to recognise the ldap plugin?
The text was updated successfully, but these errors were encountered: