[seam-commits] Seam SVN: r13948 - branches/community/Seam_2_2/src/main/org/jboss/seam/security/management.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Wed Dec 15 05:05:46 EST 2010


Author: shane.bryzak at jboss.com
Date: 2010-12-15 05:05:45 -0500 (Wed, 15 Dec 2010)
New Revision: 13948

Modified:
   branches/community/Seam_2_2/src/main/org/jboss/seam/security/management/LdapIdentityStore.java
Log:
JBSEAM-4740


Modified: branches/community/Seam_2_2/src/main/org/jboss/seam/security/management/LdapIdentityStore.java
===================================================================
--- branches/community/Seam_2_2/src/main/org/jboss/seam/security/management/LdapIdentityStore.java	2010-12-15 09:09:04 UTC (rev 13947)
+++ branches/community/Seam_2_2/src/main/org/jboss/seam/security/management/LdapIdentityStore.java	2010-12-15 10:05:45 UTC (rev 13948)
@@ -94,6 +94,8 @@
    
    private String[] userObjectClasses = { "person", "uidObject" };
    
+   private String securityAuthenticationType = "simple";
+   
    private int searchScope = SearchControls.SUBTREE_SCOPE;
    
    /**
@@ -331,6 +333,16 @@
       this.searchTimeLimit = searchTimeLimit;
    }
    
+   public String getSecurityAuthenticationType()
+   {
+      return securityAuthenticationType;
+   }
+   
+   public void setSecurityAuthenticationType(String value)
+   {
+      this.securityAuthenticationType = value;
+   }
+   
    public String getSearchScope()
    {
       switch (searchScope)
@@ -389,7 +401,7 @@
       Properties env = new Properties();
 
       env.setProperty(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
-      env.setProperty(Context.SECURITY_AUTHENTICATION, "simple");
+      env.setProperty(Context.SECURITY_AUTHENTICATION, securityAuthenticationType);
       
       String providerUrl = String.format("ldap://%s:%d", getServerAddress(), getServerPort());
       env.setProperty(Context.PROVIDER_URL, providerUrl);



More information about the seam-commits mailing list