Hi Markus,
I restored the VM at the point where I added users and groups within LDAP.
I added a new group with a new name different from all users and groups.
I added toto and michelandre to that group.
Uninstalled LDAP, installed AD with the same domain name as the one in LDAP.
Added a password to both admin.
Added remote shell to admin.
su to admin
[root@tchana ~]# su - admin
Creating home directory for admin@micronator-dev.org.
[admin@micronator-dev.org@tchana ~]$
This time, su to admin didn’t hang.
Importing users. (No ERROR even if admin already exists)
[admin@micronator-dev.org@tchana ~]$ /usr/share/doc/nethserver-sssd-1.4.8/scripts/import_users /var/lib/nethserver/backup/users.tsv
[INFO] imported titi as titi@micronator-dev.org
[INFO] imported admin as admin@micronator-dev.org
[INFO] imported michelandre as michelandre@micronator-dev.org
[INFO] imported tata as tata@micronator-dev.org
[INFO] imported toto as toto@micronator-dev.org
[admin@micronator-dev.org@tchana ~]$
Importing groups. (No ERROR even if ‘domain admins’ already exists)
[admin@micronator-dev.org@tchana ~]$ /usr/share/doc/nethserver-sssd-1.4.8/scripts/import_groups /var/lib/nethserver/backup/groups.tsv
[INFO] imported 'titi' with members 'tata titi'
[INFO] imported 'groupe-nom-seul' with members 'michelandre toto'
[INFO] imported 'tata' with members 'tata'
[INFO] imported 'toto' with members 'tata titi toto'
[INFO] imported 'domain admins' with members 'admin michelandre'
[admin@micronator-dev.org@tchana ~]$
New group: ‘groupe-nom-seul’
After importing users and groups, they didn’t appear in the GUI so I logout of the GUI and login back to GUI with admin. Same thing: no imported users nor groups.
Worse: when I tried to su to toto to create his home dir, he doesn’t exist…
Exit su from admin.
[admin@micronator-dev.org@tchana ~]$ exit
logout
[root@tchana ~]#
Trying su to toto -> user toto does not exist
[root@tchana ~]# su - toto
su: user toto does not exist
[root@tchana ~]#
Again su to admin, maybe he will be able to su to toto.
[root@tchana ~]# su - admin
Last login: Mon Oct 14 18:45:51 EDT 2019 on pts/0
[admin@micronator-dev.org@tchana ~]$
No luck
[admin@micronator-dev.org@tchana ~]$ su - toto
su: user toto does not exist
[admin@micronator-dev.org@tchana ~]$
Reboot and same thing; no new users/groups.
I will take a break of a few hours,
Michel-André