Hi shaofeng,currently, I can generate the the password according to the following codes: String password = "KYLIN"; PasswordEncoder passwordEncoder = new BCryptPasswordEncoder(); String encodedPassword = passwordEncoder.encode(password); System.out.print(encodedPassword);
however, just as the topic mentioned, each time I get a different value for the password to be encoded, since I'm not that familiar with this part, I have 2 questions: 1, should I use some specified functions or pass some specified parameters to generate a static result for the password? 2, can I put any above encoded result to the line139-141 in kylinSecurity.xml to replace the old one you mentioned ? 2015-03-19 9:45 GMT+08:00 Shi, Shaofeng <[email protected]>: > Kylin web's security is implemented with Spring security framework, where > the kylinSecurity.xml is the main configuration file: > > ${KYLIN_HOME}/tomcat/webapps/kylin/WEB-INF/classes/kylinSecurity.xml > > The password hash for pre-defined users can be found in line 139 - 141; > > To generate a new hash, you can refer to > https://stackoverflow.com/questions/25844419/spring-bcryptpasswordencoder-g > enerate-different-password-for-same-input > > When you deploy Kylin for more users, switch to LDAP authentication is > recommended; > > To enable LDAP authentication, update ³kylin.sandbox² to false, and also > configure the ldap.* properties in ${KYLIN_HOME}/conf/kylin.properties > > > > On 3/18/15, 9:35 PM, "dong wang" <[email protected]> wrote: > > >I try to solve it by tomcat-users.xml and etc. but no work, what can we do > >to change it? > >
