Re: Setting "administratorid"?

Jerry Malcolm <[email protected]>
Newsgroups gmane.comp.jakarta.james.user
Message-ID <[email protected]>
"enableVirtualHosting" is another config parameter that's set in this 
same method.  So I decided to search around and see where that is set.  
I found it, and just taking a wild guess, is this correct?

<usersrepository name="LocalUsers" 
class="org.apache.james.user.jpa.JPAUsersRepository">
     <algorithm>MD5</algorithm>
     <enableVirtualHosting>true</enableVirtualHosting>
<administratorid>[email protected]</administratorid>
</usersrepository>

This took a whole lot of digging to figure out.  I really think the 
default usersrepository.xml should have at least commented-out lines 
defining where/how to set the administrator id.

I'll add it to my list if this is indeed the correct implementation.

Jerry


On 10/29/2019 11:27 PM, Jerry Malcolm wrote:
> I see in AbstractUsersRepository where "adminstratorid" is pulled from 
> somewhere in the configuration:
>
>         administratorId = 
> Optional.ofNullable(configuration.getString("administratorId"));
>
> But I can't find any place to set it in the shipped configuration 
> files.  Where is the administrator id supposed to be defined, and what 
> is the correct syntax to define it?
>
> Thx
>
> Jerry
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.