You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by mu baosen <mu...@gmail.com> on 2006/02/10 02:59:57 UTC
Customizing login module
Hello everyone.
I want to implement a login module . in the login module, I want to
implement the following functions:
1. If the user does not exist, create a new user.
2. If the password is incorrect, change the user's password to the new
password which just input.
How to create new user and change password? Which class should I start?
Thanks.
Re: Customizing login module
Posted by Aaron Evans <aa...@yahoo.ca>.
Jacek Wiślicki <jacek.wislicki <at> gmail.com> writes:
>
> Wiadomosc od mu baosen z 2006-02-10 03:20 brzmiala:
>
> > How to get the current password of a user?
> Passwords are MD5 hashes with user login name. You can verify passwords,
> but not retrieve them.
>
True, but you can always swap the PortalCredentialHandler and use an encoding
scheme that can be decoded.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: Customizing login module
Posted by Jacek Wiślicki <ja...@gmail.com>.
Wiadomosc od mu baosen z 2006-02-10 03:20 brzmiala:
> How to get the current password of a user?
Passwords are MD5 hashes with user login name. You can verify passwords,
but not retrieve them.
--
pozdrawiam,
Jacek Wislicki
jacek.wislicki@gmail.com
tel.: +48 502 408 444
gg: 2540358
skype: jacek_wislicki
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: Customizing login module
Posted by mu baosen <mu...@gmail.com>.
>
> Thanks for replying.
How to call getPortletContext() in login module?
Re: Customizing login module
Posted by Pham Tuan Minh <ph...@yahoo.com>.
Mu Baosen,
1) CODE:
admin = (PortalAdministration)
getPortletContext().getAttribute(
CommonPortletServices.CPS_PORTAL_ADMINISTRATION);
userManager = (UserManager)
getPortletContext().getAttribute(
"cps:UserManager");
roleManager = (PortalAdministration)
getPortletContext().getAttribute(
CommonPortletServices.CPS_ROLE_MANAGER_COMPONENT);
2) CONFIG
--- David Sean Taylor <da...@bluesunrise.com> wrote:
> Pham Tuan Minh wrote:
> >
> > When I run the portlet, userManager = null.
> > What is the wrong ?
> > How to update user infomation ? Which functions
> must I use ?
> >
> In your portlet application war, add a
> jetspeed-portlet.xml.
> Here is an example from the j2-admin portlet
> application:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <portlet-app id="j2-admin" version="1.0"
>
>
xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
> xmlns:js="http://portals.apache.org/jetspeed"
> xmlns:dc="http://www.purl.org/dc">
>
> ....
> <js:services>
> <js:service
> name='ApplicationServerManager'/>
> <js:service name='DeploymentManager'/>
> <js:service name='EntityAccessor'/>
> <js:service name='GroupManager'/>
> <js:service name='PageManager'/>
> <js:service name='PermissionManager'/>
> <js:service name='PortalAdministration'/>
> <js:service name='PortletFactory'/>
> <js:service name='PortalAdministration'/>
> <js:service
> name='PortletRegistryComponent'/>
> <js:service name='PortalStatistics'/>
> <js:service name="Profiler" />
> <js:service name='RoleManager'/>
> <js:service name='SearchComponent'/>
> <js:service name="SSO" />
> <js:service name='UserManager'/>
> </js:services>
>
> </portlet-app>
>
--- mu baosen <mu...@gmail.com> wrote:
> I have read the source of UserRegistrationPortlet
> and ChangePasswordPortlet.
>
> How to get the current password of a user? How to
> get the
> PortalAdministration or UserManager and RoleManager
> instance in login
> module?
>
> Thanks
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
protection around
http://mail.yahoo.com
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: Customizing login module
Posted by mu baosen <mu...@gmail.com>.
I have read the source of UserRegistrationPortlet and ChangePasswordPortlet.
How to get the current password of a user? How to get the
PortalAdministration or UserManager and RoleManager instance in login
module?
Thanks
Re: Customizing login module
Posted by Bon <bo...@unipattern.com>.
David Sean Taylor wrote:
>
>
> On May 5, 2008, at 9:11 PM, Bon wrote:
>
>>
>> Hello list,
>>
>> If it is possible to use PortalAdministration and Managers in
>> Servlet or
>> LoginModule,
>> what should I do? setting some configurations or ...?
>>
>> Please let me know does it possible?! thanks ^_^
>>
> Im not sure if I completely understand the question.
> Jetspeed does work fine with with container managed security, as by
> default, we use our own login module to authenticate
> You can also use other login modules, such as this example:
>
> http://portals.apache.org/jetspeed-2/guides/guide-ntlm.html
>
> We are also working on a shibboleth example to add to the online docs
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
Hello David,
My boss required me to find out a way to create a j2 user account in the
login process,
if a user login into our server and he/she without a j2 user account but
he/she pass through
our new login authentication.
so, if a user is not exist in j2 but it can pass through the
authentication, then we must add
a j2 user account for this user in the login processing procedure.
so, I want to know how to create a new j2 portal-user account in Servlet
or LoginModule.
I've read the UserRegersiterPortlet source code, and I know if I want to
create a portal-user
account that what kinds of the procedure should be done, and its need some
components like
Managers and PortalAdministration, so I need to know how to get those
components or is it
possible to create a portal-user account without a portlet and how to do?
Best Regards,
Bon
--
View this message in context: http://www.nabble.com/Customizing-login-module-tp2863029p17244802.html
Sent from the Jetspeed - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: Customizing login module
Posted by David Sean Taylor <da...@bluesunrise.com>.
On May 5, 2008, at 9:11 PM, Bon wrote:
>
> Hello list,
>
> Now, I have a work that like Mu Baosen's question,
> and our idea just like Mu Baosen's thinking, and I'm finding out
> the way
> to do it.
> Does it possible? or there has another way to do not in the login
> module?
>
> maybe I could be difference way, but I think I need a way to use
> PortalAdministration and Managers legally without portlet, and
> maybe in a
> Servlet or LoginModule.
> Does it possible?
>
> If it is possible to use PortalAdministration and Managers in
> Servlet or
> LoginModule,
> what should I do? setting some configurations or ...?
>
> Please let me know does it possible?! thanks ^_^
>
Im not sure if I completely understand the question.
Jetspeed does work fine with with container managed security, as by
default, we use our own login module to authenticate
You can also use other login modules, such as this example:
http://portals.apache.org/jetspeed-2/guides/guide-ntlm.html
We are also working on a shibboleth example to add to the online docs
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: Customizing login module
Posted by Bon <bo...@unipattern.com>.
Hello list,
Now, I have a work that like Mu Baosen's question,
and our idea just like Mu Baosen's thinking, and I'm finding out the way
to do it.
Does it possible? or there has another way to do not in the login module?
maybe I could be difference way, but I think I need a way to use
PortalAdministration and Managers legally without portlet, and maybe in a
Servlet or LoginModule.
Does it possible?
If it is possible to use PortalAdministration and Managers in Servlet or
LoginModule,
what should I do? setting some configurations or ...?
Please let me know does it possible?! thanks ^_^
Best Regards,
Bon
mu baosen wrote:
>
> Aaron,
> Thanks.I have another web application which uses difference user table
> with
> jetspeed 2. I want to do that jetspeed would login automatically when the
> old web application logged in.So I think if jetspeed 2 create each of
> the user in my old web application's user table automatically, then
> jetspeed
> 2 would authenticate the user of my old web application sucessfully.But
> now
> I can not make jetspeed 2 create user automatically.I want to implement a
> login module for this function. When my old web application logging in,
> the
> login module create the same user with the old web application user.
>
>
--
View this message in context: http://www.nabble.com/Customizing-login-module-tp2863029p17071566.html
Sent from the Jetspeed - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: Customizing login module
Posted by mu baosen <mu...@gmail.com>.
Aaron,
Thanks.I have another web application which uses difference user table with
jetspeed 2. I want to do that jetspeed would login automatically when the
old web application logged in.So I think if jetspeed 2 create each of
the user in my old web application's user table automatically, then jetspeed
2 would authenticate the user of my old web application sucessfully.But now
I can not make jetspeed 2 create user automatically.I want to implement a
login module for this function. When my old web application logging in, the
login module create the same user with the old web application user.
Re: Put portlet position in vertical menu
Posted by Jacek Wiślicki <ja...@gmail.com>.
Wiadomosc od Jacek Wiślicki z 2006-02-11 04:20 brzmiala:
>> Can I put Login portlet position in vertical menu ?
> I guess this is what you need. See the last Randy's comment.
Oops, and the link:
http://comments.gmane.org/gmane.comp.jakarta.jetspeed.user/16148
--
pozdrawiam,
Jacek Wislicki
jacek.wislicki@gmail.com
tel.: +48 502 408 444
gg: 2540358
skype: jacek_wislicki
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: Put portlet position in vertical menu
Posted by Jacek Wiślicki <ja...@gmail.com>.
Wiadomosc od Pham Tuan Minh z 2006-02-11 03:01 brzmiala:
> Can I put Login portlet position in vertical menu ?
I guess this is what you need. See the last Randy's comment.
--
pozdrawiam,
Jacek Wislicki
jacek.wislicki@gmail.com
tel.: +48 502 408 444
gg: 2540358
skype: jacek_wislicki
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Put portlet position in vertical menu
Posted by Pham Tuan Minh <ph...@yahoo.com>.
Hi,
Can I put Login portlet position in vertical menu ?
Thanks.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: Customizing login module
Posted by Aaron Evans <aa...@yahoo.ca>.
mu baosen <mubaosen <at> gmail.com> writes:
>
> Hello everyone.
>
> I want to implement a login module . in the login module, I want to
> implement the following functions:
>
> 1. If the user does not exist, create a new user.
> 2. If the password is incorrect, change the user's password to the new
> password which just input.
>
> How to create new user and change password? Which class should I start?
>
> Thanks.
>
I just had to ask... What kind of application are you making that you would
want it to behave this way? You aren't building some kind of phishing scam
website, are you? ;-)
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org