mirror of
https://github.com/nicolabs/ldap-plugin.git
synced 2025-09-07 05:14:24 +02:00
making progress on the security realm configuration. Started hooking up GUI.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6205 71c3de6d-444a-0410-be80-ed276b4c234a Originally-Committed-As: 806e33d67dea946a6a745074ae847bf4c302990a
This commit is contained in:
parent
ed6f9b067d
commit
01e6a2a41e
31
core/src/main/java/hudson/security/LDAPSecurityRealm.java
Normal file
31
core/src/main/java/hudson/security/LDAPSecurityRealm.java
Normal file
|
@ -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<SecurityRealm> {
|
||||
private DescriptorImpl() {
|
||||
super(LDAPSecurityRealm.class);
|
||||
}
|
||||
|
||||
public String getDisplayName() {
|
||||
return "LDAP";
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
|
||||
<f:entry title="Server" >
|
||||
<f:textbox name="ldap.server" value="${instance}" />
|
||||
</f:entry>
|
||||
</j:jelly>
|
Loading…
Reference in a new issue