Yes, you need have a LDAP server ready before switching Kylin’s
authentication to it; Otherwise the login will fail;

If you don’t have a LDAP in hand, I suggest you do some search and study;
The installation/configuration may take some time;

On 3/25/15, 12:11 PM, "dong wang" <[email protected]> wrote:

>Hi shaofeng, is it correct that I must install a LDAP Server first if I
>want to make the ldap configuration in kylin.properties effect?
>
>2015-03-19 13:06 GMT+08:00 Shi, Shaofeng <[email protected]>:
>
>> You don’t need pass specified param; you can use the encoded result,
>>just
>> try it you will know;
>>
>> On 3/19/15, 12:59 PM, "dong wang" <[email protected]> wrote:
>>
>> >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?
>> >>
>> >>
>>
>>

Reply via email to