Cannot change administrator password

kopano

#1

I want to change administrator password
through terminal udm users/user --dn="uid=Administrator,cn=users,dc=XXXX,dc=XXX --set password=XXXX
but give an error = LDAP error:object class violation:unrecognized objectclass ‘kopano-user’
Thanks


#2

Hi @mamoon,

that command does not work for me and gives a different error:

$ udm users/user --dn="uid=Administrator,cn=users,dc=kopano,dc=intranet" --set password="test123"
Unknown or no action defined

The unrecognized objectclass message sounds like the kopano ldap schema is not installed. Was the app removed at some point?


#3

Hey there!

The udm action is missing (list, create, modify, remove, move).
This command should work:

$ udm users/user modify --dn="uid=Administrator,cn=users,dc=kopano,dc=intranet" --set password="test123"

#4

yes, once I changed my testing command to have a more complex password it indeed succeeds for me.


#5

yeah i removed the app


#6

now it give me following information
value is required :the property primary group is required


#7

okay, let’s have a look at the Administrator account. A primary group is indeed required (should be “Domain Admins”, iirc):

$ udm users/user list --filter uid=Administrator

#8

yeah
primary group is: cn=Domain Admins,cn=group,dc=XX,dcXX


#9

Hey,

This could be due to the same reason I’ve written about here. You should check if the setting in the policy in the UMC are correct.

Kind regards,
mosu


#10

i think i cannot log in as administrator because i donot have a password for that .