You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by James Wing <jv...@gmail.com> on 2016/03/10 22:55:06 UTC

Re: User Authentication with username and password

Uwe,

I do not believe NiFi supports simple username/password authentication
today.  But I have been working on a similar problem, and created a ticket
for this (https://issues.apache.org/jira/browse/NIFI-1614).  Any input you
might be able to offer on the use case would be helpful.

Thanks,

James

On Thu, Mar 10, 2016 at 1:12 PM, Uwe Geercken <uw...@web.de> wrote:

> Hello I would like to setup a simple username/password authentication. A
> user has to specify the userid and a password to use the nifi web ui -
> that's all.
>
> While there is a lot of information in the documentation, I am confused of
> what is required and what not.
>
> in the file authority-providers.xml this is configured by default - I did
> not change anything.
> <provider>
>         <identifier>file-provider</identifier>
>
>  <class>org.apache.nifi.authorization.FileAuthorizationProvider</class>
>            <property name="Authorized Users
> File">./conf/authorized-users.xml</property>
>         <property name="Default User Roles"></property>
> </provider>
>
> I think I have to configure this here in nifi.properties:
>
> nifi.web.https.host=localhost
> nifi.web.https.port=???
>
> host would be localhost but what should I configure for the port? any port?
>
> The file login-identity-providers has definitions for ldap-provider only,
> but his is not my case.
>
> I have added following entry to authorized-users.xml
>
>    <user dn="cn=Uwe Geercken,ou=people,dc=example,dc=com">
>         <role name="ROLE_ADMIN"/>
>     </user>
>
> This would be my name, but I don't know if this is the correct format
> (taken from the documentation)
>
> Any help would be appreciated to get me going.
>
> Regards,
>
> Uwe
>
>
>
>