mirror of
https://github.com/nicolabs/ldap-plugin.git
synced 2025-09-07 05:14:24 +02:00
Existing SecurityRealm implementations are converted for auto-discovery.
I also used the active directory plugin to make sure that the binary compatibility with old plugins are working git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15607 71c3de6d-444a-0410-be80-ed276b4c234a Originally-Committed-As: 6852bba554a9948e95d8147c34261067f8f3690c
This commit is contained in:
parent
b8abf450fd
commit
77adf5325b
|
@ -26,6 +26,7 @@ package hudson.security;
|
|||
import com.sun.jndi.ldap.LdapCtxFactory;
|
||||
import groovy.lang.Binding;
|
||||
import hudson.Util;
|
||||
import hudson.Extension;
|
||||
import hudson.tasks.MailAddressResolver;
|
||||
import hudson.model.Descriptor;
|
||||
import hudson.model.Hudson;
|
||||
|
@ -406,12 +407,7 @@ public class LDAPSecurityRealm extends SecurityRealm {
|
|||
}
|
||||
}
|
||||
|
||||
public DescriptorImpl getDescriptor() {
|
||||
return DESCRIPTOR;
|
||||
}
|
||||
|
||||
public static final DescriptorImpl DESCRIPTOR = new DescriptorImpl();
|
||||
|
||||
@Extension
|
||||
public static final class DescriptorImpl extends Descriptor<SecurityRealm> {
|
||||
public String getDisplayName() {
|
||||
return Messages.LDAPSecurityRealm_DisplayName();
|
||||
|
@ -478,10 +474,6 @@ public class LDAPSecurityRealm extends SecurityRealm {
|
|||
else return "ldap://"+server;
|
||||
}
|
||||
|
||||
static {
|
||||
LIST.add(DESCRIPTOR);
|
||||
}
|
||||
|
||||
private static final Logger LOGGER = Logger.getLogger(LDAPSecurityRealm.class.getName());
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue