new SecurityGroup, cannot login

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

new SecurityGroup, cannot login

Vince Clark
I created a new security group called MKTGADMIN and added the following permissions:
OFBTOOLS_VIEW
MARKETING_ADMIN
The two base permissions in ofbiz-component.xml in the Marketing component are "OFBTOOLS,MARKETING" (for both the marketing and sfa webapps)

I assigned the new SecurityGroup to a UserLogin but when I try to login I get an error saying "required permissions are missing."

Reply | Threaded
Open this post in threaded view
|

Re: new SecurityGroup, cannot login

ian tabangay
You will need to clear ofbiz's cache for the new permissions to take effect.
Clicking "Clear All Caches" under Cache Maintenace of Webtools will suffice.

~ ian

On Tue, Jan 13, 2009 at 10:18 PM, Vince M. Clark <[hidden email]>wrote:

> I created a new security group called MKTGADMIN and added the following
> permissions:
> OFBTOOLS_VIEW
> MARKETING_ADMIN
> The two base permissions in ofbiz-component.xml in the Marketing component
> are "OFBTOOLS,MARKETING" (for both the marketing and sfa webapps)
>
> I assigned the new SecurityGroup to a UserLogin but when I try to login I
> get an error saying "required permissions are missing."
>
>
Reply | Threaded
Open this post in threaded view
|

Re: new SecurityGroup, cannot login

Vince Clark
Just tried it. Still cannot login.

----- Original Message -----
From: "ian tabangay" <[hidden email]>
To: [hidden email]
Sent: Tuesday, January 13, 2009 7:50:37 AM (GMT-0700) America/Denver
Subject: Re: new SecurityGroup, cannot login

You will need to clear ofbiz's cache for the new permissions to take effect.
Clicking "Clear All Caches" under Cache Maintenace of Webtools will suffice.

~ ian

On Tue, Jan 13, 2009 at 10:18 PM, Vince M. Clark <[hidden email]>wrote:

> I created a new security group called MKTGADMIN and added the following
> permissions:
> OFBTOOLS_VIEW
> MARKETING_ADMIN
> The two base permissions in ofbiz-component.xml in the Marketing component
> are "OFBTOOLS,MARKETING" (for both the marketing and sfa webapps)
>
> I assigned the new SecurityGroup to a UserLogin but when I try to login I
> get an error saying "required permissions are missing."
>
>
Reply | Threaded
Open this post in threaded view
|

Re: new SecurityGroup, cannot login

masionas
In reply to this post by Vince Clark
Permissions are cached, including no permissions status. So you have either to restart ofbiz to get the new permissions in effect or decrease cache time in props file to a couple of seconds.

Vince Clark wrote
I created a new security group called MKTGADMIN and added the following permissions:
OFBTOOLS_VIEW
MARKETING_ADMIN
The two base permissions in ofbiz-component.xml in the Marketing component are "OFBTOOLS,MARKETING" (for both the marketing and sfa webapps)

I assigned the new SecurityGroup to a UserLogin but when I try to login I get an error saying "required permissions are missing."
Reply | Threaded
Open this post in threaded view
|

Re: new SecurityGroup, cannot login

Vince Clark
I tried clearing the cache and restarting. No luck.

It is my understanding that the only thing controlling whether or not a permission can be used for login is the base permission setting in ofbiz-component.xml. Is this correct, or is there another setting somewhere else?

----- Original Message -----
From: "masionas" <[hidden email]>
To: [hidden email]
Sent: Tuesday, January 13, 2009 7:53:09 AM (GMT-0700) America/Denver
Subject: Re: new SecurityGroup, cannot login


I Permissions are cached, including no permissions status. So you have either
to restart ofbiz to get the new permissions in effect or decrease cache time
in props file to a couple of seconds.


Vince Clark wrote:

>
> I created a new security group called MKTGADMIN and added the following
> permissions:
> OFBTOOLS_VIEW
> MARKETING_ADMIN
> The two base permissions in ofbiz-component.xml in the Marketing component
> are "OFBTOOLS,MARKETING" (for both the marketing and sfa webapps)
>
> I assigned the new SecurityGroup to a UserLogin but when I try to login I
> get an error saying "required permissions are missing."
>
>
>

--
View this message in context: http://www.nabble.com/new-SecurityGroup%2C-cannot-login-tp21436938p21437261.html 
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|

Re: new SecurityGroup, cannot login

masionas
I would also suggest also to check the log file. It can have more detailed description of error saying what exact permission is missing.

Vince Clark wrote
I tried clearing the cache and restarting. No luck.

It is my understanding that the only thing controlling whether or not a permission can be used for login is the base permission setting in ofbiz-component.xml. Is this correct, or is there another setting somewhere else?

----- Original Message -----
From: "masionas" <michael@softasap.net> 
To: user@ofbiz.apache.org
Sent: Tuesday, January 13, 2009 7:53:09 AM (GMT-0700) America/Denver
Subject: Re: new SecurityGroup, cannot login


I Permissions are cached, including no permissions status. So you have either
to restart ofbiz to get the new permissions in effect or decrease cache time
in props file to a couple of seconds.


Vince Clark wrote:
>
> I created a new security group called MKTGADMIN and added the following
> permissions:
> OFBTOOLS_VIEW
> MARKETING_ADMIN
> The two base permissions in ofbiz-component.xml in the Marketing component
> are "OFBTOOLS,MARKETING" (for both the marketing and sfa webapps)
>
> I assigned the new SecurityGroup to a UserLogin but when I try to login I
> get an error saying "required permissions are missing."
>
>
>

--
View this message in context: http://www.nabble.com/new-SecurityGroup%2C-cannot-login-tp21436938p21437261.html 
Sent from the OFBiz - User mailing list archive at Nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: new SecurityGroup, cannot login

Vince Clark
Here is the log. I included several lines before and after the relevant error. You can see that all is being reported is "required permissions missing." No other information is in the log.


2009-01-13 08:31:54,487 (TP-Processor3) [ ControlServlet.java:93 :INFO ] The character encoding of the request is: [null]. The character encoding we will use for the request and response is: [UTF-8]
2009-01-13 08:31:54,488 (TP-Processor3) [ ControlServlet.java:131:INFO ] [[[login] Servlet Starting, doing setup- total:0.0,since last(Begin):0.0]]
2009-01-13 08:31:54,488 (TP-Processor3) [ ControlServlet.java:190:INFO ] [[[login] Setup done, doing Event(s) and View(s)- total:0.0,since last([login] Servlet S...):0.0]]
2009-01-13 08:31:54,494 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0060s: jndi:/0.0.0.0/sfa/WEB-INF/controller.xml
2009-01-13 08:31:54,500 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0050s: file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
2009-01-13 08:31:54,500 (TP-Processor3) [ ConfigXMLReader.java:653:INFO ] ConfigMap Created: (4) records in 0.0050s
2009-01-13 08:31:54,512 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.011s: file:/home/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml
2009-01-13 08:31:54,518 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0040s: file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
2009-01-13 08:31:54,519 (TP-Processor3) [ ConfigXMLReader.java:653:INFO ] ConfigMap Created: (4) records in 0.0060s
2009-01-13 08:31:54,520 (TP-Processor3) [ ConfigXMLReader.java:653:INFO ] ConfigMap Created: (4) records in 0.019s
2009-01-13 08:31:54,521 (TP-Processor3) [ ConfigXMLReader.java:653:INFO ] ConfigMap Created: (4) records in 0.026s
2009-01-13 08:31:54,526 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0050s: file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
2009-01-13 08:31:54,526 (TP-Processor3) [ ConfigXMLReader.java:811:INFO ] HandlerMap Created: (6) view handlers and (9) request/event handlers in 0.0050s
2009-01-13 08:31:54,538 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.011s: file:/home/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml
2009-01-13 08:31:54,544 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0050s: file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
2009-01-13 08:31:54,545 (TP-Processor3) [ ConfigXMLReader.java:811:INFO ] HandlerMap Created: (6) view handlers and (9) request/event handlers in 0.0060s
2009-01-13 08:31:54,545 (TP-Processor3) [ ConfigXMLReader.java:811:INFO ] HandlerMap Created: (7) view handlers and (9) request/event handlers in 0.018s
2009-01-13 08:31:54,545 (TP-Processor3) [ ConfigXMLReader.java:811:INFO ] HandlerMap Created: (7) view handlers and (9) request/event handlers in 0.024s
2009-01-13 08:31:54,551 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0050s: file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
2009-01-13 08:31:54,552 (TP-Processor3) [ ConfigXMLReader.java:386:INFO ] RequestMap Created: (10) records in 0.0060s
2009-01-13 08:31:54,564 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.011s: file:/home/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml
2009-01-13 08:31:54,571 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0040s: file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
2009-01-13 08:31:54,572 (TP-Processor3) [ ConfigXMLReader.java:386:INFO ] RequestMap Created: (10) records in 0.0060s
2009-01-13 08:31:54,582 (TP-Processor3) [ ConfigXMLReader.java:386:INFO ] RequestMap Created: (237) records in 0.029s
2009-01-13 08:31:54,585 (TP-Processor3) [ ConfigXMLReader.java:386:INFO ] RequestMap Created: (277) records in 0.039s
2009-01-13 08:31:54,590 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0050s: file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
2009-01-13 08:31:54,590 (TP-Processor3) [ ConfigXMLReader.java:480:INFO ] ViewMap Created: (8) records in 0.0050s
2009-01-13 08:31:54,602 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.011s: file:/home/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml
2009-01-13 08:31:54,608 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0040s: file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
2009-01-13 08:31:54,609 (TP-Processor3) [ ConfigXMLReader.java:480:INFO ] ViewMap Created: (8) records in 0.0050s
2009-01-13 08:31:54,611 (TP-Processor3) [ ConfigXMLReader.java:480:INFO ] ViewMap Created: (97) records in 0.02s
2009-01-13 08:31:54,612 (TP-Processor3) [ ConfigXMLReader.java:480:INFO ] ViewMap Created: (118) records in 0.027s
2009-01-13 08:31:54,617 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0050s: file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
2009-01-13 08:31:54,629 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.011s: file:/home/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml
2009-01-13 08:31:54,635 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0050s: file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
2009-01-13 08:31:54,638 (TP-Processor3) [ JkInputStream.java:196:INFO ] Receiving: getting request body chunk 78 78
2009-01-13 08:31:54,641 (TP-Processor3) [ RequestHandler.java:243:INFO ] [Processing Request]: login sessionId=170FFE9D402CF52774B2597A42C62325.jvm1
2009-01-13 08:31:54,754 (TP-Processor3) [ ServiceDispatcher.java:578:INFO ] Sync service [sfa/userLogin] finished in [113] milliseconds
2009-01-13 08:31:54,777 (TP-Processor3) [ RequestHandler.java:314:ERROR] Request login caused an error with the following message: Login for this application couldn't be completed (required permissions missing).
2009-01-13 08:31:54,777 (TP-Processor3) [ RequestHandler.java:433:INFO ] [RequestHandler.doRequest]: Response is a view. sessionId=170FFE9D402CF52774B2597A42C62325.jvm1
2009-01-13 08:31:54,777 (TP-Processor3) [ RequestHandler.java:584:INFO ] servletName=control, view=login sessionId=170FFE9D402CF52774B2597A42C62325.jvm1
2009-01-13 08:31:54,789 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.011s: file:/home/ofbiz/trunk/framework/common/widget/CommonScreens.xml
2009-01-13 08:31:54,791 (TP-Processor3) [ ScreenFactory.java:128:INFO ] Got 19 screens in 0.013s from: file:/home/ofbiz/trunk/framework/common/widget/CommonScreens.xml
2009-01-13 08:31:54,803 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.011s: file:/home/ofbiz/trunk/applications/marketing/widget/sfa/CommonScreens.xml
2009-01-13 08:31:54,805 (TP-Processor3) [ ScreenFactory.java:128:INFO ] Got 6 screens in 0.013s from: file:/home/ofbiz/trunk/applications/marketing/widget/sfa/CommonScreens.xml
2009-01-13 08:31:54,847 (TP-Processor3) [ ControlServlet.java:299:INFO ] [[[login] Done rendering page, Servlet Finished- total:0.359,since last([login] Setup don...):0.359]]
2009-01-13 08:35:02,281 (default-invoker-Thread-5) [ JobInvoker.java:230:INFO ] Invoker [default-invoker-Thread-5] received job [Send Email] from poller [org.ofbiz.service.job.JobPoller@46b4be3d]
2009-01-13 08:35:03,045 (default-invoker-Thread-5) [PersistedServiceJob.java:141:INFO ] org.ofbiz.service.job.PersistedServiceJob@5b2f9ee1[18500] -- Next runtime: 1231861200000
2009-01-13 08:35:03,080 (default-invoker-Thread-5) [ UtilXml.java:241:INFO ] XML Read 0.028s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml
2009-01-13 08:40:02,891 (default-invoker-Thread-5) [ JobInvoker.java:230:INFO ] Invoker [default-invoker-Thread-5] received job [Send Email] from poller [org.ofbiz.service.job.JobPoller@46b4be3d]
2009-01-13 08:40:03,657 (default-invoker-Thread-5) [PersistedServiceJob.java:141:INFO ] org.ofbiz.service.job.PersistedServiceJob@7ffbfbf9[18501] -- Next runtime: 1231861500000
2009-01-13 08:40:03,691 (default-invoker-Thread-5) [ UtilXml.java:241:INFO ] XML Read 0.028s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml
2009-01-13 08:45:02,617 (default-invoker-Thread-6) [ JobInvoker.java:230:INFO ] Invoker [default-invoker-Thread-6] received job [Send Email] from poller [org.ofbiz.service.job.JobPoller@46b4be3d]
2009-01-13 08:45:03,295 (default-invoker-Thread-6) [PersistedServiceJob.java:141:INFO ] org.ofbiz.service.job.PersistedServiceJob@17072b90[18502] -- Next runtime: 1231861800000
2009-01-13 08:45:03,326 (default-invoker-Thread-6) [ UtilXml.java:241:INFO ] XML Read 0.025s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml
2009-01-13 08:50:03,080 (default-invoker-Thread-9) [ JobInvoker.java:230:INFO ] Invoker [default-invoker-Thread-9] received job [Send Email] from poller [org.ofbiz.service.job.JobPoller@46b4be3d]
2009-01-13 08:50:03,826 (default-invoker-Thread-9) [PersistedServiceJob.java:141:INFO ] org.ofbiz.service.job.PersistedServiceJob@5fb271f1[18503] -- Next runtime: 1231862100000
2009-01-13 08:50:03,856 (default-invoker-Thread-9) [ UtilXml.java:241:INFO ] XML Read 0.025s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml
2009-01-13 08:55:03,594 (default-invoker-Thread-9) [ JobInvoker.java:230:INFO ] Invoker [default-invoker-Thread-9] received job [Send Email] from poller [org.ofbiz.service.job.JobPoller@46b4be3d]
2009-01-13 08:55:04,393 (default-invoker-Thread-9) [PersistedServiceJob.java:141:INFO ] org.ofbiz.service.job.PersistedServiceJob@3be67280[18504] -- Next runtime: 1231862400000
2009-01-13 08:55:04,425 (default-invoker-Thread-9) [ UtilXml.java:241:INFO ] XML Read 0.026s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml
2009-01-13 09:00:03,328 (default-invoker-Thread-6) [ JobInvoker.java:230:INFO ] Invoker [default-invoker-Thread-6] received job [Send Email] from poller [org.ofbiz.service.job.JobPoller@46b4be3d]
2009-01-13 09:00:03,968 (default-invoker-Thread-6) [PersistedServiceJob.java:141:INFO ] org.ofbiz.service.job.PersistedServiceJob@6e818805[18505] -- Next runtime: 1231862700000
2009-01-13 09:00:04,009 (default-invoker-Thread-6) [ UtilXml.java:241:INFO ] XML Read 0.034s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml
2009-01-13 09:02:22,008 (ContainerBackgroundProcessor[StandardEngine[default-server]]) [ControlEventListener.java:79 :WARN ] Could not find visit value object in session [A818DF5625713C89D926804C3A617D7B.jvm1] that is being destroyed
2009-01-13 09:02:22,009 (ContainerBackgroundProcessor[StandardEngine[default-server]]) [ControlEventListener.java:100:INFO ] Destroying session: A818DF5625713C89D926804C3A617D7B.jvm1
2009-01-13 09:02:22,014 (ContainerBackgroundProcessor[StandardEngine[default-server]]) [ControlEventListener.java:100:INFO ] Destroying session: 008EE39F5A5927CE518C50DE7056CC24.jvm1
2009-01-13 09:05:03,802 (default-invoker-Thread-6) [ JobInvoker.java:230:INFO ] Invoker [default-invoker-Thread-6] received job [Send Email] from poller [org.ofbiz.service.job.JobPoller@46b4be3d]
2009-01-13 09:05:04,518 (default-invoker-Thread-6) [PersistedServiceJob.java:141:INFO ] org.ofbiz.service.job.PersistedServiceJob@12b0f0ae[18506] -- Next runtime: 1231863000000
2009-01-13 09:05:04,549 (default-invoker-Thread-6) [ UtilXml.java:241:INFO ] XML Read 0.025s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml
2009-01-13 09:07:31,809 (TP-Processor3) [ ContextFilter.java:189:INFO ] [Request]: /webtools/control/main
2009-01-13 09:07:31,809 (TP-Processor3) [ ControlServlet.java:93 :INFO ] The character encoding of the request is: [null]. The character encoding we will use for the request and response is: [UTF-8]
2009-01-13 09:07:31,809 (TP-Processor3) [ ControlServlet.java:131:INFO ] [[[main] Servlet Starting, doing setup- total:0.0,since last(Begin):0.0]]
2009-01-13 09:07:31,809 (TP-Processor3) [ ControlServlet.java:190:INFO ] [[[main] Setup done, doing Event(s) and View(s)- total:0.0,since last([main] Servlet St...):0.0]]
2009-01-13 09:07:31,818 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0080s: jndi:/0.0.0.0/webtools/WEB-INF/controller.xml
2009-01-13 09:07:31,824 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0050s: file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
2009-01-13 09:07:31,824 (TP-Processor3) [ ConfigXMLReader.java:653:INFO ] ConfigMap Created: (4) records in 0.0050s
2009-01-13 09:07:31,825 (TP-Processor3) [ ConfigXMLReader.java:653:INFO ] ConfigMap Created: (4) records in 0.0060s
2009-01-13 09:07:31,830 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0040s: file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
2009-01-13 09:07:31,830 (TP-Processor3) [ ConfigXMLReader.java:811:INFO ] HandlerMap Created: (6) view handlers and (9) request/event handlers in 0.0050s
2009-01-13 09:07:31,830 (TP-Processor3) [ ConfigXMLReader.java:811:INFO ] HandlerMap Created: (8) view handlers and (11) request/event handlers in 0.0050s
2009-01-13 09:07:31,835 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0040s: file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
2009-01-13 09:07:31,837 (TP-Processor3) [ ConfigXMLReader.java:386:INFO ] RequestMap Created: (10) records in 0.0060s
2009-01-13 09:07:31,838 (TP-Processor3) [ ConfigXMLReader.java:386:INFO ] RequestMap Created: (103) records in 0.0070s
2009-01-13 09:07:31,843 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0040s: file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
2009-01-13 09:07:31,844 (TP-Processor3) [ ConfigXMLReader.java:480:INFO ] ViewMap Created: (8) records in 0.0050s
2009-01-13 09:07:31,845 (TP-Processor3) [ ConfigXMLReader.java:480:INFO ] ViewMap Created: (65) records in 0.0060s
2009-01-13 09:07:31,850 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0050s: file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
2009-01-13 09:07:31,851 (TP-Processor3) [ LoginWorker.java:789:WARN ] Could not find userLogin for external login key: EL403280994221

