Hi Stephan,
first of all, thank you for your work and your support for the opsi-project.
lloydsystems hat geschrieben:Opsi is an excellent system
Thank you
lloydsystems hat geschrieben:I can report that I have been running opsi under Samba4 for more than 12 months in exactly the configuration I have described and it works very well.
opsi works with a "complete" samba4-support on UCS-Systems (Debian based distribution from Univention
http://www.univention.de) since a long time now. And we have seen many strange things in this time. It is really hard to support samba4, because they change fundamental behaviours in steps of normal updates. So we have every time seen the problems and have worked hours and days to fix this problems. That is not, what I understand under a stable system. What ever, the other distributions have no support for samba4. Now Ubuntu and openSuse will release their next versions with samba4 but with not a "complete" samba4 support, so you can use samba4 like samba3 (Sharesupport) but you have not advantages of ActiveDirectory structures or other features from samba4. If you want to use it, you must compile your own version and maintain your own packages or manual installations of samba4. We work in cases of samba4 together with our partners Univention and Sernet (
http://www.sernet.de).
You can do it this way, if you like it and be able to do it. But the most of opsi-Users are not familiar with linux systems. The most people comes from the Windows-World. They are scared if they see a putty window. If I would say, hey... here are cool stuff, you have to get the sources from there, perhaps deploy some patches on it, and compile it... they will show me the door and say: thank you.
Another aspect is, you can do your stuff on your machine. But if we change anything, that will break the normal behaviours of opsi, than it must work on all supported systems and all supported versions. And then, it must be ready for update. Our customers will not use our software, if every update ends in a support-Ticket. The big advantage of opsi is, that it will work out of the box. But we pay for these feature with flexibility from other special setups.
lloydsystems hat geschrieben:I am disappointed that, 12 months after writing this post, opsi is still tied to Samba3 with no alternatives
That is not right. You can be disappointed, but we have since years now the opsi-depotserver-expert package. This package is the same like opsi-depotserver package, but have no dependencies to opsi-atftpd, samba, sudo, wget. And the package have no postinst actions in it. This package was build for people like you and mainly for our technical partners. If you know what you are doing you should use this package instead of opsi-depotserver package.
This package is only available for Debian-Based machines. The reason is very simple. We support RPM-Based Servers, too. But we have not enough opsi installations on RPM-Based Distributions. So we don't get enough Feedback for this type of machines. If you ask yourself, why opsi don't move in the direction like you think it should do, you should ask, why is the rpm-service and rpm-packaging in the stone-age? If you maintain some packages for RPM-Based machines, you will see really fast, why it is hard to build packages for that systems. In the most cases, the users use our Virtual Appliance for evaluating, and if they decide to use opsi, they continue to use the virtual-machine from the evaluation and then they have ubuntu.
We have a internal Ticket, that the opsi-depotserver-expert package should be available for RPM-Based machines, but this is not a payed task, so it will take some time, until the Ticket will get a higher priority. If you want spend some money, you are welcome to buy these for you and the others from the community. Or you can build these package, and send us a patch. That would be great...
lloydsystems hat geschrieben:They should also (I wish...) remove all the unnecessary bits of buried code that muck around with accounts and file ownership and permissions. It really shouldn't be there. I just upgraded my system from 4.0.3 to 4.0.4 and, despite removing the scripting from the RPM when rebuilding, the upgrade still did things including create a pcpatch group, overwrite my opsi.conf file and change all the file ownerships and permissions making a working installation a non-working one. WHY???
I don't know, where you have modified what. But, this tasks will not be made by opsi-depotserver, this tasks will be made by python-opsi in the postinst. If on your system, the following tasks works:
getent passwd pcpatch
getent passwd opsiconfd
getent group opsiadmin
and you have an opsi.conf, than nothing should happen. But in most cases in samba4 with full activedirectory support, you have the problem, that the base os-api have no possibility for work like these. Then the opsi-packages think, that this is a new setup and will make these actions again.
opsi is based on python. What we are working on is, to make the packages like python-opsi installable over pip. Then you have only the sources of the modules and no OS-Packaging overhead. But for python-opsi this not so easy.
lloydsystems hat geschrieben:I hope this is helpful. I disagree with the comment that these questions are covered in the manual. The few lines included in the documentation do not fully explain the operation and do not provide any real insight to making opsi work with Samba4.
That is right. But I don't think, that our documentation is the right place to hold these information. This is not the only topic that we actually have, for example the uefi features and the new linux-client-agent support in opsi. We discuss at the moment for an techblog for opsi. I think with a blog we have the possibility to make a detailed view on these topics. The information in our documentation about samba4 is only the essentials information, when you use UCS 3 and higher distributions. How I write at the beginning, this is the only official samba4 support in opsi since yet.
lloydsystems hat geschrieben:With regard to file ownership, the configuration under /etc/opsi has owner/group set to opsiconfd:opsiadmin, mode 770 for directories and 660 for files. I use only one file share, /var/lib/opsi, under which the owner/group is opsiconf:opsifileadmins. File modes are 660 and directories are 770, but the depot and workbench subdirectories are 2770. However, as I have Samba4, I can use ACLs created from Windows to define any access for other users.
The Filepermissions-Implementation in opsi is not beatiful and not good but it works.

We are planning to change these but not in the rolling release under opsi 4.0. This will maybe changed in the next major release of opsi.
Last but not least, we are working on the next release (rolling release in opsi). One of the main goal is to support Ubuntu 14.04 and openSuse 13.1. Then opsi will work better with samba3 and samba4.