List and modify domain users as root

ucs-4-1

#1

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?


#2

You may use the UCM from CLI

see examples in the documentation
https://docs.software-univention.de/handbuch-4.2.html#central:udm

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”

rg
christian