Adding some a main method to this class to show how to automatically test this 
class with apache directory server once a embedded test version can be 
developed.


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/2f6dae2d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/2f6dae2d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/2f6dae2d

Branch: refs/heads/master
Commit: 2f6dae2ddfa9110c67e2635217e15554d737bf1f
Parents: 1fbc06e
Author: Aaron McCurry <[email protected]>
Authored: Fri Feb 6 06:14:49 2015 -0500
Committer: Aaron McCurry <[email protected]>
Committed: Fri Feb 6 06:14:49 2015 -0500

----------------------------------------------------------------------
 .../thrift/sasl/LdapAuthenticationProviderImpl.java     | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/2f6dae2d/blur-thrift/src/main/java/org/apache/blur/thrift/sasl/LdapAuthenticationProviderImpl.java
----------------------------------------------------------------------
diff --git 
a/blur-thrift/src/main/java/org/apache/blur/thrift/sasl/LdapAuthenticationProviderImpl.java
 
b/blur-thrift/src/main/java/org/apache/blur/thrift/sasl/LdapAuthenticationProviderImpl.java
index 652a15e..51ff07e 100644
--- 
a/blur-thrift/src/main/java/org/apache/blur/thrift/sasl/LdapAuthenticationProviderImpl.java
+++ 
b/blur-thrift/src/main/java/org/apache/blur/thrift/sasl/LdapAuthenticationProviderImpl.java
@@ -40,6 +40,18 @@ public class LdapAuthenticationProviderImpl extends 
PasswordAuthenticationProvid
   private final String _baseDN;
   private final String _ldapDomain;
 
+//  public static void main(String[] args) throws IOException {
+//    BlurConfiguration blurConfiguration = new BlurConfiguration();
+//    
blurConfiguration.set(BLUR_SECURITY_SASL_LDAP_URL,"ldap://localhost:10389/o=sevenSeas";);
+//    LdapAuthenticationProviderImpl ldapAuthenticationProviderImpl = new 
LdapAuthenticationProviderImpl(
+//        blurConfiguration);
+//    try {
+//      ldapAuthenticationProviderImpl.authenticate("cn=James 
Hook,ou=people,o=sevenSeas", "peterPan", null);
+//    } catch (Exception e) {
+//      e.printStackTrace();
+//    }
+//  }
+
   public LdapAuthenticationProviderImpl(BlurConfiguration configuration) {
     super(configuration);
     _ldapURL = configuration.get(BLUR_SECURITY_SASL_LDAP_URL);

Reply via email to