refactor(user_ldap): add type hints, harden TTL restore, improve comments/docblock in dn2ocname
#58811
+54
−41
dn2ocname
#58811