diff --git a/core/src/main/java/hudson/security/LDAPSecurityRealm.java b/core/src/main/java/hudson/security/LDAPSecurityRealm.java new file mode 100644 index 0000000..1d154fc --- /dev/null +++ b/core/src/main/java/hudson/security/LDAPSecurityRealm.java @@ -0,0 +1,31 @@ +package hudson.security; + +import org.acegisecurity.AuthenticationManager; +import hudson.model.Descriptor; + +/** + * {@link SecurityRealm} implementation that uses LDAP for authentication. + * + * @author Kohsuke Kawaguchi + */ +public class LDAPSecurityRealm extends SecurityRealm { + public AuthenticationManager createAuthenticationManager() { + throw new UnsupportedOperationException(); + } + + public DescriptorImpl getDescriptor() { + return DESCRIPTOR; + } + + public static final DescriptorImpl DESCRIPTOR = new DescriptorImpl(); + + private static final class DescriptorImpl extends Descriptor { + private DescriptorImpl() { + super(LDAPSecurityRealm.class); + } + + public String getDisplayName() { + return "LDAP"; + } + } +} diff --git a/core/src/main/resources/hudson/security/LDAPSecurityRealm/config.jelly b/core/src/main/resources/hudson/security/LDAPSecurityRealm/config.jelly new file mode 100644 index 0000000..2255b50 --- /dev/null +++ b/core/src/main/resources/hudson/security/LDAPSecurityRealm/config.jelly @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file