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:
kohsuke 2007-12-05 07:09:29 +00:00
parent ed6f9b067d
commit 01e6a2a41e
2 changed files with 36 additions and 0 deletions

View 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";
}
}
}

View file

@ -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>