如何在FreeBSD 10中设置“KRB5RCACHETYPE = none”环境变量?

时间:2015-06-10 10:24:38

标签: freebsd

如何在FreeBSD 10中设置“KRB5RCACHETYPE = none”环境变量?

  

Kerberos可以保留重放缓存来检测Kerberos票证的重用(通常只能在5分钟的窗口中使用)。如果使用Negotiate(Kerberos)代理身份验证请求squid处于高负载状态,则重放缓存检查会产生高CPU负载。如果环境不需要高安全性,则可以通过向启动脚本添加以下内容来禁用基于MIT的Kerberos实现的重放缓存检查:

     

KRB5RCACHETYPE =无出口KRB5RCACHETYPE

什么,在哪里写?

1 个答案:

答案 0 :(得分:0)

完整路径/usr/local/etc/rc.d/squid

在此部分添加“KRB5RCACHETYPE = none export KRB5RCACHETYPE”行:

public List<Map<String, String>> getPlaylist() {
    File home=Environment.getExternalStorageDirectory();
    return getPlaylist (home);
}

public List<Map<String, String>> getPlaylist(File root) {
    List<Map<String, String>> songsList = new ArrayList<>();
    if (root.listFiles(new FileExtensionFilter()).length > 0) {
        Log.d(Variables.DEBUGTAG, "Filter Files=-->" + home.listFiles().length);
        for (File file : root.listFiles(new FileExtensionFilter())) {
            HashMap<String, String> song = new HashMap<String, String>();
            song.put("songTitle", file.getName().substring(0, (file.getName().length() - 4)));
            song.put("songPath", file.getPath());
            Log.d(Variables.DEBUGTAG, "Reading Files");

            // Adding each song to SongList
            songsList.add(song);

        }
    }
    for (File file : root.listFiles()) {
        if (file.isDirectory ()) {
            songsList.addAll(getPlaylist(file));
        }
    }

    return songsList;
}

#service squid restart

#killall -9 squid

#service squid start