----- Original Message -----
From: "masionas" <[hidden email]>
To: [hidden email]
Sent: Tuesday, January 13, 2009 8:59:32 AM (GMT-0700) America/Denver
Subject: Re: new SecurityGroup, cannot login


I would also suggest also to check the log file. It can have more detailed
description of error saying what exact permission is missing.


Vince Clark wrote:

>
> I tried clearing the cache and restarting. No luck.
>
> It is my understanding that the only thing controlling whether or not a
> permission can be used for login is the base permission setting in
> ofbiz-component.xml. Is this correct, or is there another setting
> somewhere else?
>
> ----- Original Message -----
> From: "masionas" <[hidden email]>
> To: [hidden email]
> Sent: Tuesday, January 13, 2009 7:53:09 AM (GMT-0700) America/Denver
> Subject: Re: new SecurityGroup, cannot login
>
>
> I Permissions are cached, including no permissions status. So you have
> either
> to restart ofbiz to get the new permissions in effect or decrease cache
> time
> in props file to a couple of seconds.
>
>
> Vince Clark wrote:
>>
>> I created a new security group called MKTGADMIN and added the following
>> permissions:
>> OFBTOOLS_VIEW
>> MARKETING_ADMIN
>> The two base permissions in ofbiz-component.xml in the Marketing
>> component
>> are "OFBTOOLS,MARKETING" (for both the marketing and sfa webapps)
>>
>> I assigned the new SecurityGroup to a UserLogin but when I try to login I
>> get an error saying "required permissions are missing."
>>
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/new-SecurityGroup%2C-cannot-login-tp21436938p21437261.html 
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>
>

