Well, there are some things to fix, but I succeeded on restoring a backup-config from ns6 to Samba Active Directory!
The challenging part is the User and Group module. I started with a âdo-nothingâ strategy
The restore procedure installs all modules listed by the backup, including nethserver-directory. In the end, ns7 has a running OpenLDAP instance with old accounts. Thatâs fine if OpenLDAP is the desired account provider. But I did something more:
The user name format changed from the traditional ns6 username format, to the sssd upstream default username@domain format. As weâve seen here, this is an issue for everyone trying to log on the machine with samba or ssh, or even the server-manager: the @domain suffix is frequently omitted and nothing works as expected.
Moreover, when migrating from an existing ns6 environment, any network client is configured with the traditional username format, and for this reason it should be reconfigured
Luckily thereâs a workaround for this! My first experiments with, ssh, postfix, dovecot, ejabberd and webtop4 are encouraging!
Slightly off topic, but it fits in with the comments by @davidep above about handling users.
The change to the sssd format is possibly going to cause issues to people like me, and others, who run Plex, plus possibly @rolf, who asked some questions about running squeezebox, where the software assumes it can add a user, then runs as that user and access itâs data, which quite possibly is on a Samba shared location, where access has been granted.
If the added user has /etc/passwd as backend, there should not be any big issue as long as the filesystem owner is preserved on the Samba shared folder.
@davidep
Thank you. That appears to work perfectly, once Iâd convinced the Plex configuration that itâs id really doesnât have to be, or need to be, in a group called plex in order for systemd to start it. And I can add plex to my filesharing group.
I did see one error thrown though, but it didnât seem to cause any issues:
Nov 3 10:00:12 Nethserver-Beta esmith::event[2809]: ERROR(exception): Failed to remove members "Domain,Guests,Guest" from group "fileshare" - Unable to find "Domain". Operation cancelled.
Nov 3 10:00:12 Nethserver-Beta esmith::event[2809]: File "/usr/lib64/python2.7/site-packages/samba/netcmd/group.py", line 278, in run
Nov 3 10:00:12 Nethserver-Beta esmith::event[2809]: add_members_operation=False)
Nov 3 10:00:12 Nethserver-Beta esmith::event[2809]: File "/usr/lib64/python2.7/site-packages/samba/samdb.py", line 274, in add_remove_group_members
Nov 3 10:00:12 Nethserver-Beta esmith::event[2809]: raise Exception('Unable to find "%s". Operation cancelled.' % member)
Nov 3 10:00:13 Nethserver-Beta esmith::event[2809]: Added members to group fileshare
Nov 3 10:00:13 Nethserver-Beta esmith::event[2809]: [ERROR] Failed to update the members list of group fileshare at /etc/e-smith/events/group-modify/S40nethserver-dc-group-modify line 80.
Nov 3 10:00:13 Nethserver-Beta esmith::event[2809]: Action: /etc/e-smith/events/group-modify/S40nethserver-dc-group-modify FAILED: 1 [3.679111]
As a side note a clear statement on deprecated/replaced packages, and migration between them might be helpful when the final version is released, extending the present release notes.
Upgrade from v6.x to v7, and maintenance period of current packages (this might already been answered somewhere).
This will fill the gaps on common questions like, for instance,