directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: rev 56625 - incubator/directory/kerberos/trunk/kerberos/src/java/org/apache/kerberos/kdc
Date Thu, 04 Nov 2004 22:57:01 GMT
Author: erodriguez
Date: Thu Nov  4 14:57:00 2004
New Revision: 56625

Modified:
   incubator/directory/kerberos/trunk/kerberos/src/java/org/apache/kerberos/kdc/KdcConfiguration.java
Log:
Added getter to config for ldap server principal.

Modified: incubator/directory/kerberos/trunk/kerberos/src/java/org/apache/kerberos/kdc/KdcConfiguration.java
==============================================================================
--- incubator/directory/kerberos/trunk/kerberos/src/java/org/apache/kerberos/kdc/KdcConfiguration.java
(original)
+++ incubator/directory/kerberos/trunk/kerberos/src/java/org/apache/kerberos/kdc/KdcConfiguration.java
Thu Nov  4 14:57:00 2004
@@ -239,13 +239,21 @@
         return CHANGEPW_PORT;
     }
 
-
     public KerberosPrincipal getChangepwPrincipal()
     {
         String key = "changepw.principal";
         return new KerberosPrincipal( ( String ) properties.get( key ) );
     }
 
+    public KerberosPrincipal getLdapPrincipal()
+    {
+        String key = "ldap.principal";
+        if ( properties.containsKey( key ) )
+        {
+            return new KerberosPrincipal( ( String ) properties.get( key ) );
+        }
+        return null;
+    }
 
     private void prepareEncryptionTypes()
     {

Mime
View raw message