List and modify domain users as root



I am troubleshooting an UCS 4.1-4 server but only root access is provided because it seems the Administrator password is lost. How do I list the domain users and change their passwords on CLI?


You may use the UCM from CLI

see examples in the documentation

example to list all users:
univention-directory-manager users/user list --filter uid=*

example to set password of user:
univention-directory-manager users/user modify --dn “uid=dd,cn=users,dc=domain,dc=local” --set password=“123456789”