-
Notifications
You must be signed in to change notification settings - Fork 0
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
Question on how to install this. #1
Comments
You can install it manually like this:
The plugin will overwrite the config files as OMV does with all config files it maintains. If you populate the plugin fields with your information, ideally the plugin would just write the same config file. Not knowing how you configured things, I can't say what the outcome will be. I recommend backing your system up and/or copying the relevant config files and installing the plugin to see. |
Awesome Ill give it a shot thanks for the Quick Response |
Notes on installJust some notes (not sure if these are due to something wrong with my system or not but figured it may be helpful to you or anyone finding this post later) running After trying to install the deb it gave errors about missing packages, I had to run sudo apt --fix-broken install Notes on EnablingJust as a note, I went to Services ->LDAP and tried to enable the service
As a Note it does look like it pulled in the users, but not the groups. Not sure if anyone knows what I did wrong here, I will take a look deeper into it when I get the chance.
|
dpkg doesn't install dependencies. apt-get -f install does. That is why I had apt-get -f install after the dpkg line. No need to manually install any dependencies. And this is only needed when manually installing testing packages like this.
I just tested a few more things and this error happens when samba isn't enabled. I will have to look at it. Until then, you can enable samba on the smb/cifs Settings tab. You don't have to add shares. |
I attempted to Enable SMB/CIFS however just as a note, I needed to remove all the LDAP stuff that was put into the SMB config before I could enable SMB. However once I did that I am still getting errors Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LC_ALL=C.UTF-8; export LANGUAGE=; omv-salt deploy run --no-color samba 2>&1' with exit code '1': debian:
Succeeded: 11 (changed=6)
Failed: 2
-------------
Total states run: 13
Total run time: 1.128 s
[ERROR ] Command '/bin/systemd-run' failed with return code: 1
[ERROR ] stderr: Running scope as unit: run-re05d3e9c1080467986fb773b7e23ef6f.scope
Job for smbd.service failed because the control process exited with error code.
See "systemctl status smbd.service" and "journalctl -xeu smbd.service" for details.
[ERROR ] retcode: 1
[ERROR ] Job for smbd.service failed because the control process exited with error code.
See "systemctl status smbd.service" and "journalctl -xeu smbd.service" for details.
[ERROR ] Service wsdd is already enabled, and is dead
OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LC_ALL=C.UTF-8; export LANGUAGE=; omv-salt deploy run --no-color samba 2>&1' with exit code '1': debian:
which more than likely means I have entered something wrong in the configuration, Or I have borked something during my install process. Thanks for the Help I will try to look deeper into this. |
As a Heads up I saw you updated the code, I pulled the newest version and the install seemed to work correctly. It seems to have pulled the users but I still do not see the groups. is there a log for this plugin? |
I'm not sure how a working connection would only pull in users and not groups. Do your groups have a gid less than 1000 or greater than 60000? Those are the defaults in /etc/logins.def. The plugin doesn't log because it isn't a service. It just configures nslcd. Those logs are in journalctl - journalctl -u nslcd.service |
Yes, I thought this was weird also, and was curious if it was just pulling stuff from before when it had a partial install. I do have some groups that are below 1000 notably Users gid 100 The other thing that i find strange is when I initially setup this plugin I used As a note im not sure if I have added additional issues because when I initially setup my system I used SSSD to allow for LDAP user login (which still works) Im curious if the configuration of ldap in the plugin is not really being used and it is only pulling the user data from the system using the SSSD configuration that I initially setup. Do you have any suggestions on what configuration files I could / Should check to make sure that the plugin is correctly configuring the ldap services? |
Ok, did some trouble shooting on this. Useful BackgroundAll my systems are setup using SSSD to allow login / groups from my ldap server. Initially / by default I used my common ansible script to set this up so some level of this still exists on the system. Troubleshooting Points
When I look at the groups using
I am curious where in the code the users / groups get written to the OMV Database? Thanks |
nslcd and sssd do similar things. You usually don't want to have them both installed at the same time. If you added sss to nsswitch.conf and things worked, then sssd is making things work. The plugin should not add sssd config since it is only configuring nslcd. The code that the plugin uses to configure things is here - https://github.com/OpenMediaVault-Plugin-Developers/openmediavault-ldap/tree/main/srv/salt/omv/deploy |
Yea, that was what I was figuring, However looking through the code, it seems like all this plugin does is setup nslcd, but does not have any additional code to add the users / groups to the database / display. Which would mean that default OMV has some code to scrape the users / groups off the system. I guess I need to go find that code and see how it is pulling groups to try to see what is going wrong with my groups. It also seems like if i have an external ansible script that sets up SSSD OMV should be able to pull the information in with out the need of additional plugins. Thank you for the time you have put into this plugin, and for all the help you have given me trying to get this setup. I think I will see if i can find how OMV pulls users / groups, if not I will reinstall OMV and try this plugin on a fresh install with out letting my ansible scripts muck with the system and see if that works out better. |
OMV uses PAM. nslcd is connecting ldap to pam. |
Ok, so maybe that is the issue here, maybe when I setup SSSD I didn't setup the PAM portion Ill Take a look thank you for the information! |
Ok, finally figured this out, and want to document it in case it helps anyone in the future. Doing some digging OMV gets the list of Users by running Once I added that to the config file all my groups showed up from ldap. Thank you for all your help! |
I have just started with OMV7 and have been trying to get it connected to LDAP to pull my user information. This plugin seems like exactly what I have been looking for. However there does not seem to be any directions on how to get this installed. I looked at the original and it had stuff to create a DEB package but I don't see that here.
I also had a side question, at this point I have been able to get my system setup to allow login form my ldap server ( I have an ansible script that I run on all my servers and it seems to allow for login to the machine as well as the GUI) I see that there is some salt stuff in this repo, would that overwrite / break my current configuration? Or would this just pull the Ldap users and make them usable when setting up shared directories?
Thanks In Advance.
The text was updated successfully, but these errors were encountered: