org.nuiton.wikitty.services
Class WikittyServiceAuthenticationLDAP

java.lang.Object
  extended by org.nuiton.wikitty.services.WikittyServiceDelegator
      extended by org.nuiton.wikitty.services.WikittyServiceAuthenticationAbstract
          extended by org.nuiton.wikitty.services.WikittyServiceAuthenticationLDAP
All Implemented Interfaces:
WikittyService

public class WikittyServiceAuthenticationLDAP
extends WikittyServiceAuthenticationAbstract

Permet de faire une authentification sur un serveur LDAP. Il faut pour cela fournir les informations pour se connecter au LDAP (url du serveur, pattern des DN des utilisateurs et toutes autres informations utiles). Il est possible d'indiquer de creer automatiquement l'objet WikittyUser associe au compte LDAP si celui-ci n'existe pas. Si le WikittyUser n'existe pas et qu'on a pas le droit de le creer, l'authentification echoue forcement

Version:
$Revision: 1462 $ Last update: $Date: 2012-04-05 17:31:15 +0200 (jeu, 05 avr 2012) $ by : $Author: maven-release $
Author:
poussin

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.nuiton.wikitty.WikittyService
WikittyService.ServiceListenerType
 
Field Summary
protected  Properties jndiProp
           
protected  String ldapLoginPattern
           
 
Fields inherited from class org.nuiton.wikitty.services.WikittyServiceAuthenticationAbstract
config
 
Fields inherited from class org.nuiton.wikitty.services.WikittyServiceDelegator
delegate
 
Constructor Summary
WikittyServiceAuthenticationLDAP(org.nuiton.util.ApplicationConfig config, WikittyService ws)
           
 
Method Summary
protected  boolean canCreateUser()
           
 String login(String login, String password)
          Authenticate someone on WikittyService. securityToken returned must be used to call others methods
 
Methods inherited from class org.nuiton.wikitty.services.WikittyServiceAuthenticationAbstract
getToken, logout
 
Methods inherited from class org.nuiton.wikitty.services.WikittyServiceDelegator
addWikittyServiceListener, canDelete, canRead, canWrite, clear, delete, deleteExtension, deleteTree, exists, findAllByCriteria, findAllByQuery, findByCriteria, findByQuery, findTreeNode, findTreeNode, getAllExtensionIds, getAllExtensionsRequires, getDelegate, isDeleted, removeWikittyServiceListener, replay, restore, restoreExtension, restoreExtensionAndDependenciesLastVesion, restoreExtensionLastVersion, restoreVersion, setDelegate, store, storeExtension, syncSearchEngine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jndiProp

protected Properties jndiProp

ldapLoginPattern

protected String ldapLoginPattern
Constructor Detail

WikittyServiceAuthenticationLDAP

public WikittyServiceAuthenticationLDAP(org.nuiton.util.ApplicationConfig config,
                                        WikittyService ws)
Method Detail

canCreateUser

protected boolean canCreateUser()

login

public String login(String login,
                    String password)
Description copied from interface: WikittyService
Authenticate someone on WikittyService. securityToken returned must be used to call others methods

Specified by:
login in interface WikittyService
Specified by:
login in class WikittyServiceAuthenticationAbstract
Parameters:
login - can be application specifique login, but best practice is to use email user
Returns:
return token securityToken


Copyright © 2009-2012 CodeLutin. All Rights Reserved.