Discussion:
creating a new user login
Wai
2011-10-14 18:33:05 UTC
Permalink
Hello All,

from https://localhost:8443/partymgr/control/createnewlogin

Ofbiz permits me to create a new user login. But does not allow me to place
the new user login into a security group, does not allow me to associate it
with an existing party/partygroup. As a result, the new user cannot be used
to access any components.

Am I missing some steps.

Thanks,
Wai

--
View this message in context: http://ofbiz.135035.n4.nabble.com/creating-a-new-user-login-tp3905814p3905814.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
BJ Freeman
2011-10-14 20:21:40 UTC
Permalink
once created go to the user login portion of the party(group) and you
will see roles and security. click n security and you can add the
permissions.
Post by Wai
Hello All,
from https://localhost:8443/partymgr/control/createnewlogin
Ofbiz permits me to create a new user login. But does not allow me to place
the new user login into a security group, does not allow me to associate it
with an existing party/partygroup. As a result, the new user cannot be used
to access any components.
Am I missing some steps.
Thanks,
Wai
--
View this message in context: http://ofbiz.135035.n4.nabble.com/creating-a-new-user-login-tp3905814p3905814.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
Wai
2011-10-15 01:15:53 UTC
Permalink
That can't be done.

When a new username is created, it is not associated with a party.
Attempting to locate the user name using the party search page
(https://localhost:8443/partymgr/control/main) does not yield the newly
created username.

Since the party search cannot locate the username, and the username is not
already associated with a party/partygroup, there is no way I can view the
party profile page to work with the securitygroup and permission portion.

Any other suggestion would be appreciated or is this a bug?

Thanks,
Wai

--
View this message in context: http://ofbiz.135035.n4.nabble.com/creating-a-new-user-login-tp3905814p3906688.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
Wai
2011-10-15 02:26:51 UTC
Permalink
On a second note.
Does it make sense to define a username to allow a person to access the
ofbiz components without an associated party or partygroup info? I could
not think of any instance where such a situation would be useful.
Thanks

--
View this message in context: http://ofbiz.135035.n4.nabble.com/creating-a-new-user-login-tp3905814p3906739.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
BJ Freeman
2011-10-15 06:28:26 UTC
Permalink
with the userlogin part of a party or partygroup, it assumes the
attributes of that partyID
Post by Wai
On a second note.
Does it make sense to define a username to allow a person to access the
ofbiz components without an associated party or partygroup info? I could
not think of any instance where such a situation would be useful.
Thanks
--
View this message in context: http://ofbiz.135035.n4.nabble.com/creating-a-new-user-login-tp3905814p3906739.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
BJ Freeman
2011-10-15 06:25:37 UTC
Permalink
depends on how you creating the login.
programing it should follow creating and or selecting a partyID, then
use that partyID when you created the userlogin.
then use use the userlogingID to add the security portion.

from the webpages you select or create a party
then go into the party and in the Userlogin create a login.
this does all the association you need.
then select the Userlogin and add the roles and security.
Post by Wai
That can't be done.
When a new username is created, it is not associated with a party.
Attempting to locate the user name using the party search page
(https://localhost:8443/partymgr/control/main) does not yield the newly
created username.
Since the party search cannot locate the username, and the username is not
already associated with a party/partygroup, there is no way I can view the
party profile page to work with the securitygroup and permission portion.
Any other suggestion would be appreciated or is this a bug?
Thanks,
Wai
--
View this message in context: http://ofbiz.135035.n4.nabble.com/creating-a-new-user-login-tp3905814p3906688.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
BJ Freeman
2011-10-15 06:38:28 UTC
Permalink
you can also look at the ant script to create a userlogin for admin.
ant -p
Post by BJ Freeman
depends on how you creating the login.
programing it should follow creating and or selecting a partyID, then
use that partyID when you created the userlogin.
then use use the userlogingID to add the security portion.
from the webpages you select or create a party
then go into the party and in the Userlogin create a login.
this does all the association you need.
then select the Userlogin and add the roles and security.
Post by Wai
That can't be done.
When a new username is created, it is not associated with a party.
Attempting to locate the user name using the party search page
(https://localhost:8443/partymgr/control/main) does not yield the newly
created username.
Since the party search cannot locate the username, and the username is not
already associated with a party/partygroup, there is no way I can view the
party profile page to work with the securitygroup and permission portion.
Any other suggestion would be appreciated or is this a bug?
Thanks,
Wai
--
View this message in context: http://ofbiz.135035.n4.nabble.com/creating-a-new-user-login-tp3905814p3906688.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
Wai
2011-10-16 04:52:05 UTC
Permalink
The procedure you mentioned in creating a username for an "existing"
party/partygroup is what I have expected to be the proper procedure.

The original intent of this posting was that ofbiz allows me to create just
a username "without" an associated party/partygroup. After which, I cannot
associate the username with a party/partygroup. Hence, the username cannot
be associated with a security group. Hence, no access to ofbiz using this
username. In short, the newly created username is useless.

I think that this is a bug and the button to create just a new userlogin
should be removed or the screen should be enhanced to specify an existing
party/partygroup that the username is to be associated with.

The page I'm referring to is
https://localhost:8443/partymgr/control/createnewlogin

Thanks

--
View this message in context: http://ofbiz.135035.n4.nabble.com/creating-a-new-user-login-tp3905814p3908846.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
BJ Freeman
2011-10-16 09:09:46 UTC
Permalink
go to https://demo-trunk.ofbiz.apache.org/webtools/control/ArtifactInfo
type in createnewlogin then click find.
you will see there is no direct call from a webpage to the url.
it is part of other processes.
so could you expand on why you think this is a problem.
BTW I agree with what you said, just don't see it as a issue.
Post by Wai
The procedure you mentioned in creating a username for an "existing"
party/partygroup is what I have expected to be the proper procedure.
The original intent of this posting was that ofbiz allows me to create just
a username "without" an associated party/partygroup. After which, I cannot
associate the username with a party/partygroup. Hence, the username cannot
be associated with a security group. Hence, no access to ofbiz using this
username. In short, the newly created username is useless.
I think that this is a bug and the button to create just a new userlogin
should be removed or the screen should be enhanced to specify an existing
party/partygroup that the username is to be associated with.
The page I'm referring to is
https://localhost:8443/partymgr/control/createnewlogin
Thanks
--
View this message in context: http://ofbiz.135035.n4.nabble.com/creating-a-new-user-login-tp3905814p3908846.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
Wai
2011-10-16 18:21:26 UTC
Permalink
Here is a link to a page that allows you to create a new username without an
associated party/partygroup.

https://demo-trunk.ofbiz.apache.org/partymgr/control/FindUserLogin

Take note of the "create new" button. This button will result in a request
to https://demo-trunk.ofbiz.apache.org/partymgr/control/createnewlogin ,
that allows you to create a new username without an associated
party/partygroup

My proposal is to correct the
https://demo-trunk.ofbiz.apache.org/partymgr/control/createnewlogin page to
contain functionality to select an existing party (or create a new party)
and then associate the newly created username to it.

The request map for "createnewlogin" is located in
component://common/webcommon/WEB-INF/security-controller.xml. This can be
found from the tool you specified previously,
https://demo-trunk.ofbiz.apache.org/webtools/control/ArtifactInfo

Clearly, this conflicts with your previous statement, "...you will see there
is no direct call from a webpage to the url. it is part of other processes.
...". Unless we're referring to different areas.

Thanks


--
View this message in context: http://ofbiz.135035.n4.nabble.com/creating-a-new-user-login-tp3905814p3910064.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
BJ Freeman
2011-10-17 17:15:49 UTC
Permalink
we are both right, for what that is worth.
to focus on your question, it looks like this was developed for external
logins with lack of understanding or not completed.
The solution is to put in a drop down box to select a partyID and make
sure that is required
Post by Wai
Here is a link to a page that allows you to create a new username without an
associated party/partygroup.
https://demo-trunk.ofbiz.apache.org/partymgr/control/FindUserLogin
Take note of the "create new" button. This button will result in a request
to https://demo-trunk.ofbiz.apache.org/partymgr/control/createnewlogin ,
that allows you to create a new username without an associated
party/partygroup
My proposal is to correct the
https://demo-trunk.ofbiz.apache.org/partymgr/control/createnewlogin page to
contain functionality to select an existing party (or create a new party)
and then associate the newly created username to it.
The request map for "createnewlogin" is located in
component://common/webcommon/WEB-INF/security-controller.xml. This can be
found from the tool you specified previously,
https://demo-trunk.ofbiz.apache.org/webtools/control/ArtifactInfo
Clearly, this conflicts with your previous statement, "...you will see there
is no direct call from a webpage to the url. it is part of other processes.
...". Unless we're referring to different areas.
Thanks
--
View this message in context: http://ofbiz.135035.n4.nabble.com/creating-a-new-user-login-tp3905814p3910064.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
Loading...