NS8 Domain group

NethServer Version: NS8
Module: Samba DC

Hello, I’m still using NS7 and installed NS8 for testing purpose (fresh install no migration). After installing AD Domain controller/Samba there is an error indicating that groups and users can’t be shown. it’s also not possible to add a new user or group.

any help is greatly apreciated. Thanks a lot

from the error in the gui

cluster/list-domain-groups

from the error shown in the web gui
Aufgaben-ID: 892e406e-b4e6-4c03-86ad-cf33204019b3

Traceback (most recent call last):
File “/var/lib/nethserver/cluster/actions/list-domain-groups/50list_groups”, line 33, in
groups = Ldapclient.factory(**domain).list_groups()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: agent.ldapclient.Ldapclient.factory() argument after ** must be a mapping, not NoneType

Hi Markus, and welcome to the NethServer community!

The issue you reported may be related to this bug in Core 3.4.3: ⚠ NethServer Core 3.4.3 Issue.

If you recently installed NS8 with Core version 3.4.3, the best course of action is to reinstall with Core 3.4.4. I’m sorry for the inconvenience.

1 Like

Hello Davide. Thanks for your help.
I checked the version installed: it is Version 3.4.4 …
my first install was Debian 12 with Nethserver installed as described in the docs. I thought that maybe I messed up something during configuration (domain names were not appropriate).

I then installed on another virtual machine (Virtualbox, OS-Type RedHat9_64 ) with the vmware image (https://tinyurl.com/ns8-rocky-vmdk) according to manuals. Log-in to the server ok, create another user for ssh acces: ok, accessing webUI ok, changing credentials for admin user: ok, add Domain, choose Samba for AD: ok: but it takes a long time, webUI seems to hang, the installation window never closes…
Though, a samba-Server is installed, showing up in the right panel as samba1, but accessing the “add user” or “add group” menu, there is an error saying :“Get password policy Process not authorized” I can’t add a user (or a group).

I managed to add users by accessing the command line:
api-cli run module/samba1/add-user --data - <<EOF
{
“user”: “mduerig”,
“display_name”: “markus duerig”,
“password”: “*******”,
“locked”: false,
“groups”: [

]
}
EOF

response was:
Warning: using user “cluster” credentials from the environment
/usr/lib/python3.12/getpass.py:91: GetPassWarning: Can not control echo on the terminal.
passwd = fallback_getpass(prompt, stream)
Warning: Password input may be echoed.
New Password:
Warning: Password input may be echoed.
Retype Password:
User ‘markus’ added successfully
Unix username: markus
NT username:
Account Flags: [U ]
User SID: S-1-5-21-2123612221-3268324255-1032417906-1106
Primary Group SID: S-1-5-21-2123612221-3268324255-1032417906-513
Full Name: markus
Home Directory:
HomeDir Drive: (null)
Logon Script:
Profile Path:
Domain:
Account desc:
Workstations:
Munged dial:
Logon time: 0
Logoff time: 0
Kickoff time: Thu, 14 Sep 30828 02:48:05 UTC
Password last set: Sun, 02 Feb 2025 12:36:31 UTC
Password can change: Sun, 02 Feb 2025 12:36:31 UTC
Password must change: never
Last bad password : 0
Bad password count : 0
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
“”
afterwards the user also shows up in the web UI

however I don’t know how to add groups via the command line
and actually this could/should be done via the web UI.

as it worked on the command line but not with with the webUI my conclusion is so far, that there must be a permission issue with using the webUI (at least for creating users and groups)…

I created several virtual machines with nethserver on rocky linux with the provided image and it behaved the same way.

any help is greatly apreciated. I think that there is an error in my setup as you may have tested thoroughly this functionality.

Thanks a lot Markus

This may be a symptom of slow disk I/O. Monitor the VM performances expecially during the system boot, when fast disk reads are required, or when a new module is installed and configured.