Problem: A school computer is not shown in computerroom

Problem:

A school computer is not shown in computerroom

Investigation:

Step 1

Check the attributes from the pc. If you have created the PC in the “normal” Devices → Computers module by mistake, the PC does not have all needed attributes for school. So you can compare a shown PC object with the not shown PC object.
The should show these two attributes:

objectClass: ucsschoolComputer
ucsschoolRole: win_computer:school:<OU>

Step 2

The bug was fixed.

Old: If the computers have multiple interfaces there is a bug which will be fixed in an upcoming release of ucs@school.

Solution:

For Step 1

You can simply add the attributes with a ldapmodify:

ldapmodify -x -D "cn=admin,$(ucr get ldap/base)" -y /etc/ldap.secret <<EOR
dn: cn=sun-pc01,cn=computers,ou=sun,dc=schein,dc=me
changetype: modify
add: objectClass
objectClass: ucsschoolComputer
-
add: ucsschoolRole
ucsschoolRole: win_computer:school:sun
EOR

Additional:
If you get the following error message, the objectClass is not known in the ldap yet and you are not on the right UCS version where this objectClass was indroduced.

modifying entry "cn=win-test,cn=computers,ou=sun,dc=school,dc=int"
ldap_modify: Invalid syntax (21)
        additional info: objectClass: value #0 invalid per syntax

For Step 2

Wait for a new release of ucs@school.

Mastodon