directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1445865 - in /directory/apacheds/trunk/server-annotations/src/main/java/org/apache/directory/server: annotations/CreateKdcServer.java factory/ServerAnnotationProcessor.java
Date Wed, 13 Feb 2013 19:12:47 GMT
Author: kayyagari
Date: Wed Feb 13 19:12:47 2013
New Revision: 1445865

URL: http://svn.apache.org/r1445865
Log:
added a configuration parameter for search base

Modified:
    directory/apacheds/trunk/server-annotations/src/main/java/org/apache/directory/server/annotations/CreateKdcServer.java
    directory/apacheds/trunk/server-annotations/src/main/java/org/apache/directory/server/factory/ServerAnnotationProcessor.java

Modified: directory/apacheds/trunk/server-annotations/src/main/java/org/apache/directory/server/annotations/CreateKdcServer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-annotations/src/main/java/org/apache/directory/server/annotations/CreateKdcServer.java?rev=1445865&r1=1445864&r2=1445865&view=diff
==============================================================================
--- directory/apacheds/trunk/server-annotations/src/main/java/org/apache/directory/server/annotations/CreateKdcServer.java
(original)
+++ directory/apacheds/trunk/server-annotations/src/main/java/org/apache/directory/server/annotations/CreateKdcServer.java
Wed Feb 13 19:12:47 2013
@@ -27,6 +27,8 @@ import java.lang.annotation.Retention;
 import java.lang.annotation.RetentionPolicy;
 import java.lang.annotation.Target;
 
+import org.apache.directory.server.constants.ServerDNConstants;
+
 
 /**
  * A annotation used to define a LdapServer configuration. Many elements can be configured
:
@@ -78,4 +80,7 @@ public @interface CreateKdcServer
      * the first element alone is taken into consideration, rest of the
      * array elements will be ignored*/
     CreateChngPwdServer[] chngPwdServer() default {};
+    
+    /** the DN of the search base for finding users and services */
+    String searchBaseDn() default ServerDNConstants.USER_EXAMPLE_COM_DN;
 }
\ No newline at end of file

Modified: directory/apacheds/trunk/server-annotations/src/main/java/org/apache/directory/server/factory/ServerAnnotationProcessor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-annotations/src/main/java/org/apache/directory/server/factory/ServerAnnotationProcessor.java?rev=1445865&r1=1445864&r2=1445865&view=diff
==============================================================================
--- directory/apacheds/trunk/server-annotations/src/main/java/org/apache/directory/server/factory/ServerAnnotationProcessor.java
(original)
+++ directory/apacheds/trunk/server-annotations/src/main/java/org/apache/directory/server/factory/ServerAnnotationProcessor.java
Wed Feb 13 19:12:47 2013
@@ -391,6 +391,8 @@ public class ServerAnnotationProcessor
         
         KdcServer kdcServer = new KdcServer( kdcConfig );
         
+        kdcServer.setSearchBaseDn( createKdcServer.searchBaseDn() );
+        
         CreateTransport[] transportBuilders = createKdcServer.transports();
         
         if( transportBuilders == null )



Mime
View raw message