--
View this message in context: http://www.nabble.com/new-SecurityGroup%2C-cannot-login-tp21436938p21438651.html 
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|

Re: new SecurityGroup, cannot login

Vince Clark
Thanks to those that looked into this issue for me. Unfortunately I have to admit user error here. I created the SecurityGroup and added the correct permissions, but forgot to assign the SecurityGroup to the userLogin.

----- Original Message -----
From: "Vince M. Clark" <[hidden email]>
To: [hidden email]
Sent: Tuesday, January 13, 2009 9:10:55 AM (GMT-0700) America/Denver
Subject: Re: new SecurityGroup, cannot login

Here is the log. I included several lines before and after the relevant error. You can see that all is being reported is "required permissions missing." No other information is in the log.


2009-01-13 08:31:54,487 (TP-Processor3) [ ControlServlet.java:93 :INFO ] The character encoding of the request is: [null]. The character encoding we will use for the request and response is: [UTF-8]
2009-01-13 08:31:54,488 (TP-Processor3) [ ControlServlet.java:131:INFO ] [[[login] Servlet Starting, doing setup- total:0.0,since last(Begin):0.0]]
2009-01-13 08:31:54,488 (TP-Processor3) [ ControlServlet.java:190:INFO ] [[[login] Setup done, doing Event(s) and View(s)- total:0.0,since last([login] Servlet S...):0.0]]
2009-01-13 08:31:54,494 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0060s: jndi:/0.0.0.0/sfa/WEB-INF/controller.xml
2009-01-13 08:31:54,500 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0050s: file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
2009-01-13 08:31:54,500 (TP-Processor3) [ ConfigXMLReader.java:653:INFO ] ConfigMap Created: (4) records in 0.0050s
2009-01-13 08:31:54,512 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.011s: file:/home/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml
2009-01-13 08:31:54,518 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0040s: file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
2009-01-13 08:31:54,519 (TP-Processor3) [ ConfigXMLReader.java:653:INFO ] ConfigMap Created: (4) records in 0.0060s
2009-01-13 08:31:54,520 (TP-Processor3) [ ConfigXMLReader.java:653:INFO ] ConfigMap Created: (4) records in 0.019s
2009-01-13 08:31:54,521 (TP-Processor3) [ ConfigXMLReader.java:653:INFO ] ConfigMap Created: (4) records in 0.026s
2009-01-13 08:31:54,526 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0050s: file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
2009-01-13 08:31:54,526 (TP-Processor3) [ ConfigXMLReader.java:811:INFO ] HandlerMap Created: (6) view handlers and (9) request/event handlers in 0.0050s
2009-01-13 08:31:54,538 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.011s: file:/home/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml
2009-01-13 08:31:54,544 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0050s: file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
2009-01-13 08:31:54,545 (TP-Processor3) [ ConfigXMLReader.java:811:INFO ] HandlerMap Created: (6) view handlers and (9) request/event handlers in 0.0060s
2009-01-13 08:31:54,545 (TP-Processor3) [ ConfigXMLReader.java:811:INFO ] HandlerMap Created: (7) view handlers and (9) request/event handlers in 0.018s
2009-01-13 08:31:54,545 (TP-Processor3) [ ConfigXMLReader.java:811:INFO ] HandlerMap Created: (7) view handlers and (9) request/event handlers in 0.024s
2009-01-13 08:31:54,551 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0050s: file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
2009-01-13 08:31:54,552 (TP-Processor3) [ ConfigXMLReader.java:386:INFO ] RequestMap Created: (10) records in 0.0060s
2009-01-13 08:31:54,564 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.011s: file:/home/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml
2009-01-13 08:31:54,571 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0040s: file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
2009-01-13 08:31:54,572 (TP-Processor3) [ ConfigXMLReader.java:386:INFO ] RequestMap Created: (10) records in 0.0060s
2009-01-13 08:31:54,582 (TP-Processor3) [ ConfigXMLReader.java:386:INFO ] RequestMap Created: (237) records in 0.029s
2009-01-13 08:31:54,585 (TP-Processor3) [ ConfigXMLReader.java:386:INFO ] RequestMap Created: (277) records in 0.039s
2009-01-13 08:31:54,590 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0050s: file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
2009-01-13 08:31:54,590 (TP-Processor3) [ ConfigXMLReader.java:480:INFO ] ViewMap Created: (8) records in 0.0050s
2009-01-13 08:31:54,602 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.011s: file:/home/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml
2009-01-13 08:31:54,608 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0040s: file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
2009-01-13 08:31:54,609 (TP-Processor3) [ ConfigXMLReader.java:480:INFO ] ViewMap Created: (8) records in 0.0050s
2009-01-13 08:31:54,611 (TP-Processor3) [ ConfigXMLReader.java:480:INFO ] ViewMap Created: (97) records in 0.02s
2009-01-13 08:31:54,612 (TP-Processor3) [ ConfigXMLReader.java:480:INFO ] ViewMap Created: (118) records in 0.027s
2009-01-13 08:31:54,617 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0050s: file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
2009-01-13 08:31:54,629 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.011s: file:/home/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml
2009-01-13 08:31:54,635 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0050s: file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
2009-01-13 08:31:54,638 (TP-Processor3) [ JkInputStream.java:196:INFO ] Receiving: getting request body chunk 78 78
2009-01-13 08:31:54,641 (TP-Processor3) [ RequestHandler.java:243:INFO ] [Processing Request]: login sessionId=170FFE9D402CF52774B2597A42C62325.jvm1
2009-01-13 08:31:54,754 (TP-Processor3) [ ServiceDispatcher.java:578:INFO ] Sync service [sfa/userLogin] finished in [113] milliseconds
2009-01-13 08:31:54,777 (TP-Processor3) [ RequestHandler.java:314:ERROR] Request login caused an error with the following message: Login for this application couldn't be completed (required permissions missing).
2009-01-13 08:31:54,777 (TP-Processor3) [ RequestHandler.java:433:INFO ] [RequestHandler.doRequest]: Response is a view. sessionId=170FFE9D402CF52774B2597A42C62325.jvm1
2009-01-13 08:31:54,777 (TP-Processor3) [ RequestHandler.java:584:INFO ] servletName=control, view=login sessionId=170FFE9D402CF52774B2597A42C62325.jvm1
2009-01-13 08:31:54,789 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.011s: file:/home/ofbiz/trunk/framework/common/widget/CommonScreens.xml
2009-01-13 08:31:54,791 (TP-Processor3) [ ScreenFactory.java:128:INFO ] Got 19 screens in 0.013s from: file:/home/ofbiz/trunk/framework/common/widget/CommonScreens.xml
2009-01-13 08:31:54,803 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.011s: file:/home/ofbiz/trunk/applications/marketing/widget/sfa/CommonScreens.xml
2009-01-13 08:31:54,805 (TP-Processor3) [ ScreenFactory.java:128:INFO ] Got 6 screens in 0.013s from: file:/home/ofbiz/trunk/applications/marketing/widget/sfa/CommonScreens.xml
2009-01-13 08:31:54,847 (TP-Processor3) [ ControlServlet.java:299:INFO ] [[[login] Done rendering page, Servlet Finished- total:0.359,since last([login] Setup don...):0.359]]
2009-01-13 08:35:02,281 (default-invoker-Thread-5) [ JobInvoker.java:230:INFO ] Invoker [default-invoker-Thread-5] received job [Send Email] from poller [org.ofbiz.service.job.JobPoller@46b4be3d]
2009-01-13 08:35:03,045 (default-invoker-Thread-5) [PersistedServiceJob.java:141:INFO ] org.ofbiz.service.job.PersistedServiceJob@5b2f9ee1[18500] -- Next runtime: 1231861200000
2009-01-13 08:35:03,080 (default-invoker-Thread-5) [ UtilXml.java:241:INFO ] XML Read 0.028s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml
2009-01-13 08:40:02,891 (default-invoker-Thread-5) [ JobInvoker.java:230:INFO ] Invoker [default-invoker-Thread-5] received job [Send Email] from poller [org.ofbiz.service.job.JobPoller@46b4be3d]
2009-01-13 08:40:03,657 (default-invoker-Thread-5) [PersistedServiceJob.java:141:INFO ] org.ofbiz.service.job.PersistedServiceJob@7ffbfbf9[18501] -- Next runtime: 1231861500000
2009-01-13 08:40:03,691 (default-invoker-Thread-5) [ UtilXml.java:241:INFO ] XML Read 0.028s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml
2009-01-13 08:45:02,617 (default-invoker-Thread-6) [ JobInvoker.java:230:INFO ] Invoker [default-invoker-Thread-6] received job [Send Email] from poller [org.ofbiz.service.job.JobPoller@46b4be3d]
2009-01-13 08:45:03,295 (default-invoker-Thread-6) [PersistedServiceJob.java:141:INFO ] org.ofbiz.service.job.PersistedServiceJob@17072b90[18502] -- Next runtime: 1231861800000
2009-01-13 08:45:03,326 (default-invoker-Thread-6) [ UtilXml.java:241:INFO ] XML Read 0.025s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml
2009-01-13 08:50:03,080 (default-invoker-Thread-9) [ JobInvoker.java:230:INFO ] Invoker [default-invoker-Thread-9] received job [Send Email] from poller [org.ofbiz.service.job.JobPoller@46b4be3d]
2009-01-13 08:50:03,826 (default-invoker-Thread-9) [PersistedServiceJob.java:141:INFO ] org.ofbiz.service.job.PersistedServiceJob@5fb271f1[18503] -- Next runtime: 1231862100000
2009-01-13 08:50:03,856 (default-invoker-Thread-9) [ UtilXml.java:241:INFO ] XML Read 0.025s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml
2009-01-13 08:55:03,594 (default-invoker-Thread-9) [ JobInvoker.java:230:INFO ] Invoker [default-invoker-Thread-9] received job [Send Email] from poller [org.ofbiz.service.job.JobPoller@46b4be3d]
2009-01-13 08:55:04,393 (default-invoker-Thread-9) [PersistedServiceJob.java:141:INFO ] org.ofbiz.service.job.PersistedServiceJob@3be67280[18504] -- Next runtime: 1231862400000
2009-01-13 08:55:04,425 (default-invoker-Thread-9) [ UtilXml.java:241:INFO ] XML Read 0.026s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml
2009-01-13 09:00:03,328 (default-invoker-Thread-6) [ JobInvoker.java:230:INFO ] Invoker [default-invoker-Thread-6] received job [Send Email] from poller [org.ofbiz.service.job.JobPoller@46b4be3d]
2009-01-13 09:00:03,968 (default-invoker-Thread-6) [PersistedServiceJob.java:141:INFO ] org.ofbiz.service.job.PersistedServiceJob@6e818805[18505] -- Next runtime: 1231862700000
2009-01-13 09:00:04,009 (default-invoker-Thread-6) [ UtilXml.java:241:INFO ] XML Read 0.034s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml
2009-01-13 09:02:22,008 (ContainerBackgroundProcessor[StandardEngine[default-server]]) [ControlEventListener.java:79 :WARN ] Could not find visit value object in session [A818DF5625713C89D926804C3A617D7B.jvm1] that is being destroyed
2009-01-13 09:02:22,009 (ContainerBackgroundProcessor[StandardEngine[default-server]]) [ControlEventListener.java:100:INFO ] Destroying session: A818DF5625713C89D926804C3A617D7B.jvm1
2009-01-13 09:02:22,014 (ContainerBackgroundProcessor[StandardEngine[default-server]]) [ControlEventListener.java:100:INFO ] Destroying session: 008EE39F5A5927CE518C50DE7056CC24.jvm1
2009-01-13 09:05:03,802 (default-invoker-Thread-6) [ JobInvoker.java:230:INFO ] Invoker [default-invoker-Thread-6] received job [Send Email] from poller [org.ofbiz.service.job.JobPoller@46b4be3d]
2009-01-13 09:05:04,518 (default-invoker-Thread-6) [PersistedServiceJob.java:141:INFO ] org.ofbiz.service.job.PersistedServiceJob@12b0f0ae[18506] -- Next runtime: 1231863000000
2009-01-13 09:05:04,549 (default-invoker-Thread-6) [ UtilXml.java:241:INFO ] XML Read 0.025s: file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml
2009-01-13 09:07:31,809 (TP-Processor3) [ ContextFilter.java:189:INFO ] [Request]: /webtools/control/main
2009-01-13 09:07:31,809 (TP-Processor3) [ ControlServlet.java:93 :INFO ] The character encoding of the request is: [null]. The character encoding we will use for the request and response is: [UTF-8]
2009-01-13 09:07:31,809 (TP-Processor3) [ ControlServlet.java:131:INFO ] [[[main] Servlet Starting, doing setup- total:0.0,since last(Begin):0.0]]
2009-01-13 09:07:31,809 (TP-Processor3) [ ControlServlet.java:190:INFO ] [[[main] Setup done, doing Event(s) and View(s)- total:0.0,since last([main] Servlet St...):0.0]]
2009-01-13 09:07:31,818 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0080s: jndi:/0.0.0.0/webtools/WEB-INF/controller.xml
2009-01-13 09:07:31,824 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0050s: file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
2009-01-13 09:07:31,824 (TP-Processor3) [ ConfigXMLReader.java:653:INFO ] ConfigMap Created: (4) records in 0.0050s
2009-01-13 09:07:31,825 (TP-Processor3) [ ConfigXMLReader.java:653:INFO ] ConfigMap Created: (4) records in 0.0060s
2009-01-13 09:07:31,830 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0040s: file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
2009-01-13 09:07:31,830 (TP-Processor3) [ ConfigXMLReader.java:811:INFO ] HandlerMap Created: (6) view handlers and (9) request/event handlers in 0.0050s
2009-01-13 09:07:31,830 (TP-Processor3) [ ConfigXMLReader.java:811:INFO ] HandlerMap Created: (8) view handlers and (11) request/event handlers in 0.0050s
2009-01-13 09:07:31,835 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0040s: file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
2009-01-13 09:07:31,837 (TP-Processor3) [ ConfigXMLReader.java:386:INFO ] RequestMap Created: (10) records in 0.0060s
2009-01-13 09:07:31,838 (TP-Processor3) [ ConfigXMLReader.java:386:INFO ] RequestMap Created: (103) records in 0.0070s
2009-01-13 09:07:31,843 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0040s: file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
2009-01-13 09:07:31,844 (TP-Processor3) [ ConfigXMLReader.java:480:INFO ] ViewMap Created: (8) records in 0.0050s
2009-01-13 09:07:31,845 (TP-Processor3) [ ConfigXMLReader.java:480:INFO ] ViewMap Created: (65) records in 0.0060s
2009-01-13 09:07:31,850 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 0.0050s: file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
2009-01-13 09:07:31,851 (TP-Processor3) [ LoginWorker.java:789:WARN ] Could not find userLogin for external login key: EL403280994221

