How to Change the uid of Users

Howto

Change a user’s uid after first creation.

Environment

You have created a user but you need the user have a different uid compared to the one assigned by UMC.

Solution

Se the above command line

root@master:~# ldapmodify -D "$(univention-ldapsearch -LLLL "uid=Administrator" dn)" -w <<EOR
dn: uid=test30,cn=users,dc=multi,dc=ucs
changetype: modify
replace: uidNumber
uidNumber: 4032
EOR