[JBoss Portal] - LDAP with Windows 2003 SBS
by DeanoUK
Hi all,
I'm still trying to get JBoss Portal login working with Windows 2003 Small Business Edition.
I'm currently getting a HTTP Status 403 upon login of a user. I presume this is a roles problem?
My ldap_identity-config.xml looks like so:
| <identity-configuration>
| <datasources>
| <datasource>
| <name>LDAP</name>
| <config>
| <option>
| <name>host</name>
| <value>10.0.0.2</value>
| </option>
| <option>
| <name>port</name>
| <value>389</value>
| </option>
| <option>
| <name>adminDN</name>
| <value>administrator</value>
| </option>
| <option>
| <name>adminPassword</name>
| <value>mypassword</value>
| </option>
| </config>
| </datasource>
| </datasources>
| <modules>
| <module>
| <!--type used to correctly map in IdentityContext registry-->
| <type>User</type>
| <implementation>LDAP</implementation>
| <class>
| org.jboss.portal.identity.ldap.LDAPExtUserModuleImpl
| </class>
| <config/>
| </module>
| <module>
| <type>Role</type>
| <implementation>LDAP</implementation>
| <class>
| org.jboss.portal.identity.ldap.LDAPExtRoleModuleImpl
| </class>
| <config/>
| </module>
| <module>
| <type>Membership</type>
| <implementation>LDAP</implementation>
| <config/>
| </module>
| <module>
| <type>UserProfile</type>
| <implementation>DELEGATING</implementation>
| <config>
| <option>
| <name>ldapModuleJNDIName</name>
| <value>java:/portal/LDAPUserProfileModule</value>
| </option>
| </config>
| </module>
| <module>
| <type>DBDelegateUserProfile</type>
| <implementation>DB</implementation>
| <config>
| <option>
| <name>randomSynchronizePassword</name>
| <value>true</value>
| </option>
| </config>
| </module>
| <module>
| <type>LDAPDelegateUserProfile</type>
| <implementation>LDAP</implementation>
| <config/>
| </module>
| </modules>
|
| <options>
| <option-group>
| <group-name>common</group-name>
| <option>
| <name>userCtxDN</name>
| <value>OU=SBSUsers,OU=Users,OU=MyBusiness,DC=msphq,DC=local</value>
| </option>
| <option>
| <name>uidAttributeID</name>
| <value>sAMAccountName</value>
| </option>
| <option>
| <name>userSearchFilter</name>
| <value><![CDATA[(&(sAMAccountName={0})(objectClass=User))]]></value>
| </option>
| <option>
| <name>roleCtxDN</name>
| <value><![CDATA[OU=SBSUsers,OU=Users,OU=MyBusiness,DC=msphq,DC=local]]></value>
| </option>
| <option>
| <name>roleSearchFilter</name>
| <value><![CDATA[(&((CN={0})(objectClass=memberOf)))]]></value>
| </option>
| <option>
| <name>searchScope</name>
| <value>SUBTREE_SCOPE</value>
| </option>
| </option-group>
| </options>
| </identity-configuration>
|
Has anyone got it working with SBS, if so whats your config?
Anyone else who can help?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146781#4146781
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146781
17 years, 12 months
[EJB/JBoss] - ClientSocketFactory with EJB3 JBoss-5.0.0.Beta4
by slimamar
Hello,
We want to use a ClientSocketFactory and after some reads (Remoting guide)
we have configured this in the file $JBOSS_HOME/server/<my-conf>/deploy/ejb3-connectors-service.xml :
<?xml version="1.0" encoding="UTF-8"?>
| <!--
| JBoss EJB3Deployer
|
| $Id: jboss-service.xml 41488 2006-02-25 00:14:09Z dimitris $
| -->
| <server>
|
| <mbean code="org.jboss.remoting.transport.Connector"
| name="jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3">
| <!-- <attribute name="InvokerLocator">socket://${jboss.bind.address}:3873</attribute> -->
| <attribute name="Configuration">
| <config>
| <invoker transport="rmi">
| <attribute name="numAcceptThreads">1</attribute>
| <attribute name="maxPoolSize">303</attribute>
| <attribute name="clientMaxPoolSize" isParam="true">2</attribute>
| <attribute name="serverBindAddress">${jboss.bind.address}</attribute>
| <attribute name="serverBindPort">3873</attribute>
| <attribute name="timeout" isParam="true">60000</attribute>
| <attribute name="customSocketFactory" isParam="true">myPackage.MyClientSocketFactory</attribute>
| <attribute name="socketFactory" isParam="true">myPackage.MyClientSocketFactory</attribute>
| </invoker>
| <handlers>
| <handler subsystem="AOP">org.jboss.aspects.remoting.AOPRemotingInvocationHandler</handler>
| </handlers>
| </config>
| </attribute>
| </mbean>
|
| </server>
Unfortunately, this does not work and we have an exception in the client side :
javax.naming.NamingException: Could not dereference object [Root exception is javax.ejb.EJBException: Invalid invocation of local interface]
cause exception : java.lang.ClassCastException: java.lang.String
What's wrong ?
Thank's in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146776#4146776
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146776
17 years, 12 months
[EJB 3.0] - Re: ClientSocketFactory with EJB3 JBoss-5.0.0.Beta4
by slimamar
Sorry, always the problem with the message body post.
The final correct message body is :
We want to use a ClientSocketFactory and after some reads (Remoting guide)
we have configured this in the file $JBOSS_HOME/server/<my-conf>/deploy/ejb3-connectors-service.xml :
<?xml version="1.0" encoding="UTF-8"?>
| <!--
| JBoss EJB3Deployer
|
| $Id: jboss-service.xml 41488 2006-02-25 00:14:09Z dimitris $
| -->
| <server>
|
| <mbean code="org.jboss.remoting.transport.Connector"
| name="jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3">
| <!-- <attribute name="InvokerLocator">socket://${jboss.bind.address}:3873</attribute> -->
| <attribute name="Configuration">
| <config>
| <invoker transport="rmi">
| <attribute name="numAcceptThreads">1</attribute>
| <attribute name="maxPoolSize">303</attribute>
| <attribute name="clientMaxPoolSize" isParam="true">2</attribute>
| <attribute name="serverBindAddress">${jboss.bind.address}</attribute>
| <attribute name="serverBindPort">3873</attribute>
| <attribute name="timeout" isParam="true">60000</attribute>
| <attribute name="customSocketFactory" isParam="true">myPackage.MyClientSocketFactory</attribute>
| <attribute name="socketFactory" isParam="true">myPackage.MyClientSocketFactory</attribute>
| </invoker>
| <handlers>
| <handler subsystem="AOP">org.jboss.aspects.remoting.AOPRemotingInvocationHandler</handler>
| </handlers>
| </config>
| </attribute>
| </mbean>
|
| </server>
Unfortunately, this does not work and we have an exception in the client side :
javax.naming.NamingException: Could not dereference object [Root exception is javax.ejb.EJBException: Invalid invocation of local interface]
cause exception : java.lang.ClassCastException: java.lang.String
What's wrong ?
Thank's in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146774#4146774
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146774
17 years, 12 months
[EJB 3.0] - Re: ClientSocketFactory with EJB3 JBoss-5.0.0.Beta4
by slimamar
Sorry, i have had a problem with the message body post.
The correct message body is :
We want to use a ClientSocketFactory and after some reads (Remoting guide)
we have configured this in the file
$JBOSS_HOME/server/<my-conf>/deploy/ejb3-connectors-service.xml :
<?xml version="1.0" encoding="UTF-8"?>
<!--
JBoss EJB3Deployer
$Id: jboss-service.xml 41488 2006-02-25 00:14:09Z dimitris $
-->
<!-- socket://${jboss.bind.address}:3873
-->
1
303
2
${jboss.bind.address}
3873
60000
myPackage.MyClientSocketFactory
myPackage.MyClientSocketFactory
org.jboss.aspects.remoting.AOPRemotingInvocationHandler
Unfortunately, this does not work and we have an exception in the client
side :
javax.naming.NamingException: Could not dereference object [Root exception
is javax.ejb.EJBException: Invalid invocation of local interface]
cause exception : java.lang.ClassCastException: java.lang.String
What's wrong ?
Thank's in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146769#4146769
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146769
17 years, 12 months
[EJB 3.0] - ClientSocketFactory with EJB3 JBoss-5.0.0.Beta4
by slimamar
Hello,
We want to use a ClientSocketFactory and after some reads (Remoting guide)
we have configured this in the file $JBOSS_HOME/server/<my-conf>/deploy/ejb3-connectors-service.xml :
<?xml version="1.0" encoding="UTF-8"?>
<!--
JBoss EJB3Deployer
$Id: jboss-service.xml 41488 2006-02-25 00:14:09Z dimitris $
-->
<!-- socket://${jboss.bind.address}:3873 -->
1
303
2
${jboss.bind.address}
3873
60000
myPackage.MyClientSocketFactory
myPackage.MyClientSocketFactory
org.jboss.aspects.remoting.AOPRemotingInvocationHandler
Unfortunately, this does not work and we have an exception in the client side :
javax.naming.NamingException: Could not dereference object [Root exception is javax.ejb.EJBException: Invalid invocation of local interface]
cause exception : java.lang.ClassCastException: java.lang.String
What's wrong ?
Thank's in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146766#4146766
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146766
17 years, 12 months