geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wolff, Dave" <DavidWo...@letu.edu>
Subject RE: Problem deploying LDAP Security Realm
Date Tue, 22 Aug 2006 20:21:38 GMT
I just figured it out.  I dropped both module tags (thanks Aaron!)
within the references I had and then I also had to include the
j2ee-security module in my environment dependencies.

The following is the working XML file:

<module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.1">

	<environment>
		<moduleId>
			<groupId>letu</groupId>
			<artifactId>letnet-secure</artifactId>
			<version>1.0</version>
		</moduleId>
		<dependencies>
			<dependency>
				<groupId>geronimo</groupId>
	
<artifactId>geronimo-security</artifactId>
				<version>1.1</version>
				<type>jar</type>
			</dependency>
			<dependency>
				<groupId>geronimo</groupId>
	
<artifactId>geronimo-management</artifactId>
				<version>1.1</version>
				<type>jar</type>
			</dependency>
			<dependency>
				<groupId>geronimo</groupId>
				<artifactId>j2ee-security</artifactId>
				<version>1.1</version>
				<type>car</type>
			</dependency>
		</dependencies>
	</environment>
	
	<gbean name="letnet-login"
	
class="org.apache.geronimo.security.jaas.LoginModuleGBean">
		<attribute
name="loginModuleClass">org.apache.geronimo.security.realm.providers.LDA
PLoginModule</attribute>
		<attribute name="serverSide">true</attribute>
		<attribute name="options">
	
initialContextFactory=com.sun.jndi.ldap.LdapCtxFactory
			connectionURL=
			connectionUsername=
			connectionPassword=
			connectionProtocol=
			authentication=simple
			userBase=ou=accounts,dc=letnet,dc=net
			userSearchMatching=(cn={0})
			userSearchSubtree=true
			roleBase=ou=groups,dc=letnet,dc=net
			roleName=cn
			roleSearchMatching=
			roleSearchSubtree=true
			userRoleName=(memberOf={0})
		</attribute>
		<attribute
name="loginDomainName">letnet-realm</attribute>
	</gbean>
	
	<gbean name="letnet-realm"
class="org.apache.geronimo.security.realm.GenericSecurityRealm">
		<attribute name="realmName">letnet-realm</attribute>
		<reference name="LoginModuleConfiguration">
			<name>letnet-login</name>
		</reference>
		<reference name="ServerInfo">
			<name>ServerInfo</name>
		</reference>
		
		<reference name="LoginService">
			<name>JaasLoginService</name>
		</reference>
	</gbean>
	
	<gbean name="letnet-login"
class="org.apache.geronimo.security.jaas.JaasLoginModuleUse">
		<attribute name="controlFlag">REQUIRED</attribute>
		<reference name="LoginModule">
			<name>letnet-login</name>
		</reference>
	</gbean>
</module> 

-----Original Message-----
From: ammulder@gmail.com [mailto:ammulder@gmail.com] On Behalf Of Aaron
Mulder
Sent: Tuesday, August 22, 2006 3:05 PM
To: user@geronimo.apache.org
Subject: Re: Problem deploying LDAP Security Realm

I think you should remove the <module> lines in there -- I saw at least
two.

Thanks,
     Aaron

On 8/22/06, Wolff, Dave <DavidWolff@letu.edu> wrote:
>
>
>
> Hello,
>     I'm having a problem deploying an LDAP realm to geronimo 1.1.  At 
> the end of the message is the XML file that I'm using (with a few of 
> the ldap param values removed) and it's throwing this error:
>
> Caused by:
> org.apache.geronimo.kernel.GBeanNotFoundException: No matches for 
> referencePatterns:
> [?J2EEModule=geronimo/j2ee-security/1.1/car,j2eeType=JaasLoginService,
> name=JaasLoginService 
> #org.apache.geronimo.security.jaas.server.JaasLoginServiceMBean]
>
> Any help would be greatly appreciated!
>
> Thanks!
> Dave Wolff
>
>
> <module
> xmlns="http://geronimo.apache.org/xml/ns/deployment-1.1">
>
>  <environment>
>   <moduleId>
>    <groupId>letu</groupId>
>    <artifactId>letnet-secure</artifactId>
>    <version>1.0</version>
>   </moduleId>
>   <dependencies>
>    <dependency>
>     <groupId>geronimo</groupId>
>     <artifactId>geronimo-security</artifactId>
>     <version>1.1</version>
>     <type>jar</type>
>    </dependency>
>    <dependency>
>     <groupId>geronimo</groupId>
>     <artifactId>geronimo-management</artifactId>
>     <version>1.1</version>
>     <type>jar</type>
>    </dependency>
>   </dependencies>
>  </environment>
>
>  <gbean name="letnet-login"
>
> class="org.apache.geronimo.security.jaas.LoginModuleGBean">
>   <attribute
>
>
name="loginModuleClass">org.apache.geronimo.security.realm.providers.LDA
PLoginModule</attribute>
>   <attribute name="serverSide">true</attribute>
>   <attribute name="options">
>    initialContextFactory=com.sun.jndi.ldap.LdapCtxFactory
>    connectionURL=
>    connectionUsername=
>    connectionPassword=
>    connectionProtocol=
>    authentication=simple
>    userBase=ou=accounts,dc=letnet,dc=net
>    userSearchMatching=(cn={0})
>    userSearchSubtree=true
>    roleBase=ou=groups,dc=letnet,dc=net
>    roleName=cn
>    roleSearchMatching=
>    roleSearchSubtree=true
>    userRoleName=(memberOf={0})
>   </attribute>
>   <attribute
> name="loginDomainName">letnet-realm</attribute>
>  </gbean>
>
>  <gbean name="letnet-realm"
> class="org.apache.geronimo.security.realm.GenericSecurityRealm">
>   <attribute name="realmName">letnet-realm</attribute>
>   <reference name="LoginModuleConfiguration">
>    <name>letnet-login</name>
>   </reference>
>   <reference name="ServerInfo">
>    <module>geronimo/j2ee-system/1.1/car</module>
>    <type>GBean</type>
>    <name>ServerInfo</name>
>   </reference>
>
>   <reference name="LoginService">
>    <module>geronimo/j2ee-security/1.1/car</module>
>    <name>JaasLoginService</name>
>   </reference>
>  </gbean>
>
>  <gbean name="letnet-login"
> class="org.apache.geronimo.security.jaas.JaasLoginModuleUse">
>   <attribute name="controlFlag">REQUIRED</attribute>
>   <reference name="LoginModule">
>    <name>letnet-login</name>
>   </reference>
>  </gbean>
> </module>

Mime
View raw message