howto get anonymous access to repos in 1.4.0-SNAPSHOT

View: New views
5 Messages — Rating Filter:   Alert me  

howto get anonymous access to repos in 1.4.0-SNAPSHOT

by Steffen Stundzig :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I've update my 1.3.6 nexus to 1.4.0-SNAPSHOT by simply copying and
reusing the old sonatype-work directory.

But now If I access one of my repositories with browser or maven tools I
must by authenticated with http auth.

The server.log of nexus says:

jvm 1    | 2009-08-18 17:05:52 INFO  - o.s.n.s.f.a.NexusSe~          -
Unable to authenticate user [anonymous] from address/host
[127.0.0.1/127.0.0.1]

The User exists in the nexus and it has also read access to all repos.
The default permissions and users are unchanged.

What can I do?

regards



---------------------------------------------------------------------
To unsubscribe, e-mail: nexus-dev-unsubscribe@...
For additional commands, e-mail: nexus-dev-help@...


Re: howto get anonymous access to repos in 1.4.0-SNAPSHOT

by Brian Demers-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Steffen,

Odd,  If you login and go to the users page.  What permissions does  
your Anonymous user have?

If possible, send my your nexus.xml and security.xml (change any  
private info) and I can add a test for this case.


On Aug 18, 2009, at 11:15 AM, Steffen Stundzig wrote:

> Hi,
>
> I've update my 1.3.6 nexus to 1.4.0-SNAPSHOT by simply copying and
> reusing the old sonatype-work directory.
>
> But now If I access one of my repositories with browser or maven  
> tools I
> must by authenticated with http auth.
>
> The server.log of nexus says:
>
> jvm 1    | 2009-08-18 17:05:52 INFO  - o.s.n.s.f.a.NexusSe~          -
> Unable to authenticate user [anonymous] from address/host
> [127.0.0.1/127.0.0.1]
>
> The User exists in the nexus and it has also read access to all repos.
> The default permissions and users are unchanged.
>
> What can I do?
>
> regards
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: nexus-dev-unsubscribe@...
> For additional commands, e-mail: nexus-dev-help@...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: nexus-dev-unsubscribe@...
For additional commands, e-mail: nexus-dev-help@...


Re: howto get anonymous access to repos in 1.4.0-SNAPSHOT

by Steffen Stundzig :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi brian,

I've copied the default security.xml from the nexus webapp package into
my sonatype-work/nexus/conf folder and restarted nexus. Now it works.

Attached you can find as security.xml.bak the file which doesnt work. It
was created/updated from nexus during update from 1.3.X to 1.4.0. I
doesn't change anything on the permissions, so it should be the default
configuration.

To update from 1.3.X to 1.4.0, I've simply started the new webapp and
configured the old sonatype-work directory as working dir.

regards

Brian Demers schrieb:

> Steffen,
>
> Odd,  If you login and go to the users page.  What permissions does your
> Anonymous user have?
>
> If possible, send my your nexus.xml and security.xml (change any private
> info) and I can add a test for this case.
>
>
> On Aug 18, 2009, at 11:15 AM, Steffen Stundzig wrote:
>
>> Hi,
>>
>> I've update my 1.3.6 nexus to 1.4.0-SNAPSHOT by simply copying and
>> reusing the old sonatype-work directory.
>>
>> But now If I access one of my repositories with browser or maven tools I
>> must by authenticated with http auth.
>>
>> The server.log of nexus says:
>>
>> jvm 1    | 2009-08-18 17:05:52 INFO  - o.s.n.s.f.a.NexusSe~          -
>> Unable to authenticate user [anonymous] from address/host
>> [127.0.0.1/127.0.0.1]
>>
>> The User exists in the nexus and it has also read access to all repos.
>> The default permissions and users are unchanged.
>>
>> What can I do?
>>
>> regards
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: nexus-dev-unsubscribe@...
>> For additional commands, e-mail: nexus-dev-help@...
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: nexus-dev-unsubscribe@...
> For additional commands, e-mail: nexus-dev-help@...
>
--
Steffen Stundzig
Leiter Niederlassung Leipzig

Telefon: +49 (0) 341 / 231-0183-401
Telefax: +49 (0) 341 / 231-0183-411
Mobil:   +49 (0) 151 / 173-9673-1

http://itemis.de
http://twitter.com/itemis
steffen.stundzig@...
https://xing.com/profile/Steffen_Stundzig

itemis AG
Niederlassung Leipzig
Ludwig-Erhard-Straße 51
04103 Leipzig

