directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Lohse <lo...@itm.uni-luebeck.de>
Subject Kerberos service Principal property in server.xml causes exception.
Date Wed, 19 Dec 2007 13:43:14 GMT
Hi, I am trying to set ApacheDS up in a way, where it provides LDAP as 
well as Kerberos.
So I configured the relevant properties in the Kerberos Section:


   <bean id="kdcConfiguration" 
class="org.apache.directory.server.kerberos.kdc.KdcConfiguration">
     <!-- Whether to enable the Kerberos protocol. 
      -->
     <property name="enabled" value="true" />
     <!-- The port to run the Kerberos protocol on. 
      -->
     <property name="ipPort" value="88" />
     <property name="primaryRealm" value="ITM.UNI-LUEBECK.DE" />
     <property name="servicePrincipal" 
value="krbtgt/JLAN.ITM.UNI-LUEBECK.DE@ITM.UNI-LUEBECK.DE" />
   </bean>


But when I try to start ApacheDS, it tell's me, that it can't convert 
the value of the servicePricipal to the corresponding type:


Exception in thread "main" 
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'kdcConfiguration' defined in URL 
[file:/home_students/lohse/apacheds-noarch/server.xml]: Initialization 
of bean failed; nested exception is 
org.springframework.beans.TypeMismatchException: Failed to convert 
property value of type [java.lang.String] to required type 
[javax.security.auth.kerberos.KerberosPrincipal] for property 
'servicePrincipal'; nested exception is 
java.lang.IllegalArgumentException: Method must not be null
Caused by: org.springframework.beans.TypeMismatchException: Failed to 
convert property value of type [java.lang.String] to required type 
[javax.security.auth.kerberos.KerberosPrincipal] for property 
'servicePrincipal'; nested exception is 
java.lang.IllegalArgumentException: Method must not be null
Caused by: java.lang.IllegalArgumentException: Method must not be null
         at org.springframework.util.Assert.notNull(Assert.java:112)
         at 
org.springframework.core.MethodParameter.<init>(MethodParameter.java:78)
         at 
org.springframework.core.MethodParameter.<init>(MethodParameter.java:64)
         at 
org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)
         at 
org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:380)
         at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1111)
         at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:861)
         at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
         at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
         at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
         at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
         at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
         at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
         at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
         at 
org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:93)
         at 
org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:77)
         at 
org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:67)
         at org.apache.directory.server.Service.init(Service.java:77)
         at 
org.apache.directory.server.UberjarMain.main(UberjarMain.java:54)


Am I missing some required software, or where lies the problem?

Thanks in advance,
Stephan Lohse

Mime
View raw message