【ranger】ranger-usersync更新ldap最短時(shí)間為1hour / 3600s 修改
一、編譯ranger
npm config set strict-ssl false
# when log: ` Running 'npm run r.js` a application that related to js file would be opened, just close the application, to let job continue.
mvn clean package "-Dmaven.test.skip=true" "-Pranger-admin" "-DskipJSTests" "-Denunciate.skip"
注意win環(huán)境下編譯時(shí)候自動(dòng)彈出,和r.js "-o" "../security-admin-web-2.6.0/minify.build.js 有關(guān)系的文件時(shí)候,請(qǐng)關(guān)閉編輯器,關(guān)閉窗口不可以,必須關(guān)閉整個(gè)編輯器(比如我的js文件關(guān)聯(lián)的編輯器是notepad++)。
修改下類(lèi):
org.apache.ranger.unixusersync.config.UserGroupSyncConfig
的值就可單位是毫秒
private static final long UGSYNC_SLEEP_TIME_IN_MILLIS_BETWEEN_CYCLE_LDAP_DEFAULT_VALUE = 30000L;
將編譯好的unixusersync-2.6.0.jar復(fù)制到/some-dir/ranger-2.6.0-usersync/dist,重啟ranger-usersync即可。
浙公網(wǎng)安備 33010602011771號(hào)