Rechtlicher Hinweis:
Registergericht: Amtsgericht Dortmund HRB 20621
Sitz der Gesellschaft: 44536 Lünen, Am Brambusch 15-24
Vorstand: Wolfgang Neuhaus, Jens Wagener, Dr. Georg Pietrek
Aufsichtsrat: Prof. Dr. Burkhard Igel (Vorsitzender), Stephan Grollmann,
Michael Neuhaus



<?xml version="1.0" encoding="UTF-8"?>
<security>
  <version>2.0.3</version>
  <users>
    <user>
      <id>admin</id>
      <name>Administrator</name>
      <password>f865b53623b121fd34ee5426c792e5c33af8c227</password>
      <status>active</status>
      <email>changeme@...</email>
    </user>
    <user>
      <id>deployment</id>
      <name>Deployment User</name>
      <password>b2a0e378437817cebdf753d7dff3dd75483af9e0</password>
      <status>active</status>
      <email>changeme1@...</email>
    </user>
    <user>
      <id>anonymous</id>
      <name>Nexus Anonynmous User</name>
      <password>0a92fab3230134cca6eadd9898325b9b2ae67998</password>
      <status>active</status>
      <email>changeme2@...</email>
    </user>
  </users>
  <userRoleMappings>
    <userRoleMapping>
      <userId>admin</userId>
      <source>default</source>
      <roles>
        <role>admin</role>
      </roles>
    </userRoleMapping>
    <userRoleMapping>
      <userId>deployment</userId>
      <source>default</source>
      <roles>
        <role>deployment</role>
        <role>repo-all-full</role>
      </roles>
    </userRoleMapping>
    <userRoleMapping>
      <userId>anonymous</userId>
      <source>default</source>
      <roles>
        <role>anonymous</role>
        <role>repo-all-read</role>
      </roles>
    </userRoleMapping>
  </userRoleMappings>
</security>

<?xml version="1.0" encoding="UTF-8"?>
<security>
  <version>2.0.2</version>
  <users>
    <user>
      <id>admin</id>
      <name>Administrator</name>
      <password>f865b53623b121fd34ee5426c792e5c33af8c227</password>
      <status>active</status>
      <email>changeme@...</email>
    </user>
    <user>
      <id>deployment</id>
      <name>Deployment User</name>
      <password>b2a0e378437817cebdf753d7dff3dd75483af9e0</password>
      <status>active</status>
      <email>changeme1@...</email>
    </user>
    <user>
      <id>anonymous</id>
      <name>Nexus Anonynmous User</name>
      <password>0a92fab3230134cca6eadd9898325b9b2ae67998</password>
      <status>active</status>
      <email>changeme2@...</email>
    </user>
  </users>
  <userRoleMappings>
    <userRoleMapping>
      <userId>admin</userId>
      <source>default</source>
      <roles>
        <role>admin</role>
      </roles>
    </userRoleMapping>
    <userRoleMapping>
      <userId>deployment</userId>
      <source>default</source>
      <roles>
        <role>deployment</role>
        <role>repo-all-full</role>
        <role>obr-all-full</role>
      </roles>
    </userRoleMapping>
    <userRoleMapping>
      <userId>anonymous</userId>
      <source>default</source>
      <roles>
        <role>anonymous</role>
        <role>repo-all-read</role>
        <role>obr-all-read</role>
      </roles>
    </userRoleMapping>
  </userRoleMappings>
</security>


---------------------------------------------------------------------
To unsubscribe, e-mail: nexus-dev-unsubscribe@...
For additional commands, e-mail: nexus-dev-help@...

Re: howto get anonymous access to repos in 1.4.0-SNAPSHOT

by Steffen Stundzig :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi,

it seems that the anonymous password was changed during update. So the
mechanism of autologin as anonymous if no user is specified has failed.

regards

Brian Demers schrieb:

> Steffen,
>
> Odd,  If you login and go to the users page.  What permissions does your
> Anonymous user have?
>
> If possible, send my your nexus.xml and security.xml (change any private
> info) and I can add a test for this case.
>
>
> On Aug 18, 2009, at 11:15 AM, Steffen Stundzig wrote:
>
>> Hi,
>>
>> I've update my 1.3.6 nexus to 1.4.0-SNAPSHOT by simply copying and
>> reusing the old sonatype-work directory.
>>
>> But now If I access one of my repositories with browser or maven tools I
>> must by authenticated with http auth.
>>
>> The server.log of nexus says:
>>
>> jvm 1    | 2009-08-18 17:05:52 INFO  - o.s.n.s.f.a.NexusSe~          -
>> Unable to authenticate user [anonymous] from address/host
>> [127.0.0.1/127.0.0.1]
>>
>> The User exists in the nexus and it has also read access to all repos.
>> The default permissions and users are unchanged.
>>
>> What can I do?
>>
>> regards
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: nexus-dev-unsubscribe@...
>> For additional commands, e-mail: nexus-dev-help@...
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: nexus-dev-unsubscribe@...
> For additional commands, e-mail: nexus-dev-help@...
>

