[Red5] AdminPanel for War Version
Manuel R.G.
info at vengava.com
Sat Dec 22 14:12:48 PST 2007
The swf only does this:
encrypted = md5("secretpassword{seKret}")
yes, with the "{}" included, try it
2007/12/22, Dan Rossi <spam at electroteque.org>:
>
> That class example i provided before is in trunk. I made one up but
> couldnt work out an easy way to run it ! That swf works too , didnt know it
> was possible via flash, i guess its just an md5 and a salt correct ? I guess
> i could make an swf version i guess to supply into trunk.
> On 23/12/2007, at 2:02 AM, Manuel R.G. wrote:
>
> While an ant task for generating passwords automatically isn't available
> (i'm not much experienced with ant yet) you can use this attached swf to
> produce encrypted passwords ;)
>
> I have just done it and haven't fully tested it but seems to work the way
> acegi Md5PasswordEncoder does.
>
>
> 2007/12/22, Dan Rossi <spam at electroteque.org>:
> >
> > Where is object.cache in red5-security.xml ? I believe this sets up the
> > users cache inside the daoAuthenticationProvider.
> >
> > <beans>
> > <bean id="authenticationManager" class="
> > org.acegisecurity.providers.ProviderManager">
> > <property name="providers" >
> > <list>
> > <ref local ="daoAuthenticationProvider"/>
> > </list>
> > </property>
> > </bean>
> > <bean id="daoAuthenticationProvider" class="
> > org.acegisecurity.providers.dao.DaoAuthenticationProvider">
> > <property name ="userDetailsService" ref="userDetailsService"/>
> > <property name ="saltSource"><ref bean= "saltSource"/></property>
> > <property name="passwordEncoder"><ref bean="passwordEncoder"
> > /></property>
> > <property name ="userCache">
> > <bean class="
> > org.acegisecurity.providers.dao.cache.EhCacheBasedUserCache" >
> > <property name ="cache">
> > <bean class="org.springframework.cache.ehcache.EhCacheFactoryBean">
> > <property name="cacheManager">
> > <bean class="
> > org.springframework.cache.ehcache.EhCacheManagerFactoryBean "/>
> > </property>
> > <property name ="cacheName" value="userCache"/>
> > </bean>
> > </property>
> > </bean>
> > </property>
> > </bean>
> >
> > <bean id="passwordEncoder" class ="
> > org.acegisecurity.providers.encoding.Md5PasswordEncoder" />
> >
> > <bean id="saltSource" class= "
> > org.acegisecurity.providers.dao.salt.SystemWideSaltSource">
> > <property name="systemWideSalt" >
> > <value>seKret</value>
> > </property>
> > </bean>
> >
> > <bean id="userDetailsService" class ="
> > org.acegisecurity.userdetails.memory.InMemoryDaoImpl">
> > <property name="userProperties" >
> > <bean class="
> > org.springframework.beans.factory.config.PropertiesFactoryBean">
> > <property name ="location" value="/WEB-INF/users.properties"/>
> > </bean>
> > </property>
> > </bean>
> > </beans>
> >
> > No comment on walmart I could rant for hours haha.
> >
> > On 23/12/2007, at 12:34 AM, Lenny Sorey wrote:
> >
> > OK DAN,
> >
> > I now have the adminPanel working with WEBWAR version of RED5.
> >
> > I will write up what I had to do in order to get it working and publish
> > for all webwar users.
> >
> > One question I do have regarding jetty users using the adminPanel.
> >
> > Did you have to uncomment the following in the red5-common.xml top get
> > this to work?
> >
> > <bean id=" object.cache" class="org.red5.server.cache.EhCacheImpl"
> > init-method="init">
> > <property name="diskStore" value="java.io.tmpdir" />
> > <property name="memoryStoreEvictionPolicy" value="LFU" />
> > <property name="cacheManagerEventListener"><null/></property>
> > <property name="cacheConfigs">
> > <list>
> > <bean class="net.sf.ehcache.config.CacheConfiguration ">
> > <property name="name" value="flv.cache" />
> > <property name="maxElementsInMemory" value="5" />
> > <property name="eternal" value="false" />
> > <property name="timeToIdleSeconds" value="0" />
> > <property name="timeToLiveSeconds" value="0" />
> > <property name="overflowToDisk" value="false" />
> > <property name="diskPersistent" value="false" />
> > </bean>
> > </list>
> > </property>
> > </bean>
> >
> > I had to comment the following in the red5-security.xml file in order
> > to get this to work:
> >
> > <!-- <property name="userCache">
> > <bean class="
> > org.acegisecurity.providers.dao.cache.EhCacheBasedUserCache ">
> > <property name="cache">
> > <bean class=" org.springframework.cache.ehcache.EhCacheFactoryBean
> > ">
> > <property name="cacheManager">
> > <bean class="
> > org.springframework.cache.ehcache.EhCacheManagerFactoryBean"/>
> > </property>
> > <property name="cacheName" value="userCache"/>
> > </bean>
> > </property>
> > </bean>
> > </property> -->
> >
> > Have to go to the Grocery Store, Walmart, where America shops : ) now
> > with my wife. We are getting ready for Christmas Eve celebration at our
> > house.
> >
> > I will write up what I did a little later on for everyone.
> >
> > Regards,
> >
> > Lenny
> >
> >
> >
> >
> > On 12/21/07, Dan Rossi <spam at electroteque.org> wrote:
> > >
> > > Ok its a bit tricky, would be easier if acegi had a standard password
> > > generator main class.
> > >
> > > cd dist/webapps/adminPanel/WEB-INF
> > >
> > >
> > > java -classpath classes:../../../lib/acegi-
> > > security-1.0.4.jar:../../../lib/commons-codec-1.3.jar
> > > org.red5.adminPanel.utils.PasswordGenerator username password
> > >
> > >
> > > Could anyone advice on the easiest way to setup a shell / ant build
> > > for this ? I could even consider turning it into a gui :D
> > >
> > > On 22/12/2007, at 1:03 PM, Dan Rossi wrote:
> > >
> > > Lenny im not sure how you include the red5-security.xml. The entire
> > > thing needs to be included into the war for the adminPanel app. Does it get
> > > included just for that app or for all apps ? Its the acegi security config,
> > > it does call upon users.properties for its users. I'm about to look
> > > into an ant task to call the class built to create new encrypted passwords.
> > >
> > > On 22/12/2007, at 1:36 AM, Lenny Sorey wrote:
> > >
> > > Hello All,
> > >
> > > I am starting to try to play with the adminPanel for the war version
> > > of RED5.
> > >
> > > I have a couple of questions regarding the war vesion.
> > >
> > > First of all, looking into the adminPanel-web.xml, I have the
> > > following:
> > >
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <beans xmlns=" http://www.springframework.org/schema/beans "
> > > xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance "
> > > xmlns:lang=" http://www.springframework.org/schema/lang "
> > > xsi:schemaLocation="
> > > http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
> > >
> > > http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.0.xsd
> > > ">
> > >
> > > <bean id="authClientRegistry" class="
> > > org.red5.adminPanel.client.AuthClientRegistry"/>
> > >
> > > <bean id=" web.context.adminPanel <http://web.context.adminpanel/>"
> > > class="org.red5.server.Context" autowire="byType">
> > > <property name="scopeResolver" ref="red5.scopeResolver" />
> > > <property name="clientRegistry" ref="authClientRegistry" />
> > > <property name="serviceInvoker" ref=" global.serviceInvoker" />
> > > <property name="mappingStrategy" ref=" global.mappingStrategy" />
> > > </bean>
> > >
> > > <bean id="web.scope.adminPanel <http://web.scope.adminpanel/>"
> > > class="org.red5.server.WebScope"
> > > init-method="register">
> > > <property name="server" ref="red5.server" />
> > > <property name="parent" ref=" global.scope" />
> > > <property name="context" ref=" web.context.adminPanel<http://web.context.adminpanel/>"
> > > />
> > > <property name="handler" ref="web.handler.adminPanel
> > > <http://web.handler.adminpanel/>" />
> > > <property name="contextPath" value="/adminPanel" />
> > > <property name="virtualHosts" value="@virtual.hosts@" />
> > > </bean>
> > >
> > > <bean id=" web.handler.adminPanel <http://web.handler.adminpanel/>"
> > > class="org.red5.adminPanel.panel.adminPanel" />
> > >
> > > </beans>
> > >
> > >
> > >
> > > I noticed in the webapps folder that there is a reference to to a
> > > users.properties files.
> > >
> > > So I added the following to the adminPanel-web.xml and it now looks
> > > like this:
> > >
> > > <?xml version=" 1.0" encoding="UTF-8"?>
> > > <beans xmlns="http://www.springframework.org/schema/beans "
> > > xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
> > > xmlns:lang=" http://www.springframework.org/schema/lang "
> > > xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
> > >
> > > http://www.springframework.org/schema/lang
> > > http://www.springframework.org/schema/lang/spring-lang-2.0.xsd">
> > >
> > > <bean id="authClientRegistry" class="
> > > org.red5.adminPanel.client.AuthClientRegistry"/>
> > >
> > > <bean id=" web.context.adminPanel <http://web.context.adminpanel/>"
> > > class="org.red5.server.Context" autowire="byType">
> > > <property name="scopeResolver" ref="red5.scopeResolver" />
> > > <property name="clientRegistry" ref="authClientRegistry" />
> > > <property name="serviceInvoker" ref=" global.serviceInvoker" />
> > > <property name="mappingStrategy" ref=" global.mappingStrategy" />
> > > </bean>
> > >
> > > <bean id=" web.scope.adminPanel <http://web.scope.adminpanel/>"
> > > class="org.red5.server.WebScope"
> > > init-method="register">
> > > <property name="server" ref="red5.server" />
> > > <property name="parent" ref=" global.scope" />
> > > <property name="context" ref=" web.context.adminPanel<http://web.context.adminpanel/>"
> > > />
> > > <property name="handler" ref="web.handler.adminPanel
> > > <http://web.handler.adminpanel/>" />
> > > <property name="contextPath" value="/adminPanel" />
> > > <property name="virtualHosts" value="@virtual.hosts@" />
> > > </bean>
> > >
> > > <bean id=" web.handler.adminPanel <http://web.handler.adminpanel/>"
> > > class="org.red5.adminPanel.panel.adminPanel" />
> > >
> > > <!-- Added by Lenny -->
> > >
> > > <bean id="userDetailsService" class="
> > > org.acegisecurity.userdetails.memory.InMemoryDaoImpl">
> > > <property name="userProperties">
> > > <bean class="
> > > org.springframework.beans.factory.config.PropertiesFactoryBean">
> > > <property name="location"
> > > value="/WEB-INF/classes/users.properties"/>
> > > </bean>
> > > </property>
> > > </bean>
> > >
> > >
> > > </beans>
> > >
> > >
> > >
> > > I then tried dto log into the adminPanel.swf using the following
> > > username / password
> > >
> > > admin / secretpassword.
> > >
> > > I keep getting NetConnection.Connect.Closed
> > >
> > > I also noticed in the adminPanel webapps WEF-INF folder there is a
> > > file by the name of
> > > red5-security.xml. Do I need to add this to the classes folder or add
> > > the bean references into my adminPanel-web.xml?
> > >
> > > Any help to get this one going is appreciated.
> > >
> > > Lenny
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > Red5 mailing list
> > > Red5 at osflash.org
> > > http://osflash.org/mailman/listinfo/red5_osflash.org
> > >
> > >
> > >
> > > _______________________________________________
> > > Red5 mailing list
> > > Red5 at osflash.org
> > > http://osflash.org/mailman/listinfo/red5_osflash.org
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > Red5 mailing list
> > > Red5 at osflash.org
> > > http://osflash.org/mailman/listinfo/red5_osflash.org
> > >
> > >
> > _______________________________________________
> > Red5 mailing list
> > Red5 at osflash.org
> > http://osflash.org/mailman/listinfo/red5_osflash.org
> >
> >
> >
> > _______________________________________________
> > Red5 mailing list
> > Red5 at osflash.org
> > http://osflash.org/mailman/listinfo/red5_osflash.org
> >
> >
> <keygen.swf>_______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20071222/1b2ce79c/attachment-0001.html
More information about the Red5
mailing list