QA: Is a cn-based LDAP base valid, and why does UDM show name: None?

Question

Is an LDAP base such as cn=example,dc=intranet valid in UCS? Why does udm container/dc list show name: None for this base object?

Answer

An LDAP base can begin with cn=. It does not have to consist exclusively of dc= components. The value cn=example,dc=intranet is already a complete Distinguished Name (DN).

The UDM property name is mapped to the LDAP attribute dc. If no name is found there, the container/dc module checks l, o, c, ou, and dc. It does not use cn as a fallback.

Consequently, a base object containing cn but none of these other naming attributes can appear as name: None. This does not mean that the literal value None is stored in LDAP.

This mapping was verified in the UCS 5.0-10 release source and the UCS 5.2-7 source branch.

Verification

Read the naming attributes directly from the LDAP base object:

univention-ldapsearch -LLL -b "$(ucr get ldap/base)" -s base '(objectClass=*)' objectClass cn dc l o c ou

If the result contains cn but none of dc, l, o, c, or ou, the missing UDM name is explained by this mapping.

Is a correction necessary?

The display alone does not establish a broken LDAP base or an upgrade blocker. Do not add naming attributes solely to populate the UDM field, and do not change ldap/base manually.

Compatibility of the complete environment, including connected applications, should be verified by testing the planned upgrade in an isolated copy.

This topic was automatically closed after 24 hours. New replies are no longer allowed.