package org.zstack.ldap;

import org.zstack.core.config.GlobalConfig;
import org.zstack.core.config.GlobalConfigDef;
import org.zstack.core.config.GlobalConfigDefinition;
import org.zstack.core.config.GlobalConfigValidation;

/**
 * Created by lining on 2017/11/03.
 */
@GlobalConfigDefinition
public class LdapGlobalConfig {
    public static final String CATEGORY = "ldap";

    @GlobalConfigValidation
    @GlobalConfigDef(defaultValue = "member,uniqueMember", type = String.class)
    public static GlobalConfig QUERY_LDAP_ENTRY_RETURN_ATTRIBUTES = new GlobalConfig(CATEGORY, "queryLdapEntryReturnAttributes");

    @GlobalConfigValidation
    @GlobalConfigDef(defaultValue = LdapConstant.QUERY_LDAP_ENTRY_RETURN_ATTRIBUTE_SEPARATOR, type = String.class)
    public static GlobalConfig QUERY_LDAP_ENTRY_RETURN_ATTRIBUTE_SEPARATOR = new GlobalConfig(CATEGORY, "queryLdapEntryReturnAttributeSeparator");

}

package org.zstack.ldap;

import org.zstack.core.config.GlobalConfig;
import org.zstack.core.config.GlobalConfigDef;
import org.zstack.core.config.GlobalConfigDefinition;
import org.zstack.core.config.GlobalConfigValidation;

/**
 * Created by lining on 2017/11/03.
 */
@GlobalConfigDefinition
public class LdapGlobalConfig {
    public static final String CATEGORY = "ldap";

    @GlobalConfigValidation
    @GlobalConfigDef(defaultValue = "member,uniqueMember,memberOf", type = String.class)
    public static GlobalConfig QUERY_LDAP_ENTRY_RETURN_ATTRIBUTES = new GlobalConfig(CATEGORY, "queryLdapEntryReturnAttributes");

    @GlobalConfigValidation
    @GlobalConfigDef(defaultValue = LdapConstant.QUERY_LDAP_ENTRY_RETURN_ATTRIBUTE_SEPARATOR, type = String.class)
    public static GlobalConfig QUERY_LDAP_ENTRY_RETURN_ATTRIBUTE_SEPARATOR = new GlobalConfig(CATEGORY, "queryLdapEntryReturnAttributeSeparator");

}

update defaultValue of LdapGlobalConfig.QUERY_LDAP_ENTRY_RETURN_ATTRIBUTES