@Override
    public LdapName parseValue(String value) throws GuacamoleServerException {

        // Consider null/empty values to be empty
        if (value == null || value.isEmpty())
            return null;

        // Parse provided value as an LDAP DN
        try {
            return new LdapName(value);
        }
        catch (InvalidNameException e) {
            throw new GuacamoleServerException("Invalid LDAP distinguished name.", e);
        }

    }
A GuacamoleProperty whose value is an LDAP DN.
extensions/guacamole-auth-sso/modules/guacamole-auth-sso-cas/src/main/java/org/apache/guacamole/auth/cas/conf/LdapNameGuacamoleProperty.java