Re Sailaja.

May you tell me if I am wrong in my following sentence :
If the user rangerusersync does not exist in the ldap, the local user
rangerusersync from the internal ranger db will be used. So I can safely
ignore the error I see saying that this user does not exist in the LDAP,
right ?

Furthermore, what are the powers of this user ? Is he able to perform a lot
of operations in ranger admin ?

BR.

Lune.

On Fri, May 13, 2016 at 6:11 PM, Lune Silver <lunescar.ran...@gmail.com>
wrote:

> It is the same. I have the same error message.
> But there is something strange, I cannot find any
> unixauthservice.properties and I cannot find the properties I just added in
> ambari in any file of the configuration folders.
>
> I checked in the shell script and here is what I found :
> ###
> # Create $INSTALL_DIR/conf/unixauthservice.properties
>
> CFG_FILE="${cdir}/conf/unixauthservice.properties"
> NEW_CFG_FILE=${cdir}/conf/unixauthservice.properties.tmp
>
> if [ -f  ${CFG_FILE}  ]
> then
>     sed \
>     -e "s|^\( *userSync.policyMgrUserName *=\).*|\1
> ${SYNC_POLICY_MGR_USERNAME}|" \
>         -e "s|^\( *userSync.policyMgrKeystore *=\).*|\1
> ${SYNC_LDAP_BIND_KEYSTOREPATH}|" \
>         -e "s|^\( *userSync.policyMgrAlias *=\).*|\1
> ${SYNC_POLICY_MGR_ALIAS}|" \
>         ${CFG_FILE} > ${NEW_CFG_FILE}
>
>     echo "<${logdir}> ${CFG_FILE} > ${NEW_CFG_FILE}"
> else
>     echo "ERROR: Required file, not found: ${CFG_FILE}, Aborting
> installation"
>     exit 8
> fi
>
> mv ${cdir}/conf/unixauthservice.properties
> ${cdir}/conf/unixauthservice.properties.${curDt}
> mv ${cdir}/conf/unixauthservice.properties.tmp
> ${cdir}/conf/unixauthservice.properties
> ###
>
> BR.
>
> Lune.
>
>
> On Fri, May 13, 2016 at 5:43 PM, Lune Silver <lunescar.ran...@gmail.com>
> wrote:
>
>> Ok.
>>
>> I updated the configuration in Ambari UI. (is that what you meant, not
>> the Ranger UI but the ambari UI, right ?)
>> Then I tested to execute the script you mentioned but I got the following
>> error message :
>> ###
>> # /usr/hdp/current/ranger-usersync/updatepolicymgrpassword.sh
>> Please enter policymgr username: rangerusersync
>> Please enter policymgr password: [2016/05/13 17:40:13]:  [I] Storing
>> policymgr usersync password in credential store
>> Error: Could not find or load main class
>> org.apache.ranger.credentialapi.buildks
>> ERROR: Required file, not found:
>> /usr/hdp/current/ranger-usersync/conf/unixauthservice.properties, Aborting
>> installation
>> ###
>>
>> I'll retry with the Custom usersync-properties ? Maybe it will create
>> this property file ?
>>
>> BR.
>>
>> Lune.
>>
>> On Fri, May 13, 2016 at 5:32 PM, Sailaja Polavarapu <
>> spolavar...@hortonworks.com> wrote:
>>
>>> Custom ranger-ugsync-site.
>>> P.S:- These properties are configured only when the rangerusersync
>>> user’s default password in changed.
>>> Changing the default password is a 2-step process – 1. Update the
>>> password in Ranger UI, 2. Run updatepolicymgrpassword.sh to update the key
>>> store.
>>>
>>> - Sailaja.
>>>
>>> From: Lune Silver <lunescar.ran...@gmail.com>
>>> Reply-To: "user@ranger.incubator.apache.org" <
>>> user@ranger.incubator.apache.org>
>>> Date: Friday, May 13, 2016 at 8:16 AM
>>> To: "user@ranger.incubator.apache.org" <user@ranger.incubator.apache.org
>>> >
>>> Subject: Re: Cannot log in the Ranger Admin UI
>>>
>>> hello Sailaja.
>>>
>>> As usual your answers aree realy helpful, thanks.
>>>
>>> Just a last question, do you know where do I have to add these
>>> properties in ambari UI ?
>>> - ranger.usersync.policymgr.username
>>> - ranger.usersync.policymgr.password
>>> - ranger.usersync.policymgr.alias
>>>
>>> In the custom usersync-properties part of the advanced tab in Ambari UI ?
>>> Or in the part "Custom ranger-ugsync-site" ?
>>> Or another one ?
>>>
>>> BR.
>>>
>>> Lune.
>>>
>>
>>
>

Reply via email to