org.apache.juddi.v3.auth
Class LdapSimpleAuthenticator

java.lang.Object
  extended by org.apache.juddi.v3.auth.LdapSimpleAuthenticator
All Implemented Interfaces:
Authenticator

public class LdapSimpleAuthenticator
extends Object
implements Authenticator

This is a implementation of jUDDI's Authenticator interface, that uses the LDAP. Usage: To use this class you must add the following properties to the juddiv3.properties file: # The JBoss Authenticator juddi.authenticator=org.apache.juddi.v3.auth.LdapSimpleAuthenticator # LDAP authentication URL juddi.authenticator.url=ldap://localhost:389 This authenticator assumes that the publisher username is the same as the LDAP principal name, which may not be the case as the LDAP principal might be a bind name. This class could easily be extended so that the uid of the LDAP authenticated user is used, or to authenticate by group. This class was tested with OpenLDAP.

Author:
Tom Cunningham, Gunnlaugur Sigurðsson

Constructor Summary
LdapSimpleAuthenticator()
           
LdapSimpleAuthenticator(String url)
           
 
Method Summary
 String authenticate(String authorizedName, String cred)
           
 UddiEntityPublisher identify(String authInfo, String authorizedName)
           
 void init(String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapSimpleAuthenticator

public LdapSimpleAuthenticator()
                        throws NamingException
Throws:
NamingException

LdapSimpleAuthenticator

public LdapSimpleAuthenticator(String url)
                        throws NamingException
Throws:
NamingException
Method Detail

init

public void init(String url)
          throws NamingException
Throws:
NamingException

authenticate

public String authenticate(String authorizedName,
                           String cred)
                    throws AuthenticationException,
                           FatalErrorException
Specified by:
authenticate in interface Authenticator
Parameters:
authorizedName - - userId of the user making the registry request
cred - - some authentical creditial (i.e. a password) which can be used to authenticate the user.
Returns:
The publisherID for this user
Throws:
AuthenticationException
FatalErrorException

identify

public UddiEntityPublisher identify(String authInfo,
                                    String authorizedName)
                             throws AuthenticationException,
                                    FatalErrorException
Specified by:
identify in interface Authenticator
Throws:
AuthenticationException
FatalErrorException


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.