[JBoss Portal] - Re: LDAP Authentication & Authorization to eDirectory
by arnieAustin
Well, THAT was an exercise in futility! :) No change what so ever. I did notice that the ant builds were creating the sar and wars as ZIP files. So I unzipped the jboss-portal.sar file to a folder in the ./deploy folder. Then I placed the other wars into the .sar folder. Note that I simply removed the old jboss-portal.sar folder for the new one, in the same jboss-as installation that originally came w/t bundle.
After reconfiguring the \jboss-portal.sar\conf\identity\ldap_identity-config.xml file, was able to boot the server. To no avail.
I do see:
09:39:40,687 ERROR [LDAPUserProfileModuleImpl] No such attribute ('seeAlso') in entry: cn=admin,ou=APPS,ou=PEOPLE,o=IDV
Now, I can't speak to other LDAP servers, but in the case of Novell eDirectory, the seeAlso attribute is a list of DNs, not a text field. Is that what the ProfileModuleImp class is expecting? Can I map it to some other field? Say, description - which is a multivalued caseIgnoreString?
The log file shows:
| 2007-05-23 09:39:30,187 DEBUG [org.jboss.portal.identity.ldap.LDAPExtUserModuleImpl] findUserByUserName(): username = admin
| 2007-05-23 09:39:30,187 DEBUG [org.jboss.portal.identity.ldap.LDAPExtUserModuleImpl] Search filter: (cn={0})
| 2007-05-23 09:39:30,187 DEBUG [org.jboss.portal.identity.ldap.LDAPExtUserModuleImpl] Search filter: (cn={0})
| 2007-05-23 09:39:30,187 DEBUG [org.jboss.portal.identity.ldap.LDAPExtUserModuleImpl] Search filterArg: {0}: admin
| 2007-05-23 09:39:30,187 DEBUG [org.jboss.portal.identity.ldap.LDAPExtUserModuleImpl] Search ctx: ou=People,o=idv
| 2007-05-23 09:39:30,187 DEBUG [org.jboss.portal.identity.ldap.LDAPUserModule] user uid: cn=admin,ou=APPS,ou=PEOPLE,o=IDV
| 2007-05-23 09:39:30,187 DEBUG [org.jboss.portal.identity.ldap.LDAPUserModule] user dn: cn=admin,ou=APPS,ou=PEOPLE,o=IDV
| 2007-05-23 09:39:30,203 DEBUG [org.jboss.portal.identity.ldap.LDAPStaticRoleMembershipModuleImpl] findRoles(): role = cn=admin,ou=APPS,ou=PEOPLE,o=IDV
|
|
| I must have something misconfigured because if I read this right, findRoles() will never find anything like cn=admin,ou=APPS,ou=PEOPLE,o=IDV since that's a user object, not a group object!
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047935#4047935
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047935
18 years, 11 months
[JBossWS] - Set WS-Configuration
by ethan1980
Hi all,
I have created client artifacts with wsconsume from wsdl. I have a class service like:
package com.hp.som.handlers.webservices.impl;
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
/**
* JBossWS Generated Source
*
* Generation Date: Tue May 22 16:55:09 CEST 2007
*
* This generated source code represents a derivative work of the input to
* the generator that produced it. Consult the input for the copyright and
* terms of use that apply to this source code.
*
* JAX-WS Version: 2.0
*
*/
@WebServiceClient(name = "TestService", targetNamespace = "http://som.hp.som/com/hp/som/handlers/webservices/impl", wsdlLocation = "WEB-INF/wsdl/TestBean.wsdl")
public class TestService_Service
extends Service
{
private final static URL TESTSERVICE_WSDL_LOCATION;
static {
URL url = null;
/*try {
url = new File("WEB-INF/wsdl/TestBean.xml").toURL();
} catch (MalformedURLException e) {
e.printStackTrace();
}*/
TESTSERVICE_WSDL_LOCATION = url;
}
public TestService_Service(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
public TestService_Service() {
super(TESTSERVICE_WSDL_LOCATION, new QName("http://som.hp.som/com/hp/som/handlers/webservices/impl", "TestService"));
}
/**
*
* @return
* returns TestService
*/
@WebEndpoint(name = "TestServicePort")
public TestService getTestServicePort() {
return (TestService)super.getPort(new QName("http://som.hp.som/com/hp/som/handlers/webservices/impl", "TestServicePort"), TestService.class);
}
}
...
I want configure ws-security of this mode:
TestService_Service service = new TestService_Service();
String configFilePath = initConfigFilePath(ctx);
if ( (configFilePath != null) && (!"".equals(configFilePath.trim()))) {
URL securityURL = new File(configFilePath).toURL();
((ServiceExt)service).setSecurityConfig(securityURL.toExternalForm());
}
My problem is that i cant cast TestService_Service in ServiceExt for set security config and i want not create Service like Service.create(url,qname).
Thanks in advance.
[/img]
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047931#4047931
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047931
18 years, 11 months