--
Steffen Stundzig
Leiter Niederlassung Leipzig

Telefon: +49 (0) 341 / 231-0183-401
Telefax: +49 (0) 341 / 231-0183-411
Mobil:   +49 (0) 151 / 173-9673-1

http://itemis.de
http://twitter.com/itemis
steffen.stundzig@...
https://xing.com/profile/Steffen_Stundzig

itemis AG
Niederlassung Leipzig
Ludwig-Erhard-Straße 51
04103 Leipzig

Rechtlicher Hinweis:
Registergericht: Amtsgericht Dortmund HRB 20621
Sitz der Gesellschaft: 44536 Lünen, Am Brambusch 15-24
Vorstand: Wolfgang Neuhaus, Jens Wagener, Dr. Georg Pietrek
Aufsichtsrat: Prof. Dr. Burkhard Igel (Vorsitzender), Stephan Grollmann,
Michael Neuhaus



---------------------------------------------------------------------
To unsubscribe, e-mail: nexus-dev-unsubscribe@...
For additional commands, e-mail: nexus-dev-help@...


Re: howto get anonymous access to repos in 1.4.0-SNAPSHOT

by Brian Demers-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for sending your config, I will get it into a test

On Aug 25, 2009, at 10:51 AM, Steffen Stundzig wrote:

> hi,
>
> it seems that the anonymous password was changed during update. So the
> mechanism of autologin as anonymous if no user is specified has  
> failed.
>
> regards
>
> Brian Demers schrieb:
>> Steffen,
>>
>> Odd,  If you login and go to the users page.  What permissions does  
>> your
>> Anonymous user have?
>>
>> If possible, send my your nexus.xml and security.xml (change any  
>> private
>> info) and I can add a test for this case.
>>
>>
>> On Aug 18, 2009, at 11:15 AM, Steffen Stundzig wrote:
>>
>>> Hi,
>>>
>>> I've update my 1.3.6 nexus to 1.4.0-SNAPSHOT by simply copying and
>>> reusing the old sonatype-work directory.
>>>
>>> But now If I access one of my repositories with browser or maven  
>>> tools I
>>> must by authenticated with http auth.
>>>
>>> The server.log of nexus says:
>>>
>>> jvm 1    | 2009-08-18 17:05:52 INFO  -  
>>> o.s.n.s.f.a.NexusSe~          -
>>> Unable to authenticate user [anonymous] from address/host
>>> [127.0.0.1/127.0.0.1]
>>>
>>> The User exists in the nexus and it has also read access to all  
>>> repos.
>>> The default permissions and users are unchanged.
>>>
>>> What can I do?
>>>
>>> regards
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: nexus-dev-unsubscribe@...
>>> For additional commands, e-mail: nexus-dev-help@...
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: nexus-dev-unsubscribe@...
>> For additional commands, e-mail: nexus-dev-help@...
>>
>
> --
> Steffen Stundzig
> Leiter Niederlassung Leipzig
>
> Telefon: +49 (0) 341 / 231-0183-401
> Telefax: +49 (0) 341 / 231-0183-411
> Mobil:   +49 (0) 151 / 173-9673-1
>
> http://itemis.de
> http://twitter.com/itemis
> steffen.stundzig@...
> https://xing.com/profile/Steffen_Stundzig
>
> itemis AG
> Niederlassung Leipzig
> Ludwig-Erhard-Straße 51
> 04103 Leipzig
>
> Rechtlicher Hinweis:
> Registergericht: Amtsgericht Dortmund HRB 20621
> Sitz der Gesellschaft: 44536 Lünen, Am Brambusch 15-24
> Vorstand: Wolfgang Neuhaus, Jens Wagener, Dr. Georg Pietrek
> Aufsichtsrat: Prof. Dr. Burkhard Igel (Vorsitzender), Stephan  
> Grollmann,
> Michael Neuhaus
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: nexus-dev-unsubscribe@...
> For additional commands, e-mail: nexus-dev-help@...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: nexus-dev-unsubscribe@...
For additional commands, e-mail: nexus-dev-help@...