----- Original Message -----
From: "masionas" <[hidden email]>
To: [hidden email]
Sent: Tuesday, January 13, 2009 8:59:32 AM (GMT-0700) America/Denver
Subject: Re: new SecurityGroup, cannot login


I would also suggest also to check the log file. It can have more detailed
description of error saying what exact permission is missing.


Vince Clark wrote:

>
> I tried clearing the cache and restarting. No luck.
>
> It is my understanding that the only thing controlling whether or not a
> permission can be used for login is the base permission setting in
> ofbiz-component.xml. Is this correct, or is there another setting
> somewhere else?
>
> ----- Original Message -----
> From: "masionas" <[hidden email]>
> To: [hidden email]
> Sent: Tuesday, January 13, 2009 7:53:09 AM (GMT-0700) America/Denver
> Subject: Re: new SecurityGroup, cannot login
>
>
> I Permissions are cached, including no permissions status. So you have
> either
> to restart ofbiz to get the new permissions in effect or decrease cache
> time
> in props file to a couple of seconds.
>
>
> Vince Clark wrote:
>>
>> I created a new security group called MKTGADMIN and added the following
>> permissions:
>> OFBTOOLS_VIEW
>> MARKETING_ADMIN
>> The two base permissions in ofbiz-component.xml in the Marketing
>> component
>> are "OFBTOOLS,MARKETING" (for both the marketing and sfa webapps)
>>
>> I assigned the new SecurityGroup to a UserLogin but when I try to login I
>> get an error saying "required permissions are missing."
>>
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/new-SecurityGroup%2C-cannot-login-tp21436938p21437261.html 
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>
>

--
View this message in context: http://www.nabble.com/new-SecurityGroup%2C-cannot-login-tp21436938p21438651.html 
Sent from the OFBiz - User mailing list archive at Nabble.com.